From 1de7fce8e4f9301b577d5ce660bdda09f0c42b4d Mon Sep 17 00:00:00 2001 From: greenkeeperio-bot Date: Sun, 31 Jan 2016 22:33:37 +0100 Subject: [PATCH 01/17] chore(package): update ipfsd-ctl to version 0.8.1 http://greenkeeper.io/ --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index b91419066..f43ac5faf 100644 --- a/package.json +++ b/package.json @@ -45,7 +45,7 @@ "gulp-tag-version": "^1.3.0", "gulp-util": "^3.0.7", "https-browserify": "0.0.1", - "ipfsd-ctl": "^0.8.0", + "ipfsd-ctl": "^0.8.1", "json-loader": "^0.5.3", "karma": "^0.13.11", "karma-chrome-launcher": "^0.2.1", From c0ac0f9a92f9ad744a2106e4961312d6721e9658 Mon Sep 17 00:00:00 2001 From: priecint Date: Mon, 1 Feb 2016 14:27:12 +0100 Subject: [PATCH 02/17] ipfs/js-ipfs-api#124 Rename function parameter so it doesn't collide with function name (in Safari) --- src/api/id.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/api/id.js b/src/api/id.js index 729dbd4fe..b9df9f0fc 100644 --- a/src/api/id.js +++ b/src/api/id.js @@ -1,11 +1,11 @@ 'use strict' module.exports = send => { - return function id (id, cb) { - if (typeof id === 'function') { - cb = id - id = null + return function id (idParam, cb) { + if (typeof idParam === 'function') { + cb = idParam + idParam = null } - return send('id', id, null, null, cb) + return send('id', idParam, null, null, cb) } } From 9b748414ddb72af240b13740b170cbe3e6c1e57a Mon Sep 17 00:00:00 2001 From: dignifiedquire Date: Fri, 5 Feb 2016 13:38:30 +0100 Subject: [PATCH 03/17] feat: Add promise based api All methods return a promise when not passed a callback Closes #80 --- .travis.yml | 3 ++ README.md | 14 ++++++ src/api/dht.js | 29 ++++++++++--- src/api/log.js | 5 +++ src/api/ping.js | 5 +++ src/request-api.js | 23 +++++++--- test/api/add.spec.js | 11 +++++ test/api/block.spec.js | 30 +++++++++++++ test/api/cat.spec.js | 16 +++++++ test/api/commands.spec.js | 9 ++++ test/api/config.spec.js | 33 ++++++++++++++ test/api/dht.spec.js | 23 ++++++++++ test/api/diag.spec.js | 18 ++++++++ test/api/id.spec.js | 10 +++++ test/api/log.spec.js | 12 ++++++ test/api/ls.spec.js | 29 +++++++++++++ test/api/name.spec.js | 20 +++++++++ test/api/object.spec.js | 91 +++++++++++++++++++++++++++++++++++++++ test/api/pin.spec.js | 30 +++++++++++++ test/api/ping.spec.js | 12 ++++++ test/api/refs.spec.js | 55 +++++++++++++---------- test/api/swarm.spec.js | 10 +++++ test/api/version.spec.js | 20 +++++++++ 23 files changed, 473 insertions(+), 35 deletions(-) diff --git a/.travis.yml b/.travis.yml index 2781388cb..c7a88daa3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,6 +4,9 @@ node_js: - '5' - stable +addons: + firefox: 'latest' + before_script: - export DISPLAY=:99.0 - sh -e /etc/init.d/xvfb start diff --git a/README.md b/README.md index 49b92f74e..de1c008b3 100644 --- a/README.md +++ b/README.md @@ -49,6 +49,20 @@ If you omit the host and port, the api will parse `window.host`, and use this in var ipfs = window.ipfsAPI() ``` +### Using Promises + +If you do not pass in a callback all api functions will return a `Promise`, for example + +```js +ipfs.id() + .then(function (id) { + console.log('my id is: ', id) + }) +``` + +This relies on a global `Promise` object. If you are in an environemnt where that is not +yet available you need to bring your own polyfill. + #### Gotchas When using the api from script tag for things that require buffers (`ipfs.add`, for example), you will have to use either the exposed `ipfs.Buffer`, that works just like a node buffer, or use this [browser buffer](https://github.com/feross/buffer). diff --git a/src/api/dht.js b/src/api/dht.js index 129873763..5c70d0897 100644 --- a/src/api/dht.js +++ b/src/api/dht.js @@ -11,10 +11,10 @@ module.exports = send => { opts = null } - return send('dht/get', key, opts, null, (err, res) => { - if (err) return cb(err) - if (!res) return cb(new Error('empty response')) - if (res.length === 0) return cb(new Error('no value returned for key')) + const handleResult = (done, err, res) => { + if (err) return done(err) + if (!res) return done(new Error('empty response')) + if (res.length === 0) return done(new Error('no value returned for key')) // Inconsistent return values in the browser vs node if (Array.isArray(res)) { @@ -22,12 +22,27 @@ module.exports = send => { } if (res.Type === 5) { - cb(null, res.Extra) + done(null, res.Extra) } else { let error = new Error('key was not found (type 6)') - cb(error) + done(error) } - }) + } + + if (typeof cb !== 'function' && typeof Promise !== 'undefined') { + const done = (err, res) => { + if (err) throw err + return res + } + + return send('dht/get', key, opts) + .then( + res => handleResult(done, null, res), + err => handleResult(done, err) + ) + } + + return send('dht/get', key, opts, null, handleResult.bind(null, cb)) }, put (key, value, opts, cb) { if (typeof (opts) === 'function' && !cb) { diff --git a/src/api/log.js b/src/api/log.js index 3e3c515be..b246a8a09 100644 --- a/src/api/log.js +++ b/src/api/log.js @@ -5,6 +5,11 @@ const ndjson = require('ndjson') module.exports = send => { return { tail (cb) { + if (typeof cb !== 'function' && typeof Promise !== 'undefined') { + return send('log/tail', null, {}, null, false) + .then(res => res.pipe(ndjson.parse())) + } + return send('log/tail', null, {}, null, false, (err, res) => { if (err) return cb(err) cb(null, res.pipe(ndjson.parse())) diff --git a/src/api/ping.js b/src/api/ping.js index 43a519009..f4261e01e 100644 --- a/src/api/ping.js +++ b/src/api/ping.js @@ -2,6 +2,11 @@ module.exports = send => { return function ping (id, cb) { + if (typeof cb !== 'function' && typeof Promise !== 'undefined') { + return send('ping', id, {n: 1}, null) + .then(res => res[1]) + } + return send('ping', id, { n: 1 }, null, function (err, res) { if (err) return cb(err, null) cb(null, res[1]) diff --git a/src/request-api.js b/src/request-api.js index 23d39408e..2f6ef176f 100644 --- a/src/request-api.js +++ b/src/request-api.js @@ -63,11 +63,6 @@ function requestAPI (config, path, args, qs, files, buffer, cb) { if (args) qs.arg = args if (files && !Array.isArray(files)) files = [files] - if (typeof buffer === 'function') { - cb = buffer - buffer = false - } - if (qs.r) { qs.recursive = qs.r delete qs.r // From IPFS 0.4.0, it throw an error when both r and recursive are passed @@ -116,5 +111,21 @@ function requestAPI (config, path, args, qs, files, buffer, cb) { // -- Interface exports = module.exports = function getRequestAPI (config) { - return requestAPI.bind(null, config) + return function (path, args, qs, files, buffer, cb) { + if (typeof buffer === 'function') { + cb = buffer + buffer = false + } + + if (typeof cb !== 'function' && typeof Promise !== 'undefined') { + return new Promise(function (resolve, reject) { + requestAPI(config, path, args, qs, files, buffer, function (err, res) { + if (err) return reject(err) + resolve(res) + }) + }) + } + + return requestAPI(config, path, args, qs, files, buffer, cb) + } } diff --git a/test/api/add.spec.js b/test/api/add.spec.js index 6b49bb488..1432e299e 100644 --- a/test/api/add.spec.js +++ b/test/api/add.spec.js @@ -118,4 +118,15 @@ describe('.add', () => { done() }) }) + + describe('promise', () => { + it('add buffer', () => { + let buf = new Buffer(testfile) + return apiClients['a'].add(buf) + .then(res => { + expect(res).to.have.length(1) + expect(res[0]).to.have.property('Hash', 'Qma4hjFTnCasJ8PVp3mZbZK5g2vGDT4LByLJ7m8ciyRFZP') + }) + }) + }) }) diff --git a/test/api/block.spec.js b/test/api/block.spec.js index 3ff6ea83b..cedc9bd9f 100644 --- a/test/api/block.spec.js +++ b/test/api/block.spec.js @@ -34,4 +34,34 @@ describe('.block', () => { done() }) }) + + describe('promise', () => { + it('block.put', () => { + return apiClients['a'].block.put(blorb) + .then(res => { + expect(res).to.have.a.property('Key', 'QmPv52ekjS75L4JmHpXVeuJ5uX2ecSfSZo88NSyxwA3rAQ') + }) + }) + + it('block.get', done => { + return apiClients['a'].block.get(blorbKey) + .then(res => { + let buf = '' + res + .on('data', function (data) { buf += data }) + .on('end', function () { + expect(buf).to.be.equal('blorb') + done() + }) + }) + }) + + it('block.stat', () => { + return apiClients['a'].block.stat(blorbKey) + .then(res => { + expect(res).to.have.property('Key') + expect(res).to.have.property('Size') + }) + }) + }) }) diff --git a/test/api/cat.spec.js b/test/api/cat.spec.js index 492df0b8e..04cf9bb17 100644 --- a/test/api/cat.spec.js +++ b/test/api/cat.spec.js @@ -46,4 +46,20 @@ describe('.cat', () => { }) }) }) + + describe('promise', () => { + it('cat', done => { + return apiClients['a'].cat('Qma4hjFTnCasJ8PVp3mZbZK5g2vGDT4LByLJ7m8ciyRFZP') + .then(res => { + let buf = '' + res + .on('error', err => { throw err }) + .on('data', data => buf += data) + .on('end', () => { + expect(buf).to.be.equal(testfile.toString()) + done() + }) + }) + }) + }) }) diff --git a/test/api/commands.spec.js b/test/api/commands.spec.js index 7ec3ac712..a76e23c36 100644 --- a/test/api/commands.spec.js +++ b/test/api/commands.spec.js @@ -8,4 +8,13 @@ describe('.commands', () => { done() }) }) + + describe('promise', () => { + it('lists commands', () => { + return apiClients['a'].commands() + .then(res => { + expect(res).to.exist + }) + }) + }) }) diff --git a/test/api/config.spec.js b/test/api/config.spec.js index 773ac7cbe..2241b6e2c 100644 --- a/test/api/config.spec.js +++ b/test/api/config.spec.js @@ -34,4 +34,37 @@ describe('.config', () => { done() }) }) + + describe('promise', () => { + it('.config.{set, get}', () => { + const confKey = 'arbitraryKey' + const confVal = 'arbitraryVal' + + return apiClients['a'].config.set(confKey, confVal) + .then(res => { + return apiClients['a'].config.get(confKey) + }) + .then(res => { + expect(res).to.have.a.property('Value', confVal) + }) + }) + + it('.config.show', () => { + return apiClients['c'].config.show() + .then(res => { + expect(res).to.exist + }) + }) + + it('.config.replace', () => { + if (!isNode) { + return + } + + return apiClients['c'].config.replace(__dirname + '/../r-config.json') + .then(res => { + expect(res).to.be.equal(null) + }) + }) + }) }) diff --git a/test/api/dht.spec.js b/test/api/dht.spec.js index 25bae8fec..ff6e7c5d3 100644 --- a/test/api/dht.spec.js +++ b/test/api/dht.spec.js @@ -36,4 +36,27 @@ describe('.dht', () => { done() }) }) + + describe('promise', () => { + it('returns an error when getting a non-existent key from the DHT', () => { + return apiClients['a'].dht.get('non-existent', {timeout: '100ms'}) + .catch(err => { + expect(err).to.be.an.instanceof(Error) + }) + }) + + it('puts a key value pair in the DHT', () => { + return apiClients['a'].dht.put('scope', 'interplanetary') + .then(res => { + expect(res).to.be.an('array') + }) + }) + + it('.dht.findprovs', () => { + return apiClients['a'].dht.findprovs('Qma4hjFTnCasJ8PVp3mZbZK5g2vGDT4LByLJ7m8ciyRFZP') + .then(res => { + expect(res).to.be.an('array') + }) + }) + }) }) diff --git a/test/api/diag.spec.js b/test/api/diag.spec.js index 71518401c..e598c7d7f 100644 --- a/test/api/diag.spec.js +++ b/test/api/diag.spec.js @@ -18,4 +18,22 @@ describe('.diag', () => { done() }) }) + + describe('promise', () => { + it('.diag.net', () => { + return apiClients['a'].diag.net() + .then(res => { + expect(res).to.exist + }) + }) + + it('.diag.sys', () => { + return apiClients['a'].diag.sys() + .then(res => { + expect(res).to.exist + expect(res).to.have.a.property('memory') + expect(res).to.have.a.property('diskinfo') + }) + }) + }) }) diff --git a/test/api/id.spec.js b/test/api/id.spec.js index 50d55f0fc..c32b459e2 100644 --- a/test/api/id.spec.js +++ b/test/api/id.spec.js @@ -9,4 +9,14 @@ describe('.id', () => { done() }) }) + + describe('promise', () => { + it('id', () => { + return apiClients['a'].id() + .then(res => { + expect(res).to.have.a.property('ID') + expect(res).to.have.a.property('PublicKey') + }) + }) + }) }) diff --git a/test/api/log.spec.js b/test/api/log.spec.js index 651b9a5b2..40ca49595 100644 --- a/test/api/log.spec.js +++ b/test/api/log.spec.js @@ -13,4 +13,16 @@ describe('.log', () => { }) }) }) + + describe('promise', () => { + it('.log.tail', done => { + return apiClients['a'].log.tail() + .then(res => { + res.once('data', obj => { + expect(obj).to.be.an('object') + done() + }) + }) + }) + }) }) diff --git a/test/api/ls.spec.js b/test/api/ls.spec.js index ff823a269..59ce03611 100644 --- a/test/api/ls.spec.js +++ b/test/api/ls.spec.js @@ -33,4 +33,33 @@ describe('ls', function () { done() }) }) + + describe('promise', () => { + it('should correctly retrieve links', () => { + if (!isNode) return + + return apiClients['a'].ls('QmSzLpCVbWnEm3XoTWnv6DT6Ju5BsVoLhzvxKXZeQ2cmdg') + .then(res => { + expect(res).to.have.a.property('Objects') + expect(res.Objects[0]).to.have.a.property('Links') + expect(res.Objects[0]).to.have.property('Hash', 'QmSzLpCVbWnEm3XoTWnv6DT6Ju5BsVoLhzvxKXZeQ2cmdg') + }) + }) + + it('should correctly handle a nonexisting hash', () => { + return apiClients['a'].ls('surelynotavalidhashheh?') + .catch(err => { + expect(err).to.exist + }) + }) + + it('should correctly handle a nonexisting path', () => { + if (!isNode) return + + return apiClients['a'].ls('QmTDH2RXGn8XyDAo9YyfbZAUXwL1FCr44YJCN9HBZmL9Gj/folder_that_isnt_there') + .catch(err => { + expect(err).to.exist + }) + }) + }) }) diff --git a/test/api/name.spec.js b/test/api/name.spec.js index 2950ee6b1..a834f96dd 100644 --- a/test/api/name.spec.js +++ b/test/api/name.spec.js @@ -22,4 +22,24 @@ describe('.name', () => { done() }) }) + + describe('promise', () => { + it('.name.publish', () => { + return apiClients['a'].name.publish('Qma4hjFTnCasJ8PVp3mZbZK5g2vGDT4LByLJ7m8ciyRFZP') + .then(res => { + name = res + expect(name).to.exist + }) + }) + + it('.name.resolve', () => { + return apiClients['a'].name.resolve(name.Name) + .then(res => { + expect(res).to.exist + expect(res).to.be.eql({ + Path: '/ipfs/' + name.Value + }) + }) + }) + }) }) diff --git a/test/api/object.spec.js b/test/api/object.spec.js index a2288f65b..dca7abdb9 100644 --- a/test/api/object.spec.js +++ b/test/api/object.spec.js @@ -101,4 +101,95 @@ describe('.object', () => { done() }) }) + + describe('promise', () => { + it('object.put', () => { + return apiClients['a'].object.put(testObject, 'json') + .then(res => { + expect(res).to.have.a.property('Hash', testObjectHash) + expect(res.Links).to.be.empty + }) + }) + + it('object.get', () => { + return apiClients['a'].object.get(testObjectHash) + .then(res => { + expect(res).to.have.a.property('Data', 'testdata') + expect(res.Links).to.be.empty + }) + }) + + it('object.data', done => { + return apiClients['a'].object.data(testObjectHash) + .then(res => { + let buf = '' + res + .on('error', err => { throw err }) + .on('data', data => buf += data) + .on('end', () => { + expect(buf).to.equal('testdata') + done() + }) + }) + }) + + it('object.stat', () => { + return apiClients['a'].object.stat(testObjectHash) + .then(res => { + expect(res).to.be.eql({ + Hash: 'QmPTkMuuL6PD8L2SwTwbcs1NPg14U8mRzerB1ZrrBrkSDD', + NumLinks: 0, + BlockSize: 10, + LinksSize: 2, + DataSize: 8, + CumulativeSize: 10 + }) + }) + }) + + it('object.links', () => { + return apiClients['a'].object.links(testObjectHash) + .then(res => { + expect(res).to.be.eql({ + Hash: 'QmPTkMuuL6PD8L2SwTwbcs1NPg14U8mRzerB1ZrrBrkSDD', + Links: [] + }) + }) + }) + + it('object.patch', () => { + return apiClients['a'].object.put(testPatchObject, 'json') + .then(res => { + return apiClients['a'].object + .patch(testObjectHash, ['add-link', 'next', testPatchObjectHash]) + }) + .then(res => { + expect(res).to.be.eql({ + Hash: 'QmZFdJ3CQsY4kkyQtjoUo8oAzsEs5BNguxBhp8sjQMpgkd', + Links: null + }) + return apiClients['a'].object.get(res.Hash) + }) + .then(res => { + expect(res).to.be.eql({ + Data: 'testdata', + Links: [{ + Name: 'next', + Hash: 'QmWJDtdQWQSajQPx1UVAGWKaSGrHVWdjnrNhbooHP7LuF2', + Size: 15 + }] + }) + }) + }) + + it('object.new', () => { + return apiClients['a'].object.new('unixfs-dir') + .then(res => { + expect(res).to.deep.equal({ + Hash: 'QmUNLLsPACCz1vLxQVkXqqLX5R1X345qqfHbsf67hvA3Nn', + Links: null + }) + }) + }) + }) }) diff --git a/test/api/pin.spec.js b/test/api/pin.spec.js index 85652f33d..f018fdfce 100644 --- a/test/api/pin.spec.js +++ b/test/api/pin.spec.js @@ -29,4 +29,34 @@ describe('.pin', () => { }) }) }) + + describe('promise', () => { + it('.pin.add', () => { + return apiClients['b'].pin + .add('Qma4hjFTnCasJ8PVp3mZbZK5g2vGDT4LByLJ7m8ciyRFZP', {recursive: false}) + .then(res => { + expect(res.Pinned[0]).to.be.equal('Qma4hjFTnCasJ8PVp3mZbZK5g2vGDT4LByLJ7m8ciyRFZP') + }) + }) + + it('.pin.list', () => { + return apiClients['b'].pin.list() + .then(res => { + expect(res).to.exist + }) + }) + + it('.pin.remove', () => { + return apiClients['b'].pin + .remove('Qma4hjFTnCasJ8PVp3mZbZK5g2vGDT4LByLJ7m8ciyRFZP', {recursive: false}) + .then(res => { + expect(res).to.exist + return apiClients['b'].pin.list('direct') + }) + .then(res => { + expect(res).to.exist + expect(res.Keys).to.be.empty + }) + }) + }) }) diff --git a/test/api/ping.spec.js b/test/api/ping.spec.js index 4763be0de..6d409216b 100644 --- a/test/api/ping.spec.js +++ b/test/api/ping.spec.js @@ -12,4 +12,16 @@ describe('.ping', () => { }) }) }) + + describe('promise', () => { + it('ping another peer', () => { + return apiClients['b'].id() + .then(id => { + return apiClients['a'].ping(id.ID) + }) + .then(res => { + expect(res).to.have.a.property('Success') + }) + }) + }) }) diff --git a/test/api/refs.spec.js b/test/api/refs.spec.js index 9bbcb0d41..07ad6276c 100644 --- a/test/api/refs.spec.js +++ b/test/api/refs.spec.js @@ -2,6 +2,28 @@ describe('.refs', () => { const folder = 'QmSzLpCVbWnEm3XoTWnv6DT6Ju5BsVoLhzvxKXZeQ2cmdg' + const result = [{ + Ref: 'QmSzLpCVbWnEm3XoTWnv6DT6Ju5BsVoLhzvxKXZeQ2cmdg QmcUYKmQxmTcFom4R4UZP7FWeQzgJkwcFn51XrvsMy7PE9 add.js', + Err: '' + }, { + Ref: 'QmSzLpCVbWnEm3XoTWnv6DT6Ju5BsVoLhzvxKXZeQ2cmdg QmNeHxDfQfjVFyYj2iruvysLH9zpp78v3cu1s3BZq1j5hY cat.js', + Err: '' + }, { + Ref: 'QmSzLpCVbWnEm3XoTWnv6DT6Ju5BsVoLhzvxKXZeQ2cmdg QmTYFLz5vsdMpq4XXw1a1pSxujJc9Z5V3Aw1Qg64d849Zy files', + Err: '' + }, { + Ref: 'QmSzLpCVbWnEm3XoTWnv6DT6Ju5BsVoLhzvxKXZeQ2cmdg QmU7wetVaAqc3Meurif9hcYBHGvQmL5QdpPJYBoZizyTNL ipfs-add.js', + Err: '' + }, { + Ref: 'QmSzLpCVbWnEm3XoTWnv6DT6Ju5BsVoLhzvxKXZeQ2cmdg QmctZfSuegbi2TMFY2y3VQjxsH5JbRBu7XmiLfHNvshhio ls.js', + Err: '' + }, { + Ref: 'QmSzLpCVbWnEm3XoTWnv6DT6Ju5BsVoLhzvxKXZeQ2cmdg QmTDH2RXGn8XyDAo9YyfbZAUXwL1FCr44YJCN9HBZmL9Gj test-folder', + Err: '' + }, { + Ref: 'QmSzLpCVbWnEm3XoTWnv6DT6Ju5BsVoLhzvxKXZeQ2cmdg QmbkMNB6rwfYAxRvnG9CWJ6cKKHEdq2ZKTozyF5FQ7H8Rs version.js', + Err: '' + }] it('refs', done => { if (!isNode) { @@ -11,31 +33,20 @@ describe('.refs', () => { apiClients['a'].refs(folder, {'format': ' '}, (err, objs) => { expect(err).to.not.exist - const result = [{ - Ref: 'QmSzLpCVbWnEm3XoTWnv6DT6Ju5BsVoLhzvxKXZeQ2cmdg QmcUYKmQxmTcFom4R4UZP7FWeQzgJkwcFn51XrvsMy7PE9 add.js', - Err: '' - }, { - Ref: 'QmSzLpCVbWnEm3XoTWnv6DT6Ju5BsVoLhzvxKXZeQ2cmdg QmNeHxDfQfjVFyYj2iruvysLH9zpp78v3cu1s3BZq1j5hY cat.js', - Err: '' - }, { - Ref: 'QmSzLpCVbWnEm3XoTWnv6DT6Ju5BsVoLhzvxKXZeQ2cmdg QmTYFLz5vsdMpq4XXw1a1pSxujJc9Z5V3Aw1Qg64d849Zy files', - Err: '' - }, { - Ref: 'QmSzLpCVbWnEm3XoTWnv6DT6Ju5BsVoLhzvxKXZeQ2cmdg QmU7wetVaAqc3Meurif9hcYBHGvQmL5QdpPJYBoZizyTNL ipfs-add.js', - Err: '' - }, { - Ref: 'QmSzLpCVbWnEm3XoTWnv6DT6Ju5BsVoLhzvxKXZeQ2cmdg QmctZfSuegbi2TMFY2y3VQjxsH5JbRBu7XmiLfHNvshhio ls.js', - Err: '' - }, { - Ref: 'QmSzLpCVbWnEm3XoTWnv6DT6Ju5BsVoLhzvxKXZeQ2cmdg QmTDH2RXGn8XyDAo9YyfbZAUXwL1FCr44YJCN9HBZmL9Gj test-folder', - Err: '' - }, { - Ref: 'QmSzLpCVbWnEm3XoTWnv6DT6Ju5BsVoLhzvxKXZeQ2cmdg QmbkMNB6rwfYAxRvnG9CWJ6cKKHEdq2ZKTozyF5FQ7H8Rs version.js', - Err: '' - }] expect(objs).to.eql(result) done() }) }) + + describe('promise', () => { + it('refs', () => { + if (!isNode) return + + return apiClients['a'].refs(folder, {'format': ' '}) + .then(objs => { + expect(objs).to.eql(result) + }) + }) + }) }) diff --git a/test/api/swarm.spec.js b/test/api/swarm.spec.js index 198f82ef6..ea5595e42 100644 --- a/test/api/swarm.spec.js +++ b/test/api/swarm.spec.js @@ -9,8 +9,18 @@ describe('.swarm', () => { done() }) }) + it('.swarm.connect', done => { // Done in the 'before' segment done() }) + + describe('promise', () => { + it('.swarm.peers', () => { + return apiClients['a'].swarm.peers() + .then(res => { + expect(res.Strings).to.have.length.above(1) + }) + }) + }) }) diff --git a/test/api/version.spec.js b/test/api/version.spec.js index 4eadddbb3..34f688a65 100644 --- a/test/api/version.spec.js +++ b/test/api/version.spec.js @@ -42,4 +42,24 @@ describe('.version', () => { done() }) }) + + describe('promise', () => { + it('checks the version', () => { + return apiClients['a'].version() + .then(res => { + expect(res).to.have.a.property('Version') + expect(res).to.have.a.property('Commit') + expect(res).to.have.a.property('Repo') + }) + }) + + it('with number option', () => { + return apiClients['a'].version({number: true}) + .then(res => { + expect(res).to.have.a.property('Version') + expect(res).to.have.a.property('Commit') + expect(res).to.have.a.property('Repo') + }) + }) + }) }) From af96c6c7e55e02d11a61f8fbe7c3a2e2e2e03f0f Mon Sep 17 00:00:00 2001 From: David Dias Date: Mon, 8 Feb 2016 17:23:16 +0000 Subject: [PATCH 04/17] chore: build --- dist/ipfsapi.js | 1372 ++++++++++++++----------------------------- dist/ipfsapi.min.js | 196 +++---- 2 files changed, 534 insertions(+), 1034 deletions(-) diff --git a/dist/ipfsapi.js b/dist/ipfsapi.js index 28ae4d849..728f261f9 100644 --- a/dist/ipfsapi.js +++ b/dist/ipfsapi.js @@ -35,7 +35,7 @@ var ipfsAPI = /******/ __webpack_require__.c = installedModules; /******/ // __webpack_public_path__ -/******/ __webpack_require__.p = "/_karma_webpack_//"; +/******/ __webpack_require__.p = ""; /******/ // Load entry module and return exports /******/ return __webpack_require__(0); @@ -45,31 +45,31 @@ var ipfsAPI = /* 0 */ /***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(Buffer) {'use strict';\n\nvar _assign = __webpack_require__(5);\n\nvar _assign2 = _interopRequireDefault(_assign);\n\nvar _typeof2 = __webpack_require__(20);\n\nvar _typeof3 = _interopRequireDefault(_typeof2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar multiaddr = __webpack_require__(42);\n\nvar loadCommands = __webpack_require__(75);\nvar getConfig = __webpack_require__(193);\nvar getRequestAPI = __webpack_require__(195);\n\nexports = module.exports = IpfsAPI;\n\nfunction IpfsAPI(host_or_multiaddr, port, opts) {\n var config = getConfig();\n\n try {\n var maddr = multiaddr(host_or_multiaddr).nodeAddress();\n config.host = maddr.address;\n config.port = maddr.port;\n } catch (e) {\n if (typeof host_or_multiaddr === 'string') {\n config.host = host_or_multiaddr;\n config.port = port && (typeof port === 'undefined' ? 'undefined' : (0, _typeof3.default)(port)) !== 'object' ? port : config.port;\n }\n }\n\n var lastIndex = arguments.length;\n while (!opts && lastIndex-- > 0) {\n opts = arguments[lastIndex];\n if (opts) break;\n }\n\n (0, _assign2.default)(config, opts);\n\n // autoconfigure in browser\n if (!config.host && typeof window !== 'undefined') {\n var split = window.location.host.split(':');\n config.host = split[0];\n config.port = split[1];\n }\n\n var requestAPI = getRequestAPI(config);\n var cmds = loadCommands(requestAPI);\n cmds.send = requestAPI;\n cmds.Buffer = Buffer;\n\n return cmds;\n}\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1).Buffer))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/index.js\n ** module id = 0\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./src/index.js?"); + eval("/* WEBPACK VAR INJECTION */(function(Buffer) {'use strict';\n\nvar _assign = __webpack_require__(5);\n\nvar _assign2 = _interopRequireDefault(_assign);\n\nvar _typeof2 = __webpack_require__(20);\n\nvar _typeof3 = _interopRequireDefault(_typeof2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar multiaddr = __webpack_require__(54);\n\nvar loadCommands = __webpack_require__(77);\nvar getConfig = __webpack_require__(206);\nvar getRequestAPI = __webpack_require__(208);\n\nexports = module.exports = IpfsAPI;\n\nfunction IpfsAPI(host_or_multiaddr, port, opts) {\n var config = getConfig();\n\n try {\n var maddr = multiaddr(host_or_multiaddr).nodeAddress();\n config.host = maddr.address;\n config.port = maddr.port;\n } catch (e) {\n if (typeof host_or_multiaddr === 'string') {\n config.host = host_or_multiaddr;\n config.port = port && (typeof port === 'undefined' ? 'undefined' : (0, _typeof3.default)(port)) !== 'object' ? port : config.port;\n }\n }\n\n var lastIndex = arguments.length;\n while (!opts && lastIndex-- > 0) {\n opts = arguments[lastIndex];\n if (opts) break;\n }\n\n (0, _assign2.default)(config, opts);\n\n // autoconfigure in browser\n if (!config.host && typeof window !== 'undefined') {\n var split = window.location.host.split(':');\n config.host = split[0];\n config.port = split[1];\n }\n\n var requestAPI = getRequestAPI(config);\n var cmds = loadCommands(requestAPI);\n cmds.send = requestAPI;\n cmds.Buffer = Buffer;\n\n return cmds;\n}\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1).Buffer))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/index.js\n ** module id = 0\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./src/index.js?"); /***/ }, /* 1 */ /***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(Buffer, global) {/*!\n * The buffer module from node.js, for the browser.\n *\n * @author Feross Aboukhadijeh \n * @license MIT\n */\n/* eslint-disable no-proto */\n\n'use strict'\n\nvar base64 = __webpack_require__(2)\nvar ieee754 = __webpack_require__(3)\nvar isArray = __webpack_require__(4)\n\nexports.Buffer = Buffer\nexports.SlowBuffer = SlowBuffer\nexports.INSPECT_MAX_BYTES = 50\nBuffer.poolSize = 8192 // not used by this implementation\n\nvar rootParent = {}\n\n/**\n * If `Buffer.TYPED_ARRAY_SUPPORT`:\n * === true Use Uint8Array implementation (fastest)\n * === false Use Object implementation (most compatible, even IE6)\n *\n * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,\n * Opera 11.6+, iOS 4.2+.\n *\n * Due to various browser bugs, sometimes the Object implementation will be used even\n * when the browser supports typed arrays.\n *\n * Note:\n *\n * - Firefox 4-29 lacks support for adding new properties to `Uint8Array` instances,\n * See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438.\n *\n * - Safari 5-7 lacks support for changing the `Object.prototype.constructor` property\n * on objects.\n *\n * - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function.\n *\n * - IE10 has a broken `TypedArray.prototype.subarray` function which returns arrays of\n * incorrect length in some situations.\n\n * We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they\n * get the Object implementation, which is slower but behaves correctly.\n */\nBuffer.TYPED_ARRAY_SUPPORT = global.TYPED_ARRAY_SUPPORT !== undefined\n ? global.TYPED_ARRAY_SUPPORT\n : typedArraySupport()\n\nfunction typedArraySupport () {\n function Bar () {}\n try {\n var arr = new Uint8Array(1)\n arr.foo = function () { return 42 }\n arr.constructor = Bar\n return arr.foo() === 42 && // typed array instances can be augmented\n arr.constructor === Bar && // constructor can be set\n typeof arr.subarray === 'function' && // chrome 9-10 lack `subarray`\n arr.subarray(1, 1).byteLength === 0 // ie10 has broken `subarray`\n } catch (e) {\n return false\n }\n}\n\nfunction kMaxLength () {\n return Buffer.TYPED_ARRAY_SUPPORT\n ? 0x7fffffff\n : 0x3fffffff\n}\n\n/**\n * Class: Buffer\n * =============\n *\n * The Buffer constructor returns instances of `Uint8Array` that are augmented\n * with function properties for all the node `Buffer` API functions. We use\n * `Uint8Array` so that square bracket notation works as expected -- it returns\n * a single octet.\n *\n * By augmenting the instances, we can avoid modifying the `Uint8Array`\n * prototype.\n */\nfunction Buffer (arg) {\n if (!(this instanceof Buffer)) {\n // Avoid going through an ArgumentsAdaptorTrampoline in the common case.\n if (arguments.length > 1) return new Buffer(arg, arguments[1])\n return new Buffer(arg)\n }\n\n if (!Buffer.TYPED_ARRAY_SUPPORT) {\n this.length = 0\n this.parent = undefined\n }\n\n // Common case.\n if (typeof arg === 'number') {\n return fromNumber(this, arg)\n }\n\n // Slightly less common case.\n if (typeof arg === 'string') {\n return fromString(this, arg, arguments.length > 1 ? arguments[1] : 'utf8')\n }\n\n // Unusual.\n return fromObject(this, arg)\n}\n\nfunction fromNumber (that, length) {\n that = allocate(that, length < 0 ? 0 : checked(length) | 0)\n if (!Buffer.TYPED_ARRAY_SUPPORT) {\n for (var i = 0; i < length; i++) {\n that[i] = 0\n }\n }\n return that\n}\n\nfunction fromString (that, string, encoding) {\n if (typeof encoding !== 'string' || encoding === '') encoding = 'utf8'\n\n // Assumption: byteLength() return value is always < kMaxLength.\n var length = byteLength(string, encoding) | 0\n that = allocate(that, length)\n\n that.write(string, encoding)\n return that\n}\n\nfunction fromObject (that, object) {\n if (Buffer.isBuffer(object)) return fromBuffer(that, object)\n\n if (isArray(object)) return fromArray(that, object)\n\n if (object == null) {\n throw new TypeError('must start with number, buffer, array or string')\n }\n\n if (typeof ArrayBuffer !== 'undefined') {\n if (object.buffer instanceof ArrayBuffer) {\n return fromTypedArray(that, object)\n }\n if (object instanceof ArrayBuffer) {\n return fromArrayBuffer(that, object)\n }\n }\n\n if (object.length) return fromArrayLike(that, object)\n\n return fromJsonObject(that, object)\n}\n\nfunction fromBuffer (that, buffer) {\n var length = checked(buffer.length) | 0\n that = allocate(that, length)\n buffer.copy(that, 0, 0, length)\n return that\n}\n\nfunction fromArray (that, array) {\n var length = checked(array.length) | 0\n that = allocate(that, length)\n for (var i = 0; i < length; i += 1) {\n that[i] = array[i] & 255\n }\n return that\n}\n\n// Duplicate of fromArray() to keep fromArray() monomorphic.\nfunction fromTypedArray (that, array) {\n var length = checked(array.length) | 0\n that = allocate(that, length)\n // Truncating the elements is probably not what people expect from typed\n // arrays with BYTES_PER_ELEMENT > 1 but it's compatible with the behavior\n // of the old Buffer constructor.\n for (var i = 0; i < length; i += 1) {\n that[i] = array[i] & 255\n }\n return that\n}\n\nfunction fromArrayBuffer (that, array) {\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n // Return an augmented `Uint8Array` instance, for best performance\n array.byteLength\n that = Buffer._augment(new Uint8Array(array))\n } else {\n // Fallback: Return an object instance of the Buffer class\n that = fromTypedArray(that, new Uint8Array(array))\n }\n return that\n}\n\nfunction fromArrayLike (that, array) {\n var length = checked(array.length) | 0\n that = allocate(that, length)\n for (var i = 0; i < length; i += 1) {\n that[i] = array[i] & 255\n }\n return that\n}\n\n// Deserialize { type: 'Buffer', data: [1,2,3,...] } into a Buffer object.\n// Returns a zero-length buffer for inputs that don't conform to the spec.\nfunction fromJsonObject (that, object) {\n var array\n var length = 0\n\n if (object.type === 'Buffer' && isArray(object.data)) {\n array = object.data\n length = checked(array.length) | 0\n }\n that = allocate(that, length)\n\n for (var i = 0; i < length; i += 1) {\n that[i] = array[i] & 255\n }\n return that\n}\n\nif (Buffer.TYPED_ARRAY_SUPPORT) {\n Buffer.prototype.__proto__ = Uint8Array.prototype\n Buffer.__proto__ = Uint8Array\n} else {\n // pre-set for values that may exist in the future\n Buffer.prototype.length = undefined\n Buffer.prototype.parent = undefined\n}\n\nfunction allocate (that, length) {\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n // Return an augmented `Uint8Array` instance, for best performance\n that = Buffer._augment(new Uint8Array(length))\n that.__proto__ = Buffer.prototype\n } else {\n // Fallback: Return an object instance of the Buffer class\n that.length = length\n that._isBuffer = true\n }\n\n var fromPool = length !== 0 && length <= Buffer.poolSize >>> 1\n if (fromPool) that.parent = rootParent\n\n return that\n}\n\nfunction checked (length) {\n // Note: cannot use `length < kMaxLength` here because that fails when\n // length is NaN (which is otherwise coerced to zero.)\n if (length >= kMaxLength()) {\n throw new RangeError('Attempt to allocate Buffer larger than maximum ' +\n 'size: 0x' + kMaxLength().toString(16) + ' bytes')\n }\n return length | 0\n}\n\nfunction SlowBuffer (subject, encoding) {\n if (!(this instanceof SlowBuffer)) return new SlowBuffer(subject, encoding)\n\n var buf = new Buffer(subject, encoding)\n delete buf.parent\n return buf\n}\n\nBuffer.isBuffer = function isBuffer (b) {\n return !!(b != null && b._isBuffer)\n}\n\nBuffer.compare = function compare (a, b) {\n if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {\n throw new TypeError('Arguments must be Buffers')\n }\n\n if (a === b) return 0\n\n var x = a.length\n var y = b.length\n\n var i = 0\n var len = Math.min(x, y)\n while (i < len) {\n if (a[i] !== b[i]) break\n\n ++i\n }\n\n if (i !== len) {\n x = a[i]\n y = b[i]\n }\n\n if (x < y) return -1\n if (y < x) return 1\n return 0\n}\n\nBuffer.isEncoding = function isEncoding (encoding) {\n switch (String(encoding).toLowerCase()) {\n case 'hex':\n case 'utf8':\n case 'utf-8':\n case 'ascii':\n case 'binary':\n case 'base64':\n case 'raw':\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return true\n default:\n return false\n }\n}\n\nBuffer.concat = function concat (list, length) {\n if (!isArray(list)) throw new TypeError('list argument must be an Array of Buffers.')\n\n if (list.length === 0) {\n return new Buffer(0)\n }\n\n var i\n if (length === undefined) {\n length = 0\n for (i = 0; i < list.length; i++) {\n length += list[i].length\n }\n }\n\n var buf = new Buffer(length)\n var pos = 0\n for (i = 0; i < list.length; i++) {\n var item = list[i]\n item.copy(buf, pos)\n pos += item.length\n }\n return buf\n}\n\nfunction byteLength (string, encoding) {\n if (typeof string !== 'string') string = '' + string\n\n var len = string.length\n if (len === 0) return 0\n\n // Use a for loop to avoid recursion\n var loweredCase = false\n for (;;) {\n switch (encoding) {\n case 'ascii':\n case 'binary':\n // Deprecated\n case 'raw':\n case 'raws':\n return len\n case 'utf8':\n case 'utf-8':\n return utf8ToBytes(string).length\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return len * 2\n case 'hex':\n return len >>> 1\n case 'base64':\n return base64ToBytes(string).length\n default:\n if (loweredCase) return utf8ToBytes(string).length // assume utf8\n encoding = ('' + encoding).toLowerCase()\n loweredCase = true\n }\n }\n}\nBuffer.byteLength = byteLength\n\nfunction slowToString (encoding, start, end) {\n var loweredCase = false\n\n start = start | 0\n end = end === undefined || end === Infinity ? this.length : end | 0\n\n if (!encoding) encoding = 'utf8'\n if (start < 0) start = 0\n if (end > this.length) end = this.length\n if (end <= start) return ''\n\n while (true) {\n switch (encoding) {\n case 'hex':\n return hexSlice(this, start, end)\n\n case 'utf8':\n case 'utf-8':\n return utf8Slice(this, start, end)\n\n case 'ascii':\n return asciiSlice(this, start, end)\n\n case 'binary':\n return binarySlice(this, start, end)\n\n case 'base64':\n return base64Slice(this, start, end)\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return utf16leSlice(this, start, end)\n\n default:\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n encoding = (encoding + '').toLowerCase()\n loweredCase = true\n }\n }\n}\n\nBuffer.prototype.toString = function toString () {\n var length = this.length | 0\n if (length === 0) return ''\n if (arguments.length === 0) return utf8Slice(this, 0, length)\n return slowToString.apply(this, arguments)\n}\n\nBuffer.prototype.equals = function equals (b) {\n if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')\n if (this === b) return true\n return Buffer.compare(this, b) === 0\n}\n\nBuffer.prototype.inspect = function inspect () {\n var str = ''\n var max = exports.INSPECT_MAX_BYTES\n if (this.length > 0) {\n str = this.toString('hex', 0, max).match(/.{2}/g).join(' ')\n if (this.length > max) str += ' ... '\n }\n return ''\n}\n\nBuffer.prototype.compare = function compare (b) {\n if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')\n if (this === b) return 0\n return Buffer.compare(this, b)\n}\n\nBuffer.prototype.indexOf = function indexOf (val, byteOffset) {\n if (byteOffset > 0x7fffffff) byteOffset = 0x7fffffff\n else if (byteOffset < -0x80000000) byteOffset = -0x80000000\n byteOffset >>= 0\n\n if (this.length === 0) return -1\n if (byteOffset >= this.length) return -1\n\n // Negative offsets start from the end of the buffer\n if (byteOffset < 0) byteOffset = Math.max(this.length + byteOffset, 0)\n\n if (typeof val === 'string') {\n if (val.length === 0) return -1 // special case: looking for empty string always fails\n return String.prototype.indexOf.call(this, val, byteOffset)\n }\n if (Buffer.isBuffer(val)) {\n return arrayIndexOf(this, val, byteOffset)\n }\n if (typeof val === 'number') {\n if (Buffer.TYPED_ARRAY_SUPPORT && Uint8Array.prototype.indexOf === 'function') {\n return Uint8Array.prototype.indexOf.call(this, val, byteOffset)\n }\n return arrayIndexOf(this, [ val ], byteOffset)\n }\n\n function arrayIndexOf (arr, val, byteOffset) {\n var foundIndex = -1\n for (var i = 0; byteOffset + i < arr.length; i++) {\n if (arr[byteOffset + i] === val[foundIndex === -1 ? 0 : i - foundIndex]) {\n if (foundIndex === -1) foundIndex = i\n if (i - foundIndex + 1 === val.length) return byteOffset + foundIndex\n } else {\n foundIndex = -1\n }\n }\n return -1\n }\n\n throw new TypeError('val must be string, number or Buffer')\n}\n\n// `get` is deprecated\nBuffer.prototype.get = function get (offset) {\n console.log('.get() is deprecated. Access using array indexes instead.')\n return this.readUInt8(offset)\n}\n\n// `set` is deprecated\nBuffer.prototype.set = function set (v, offset) {\n console.log('.set() is deprecated. Access using array indexes instead.')\n return this.writeUInt8(v, offset)\n}\n\nfunction hexWrite (buf, string, offset, length) {\n offset = Number(offset) || 0\n var remaining = buf.length - offset\n if (!length) {\n length = remaining\n } else {\n length = Number(length)\n if (length > remaining) {\n length = remaining\n }\n }\n\n // must be an even number of digits\n var strLen = string.length\n if (strLen % 2 !== 0) throw new Error('Invalid hex string')\n\n if (length > strLen / 2) {\n length = strLen / 2\n }\n for (var i = 0; i < length; i++) {\n var parsed = parseInt(string.substr(i * 2, 2), 16)\n if (isNaN(parsed)) throw new Error('Invalid hex string')\n buf[offset + i] = parsed\n }\n return i\n}\n\nfunction utf8Write (buf, string, offset, length) {\n return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)\n}\n\nfunction asciiWrite (buf, string, offset, length) {\n return blitBuffer(asciiToBytes(string), buf, offset, length)\n}\n\nfunction binaryWrite (buf, string, offset, length) {\n return asciiWrite(buf, string, offset, length)\n}\n\nfunction base64Write (buf, string, offset, length) {\n return blitBuffer(base64ToBytes(string), buf, offset, length)\n}\n\nfunction ucs2Write (buf, string, offset, length) {\n return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)\n}\n\nBuffer.prototype.write = function write (string, offset, length, encoding) {\n // Buffer#write(string)\n if (offset === undefined) {\n encoding = 'utf8'\n length = this.length\n offset = 0\n // Buffer#write(string, encoding)\n } else if (length === undefined && typeof offset === 'string') {\n encoding = offset\n length = this.length\n offset = 0\n // Buffer#write(string, offset[, length][, encoding])\n } else if (isFinite(offset)) {\n offset = offset | 0\n if (isFinite(length)) {\n length = length | 0\n if (encoding === undefined) encoding = 'utf8'\n } else {\n encoding = length\n length = undefined\n }\n // legacy write(string, encoding, offset, length) - remove in v0.13\n } else {\n var swap = encoding\n encoding = offset\n offset = length | 0\n length = swap\n }\n\n var remaining = this.length - offset\n if (length === undefined || length > remaining) length = remaining\n\n if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {\n throw new RangeError('attempt to write outside buffer bounds')\n }\n\n if (!encoding) encoding = 'utf8'\n\n var loweredCase = false\n for (;;) {\n switch (encoding) {\n case 'hex':\n return hexWrite(this, string, offset, length)\n\n case 'utf8':\n case 'utf-8':\n return utf8Write(this, string, offset, length)\n\n case 'ascii':\n return asciiWrite(this, string, offset, length)\n\n case 'binary':\n return binaryWrite(this, string, offset, length)\n\n case 'base64':\n // Warning: maxLength not taken into account in base64Write\n return base64Write(this, string, offset, length)\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return ucs2Write(this, string, offset, length)\n\n default:\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n encoding = ('' + encoding).toLowerCase()\n loweredCase = true\n }\n }\n}\n\nBuffer.prototype.toJSON = function toJSON () {\n return {\n type: 'Buffer',\n data: Array.prototype.slice.call(this._arr || this, 0)\n }\n}\n\nfunction base64Slice (buf, start, end) {\n if (start === 0 && end === buf.length) {\n return base64.fromByteArray(buf)\n } else {\n return base64.fromByteArray(buf.slice(start, end))\n }\n}\n\nfunction utf8Slice (buf, start, end) {\n end = Math.min(buf.length, end)\n var res = []\n\n var i = start\n while (i < end) {\n var firstByte = buf[i]\n var codePoint = null\n var bytesPerSequence = (firstByte > 0xEF) ? 4\n : (firstByte > 0xDF) ? 3\n : (firstByte > 0xBF) ? 2\n : 1\n\n if (i + bytesPerSequence <= end) {\n var secondByte, thirdByte, fourthByte, tempCodePoint\n\n switch (bytesPerSequence) {\n case 1:\n if (firstByte < 0x80) {\n codePoint = firstByte\n }\n break\n case 2:\n secondByte = buf[i + 1]\n if ((secondByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)\n if (tempCodePoint > 0x7F) {\n codePoint = tempCodePoint\n }\n }\n break\n case 3:\n secondByte = buf[i + 1]\n thirdByte = buf[i + 2]\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)\n if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {\n codePoint = tempCodePoint\n }\n }\n break\n case 4:\n secondByte = buf[i + 1]\n thirdByte = buf[i + 2]\n fourthByte = buf[i + 3]\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)\n if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {\n codePoint = tempCodePoint\n }\n }\n }\n }\n\n if (codePoint === null) {\n // we did not generate a valid codePoint so insert a\n // replacement char (U+FFFD) and advance only 1 byte\n codePoint = 0xFFFD\n bytesPerSequence = 1\n } else if (codePoint > 0xFFFF) {\n // encode to utf16 (surrogate pair dance)\n codePoint -= 0x10000\n res.push(codePoint >>> 10 & 0x3FF | 0xD800)\n codePoint = 0xDC00 | codePoint & 0x3FF\n }\n\n res.push(codePoint)\n i += bytesPerSequence\n }\n\n return decodeCodePointsArray(res)\n}\n\n// Based on http://stackoverflow.com/a/22747272/680742, the browser with\n// the lowest limit is Chrome, with 0x10000 args.\n// We go 1 magnitude less, for safety\nvar MAX_ARGUMENTS_LENGTH = 0x1000\n\nfunction decodeCodePointsArray (codePoints) {\n var len = codePoints.length\n if (len <= MAX_ARGUMENTS_LENGTH) {\n return String.fromCharCode.apply(String, codePoints) // avoid extra slice()\n }\n\n // Decode in chunks to avoid \"call stack size exceeded\".\n var res = ''\n var i = 0\n while (i < len) {\n res += String.fromCharCode.apply(\n String,\n codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)\n )\n }\n return res\n}\n\nfunction asciiSlice (buf, start, end) {\n var ret = ''\n end = Math.min(buf.length, end)\n\n for (var i = start; i < end; i++) {\n ret += String.fromCharCode(buf[i] & 0x7F)\n }\n return ret\n}\n\nfunction binarySlice (buf, start, end) {\n var ret = ''\n end = Math.min(buf.length, end)\n\n for (var i = start; i < end; i++) {\n ret += String.fromCharCode(buf[i])\n }\n return ret\n}\n\nfunction hexSlice (buf, start, end) {\n var len = buf.length\n\n if (!start || start < 0) start = 0\n if (!end || end < 0 || end > len) end = len\n\n var out = ''\n for (var i = start; i < end; i++) {\n out += toHex(buf[i])\n }\n return out\n}\n\nfunction utf16leSlice (buf, start, end) {\n var bytes = buf.slice(start, end)\n var res = ''\n for (var i = 0; i < bytes.length; i += 2) {\n res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256)\n }\n return res\n}\n\nBuffer.prototype.slice = function slice (start, end) {\n var len = this.length\n start = ~~start\n end = end === undefined ? len : ~~end\n\n if (start < 0) {\n start += len\n if (start < 0) start = 0\n } else if (start > len) {\n start = len\n }\n\n if (end < 0) {\n end += len\n if (end < 0) end = 0\n } else if (end > len) {\n end = len\n }\n\n if (end < start) end = start\n\n var newBuf\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n newBuf = Buffer._augment(this.subarray(start, end))\n } else {\n var sliceLen = end - start\n newBuf = new Buffer(sliceLen, undefined)\n for (var i = 0; i < sliceLen; i++) {\n newBuf[i] = this[i + start]\n }\n }\n\n if (newBuf.length) newBuf.parent = this.parent || this\n\n return newBuf\n}\n\n/*\n * Need to make sure that buffer isn't trying to write out of bounds.\n */\nfunction checkOffset (offset, ext, length) {\n if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')\n if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')\n}\n\nBuffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n var val = this[offset]\n var mul = 1\n var i = 0\n while (++i < byteLength && (mul *= 0x100)) {\n val += this[offset + i] * mul\n }\n\n return val\n}\n\nBuffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) {\n checkOffset(offset, byteLength, this.length)\n }\n\n var val = this[offset + --byteLength]\n var mul = 1\n while (byteLength > 0 && (mul *= 0x100)) {\n val += this[offset + --byteLength] * mul\n }\n\n return val\n}\n\nBuffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 1, this.length)\n return this[offset]\n}\n\nBuffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 2, this.length)\n return this[offset] | (this[offset + 1] << 8)\n}\n\nBuffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 2, this.length)\n return (this[offset] << 8) | this[offset + 1]\n}\n\nBuffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return ((this[offset]) |\n (this[offset + 1] << 8) |\n (this[offset + 2] << 16)) +\n (this[offset + 3] * 0x1000000)\n}\n\nBuffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset] * 0x1000000) +\n ((this[offset + 1] << 16) |\n (this[offset + 2] << 8) |\n this[offset + 3])\n}\n\nBuffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n var val = this[offset]\n var mul = 1\n var i = 0\n while (++i < byteLength && (mul *= 0x100)) {\n val += this[offset + i] * mul\n }\n mul *= 0x80\n\n if (val >= mul) val -= Math.pow(2, 8 * byteLength)\n\n return val\n}\n\nBuffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n var i = byteLength\n var mul = 1\n var val = this[offset + --i]\n while (i > 0 && (mul *= 0x100)) {\n val += this[offset + --i] * mul\n }\n mul *= 0x80\n\n if (val >= mul) val -= Math.pow(2, 8 * byteLength)\n\n return val\n}\n\nBuffer.prototype.readInt8 = function readInt8 (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 1, this.length)\n if (!(this[offset] & 0x80)) return (this[offset])\n return ((0xff - this[offset] + 1) * -1)\n}\n\nBuffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 2, this.length)\n var val = this[offset] | (this[offset + 1] << 8)\n return (val & 0x8000) ? val | 0xFFFF0000 : val\n}\n\nBuffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 2, this.length)\n var val = this[offset + 1] | (this[offset] << 8)\n return (val & 0x8000) ? val | 0xFFFF0000 : val\n}\n\nBuffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset]) |\n (this[offset + 1] << 8) |\n (this[offset + 2] << 16) |\n (this[offset + 3] << 24)\n}\n\nBuffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset] << 24) |\n (this[offset + 1] << 16) |\n (this[offset + 2] << 8) |\n (this[offset + 3])\n}\n\nBuffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n return ieee754.read(this, offset, true, 23, 4)\n}\n\nBuffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n return ieee754.read(this, offset, false, 23, 4)\n}\n\nBuffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 8, this.length)\n return ieee754.read(this, offset, true, 52, 8)\n}\n\nBuffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 8, this.length)\n return ieee754.read(this, offset, false, 52, 8)\n}\n\nfunction checkInt (buf, value, offset, ext, max, min) {\n if (!Buffer.isBuffer(buf)) throw new TypeError('buffer must be a Buffer instance')\n if (value > max || value < min) throw new RangeError('value is out of bounds')\n if (offset + ext > buf.length) throw new RangeError('index out of range')\n}\n\nBuffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) checkInt(this, value, offset, byteLength, Math.pow(2, 8 * byteLength), 0)\n\n var mul = 1\n var i = 0\n this[offset] = value & 0xFF\n while (++i < byteLength && (mul *= 0x100)) {\n this[offset + i] = (value / mul) & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) checkInt(this, value, offset, byteLength, Math.pow(2, 8 * byteLength), 0)\n\n var i = byteLength - 1\n var mul = 1\n this[offset + i] = value & 0xFF\n while (--i >= 0 && (mul *= 0x100)) {\n this[offset + i] = (value / mul) & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)\n if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)\n this[offset] = (value & 0xff)\n return offset + 1\n}\n\nfunction objectWriteUInt16 (buf, value, offset, littleEndian) {\n if (value < 0) value = 0xffff + value + 1\n for (var i = 0, j = Math.min(buf.length - offset, 2); i < j; i++) {\n buf[offset + i] = (value & (0xff << (8 * (littleEndian ? i : 1 - i)))) >>>\n (littleEndian ? i : 1 - i) * 8\n }\n}\n\nBuffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n } else {\n objectWriteUInt16(this, value, offset, true)\n }\n return offset + 2\n}\n\nBuffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value >>> 8)\n this[offset + 1] = (value & 0xff)\n } else {\n objectWriteUInt16(this, value, offset, false)\n }\n return offset + 2\n}\n\nfunction objectWriteUInt32 (buf, value, offset, littleEndian) {\n if (value < 0) value = 0xffffffff + value + 1\n for (var i = 0, j = Math.min(buf.length - offset, 4); i < j; i++) {\n buf[offset + i] = (value >>> (littleEndian ? i : 3 - i) * 8) & 0xff\n }\n}\n\nBuffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset + 3] = (value >>> 24)\n this[offset + 2] = (value >>> 16)\n this[offset + 1] = (value >>> 8)\n this[offset] = (value & 0xff)\n } else {\n objectWriteUInt32(this, value, offset, true)\n }\n return offset + 4\n}\n\nBuffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value >>> 24)\n this[offset + 1] = (value >>> 16)\n this[offset + 2] = (value >>> 8)\n this[offset + 3] = (value & 0xff)\n } else {\n objectWriteUInt32(this, value, offset, false)\n }\n return offset + 4\n}\n\nBuffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) {\n var limit = Math.pow(2, 8 * byteLength - 1)\n\n checkInt(this, value, offset, byteLength, limit - 1, -limit)\n }\n\n var i = 0\n var mul = 1\n var sub = value < 0 ? 1 : 0\n this[offset] = value & 0xFF\n while (++i < byteLength && (mul *= 0x100)) {\n this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) {\n var limit = Math.pow(2, 8 * byteLength - 1)\n\n checkInt(this, value, offset, byteLength, limit - 1, -limit)\n }\n\n var i = byteLength - 1\n var mul = 1\n var sub = value < 0 ? 1 : 0\n this[offset + i] = value & 0xFF\n while (--i >= 0 && (mul *= 0x100)) {\n this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)\n if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)\n if (value < 0) value = 0xff + value + 1\n this[offset] = (value & 0xff)\n return offset + 1\n}\n\nBuffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n } else {\n objectWriteUInt16(this, value, offset, true)\n }\n return offset + 2\n}\n\nBuffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value >>> 8)\n this[offset + 1] = (value & 0xff)\n } else {\n objectWriteUInt16(this, value, offset, false)\n }\n return offset + 2\n}\n\nBuffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n this[offset + 2] = (value >>> 16)\n this[offset + 3] = (value >>> 24)\n } else {\n objectWriteUInt32(this, value, offset, true)\n }\n return offset + 4\n}\n\nBuffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\n if (value < 0) value = 0xffffffff + value + 1\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value >>> 24)\n this[offset + 1] = (value >>> 16)\n this[offset + 2] = (value >>> 8)\n this[offset + 3] = (value & 0xff)\n } else {\n objectWriteUInt32(this, value, offset, false)\n }\n return offset + 4\n}\n\nfunction checkIEEE754 (buf, value, offset, ext, max, min) {\n if (value > max || value < min) throw new RangeError('value is out of bounds')\n if (offset + ext > buf.length) throw new RangeError('index out of range')\n if (offset < 0) throw new RangeError('index out of range')\n}\n\nfunction writeFloat (buf, value, offset, littleEndian, noAssert) {\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)\n }\n ieee754.write(buf, value, offset, littleEndian, 23, 4)\n return offset + 4\n}\n\nBuffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {\n return writeFloat(this, value, offset, true, noAssert)\n}\n\nBuffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {\n return writeFloat(this, value, offset, false, noAssert)\n}\n\nfunction writeDouble (buf, value, offset, littleEndian, noAssert) {\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)\n }\n ieee754.write(buf, value, offset, littleEndian, 52, 8)\n return offset + 8\n}\n\nBuffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {\n return writeDouble(this, value, offset, true, noAssert)\n}\n\nBuffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {\n return writeDouble(this, value, offset, false, noAssert)\n}\n\n// copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)\nBuffer.prototype.copy = function copy (target, targetStart, start, end) {\n if (!start) start = 0\n if (!end && end !== 0) end = this.length\n if (targetStart >= target.length) targetStart = target.length\n if (!targetStart) targetStart = 0\n if (end > 0 && end < start) end = start\n\n // Copy 0 bytes; we're done\n if (end === start) return 0\n if (target.length === 0 || this.length === 0) return 0\n\n // Fatal error conditions\n if (targetStart < 0) {\n throw new RangeError('targetStart out of bounds')\n }\n if (start < 0 || start >= this.length) throw new RangeError('sourceStart out of bounds')\n if (end < 0) throw new RangeError('sourceEnd out of bounds')\n\n // Are we oob?\n if (end > this.length) end = this.length\n if (target.length - targetStart < end - start) {\n end = target.length - targetStart + start\n }\n\n var len = end - start\n var i\n\n if (this === target && start < targetStart && targetStart < end) {\n // descending copy from end\n for (i = len - 1; i >= 0; i--) {\n target[i + targetStart] = this[i + start]\n }\n } else if (len < 1000 || !Buffer.TYPED_ARRAY_SUPPORT) {\n // ascending copy from start\n for (i = 0; i < len; i++) {\n target[i + targetStart] = this[i + start]\n }\n } else {\n target._set(this.subarray(start, start + len), targetStart)\n }\n\n return len\n}\n\n// fill(value, start=0, end=buffer.length)\nBuffer.prototype.fill = function fill (value, start, end) {\n if (!value) value = 0\n if (!start) start = 0\n if (!end) end = this.length\n\n if (end < start) throw new RangeError('end < start')\n\n // Fill 0 bytes; we're done\n if (end === start) return\n if (this.length === 0) return\n\n if (start < 0 || start >= this.length) throw new RangeError('start out of bounds')\n if (end < 0 || end > this.length) throw new RangeError('end out of bounds')\n\n var i\n if (typeof value === 'number') {\n for (i = start; i < end; i++) {\n this[i] = value\n }\n } else {\n var bytes = utf8ToBytes(value.toString())\n var len = bytes.length\n for (i = start; i < end; i++) {\n this[i] = bytes[i % len]\n }\n }\n\n return this\n}\n\n/**\n * Creates a new `ArrayBuffer` with the *copied* memory of the buffer instance.\n * Added in Node 0.12. Only available in browsers that support ArrayBuffer.\n */\nBuffer.prototype.toArrayBuffer = function toArrayBuffer () {\n if (typeof Uint8Array !== 'undefined') {\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n return (new Buffer(this)).buffer\n } else {\n var buf = new Uint8Array(this.length)\n for (var i = 0, len = buf.length; i < len; i += 1) {\n buf[i] = this[i]\n }\n return buf.buffer\n }\n } else {\n throw new TypeError('Buffer.toArrayBuffer not supported in this browser')\n }\n}\n\n// HELPER FUNCTIONS\n// ================\n\nvar BP = Buffer.prototype\n\n/**\n * Augment a Uint8Array *instance* (not the Uint8Array class!) with Buffer methods\n */\nBuffer._augment = function _augment (arr) {\n arr.constructor = Buffer\n arr._isBuffer = true\n\n // save reference to original Uint8Array set method before overwriting\n arr._set = arr.set\n\n // deprecated\n arr.get = BP.get\n arr.set = BP.set\n\n arr.write = BP.write\n arr.toString = BP.toString\n arr.toLocaleString = BP.toString\n arr.toJSON = BP.toJSON\n arr.equals = BP.equals\n arr.compare = BP.compare\n arr.indexOf = BP.indexOf\n arr.copy = BP.copy\n arr.slice = BP.slice\n arr.readUIntLE = BP.readUIntLE\n arr.readUIntBE = BP.readUIntBE\n arr.readUInt8 = BP.readUInt8\n arr.readUInt16LE = BP.readUInt16LE\n arr.readUInt16BE = BP.readUInt16BE\n arr.readUInt32LE = BP.readUInt32LE\n arr.readUInt32BE = BP.readUInt32BE\n arr.readIntLE = BP.readIntLE\n arr.readIntBE = BP.readIntBE\n arr.readInt8 = BP.readInt8\n arr.readInt16LE = BP.readInt16LE\n arr.readInt16BE = BP.readInt16BE\n arr.readInt32LE = BP.readInt32LE\n arr.readInt32BE = BP.readInt32BE\n arr.readFloatLE = BP.readFloatLE\n arr.readFloatBE = BP.readFloatBE\n arr.readDoubleLE = BP.readDoubleLE\n arr.readDoubleBE = BP.readDoubleBE\n arr.writeUInt8 = BP.writeUInt8\n arr.writeUIntLE = BP.writeUIntLE\n arr.writeUIntBE = BP.writeUIntBE\n arr.writeUInt16LE = BP.writeUInt16LE\n arr.writeUInt16BE = BP.writeUInt16BE\n arr.writeUInt32LE = BP.writeUInt32LE\n arr.writeUInt32BE = BP.writeUInt32BE\n arr.writeIntLE = BP.writeIntLE\n arr.writeIntBE = BP.writeIntBE\n arr.writeInt8 = BP.writeInt8\n arr.writeInt16LE = BP.writeInt16LE\n arr.writeInt16BE = BP.writeInt16BE\n arr.writeInt32LE = BP.writeInt32LE\n arr.writeInt32BE = BP.writeInt32BE\n arr.writeFloatLE = BP.writeFloatLE\n arr.writeFloatBE = BP.writeFloatBE\n arr.writeDoubleLE = BP.writeDoubleLE\n arr.writeDoubleBE = BP.writeDoubleBE\n arr.fill = BP.fill\n arr.inspect = BP.inspect\n arr.toArrayBuffer = BP.toArrayBuffer\n\n return arr\n}\n\nvar INVALID_BASE64_RE = /[^+\\/0-9A-Za-z-_]/g\n\nfunction base64clean (str) {\n // Node strips out invalid characters like \\n and \\t from the string, base64-js does not\n str = stringtrim(str).replace(INVALID_BASE64_RE, '')\n // Node converts strings with length < 2 to ''\n if (str.length < 2) return ''\n // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not\n while (str.length % 4 !== 0) {\n str = str + '='\n }\n return str\n}\n\nfunction stringtrim (str) {\n if (str.trim) return str.trim()\n return str.replace(/^\\s+|\\s+$/g, '')\n}\n\nfunction toHex (n) {\n if (n < 16) return '0' + n.toString(16)\n return n.toString(16)\n}\n\nfunction utf8ToBytes (string, units) {\n units = units || Infinity\n var codePoint\n var length = string.length\n var leadSurrogate = null\n var bytes = []\n\n for (var i = 0; i < length; i++) {\n codePoint = string.charCodeAt(i)\n\n // is surrogate component\n if (codePoint > 0xD7FF && codePoint < 0xE000) {\n // last char was a lead\n if (!leadSurrogate) {\n // no lead yet\n if (codePoint > 0xDBFF) {\n // unexpected trail\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n continue\n } else if (i + 1 === length) {\n // unpaired lead\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n continue\n }\n\n // valid lead\n leadSurrogate = codePoint\n\n continue\n }\n\n // 2 leads in a row\n if (codePoint < 0xDC00) {\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n leadSurrogate = codePoint\n continue\n }\n\n // valid surrogate pair\n codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000\n } else if (leadSurrogate) {\n // valid bmp char, but last char was a lead\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n }\n\n leadSurrogate = null\n\n // encode utf8\n if (codePoint < 0x80) {\n if ((units -= 1) < 0) break\n bytes.push(codePoint)\n } else if (codePoint < 0x800) {\n if ((units -= 2) < 0) break\n bytes.push(\n codePoint >> 0x6 | 0xC0,\n codePoint & 0x3F | 0x80\n )\n } else if (codePoint < 0x10000) {\n if ((units -= 3) < 0) break\n bytes.push(\n codePoint >> 0xC | 0xE0,\n codePoint >> 0x6 & 0x3F | 0x80,\n codePoint & 0x3F | 0x80\n )\n } else if (codePoint < 0x110000) {\n if ((units -= 4) < 0) break\n bytes.push(\n codePoint >> 0x12 | 0xF0,\n codePoint >> 0xC & 0x3F | 0x80,\n codePoint >> 0x6 & 0x3F | 0x80,\n codePoint & 0x3F | 0x80\n )\n } else {\n throw new Error('Invalid code point')\n }\n }\n\n return bytes\n}\n\nfunction asciiToBytes (str) {\n var byteArray = []\n for (var i = 0; i < str.length; i++) {\n // Node's code seems to be doing this and not & 0x7F..\n byteArray.push(str.charCodeAt(i) & 0xFF)\n }\n return byteArray\n}\n\nfunction utf16leToBytes (str, units) {\n var c, hi, lo\n var byteArray = []\n for (var i = 0; i < str.length; i++) {\n if ((units -= 2) < 0) break\n\n c = str.charCodeAt(i)\n hi = c >> 8\n lo = c % 256\n byteArray.push(lo)\n byteArray.push(hi)\n }\n\n return byteArray\n}\n\nfunction base64ToBytes (str) {\n return base64.toByteArray(base64clean(str))\n}\n\nfunction blitBuffer (src, dst, offset, length) {\n for (var i = 0; i < length; i++) {\n if ((i + offset >= dst.length) || (i >= src.length)) break\n dst[i + offset] = src[i]\n }\n return i\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1).Buffer, (function() { return this; }())))\n\n/*****************\n ** WEBPACK FOOTER\n ** (webpack)/~/node-libs-browser/~/buffer/index.js\n ** module id = 1\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///(webpack)/~/node-libs-browser/~/buffer/index.js?"); + eval("/* WEBPACK VAR INJECTION */(function(Buffer, global) {/*!\n * The buffer module from node.js, for the browser.\n *\n * @author Feross Aboukhadijeh \n * @license MIT\n */\n/* eslint-disable no-proto */\n\n'use strict'\n\nvar base64 = __webpack_require__(2)\nvar ieee754 = __webpack_require__(3)\nvar isArray = __webpack_require__(4)\n\nexports.Buffer = Buffer\nexports.SlowBuffer = SlowBuffer\nexports.INSPECT_MAX_BYTES = 50\nBuffer.poolSize = 8192 // not used by this implementation\n\nvar rootParent = {}\n\n/**\n * If `Buffer.TYPED_ARRAY_SUPPORT`:\n * === true Use Uint8Array implementation (fastest)\n * === false Use Object implementation (most compatible, even IE6)\n *\n * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,\n * Opera 11.6+, iOS 4.2+.\n *\n * Due to various browser bugs, sometimes the Object implementation will be used even\n * when the browser supports typed arrays.\n *\n * Note:\n *\n * - Firefox 4-29 lacks support for adding new properties to `Uint8Array` instances,\n * See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438.\n *\n * - Safari 5-7 lacks support for changing the `Object.prototype.constructor` property\n * on objects.\n *\n * - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function.\n *\n * - IE10 has a broken `TypedArray.prototype.subarray` function which returns arrays of\n * incorrect length in some situations.\n\n * We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they\n * get the Object implementation, which is slower but behaves correctly.\n */\nBuffer.TYPED_ARRAY_SUPPORT = global.TYPED_ARRAY_SUPPORT !== undefined\n ? global.TYPED_ARRAY_SUPPORT\n : typedArraySupport()\n\nfunction typedArraySupport () {\n function Bar () {}\n try {\n var arr = new Uint8Array(1)\n arr.foo = function () { return 42 }\n arr.constructor = Bar\n return arr.foo() === 42 && // typed array instances can be augmented\n arr.constructor === Bar && // constructor can be set\n typeof arr.subarray === 'function' && // chrome 9-10 lack `subarray`\n arr.subarray(1, 1).byteLength === 0 // ie10 has broken `subarray`\n } catch (e) {\n return false\n }\n}\n\nfunction kMaxLength () {\n return Buffer.TYPED_ARRAY_SUPPORT\n ? 0x7fffffff\n : 0x3fffffff\n}\n\n/**\n * Class: Buffer\n * =============\n *\n * The Buffer constructor returns instances of `Uint8Array` that are augmented\n * with function properties for all the node `Buffer` API functions. We use\n * `Uint8Array` so that square bracket notation works as expected -- it returns\n * a single octet.\n *\n * By augmenting the instances, we can avoid modifying the `Uint8Array`\n * prototype.\n */\nfunction Buffer (arg) {\n if (!(this instanceof Buffer)) {\n // Avoid going through an ArgumentsAdaptorTrampoline in the common case.\n if (arguments.length > 1) return new Buffer(arg, arguments[1])\n return new Buffer(arg)\n }\n\n if (!Buffer.TYPED_ARRAY_SUPPORT) {\n this.length = 0\n this.parent = undefined\n }\n\n // Common case.\n if (typeof arg === 'number') {\n return fromNumber(this, arg)\n }\n\n // Slightly less common case.\n if (typeof arg === 'string') {\n return fromString(this, arg, arguments.length > 1 ? arguments[1] : 'utf8')\n }\n\n // Unusual.\n return fromObject(this, arg)\n}\n\nfunction fromNumber (that, length) {\n that = allocate(that, length < 0 ? 0 : checked(length) | 0)\n if (!Buffer.TYPED_ARRAY_SUPPORT) {\n for (var i = 0; i < length; i++) {\n that[i] = 0\n }\n }\n return that\n}\n\nfunction fromString (that, string, encoding) {\n if (typeof encoding !== 'string' || encoding === '') encoding = 'utf8'\n\n // Assumption: byteLength() return value is always < kMaxLength.\n var length = byteLength(string, encoding) | 0\n that = allocate(that, length)\n\n that.write(string, encoding)\n return that\n}\n\nfunction fromObject (that, object) {\n if (Buffer.isBuffer(object)) return fromBuffer(that, object)\n\n if (isArray(object)) return fromArray(that, object)\n\n if (object == null) {\n throw new TypeError('must start with number, buffer, array or string')\n }\n\n if (typeof ArrayBuffer !== 'undefined') {\n if (object.buffer instanceof ArrayBuffer) {\n return fromTypedArray(that, object)\n }\n if (object instanceof ArrayBuffer) {\n return fromArrayBuffer(that, object)\n }\n }\n\n if (object.length) return fromArrayLike(that, object)\n\n return fromJsonObject(that, object)\n}\n\nfunction fromBuffer (that, buffer) {\n var length = checked(buffer.length) | 0\n that = allocate(that, length)\n buffer.copy(that, 0, 0, length)\n return that\n}\n\nfunction fromArray (that, array) {\n var length = checked(array.length) | 0\n that = allocate(that, length)\n for (var i = 0; i < length; i += 1) {\n that[i] = array[i] & 255\n }\n return that\n}\n\n// Duplicate of fromArray() to keep fromArray() monomorphic.\nfunction fromTypedArray (that, array) {\n var length = checked(array.length) | 0\n that = allocate(that, length)\n // Truncating the elements is probably not what people expect from typed\n // arrays with BYTES_PER_ELEMENT > 1 but it's compatible with the behavior\n // of the old Buffer constructor.\n for (var i = 0; i < length; i += 1) {\n that[i] = array[i] & 255\n }\n return that\n}\n\nfunction fromArrayBuffer (that, array) {\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n // Return an augmented `Uint8Array` instance, for best performance\n array.byteLength\n that = Buffer._augment(new Uint8Array(array))\n } else {\n // Fallback: Return an object instance of the Buffer class\n that = fromTypedArray(that, new Uint8Array(array))\n }\n return that\n}\n\nfunction fromArrayLike (that, array) {\n var length = checked(array.length) | 0\n that = allocate(that, length)\n for (var i = 0; i < length; i += 1) {\n that[i] = array[i] & 255\n }\n return that\n}\n\n// Deserialize { type: 'Buffer', data: [1,2,3,...] } into a Buffer object.\n// Returns a zero-length buffer for inputs that don't conform to the spec.\nfunction fromJsonObject (that, object) {\n var array\n var length = 0\n\n if (object.type === 'Buffer' && isArray(object.data)) {\n array = object.data\n length = checked(array.length) | 0\n }\n that = allocate(that, length)\n\n for (var i = 0; i < length; i += 1) {\n that[i] = array[i] & 255\n }\n return that\n}\n\nif (Buffer.TYPED_ARRAY_SUPPORT) {\n Buffer.prototype.__proto__ = Uint8Array.prototype\n Buffer.__proto__ = Uint8Array\n} else {\n // pre-set for values that may exist in the future\n Buffer.prototype.length = undefined\n Buffer.prototype.parent = undefined\n}\n\nfunction allocate (that, length) {\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n // Return an augmented `Uint8Array` instance, for best performance\n that = Buffer._augment(new Uint8Array(length))\n that.__proto__ = Buffer.prototype\n } else {\n // Fallback: Return an object instance of the Buffer class\n that.length = length\n that._isBuffer = true\n }\n\n var fromPool = length !== 0 && length <= Buffer.poolSize >>> 1\n if (fromPool) that.parent = rootParent\n\n return that\n}\n\nfunction checked (length) {\n // Note: cannot use `length < kMaxLength` here because that fails when\n // length is NaN (which is otherwise coerced to zero.)\n if (length >= kMaxLength()) {\n throw new RangeError('Attempt to allocate Buffer larger than maximum ' +\n 'size: 0x' + kMaxLength().toString(16) + ' bytes')\n }\n return length | 0\n}\n\nfunction SlowBuffer (subject, encoding) {\n if (!(this instanceof SlowBuffer)) return new SlowBuffer(subject, encoding)\n\n var buf = new Buffer(subject, encoding)\n delete buf.parent\n return buf\n}\n\nBuffer.isBuffer = function isBuffer (b) {\n return !!(b != null && b._isBuffer)\n}\n\nBuffer.compare = function compare (a, b) {\n if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {\n throw new TypeError('Arguments must be Buffers')\n }\n\n if (a === b) return 0\n\n var x = a.length\n var y = b.length\n\n var i = 0\n var len = Math.min(x, y)\n while (i < len) {\n if (a[i] !== b[i]) break\n\n ++i\n }\n\n if (i !== len) {\n x = a[i]\n y = b[i]\n }\n\n if (x < y) return -1\n if (y < x) return 1\n return 0\n}\n\nBuffer.isEncoding = function isEncoding (encoding) {\n switch (String(encoding).toLowerCase()) {\n case 'hex':\n case 'utf8':\n case 'utf-8':\n case 'ascii':\n case 'binary':\n case 'base64':\n case 'raw':\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return true\n default:\n return false\n }\n}\n\nBuffer.concat = function concat (list, length) {\n if (!isArray(list)) throw new TypeError('list argument must be an Array of Buffers.')\n\n if (list.length === 0) {\n return new Buffer(0)\n }\n\n var i\n if (length === undefined) {\n length = 0\n for (i = 0; i < list.length; i++) {\n length += list[i].length\n }\n }\n\n var buf = new Buffer(length)\n var pos = 0\n for (i = 0; i < list.length; i++) {\n var item = list[i]\n item.copy(buf, pos)\n pos += item.length\n }\n return buf\n}\n\nfunction byteLength (string, encoding) {\n if (typeof string !== 'string') string = '' + string\n\n var len = string.length\n if (len === 0) return 0\n\n // Use a for loop to avoid recursion\n var loweredCase = false\n for (;;) {\n switch (encoding) {\n case 'ascii':\n case 'binary':\n // Deprecated\n case 'raw':\n case 'raws':\n return len\n case 'utf8':\n case 'utf-8':\n return utf8ToBytes(string).length\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return len * 2\n case 'hex':\n return len >>> 1\n case 'base64':\n return base64ToBytes(string).length\n default:\n if (loweredCase) return utf8ToBytes(string).length // assume utf8\n encoding = ('' + encoding).toLowerCase()\n loweredCase = true\n }\n }\n}\nBuffer.byteLength = byteLength\n\nfunction slowToString (encoding, start, end) {\n var loweredCase = false\n\n start = start | 0\n end = end === undefined || end === Infinity ? this.length : end | 0\n\n if (!encoding) encoding = 'utf8'\n if (start < 0) start = 0\n if (end > this.length) end = this.length\n if (end <= start) return ''\n\n while (true) {\n switch (encoding) {\n case 'hex':\n return hexSlice(this, start, end)\n\n case 'utf8':\n case 'utf-8':\n return utf8Slice(this, start, end)\n\n case 'ascii':\n return asciiSlice(this, start, end)\n\n case 'binary':\n return binarySlice(this, start, end)\n\n case 'base64':\n return base64Slice(this, start, end)\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return utf16leSlice(this, start, end)\n\n default:\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n encoding = (encoding + '').toLowerCase()\n loweredCase = true\n }\n }\n}\n\nBuffer.prototype.toString = function toString () {\n var length = this.length | 0\n if (length === 0) return ''\n if (arguments.length === 0) return utf8Slice(this, 0, length)\n return slowToString.apply(this, arguments)\n}\n\nBuffer.prototype.equals = function equals (b) {\n if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')\n if (this === b) return true\n return Buffer.compare(this, b) === 0\n}\n\nBuffer.prototype.inspect = function inspect () {\n var str = ''\n var max = exports.INSPECT_MAX_BYTES\n if (this.length > 0) {\n str = this.toString('hex', 0, max).match(/.{2}/g).join(' ')\n if (this.length > max) str += ' ... '\n }\n return ''\n}\n\nBuffer.prototype.compare = function compare (b) {\n if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')\n if (this === b) return 0\n return Buffer.compare(this, b)\n}\n\nBuffer.prototype.indexOf = function indexOf (val, byteOffset) {\n if (byteOffset > 0x7fffffff) byteOffset = 0x7fffffff\n else if (byteOffset < -0x80000000) byteOffset = -0x80000000\n byteOffset >>= 0\n\n if (this.length === 0) return -1\n if (byteOffset >= this.length) return -1\n\n // Negative offsets start from the end of the buffer\n if (byteOffset < 0) byteOffset = Math.max(this.length + byteOffset, 0)\n\n if (typeof val === 'string') {\n if (val.length === 0) return -1 // special case: looking for empty string always fails\n return String.prototype.indexOf.call(this, val, byteOffset)\n }\n if (Buffer.isBuffer(val)) {\n return arrayIndexOf(this, val, byteOffset)\n }\n if (typeof val === 'number') {\n if (Buffer.TYPED_ARRAY_SUPPORT && Uint8Array.prototype.indexOf === 'function') {\n return Uint8Array.prototype.indexOf.call(this, val, byteOffset)\n }\n return arrayIndexOf(this, [ val ], byteOffset)\n }\n\n function arrayIndexOf (arr, val, byteOffset) {\n var foundIndex = -1\n for (var i = 0; byteOffset + i < arr.length; i++) {\n if (arr[byteOffset + i] === val[foundIndex === -1 ? 0 : i - foundIndex]) {\n if (foundIndex === -1) foundIndex = i\n if (i - foundIndex + 1 === val.length) return byteOffset + foundIndex\n } else {\n foundIndex = -1\n }\n }\n return -1\n }\n\n throw new TypeError('val must be string, number or Buffer')\n}\n\n// `get` is deprecated\nBuffer.prototype.get = function get (offset) {\n console.log('.get() is deprecated. Access using array indexes instead.')\n return this.readUInt8(offset)\n}\n\n// `set` is deprecated\nBuffer.prototype.set = function set (v, offset) {\n console.log('.set() is deprecated. Access using array indexes instead.')\n return this.writeUInt8(v, offset)\n}\n\nfunction hexWrite (buf, string, offset, length) {\n offset = Number(offset) || 0\n var remaining = buf.length - offset\n if (!length) {\n length = remaining\n } else {\n length = Number(length)\n if (length > remaining) {\n length = remaining\n }\n }\n\n // must be an even number of digits\n var strLen = string.length\n if (strLen % 2 !== 0) throw new Error('Invalid hex string')\n\n if (length > strLen / 2) {\n length = strLen / 2\n }\n for (var i = 0; i < length; i++) {\n var parsed = parseInt(string.substr(i * 2, 2), 16)\n if (isNaN(parsed)) throw new Error('Invalid hex string')\n buf[offset + i] = parsed\n }\n return i\n}\n\nfunction utf8Write (buf, string, offset, length) {\n return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)\n}\n\nfunction asciiWrite (buf, string, offset, length) {\n return blitBuffer(asciiToBytes(string), buf, offset, length)\n}\n\nfunction binaryWrite (buf, string, offset, length) {\n return asciiWrite(buf, string, offset, length)\n}\n\nfunction base64Write (buf, string, offset, length) {\n return blitBuffer(base64ToBytes(string), buf, offset, length)\n}\n\nfunction ucs2Write (buf, string, offset, length) {\n return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)\n}\n\nBuffer.prototype.write = function write (string, offset, length, encoding) {\n // Buffer#write(string)\n if (offset === undefined) {\n encoding = 'utf8'\n length = this.length\n offset = 0\n // Buffer#write(string, encoding)\n } else if (length === undefined && typeof offset === 'string') {\n encoding = offset\n length = this.length\n offset = 0\n // Buffer#write(string, offset[, length][, encoding])\n } else if (isFinite(offset)) {\n offset = offset | 0\n if (isFinite(length)) {\n length = length | 0\n if (encoding === undefined) encoding = 'utf8'\n } else {\n encoding = length\n length = undefined\n }\n // legacy write(string, encoding, offset, length) - remove in v0.13\n } else {\n var swap = encoding\n encoding = offset\n offset = length | 0\n length = swap\n }\n\n var remaining = this.length - offset\n if (length === undefined || length > remaining) length = remaining\n\n if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {\n throw new RangeError('attempt to write outside buffer bounds')\n }\n\n if (!encoding) encoding = 'utf8'\n\n var loweredCase = false\n for (;;) {\n switch (encoding) {\n case 'hex':\n return hexWrite(this, string, offset, length)\n\n case 'utf8':\n case 'utf-8':\n return utf8Write(this, string, offset, length)\n\n case 'ascii':\n return asciiWrite(this, string, offset, length)\n\n case 'binary':\n return binaryWrite(this, string, offset, length)\n\n case 'base64':\n // Warning: maxLength not taken into account in base64Write\n return base64Write(this, string, offset, length)\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return ucs2Write(this, string, offset, length)\n\n default:\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n encoding = ('' + encoding).toLowerCase()\n loweredCase = true\n }\n }\n}\n\nBuffer.prototype.toJSON = function toJSON () {\n return {\n type: 'Buffer',\n data: Array.prototype.slice.call(this._arr || this, 0)\n }\n}\n\nfunction base64Slice (buf, start, end) {\n if (start === 0 && end === buf.length) {\n return base64.fromByteArray(buf)\n } else {\n return base64.fromByteArray(buf.slice(start, end))\n }\n}\n\nfunction utf8Slice (buf, start, end) {\n end = Math.min(buf.length, end)\n var res = []\n\n var i = start\n while (i < end) {\n var firstByte = buf[i]\n var codePoint = null\n var bytesPerSequence = (firstByte > 0xEF) ? 4\n : (firstByte > 0xDF) ? 3\n : (firstByte > 0xBF) ? 2\n : 1\n\n if (i + bytesPerSequence <= end) {\n var secondByte, thirdByte, fourthByte, tempCodePoint\n\n switch (bytesPerSequence) {\n case 1:\n if (firstByte < 0x80) {\n codePoint = firstByte\n }\n break\n case 2:\n secondByte = buf[i + 1]\n if ((secondByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)\n if (tempCodePoint > 0x7F) {\n codePoint = tempCodePoint\n }\n }\n break\n case 3:\n secondByte = buf[i + 1]\n thirdByte = buf[i + 2]\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)\n if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {\n codePoint = tempCodePoint\n }\n }\n break\n case 4:\n secondByte = buf[i + 1]\n thirdByte = buf[i + 2]\n fourthByte = buf[i + 3]\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)\n if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {\n codePoint = tempCodePoint\n }\n }\n }\n }\n\n if (codePoint === null) {\n // we did not generate a valid codePoint so insert a\n // replacement char (U+FFFD) and advance only 1 byte\n codePoint = 0xFFFD\n bytesPerSequence = 1\n } else if (codePoint > 0xFFFF) {\n // encode to utf16 (surrogate pair dance)\n codePoint -= 0x10000\n res.push(codePoint >>> 10 & 0x3FF | 0xD800)\n codePoint = 0xDC00 | codePoint & 0x3FF\n }\n\n res.push(codePoint)\n i += bytesPerSequence\n }\n\n return decodeCodePointsArray(res)\n}\n\n// Based on http://stackoverflow.com/a/22747272/680742, the browser with\n// the lowest limit is Chrome, with 0x10000 args.\n// We go 1 magnitude less, for safety\nvar MAX_ARGUMENTS_LENGTH = 0x1000\n\nfunction decodeCodePointsArray (codePoints) {\n var len = codePoints.length\n if (len <= MAX_ARGUMENTS_LENGTH) {\n return String.fromCharCode.apply(String, codePoints) // avoid extra slice()\n }\n\n // Decode in chunks to avoid \"call stack size exceeded\".\n var res = ''\n var i = 0\n while (i < len) {\n res += String.fromCharCode.apply(\n String,\n codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)\n )\n }\n return res\n}\n\nfunction asciiSlice (buf, start, end) {\n var ret = ''\n end = Math.min(buf.length, end)\n\n for (var i = start; i < end; i++) {\n ret += String.fromCharCode(buf[i] & 0x7F)\n }\n return ret\n}\n\nfunction binarySlice (buf, start, end) {\n var ret = ''\n end = Math.min(buf.length, end)\n\n for (var i = start; i < end; i++) {\n ret += String.fromCharCode(buf[i])\n }\n return ret\n}\n\nfunction hexSlice (buf, start, end) {\n var len = buf.length\n\n if (!start || start < 0) start = 0\n if (!end || end < 0 || end > len) end = len\n\n var out = ''\n for (var i = start; i < end; i++) {\n out += toHex(buf[i])\n }\n return out\n}\n\nfunction utf16leSlice (buf, start, end) {\n var bytes = buf.slice(start, end)\n var res = ''\n for (var i = 0; i < bytes.length; i += 2) {\n res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256)\n }\n return res\n}\n\nBuffer.prototype.slice = function slice (start, end) {\n var len = this.length\n start = ~~start\n end = end === undefined ? len : ~~end\n\n if (start < 0) {\n start += len\n if (start < 0) start = 0\n } else if (start > len) {\n start = len\n }\n\n if (end < 0) {\n end += len\n if (end < 0) end = 0\n } else if (end > len) {\n end = len\n }\n\n if (end < start) end = start\n\n var newBuf\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n newBuf = Buffer._augment(this.subarray(start, end))\n } else {\n var sliceLen = end - start\n newBuf = new Buffer(sliceLen, undefined)\n for (var i = 0; i < sliceLen; i++) {\n newBuf[i] = this[i + start]\n }\n }\n\n if (newBuf.length) newBuf.parent = this.parent || this\n\n return newBuf\n}\n\n/*\n * Need to make sure that buffer isn't trying to write out of bounds.\n */\nfunction checkOffset (offset, ext, length) {\n if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')\n if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')\n}\n\nBuffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n var val = this[offset]\n var mul = 1\n var i = 0\n while (++i < byteLength && (mul *= 0x100)) {\n val += this[offset + i] * mul\n }\n\n return val\n}\n\nBuffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) {\n checkOffset(offset, byteLength, this.length)\n }\n\n var val = this[offset + --byteLength]\n var mul = 1\n while (byteLength > 0 && (mul *= 0x100)) {\n val += this[offset + --byteLength] * mul\n }\n\n return val\n}\n\nBuffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 1, this.length)\n return this[offset]\n}\n\nBuffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 2, this.length)\n return this[offset] | (this[offset + 1] << 8)\n}\n\nBuffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 2, this.length)\n return (this[offset] << 8) | this[offset + 1]\n}\n\nBuffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return ((this[offset]) |\n (this[offset + 1] << 8) |\n (this[offset + 2] << 16)) +\n (this[offset + 3] * 0x1000000)\n}\n\nBuffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset] * 0x1000000) +\n ((this[offset + 1] << 16) |\n (this[offset + 2] << 8) |\n this[offset + 3])\n}\n\nBuffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n var val = this[offset]\n var mul = 1\n var i = 0\n while (++i < byteLength && (mul *= 0x100)) {\n val += this[offset + i] * mul\n }\n mul *= 0x80\n\n if (val >= mul) val -= Math.pow(2, 8 * byteLength)\n\n return val\n}\n\nBuffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n var i = byteLength\n var mul = 1\n var val = this[offset + --i]\n while (i > 0 && (mul *= 0x100)) {\n val += this[offset + --i] * mul\n }\n mul *= 0x80\n\n if (val >= mul) val -= Math.pow(2, 8 * byteLength)\n\n return val\n}\n\nBuffer.prototype.readInt8 = function readInt8 (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 1, this.length)\n if (!(this[offset] & 0x80)) return (this[offset])\n return ((0xff - this[offset] + 1) * -1)\n}\n\nBuffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 2, this.length)\n var val = this[offset] | (this[offset + 1] << 8)\n return (val & 0x8000) ? val | 0xFFFF0000 : val\n}\n\nBuffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 2, this.length)\n var val = this[offset + 1] | (this[offset] << 8)\n return (val & 0x8000) ? val | 0xFFFF0000 : val\n}\n\nBuffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset]) |\n (this[offset + 1] << 8) |\n (this[offset + 2] << 16) |\n (this[offset + 3] << 24)\n}\n\nBuffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset] << 24) |\n (this[offset + 1] << 16) |\n (this[offset + 2] << 8) |\n (this[offset + 3])\n}\n\nBuffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n return ieee754.read(this, offset, true, 23, 4)\n}\n\nBuffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 4, this.length)\n return ieee754.read(this, offset, false, 23, 4)\n}\n\nBuffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 8, this.length)\n return ieee754.read(this, offset, true, 52, 8)\n}\n\nBuffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {\n if (!noAssert) checkOffset(offset, 8, this.length)\n return ieee754.read(this, offset, false, 52, 8)\n}\n\nfunction checkInt (buf, value, offset, ext, max, min) {\n if (!Buffer.isBuffer(buf)) throw new TypeError('buffer must be a Buffer instance')\n if (value > max || value < min) throw new RangeError('value is out of bounds')\n if (offset + ext > buf.length) throw new RangeError('index out of range')\n}\n\nBuffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) checkInt(this, value, offset, byteLength, Math.pow(2, 8 * byteLength), 0)\n\n var mul = 1\n var i = 0\n this[offset] = value & 0xFF\n while (++i < byteLength && (mul *= 0x100)) {\n this[offset + i] = (value / mul) & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset | 0\n byteLength = byteLength | 0\n if (!noAssert) checkInt(this, value, offset, byteLength, Math.pow(2, 8 * byteLength), 0)\n\n var i = byteLength - 1\n var mul = 1\n this[offset + i] = value & 0xFF\n while (--i >= 0 && (mul *= 0x100)) {\n this[offset + i] = (value / mul) & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)\n if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)\n this[offset] = (value & 0xff)\n return offset + 1\n}\n\nfunction objectWriteUInt16 (buf, value, offset, littleEndian) {\n if (value < 0) value = 0xffff + value + 1\n for (var i = 0, j = Math.min(buf.length - offset, 2); i < j; i++) {\n buf[offset + i] = (value & (0xff << (8 * (littleEndian ? i : 1 - i)))) >>>\n (littleEndian ? i : 1 - i) * 8\n }\n}\n\nBuffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n } else {\n objectWriteUInt16(this, value, offset, true)\n }\n return offset + 2\n}\n\nBuffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value >>> 8)\n this[offset + 1] = (value & 0xff)\n } else {\n objectWriteUInt16(this, value, offset, false)\n }\n return offset + 2\n}\n\nfunction objectWriteUInt32 (buf, value, offset, littleEndian) {\n if (value < 0) value = 0xffffffff + value + 1\n for (var i = 0, j = Math.min(buf.length - offset, 4); i < j; i++) {\n buf[offset + i] = (value >>> (littleEndian ? i : 3 - i) * 8) & 0xff\n }\n}\n\nBuffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset + 3] = (value >>> 24)\n this[offset + 2] = (value >>> 16)\n this[offset + 1] = (value >>> 8)\n this[offset] = (value & 0xff)\n } else {\n objectWriteUInt32(this, value, offset, true)\n }\n return offset + 4\n}\n\nBuffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value >>> 24)\n this[offset + 1] = (value >>> 16)\n this[offset + 2] = (value >>> 8)\n this[offset + 3] = (value & 0xff)\n } else {\n objectWriteUInt32(this, value, offset, false)\n }\n return offset + 4\n}\n\nBuffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) {\n var limit = Math.pow(2, 8 * byteLength - 1)\n\n checkInt(this, value, offset, byteLength, limit - 1, -limit)\n }\n\n var i = 0\n var mul = 1\n var sub = value < 0 ? 1 : 0\n this[offset] = value & 0xFF\n while (++i < byteLength && (mul *= 0x100)) {\n this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) {\n var limit = Math.pow(2, 8 * byteLength - 1)\n\n checkInt(this, value, offset, byteLength, limit - 1, -limit)\n }\n\n var i = byteLength - 1\n var mul = 1\n var sub = value < 0 ? 1 : 0\n this[offset + i] = value & 0xFF\n while (--i >= 0 && (mul *= 0x100)) {\n this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)\n if (!Buffer.TYPED_ARRAY_SUPPORT) value = Math.floor(value)\n if (value < 0) value = 0xff + value + 1\n this[offset] = (value & 0xff)\n return offset + 1\n}\n\nBuffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n } else {\n objectWriteUInt16(this, value, offset, true)\n }\n return offset + 2\n}\n\nBuffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value >>> 8)\n this[offset + 1] = (value & 0xff)\n } else {\n objectWriteUInt16(this, value, offset, false)\n }\n return offset + 2\n}\n\nBuffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n this[offset + 2] = (value >>> 16)\n this[offset + 3] = (value >>> 24)\n } else {\n objectWriteUInt32(this, value, offset, true)\n }\n return offset + 4\n}\n\nBuffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {\n value = +value\n offset = offset | 0\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\n if (value < 0) value = 0xffffffff + value + 1\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n this[offset] = (value >>> 24)\n this[offset + 1] = (value >>> 16)\n this[offset + 2] = (value >>> 8)\n this[offset + 3] = (value & 0xff)\n } else {\n objectWriteUInt32(this, value, offset, false)\n }\n return offset + 4\n}\n\nfunction checkIEEE754 (buf, value, offset, ext, max, min) {\n if (value > max || value < min) throw new RangeError('value is out of bounds')\n if (offset + ext > buf.length) throw new RangeError('index out of range')\n if (offset < 0) throw new RangeError('index out of range')\n}\n\nfunction writeFloat (buf, value, offset, littleEndian, noAssert) {\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)\n }\n ieee754.write(buf, value, offset, littleEndian, 23, 4)\n return offset + 4\n}\n\nBuffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {\n return writeFloat(this, value, offset, true, noAssert)\n}\n\nBuffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {\n return writeFloat(this, value, offset, false, noAssert)\n}\n\nfunction writeDouble (buf, value, offset, littleEndian, noAssert) {\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)\n }\n ieee754.write(buf, value, offset, littleEndian, 52, 8)\n return offset + 8\n}\n\nBuffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {\n return writeDouble(this, value, offset, true, noAssert)\n}\n\nBuffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {\n return writeDouble(this, value, offset, false, noAssert)\n}\n\n// copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)\nBuffer.prototype.copy = function copy (target, targetStart, start, end) {\n if (!start) start = 0\n if (!end && end !== 0) end = this.length\n if (targetStart >= target.length) targetStart = target.length\n if (!targetStart) targetStart = 0\n if (end > 0 && end < start) end = start\n\n // Copy 0 bytes; we're done\n if (end === start) return 0\n if (target.length === 0 || this.length === 0) return 0\n\n // Fatal error conditions\n if (targetStart < 0) {\n throw new RangeError('targetStart out of bounds')\n }\n if (start < 0 || start >= this.length) throw new RangeError('sourceStart out of bounds')\n if (end < 0) throw new RangeError('sourceEnd out of bounds')\n\n // Are we oob?\n if (end > this.length) end = this.length\n if (target.length - targetStart < end - start) {\n end = target.length - targetStart + start\n }\n\n var len = end - start\n var i\n\n if (this === target && start < targetStart && targetStart < end) {\n // descending copy from end\n for (i = len - 1; i >= 0; i--) {\n target[i + targetStart] = this[i + start]\n }\n } else if (len < 1000 || !Buffer.TYPED_ARRAY_SUPPORT) {\n // ascending copy from start\n for (i = 0; i < len; i++) {\n target[i + targetStart] = this[i + start]\n }\n } else {\n target._set(this.subarray(start, start + len), targetStart)\n }\n\n return len\n}\n\n// fill(value, start=0, end=buffer.length)\nBuffer.prototype.fill = function fill (value, start, end) {\n if (!value) value = 0\n if (!start) start = 0\n if (!end) end = this.length\n\n if (end < start) throw new RangeError('end < start')\n\n // Fill 0 bytes; we're done\n if (end === start) return\n if (this.length === 0) return\n\n if (start < 0 || start >= this.length) throw new RangeError('start out of bounds')\n if (end < 0 || end > this.length) throw new RangeError('end out of bounds')\n\n var i\n if (typeof value === 'number') {\n for (i = start; i < end; i++) {\n this[i] = value\n }\n } else {\n var bytes = utf8ToBytes(value.toString())\n var len = bytes.length\n for (i = start; i < end; i++) {\n this[i] = bytes[i % len]\n }\n }\n\n return this\n}\n\n/**\n * Creates a new `ArrayBuffer` with the *copied* memory of the buffer instance.\n * Added in Node 0.12. Only available in browsers that support ArrayBuffer.\n */\nBuffer.prototype.toArrayBuffer = function toArrayBuffer () {\n if (typeof Uint8Array !== 'undefined') {\n if (Buffer.TYPED_ARRAY_SUPPORT) {\n return (new Buffer(this)).buffer\n } else {\n var buf = new Uint8Array(this.length)\n for (var i = 0, len = buf.length; i < len; i += 1) {\n buf[i] = this[i]\n }\n return buf.buffer\n }\n } else {\n throw new TypeError('Buffer.toArrayBuffer not supported in this browser')\n }\n}\n\n// HELPER FUNCTIONS\n// ================\n\nvar BP = Buffer.prototype\n\n/**\n * Augment a Uint8Array *instance* (not the Uint8Array class!) with Buffer methods\n */\nBuffer._augment = function _augment (arr) {\n arr.constructor = Buffer\n arr._isBuffer = true\n\n // save reference to original Uint8Array set method before overwriting\n arr._set = arr.set\n\n // deprecated\n arr.get = BP.get\n arr.set = BP.set\n\n arr.write = BP.write\n arr.toString = BP.toString\n arr.toLocaleString = BP.toString\n arr.toJSON = BP.toJSON\n arr.equals = BP.equals\n arr.compare = BP.compare\n arr.indexOf = BP.indexOf\n arr.copy = BP.copy\n arr.slice = BP.slice\n arr.readUIntLE = BP.readUIntLE\n arr.readUIntBE = BP.readUIntBE\n arr.readUInt8 = BP.readUInt8\n arr.readUInt16LE = BP.readUInt16LE\n arr.readUInt16BE = BP.readUInt16BE\n arr.readUInt32LE = BP.readUInt32LE\n arr.readUInt32BE = BP.readUInt32BE\n arr.readIntLE = BP.readIntLE\n arr.readIntBE = BP.readIntBE\n arr.readInt8 = BP.readInt8\n arr.readInt16LE = BP.readInt16LE\n arr.readInt16BE = BP.readInt16BE\n arr.readInt32LE = BP.readInt32LE\n arr.readInt32BE = BP.readInt32BE\n arr.readFloatLE = BP.readFloatLE\n arr.readFloatBE = BP.readFloatBE\n arr.readDoubleLE = BP.readDoubleLE\n arr.readDoubleBE = BP.readDoubleBE\n arr.writeUInt8 = BP.writeUInt8\n arr.writeUIntLE = BP.writeUIntLE\n arr.writeUIntBE = BP.writeUIntBE\n arr.writeUInt16LE = BP.writeUInt16LE\n arr.writeUInt16BE = BP.writeUInt16BE\n arr.writeUInt32LE = BP.writeUInt32LE\n arr.writeUInt32BE = BP.writeUInt32BE\n arr.writeIntLE = BP.writeIntLE\n arr.writeIntBE = BP.writeIntBE\n arr.writeInt8 = BP.writeInt8\n arr.writeInt16LE = BP.writeInt16LE\n arr.writeInt16BE = BP.writeInt16BE\n arr.writeInt32LE = BP.writeInt32LE\n arr.writeInt32BE = BP.writeInt32BE\n arr.writeFloatLE = BP.writeFloatLE\n arr.writeFloatBE = BP.writeFloatBE\n arr.writeDoubleLE = BP.writeDoubleLE\n arr.writeDoubleBE = BP.writeDoubleBE\n arr.fill = BP.fill\n arr.inspect = BP.inspect\n arr.toArrayBuffer = BP.toArrayBuffer\n\n return arr\n}\n\nvar INVALID_BASE64_RE = /[^+\\/0-9A-Za-z-_]/g\n\nfunction base64clean (str) {\n // Node strips out invalid characters like \\n and \\t from the string, base64-js does not\n str = stringtrim(str).replace(INVALID_BASE64_RE, '')\n // Node converts strings with length < 2 to ''\n if (str.length < 2) return ''\n // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not\n while (str.length % 4 !== 0) {\n str = str + '='\n }\n return str\n}\n\nfunction stringtrim (str) {\n if (str.trim) return str.trim()\n return str.replace(/^\\s+|\\s+$/g, '')\n}\n\nfunction toHex (n) {\n if (n < 16) return '0' + n.toString(16)\n return n.toString(16)\n}\n\nfunction utf8ToBytes (string, units) {\n units = units || Infinity\n var codePoint\n var length = string.length\n var leadSurrogate = null\n var bytes = []\n\n for (var i = 0; i < length; i++) {\n codePoint = string.charCodeAt(i)\n\n // is surrogate component\n if (codePoint > 0xD7FF && codePoint < 0xE000) {\n // last char was a lead\n if (!leadSurrogate) {\n // no lead yet\n if (codePoint > 0xDBFF) {\n // unexpected trail\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n continue\n } else if (i + 1 === length) {\n // unpaired lead\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n continue\n }\n\n // valid lead\n leadSurrogate = codePoint\n\n continue\n }\n\n // 2 leads in a row\n if (codePoint < 0xDC00) {\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n leadSurrogate = codePoint\n continue\n }\n\n // valid surrogate pair\n codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000\n } else if (leadSurrogate) {\n // valid bmp char, but last char was a lead\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n }\n\n leadSurrogate = null\n\n // encode utf8\n if (codePoint < 0x80) {\n if ((units -= 1) < 0) break\n bytes.push(codePoint)\n } else if (codePoint < 0x800) {\n if ((units -= 2) < 0) break\n bytes.push(\n codePoint >> 0x6 | 0xC0,\n codePoint & 0x3F | 0x80\n )\n } else if (codePoint < 0x10000) {\n if ((units -= 3) < 0) break\n bytes.push(\n codePoint >> 0xC | 0xE0,\n codePoint >> 0x6 & 0x3F | 0x80,\n codePoint & 0x3F | 0x80\n )\n } else if (codePoint < 0x110000) {\n if ((units -= 4) < 0) break\n bytes.push(\n codePoint >> 0x12 | 0xF0,\n codePoint >> 0xC & 0x3F | 0x80,\n codePoint >> 0x6 & 0x3F | 0x80,\n codePoint & 0x3F | 0x80\n )\n } else {\n throw new Error('Invalid code point')\n }\n }\n\n return bytes\n}\n\nfunction asciiToBytes (str) {\n var byteArray = []\n for (var i = 0; i < str.length; i++) {\n // Node's code seems to be doing this and not & 0x7F..\n byteArray.push(str.charCodeAt(i) & 0xFF)\n }\n return byteArray\n}\n\nfunction utf16leToBytes (str, units) {\n var c, hi, lo\n var byteArray = []\n for (var i = 0; i < str.length; i++) {\n if ((units -= 2) < 0) break\n\n c = str.charCodeAt(i)\n hi = c >> 8\n lo = c % 256\n byteArray.push(lo)\n byteArray.push(hi)\n }\n\n return byteArray\n}\n\nfunction base64ToBytes (str) {\n return base64.toByteArray(base64clean(str))\n}\n\nfunction blitBuffer (src, dst, offset, length) {\n for (var i = 0; i < length; i++) {\n if ((i + offset >= dst.length) || (i >= src.length)) break\n dst[i + offset] = src[i]\n }\n return i\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1).Buffer, (function() { return this; }())))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/buffer/index.js\n ** module id = 1\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/buffer/index.js?"); /***/ }, /* 2 */ /***/ function(module, exports, __webpack_require__) { - eval("var lookup = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';\n\n;(function (exports) {\n\t'use strict';\n\n var Arr = (typeof Uint8Array !== 'undefined')\n ? Uint8Array\n : Array\n\n\tvar PLUS = '+'.charCodeAt(0)\n\tvar SLASH = '/'.charCodeAt(0)\n\tvar NUMBER = '0'.charCodeAt(0)\n\tvar LOWER = 'a'.charCodeAt(0)\n\tvar UPPER = 'A'.charCodeAt(0)\n\tvar PLUS_URL_SAFE = '-'.charCodeAt(0)\n\tvar SLASH_URL_SAFE = '_'.charCodeAt(0)\n\n\tfunction decode (elt) {\n\t\tvar code = elt.charCodeAt(0)\n\t\tif (code === PLUS ||\n\t\t code === PLUS_URL_SAFE)\n\t\t\treturn 62 // '+'\n\t\tif (code === SLASH ||\n\t\t code === SLASH_URL_SAFE)\n\t\t\treturn 63 // '/'\n\t\tif (code < NUMBER)\n\t\t\treturn -1 //no match\n\t\tif (code < NUMBER + 10)\n\t\t\treturn code - NUMBER + 26 + 26\n\t\tif (code < UPPER + 26)\n\t\t\treturn code - UPPER\n\t\tif (code < LOWER + 26)\n\t\t\treturn code - LOWER + 26\n\t}\n\n\tfunction b64ToByteArray (b64) {\n\t\tvar i, j, l, tmp, placeHolders, arr\n\n\t\tif (b64.length % 4 > 0) {\n\t\t\tthrow new Error('Invalid string. Length must be a multiple of 4')\n\t\t}\n\n\t\t// the number of equal signs (place holders)\n\t\t// if there are two placeholders, than the two characters before it\n\t\t// represent one byte\n\t\t// if there is only one, then the three characters before it represent 2 bytes\n\t\t// this is just a cheap hack to not do indexOf twice\n\t\tvar len = b64.length\n\t\tplaceHolders = '=' === b64.charAt(len - 2) ? 2 : '=' === b64.charAt(len - 1) ? 1 : 0\n\n\t\t// base64 is 4/3 + up to two characters of the original data\n\t\tarr = new Arr(b64.length * 3 / 4 - placeHolders)\n\n\t\t// if there are placeholders, only get up to the last complete 4 chars\n\t\tl = placeHolders > 0 ? b64.length - 4 : b64.length\n\n\t\tvar L = 0\n\n\t\tfunction push (v) {\n\t\t\tarr[L++] = v\n\t\t}\n\n\t\tfor (i = 0, j = 0; i < l; i += 4, j += 3) {\n\t\t\ttmp = (decode(b64.charAt(i)) << 18) | (decode(b64.charAt(i + 1)) << 12) | (decode(b64.charAt(i + 2)) << 6) | decode(b64.charAt(i + 3))\n\t\t\tpush((tmp & 0xFF0000) >> 16)\n\t\t\tpush((tmp & 0xFF00) >> 8)\n\t\t\tpush(tmp & 0xFF)\n\t\t}\n\n\t\tif (placeHolders === 2) {\n\t\t\ttmp = (decode(b64.charAt(i)) << 2) | (decode(b64.charAt(i + 1)) >> 4)\n\t\t\tpush(tmp & 0xFF)\n\t\t} else if (placeHolders === 1) {\n\t\t\ttmp = (decode(b64.charAt(i)) << 10) | (decode(b64.charAt(i + 1)) << 4) | (decode(b64.charAt(i + 2)) >> 2)\n\t\t\tpush((tmp >> 8) & 0xFF)\n\t\t\tpush(tmp & 0xFF)\n\t\t}\n\n\t\treturn arr\n\t}\n\n\tfunction uint8ToBase64 (uint8) {\n\t\tvar i,\n\t\t\textraBytes = uint8.length % 3, // if we have 1 byte left, pad 2 bytes\n\t\t\toutput = \"\",\n\t\t\ttemp, length\n\n\t\tfunction encode (num) {\n\t\t\treturn lookup.charAt(num)\n\t\t}\n\n\t\tfunction tripletToBase64 (num) {\n\t\t\treturn encode(num >> 18 & 0x3F) + encode(num >> 12 & 0x3F) + encode(num >> 6 & 0x3F) + encode(num & 0x3F)\n\t\t}\n\n\t\t// go through the array every three bytes, we'll deal with trailing stuff later\n\t\tfor (i = 0, length = uint8.length - extraBytes; i < length; i += 3) {\n\t\t\ttemp = (uint8[i] << 16) + (uint8[i + 1] << 8) + (uint8[i + 2])\n\t\t\toutput += tripletToBase64(temp)\n\t\t}\n\n\t\t// pad the end with zeros, but make sure to not forget the extra bytes\n\t\tswitch (extraBytes) {\n\t\t\tcase 1:\n\t\t\t\ttemp = uint8[uint8.length - 1]\n\t\t\t\toutput += encode(temp >> 2)\n\t\t\t\toutput += encode((temp << 4) & 0x3F)\n\t\t\t\toutput += '=='\n\t\t\t\tbreak\n\t\t\tcase 2:\n\t\t\t\ttemp = (uint8[uint8.length - 2] << 8) + (uint8[uint8.length - 1])\n\t\t\t\toutput += encode(temp >> 10)\n\t\t\t\toutput += encode((temp >> 4) & 0x3F)\n\t\t\t\toutput += encode((temp << 2) & 0x3F)\n\t\t\t\toutput += '='\n\t\t\t\tbreak\n\t\t}\n\n\t\treturn output\n\t}\n\n\texports.toByteArray = b64ToByteArray\n\texports.fromByteArray = uint8ToBase64\n}( false ? (this.base64js = {}) : exports))\n\n\n/*****************\n ** WEBPACK FOOTER\n ** (webpack)/~/node-libs-browser/~/buffer/~/base64-js/lib/b64.js\n ** module id = 2\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///(webpack)/~/node-libs-browser/~/buffer/~/base64-js/lib/b64.js?"); + eval("var lookup = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';\n\n;(function (exports) {\n\t'use strict';\n\n var Arr = (typeof Uint8Array !== 'undefined')\n ? Uint8Array\n : Array\n\n\tvar PLUS = '+'.charCodeAt(0)\n\tvar SLASH = '/'.charCodeAt(0)\n\tvar NUMBER = '0'.charCodeAt(0)\n\tvar LOWER = 'a'.charCodeAt(0)\n\tvar UPPER = 'A'.charCodeAt(0)\n\tvar PLUS_URL_SAFE = '-'.charCodeAt(0)\n\tvar SLASH_URL_SAFE = '_'.charCodeAt(0)\n\n\tfunction decode (elt) {\n\t\tvar code = elt.charCodeAt(0)\n\t\tif (code === PLUS ||\n\t\t code === PLUS_URL_SAFE)\n\t\t\treturn 62 // '+'\n\t\tif (code === SLASH ||\n\t\t code === SLASH_URL_SAFE)\n\t\t\treturn 63 // '/'\n\t\tif (code < NUMBER)\n\t\t\treturn -1 //no match\n\t\tif (code < NUMBER + 10)\n\t\t\treturn code - NUMBER + 26 + 26\n\t\tif (code < UPPER + 26)\n\t\t\treturn code - UPPER\n\t\tif (code < LOWER + 26)\n\t\t\treturn code - LOWER + 26\n\t}\n\n\tfunction b64ToByteArray (b64) {\n\t\tvar i, j, l, tmp, placeHolders, arr\n\n\t\tif (b64.length % 4 > 0) {\n\t\t\tthrow new Error('Invalid string. Length must be a multiple of 4')\n\t\t}\n\n\t\t// the number of equal signs (place holders)\n\t\t// if there are two placeholders, than the two characters before it\n\t\t// represent one byte\n\t\t// if there is only one, then the three characters before it represent 2 bytes\n\t\t// this is just a cheap hack to not do indexOf twice\n\t\tvar len = b64.length\n\t\tplaceHolders = '=' === b64.charAt(len - 2) ? 2 : '=' === b64.charAt(len - 1) ? 1 : 0\n\n\t\t// base64 is 4/3 + up to two characters of the original data\n\t\tarr = new Arr(b64.length * 3 / 4 - placeHolders)\n\n\t\t// if there are placeholders, only get up to the last complete 4 chars\n\t\tl = placeHolders > 0 ? b64.length - 4 : b64.length\n\n\t\tvar L = 0\n\n\t\tfunction push (v) {\n\t\t\tarr[L++] = v\n\t\t}\n\n\t\tfor (i = 0, j = 0; i < l; i += 4, j += 3) {\n\t\t\ttmp = (decode(b64.charAt(i)) << 18) | (decode(b64.charAt(i + 1)) << 12) | (decode(b64.charAt(i + 2)) << 6) | decode(b64.charAt(i + 3))\n\t\t\tpush((tmp & 0xFF0000) >> 16)\n\t\t\tpush((tmp & 0xFF00) >> 8)\n\t\t\tpush(tmp & 0xFF)\n\t\t}\n\n\t\tif (placeHolders === 2) {\n\t\t\ttmp = (decode(b64.charAt(i)) << 2) | (decode(b64.charAt(i + 1)) >> 4)\n\t\t\tpush(tmp & 0xFF)\n\t\t} else if (placeHolders === 1) {\n\t\t\ttmp = (decode(b64.charAt(i)) << 10) | (decode(b64.charAt(i + 1)) << 4) | (decode(b64.charAt(i + 2)) >> 2)\n\t\t\tpush((tmp >> 8) & 0xFF)\n\t\t\tpush(tmp & 0xFF)\n\t\t}\n\n\t\treturn arr\n\t}\n\n\tfunction uint8ToBase64 (uint8) {\n\t\tvar i,\n\t\t\textraBytes = uint8.length % 3, // if we have 1 byte left, pad 2 bytes\n\t\t\toutput = \"\",\n\t\t\ttemp, length\n\n\t\tfunction encode (num) {\n\t\t\treturn lookup.charAt(num)\n\t\t}\n\n\t\tfunction tripletToBase64 (num) {\n\t\t\treturn encode(num >> 18 & 0x3F) + encode(num >> 12 & 0x3F) + encode(num >> 6 & 0x3F) + encode(num & 0x3F)\n\t\t}\n\n\t\t// go through the array every three bytes, we'll deal with trailing stuff later\n\t\tfor (i = 0, length = uint8.length - extraBytes; i < length; i += 3) {\n\t\t\ttemp = (uint8[i] << 16) + (uint8[i + 1] << 8) + (uint8[i + 2])\n\t\t\toutput += tripletToBase64(temp)\n\t\t}\n\n\t\t// pad the end with zeros, but make sure to not forget the extra bytes\n\t\tswitch (extraBytes) {\n\t\t\tcase 1:\n\t\t\t\ttemp = uint8[uint8.length - 1]\n\t\t\t\toutput += encode(temp >> 2)\n\t\t\t\toutput += encode((temp << 4) & 0x3F)\n\t\t\t\toutput += '=='\n\t\t\t\tbreak\n\t\t\tcase 2:\n\t\t\t\ttemp = (uint8[uint8.length - 2] << 8) + (uint8[uint8.length - 1])\n\t\t\t\toutput += encode(temp >> 10)\n\t\t\t\toutput += encode((temp >> 4) & 0x3F)\n\t\t\t\toutput += encode((temp << 2) & 0x3F)\n\t\t\t\toutput += '='\n\t\t\t\tbreak\n\t\t}\n\n\t\treturn output\n\t}\n\n\texports.toByteArray = b64ToByteArray\n\texports.fromByteArray = uint8ToBase64\n}( false ? (this.base64js = {}) : exports))\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/base64-js/lib/b64.js\n ** module id = 2\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/base64-js/lib/b64.js?"); /***/ }, /* 3 */ /***/ function(module, exports) { - eval("exports.read = function (buffer, offset, isLE, mLen, nBytes) {\n var e, m\n var eLen = nBytes * 8 - mLen - 1\n var eMax = (1 << eLen) - 1\n var eBias = eMax >> 1\n var nBits = -7\n var i = isLE ? (nBytes - 1) : 0\n var d = isLE ? -1 : 1\n var s = buffer[offset + i]\n\n i += d\n\n e = s & ((1 << (-nBits)) - 1)\n s >>= (-nBits)\n nBits += eLen\n for (; nBits > 0; e = e * 256 + buffer[offset + i], i += d, nBits -= 8) {}\n\n m = e & ((1 << (-nBits)) - 1)\n e >>= (-nBits)\n nBits += mLen\n for (; nBits > 0; m = m * 256 + buffer[offset + i], i += d, nBits -= 8) {}\n\n if (e === 0) {\n e = 1 - eBias\n } else if (e === eMax) {\n return m ? NaN : ((s ? -1 : 1) * Infinity)\n } else {\n m = m + Math.pow(2, mLen)\n e = e - eBias\n }\n return (s ? -1 : 1) * m * Math.pow(2, e - mLen)\n}\n\nexports.write = function (buffer, value, offset, isLE, mLen, nBytes) {\n var e, m, c\n var eLen = nBytes * 8 - mLen - 1\n var eMax = (1 << eLen) - 1\n var eBias = eMax >> 1\n var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)\n var i = isLE ? 0 : (nBytes - 1)\n var d = isLE ? 1 : -1\n var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0\n\n value = Math.abs(value)\n\n if (isNaN(value) || value === Infinity) {\n m = isNaN(value) ? 1 : 0\n e = eMax\n } else {\n e = Math.floor(Math.log(value) / Math.LN2)\n if (value * (c = Math.pow(2, -e)) < 1) {\n e--\n c *= 2\n }\n if (e + eBias >= 1) {\n value += rt / c\n } else {\n value += rt * Math.pow(2, 1 - eBias)\n }\n if (value * c >= 2) {\n e++\n c /= 2\n }\n\n if (e + eBias >= eMax) {\n m = 0\n e = eMax\n } else if (e + eBias >= 1) {\n m = (value * c - 1) * Math.pow(2, mLen)\n e = e + eBias\n } else {\n m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)\n e = 0\n }\n }\n\n for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}\n\n e = (e << mLen) | m\n eLen += mLen\n for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}\n\n buffer[offset + i - d] |= s * 128\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** (webpack)/~/node-libs-browser/~/buffer/~/ieee754/index.js\n ** module id = 3\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///(webpack)/~/node-libs-browser/~/buffer/~/ieee754/index.js?"); + eval("exports.read = function (buffer, offset, isLE, mLen, nBytes) {\n var e, m\n var eLen = nBytes * 8 - mLen - 1\n var eMax = (1 << eLen) - 1\n var eBias = eMax >> 1\n var nBits = -7\n var i = isLE ? (nBytes - 1) : 0\n var d = isLE ? -1 : 1\n var s = buffer[offset + i]\n\n i += d\n\n e = s & ((1 << (-nBits)) - 1)\n s >>= (-nBits)\n nBits += eLen\n for (; nBits > 0; e = e * 256 + buffer[offset + i], i += d, nBits -= 8) {}\n\n m = e & ((1 << (-nBits)) - 1)\n e >>= (-nBits)\n nBits += mLen\n for (; nBits > 0; m = m * 256 + buffer[offset + i], i += d, nBits -= 8) {}\n\n if (e === 0) {\n e = 1 - eBias\n } else if (e === eMax) {\n return m ? NaN : ((s ? -1 : 1) * Infinity)\n } else {\n m = m + Math.pow(2, mLen)\n e = e - eBias\n }\n return (s ? -1 : 1) * m * Math.pow(2, e - mLen)\n}\n\nexports.write = function (buffer, value, offset, isLE, mLen, nBytes) {\n var e, m, c\n var eLen = nBytes * 8 - mLen - 1\n var eMax = (1 << eLen) - 1\n var eBias = eMax >> 1\n var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)\n var i = isLE ? 0 : (nBytes - 1)\n var d = isLE ? 1 : -1\n var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0\n\n value = Math.abs(value)\n\n if (isNaN(value) || value === Infinity) {\n m = isNaN(value) ? 1 : 0\n e = eMax\n } else {\n e = Math.floor(Math.log(value) / Math.LN2)\n if (value * (c = Math.pow(2, -e)) < 1) {\n e--\n c *= 2\n }\n if (e + eBias >= 1) {\n value += rt / c\n } else {\n value += rt * Math.pow(2, 1 - eBias)\n }\n if (value * c >= 2) {\n e++\n c /= 2\n }\n\n if (e + eBias >= eMax) {\n m = 0\n e = eMax\n } else if (e + eBias >= 1) {\n m = (value * c - 1) * Math.pow(2, mLen)\n e = e + eBias\n } else {\n m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)\n e = 0\n }\n }\n\n for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}\n\n e = (e << mLen) | m\n eLen += mLen\n for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}\n\n buffer[offset + i - d] |= s * 128\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/ieee754/index.js\n ** module id = 3\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/ieee754/index.js?"); /***/ }, /* 4 */ /***/ function(module, exports) { - eval("var toString = {}.toString;\n\nmodule.exports = Array.isArray || function (arr) {\n return toString.call(arr) == '[object Array]';\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** (webpack)/~/node-libs-browser/~/buffer/~/isarray/index.js\n ** module id = 4\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///(webpack)/~/node-libs-browser/~/buffer/~/isarray/index.js?"); + eval("var toString = {}.toString;\n\nmodule.exports = Array.isArray || function (arr) {\n return toString.call(arr) == '[object Array]';\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/buffer/~/isarray/index.js\n ** module id = 4\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/buffer/~/isarray/index.js?"); /***/ }, /* 5 */ @@ -81,583 +81,583 @@ var ipfsAPI = /* 6 */ /***/ function(module, exports, __webpack_require__) { - eval("__webpack_require__(7);\nmodule.exports = __webpack_require__(10).Object.assign;\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/~/core-js/library/fn/object/assign.js\n ** module id = 6\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/babel-runtime/~/core-js/library/fn/object/assign.js?"); + eval("__webpack_require__(7);\nmodule.exports = __webpack_require__(10).Object.assign;\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/object/assign.js\n ** module id = 6\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/fn/object/assign.js?"); /***/ }, /* 7 */ /***/ function(module, exports, __webpack_require__) { - eval("// 19.1.3.1 Object.assign(target, source)\nvar $export = __webpack_require__(8);\n\n$export($export.S + $export.F, 'Object', {assign: __webpack_require__(13)});\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/~/core-js/library/modules/es6.object.assign.js\n ** module id = 7\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/babel-runtime/~/core-js/library/modules/es6.object.assign.js?"); + eval("// 19.1.3.1 Object.assign(target, source)\nvar $export = __webpack_require__(8);\n\n$export($export.S + $export.F, 'Object', {assign: __webpack_require__(13)});\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/es6.object.assign.js\n ** module id = 7\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/modules/es6.object.assign.js?"); /***/ }, /* 8 */ /***/ function(module, exports, __webpack_require__) { - eval("var global = __webpack_require__(9)\n , core = __webpack_require__(10)\n , ctx = __webpack_require__(11)\n , PROTOTYPE = 'prototype';\n\nvar $export = function(type, name, source){\n var IS_FORCED = type & $export.F\n , IS_GLOBAL = type & $export.G\n , IS_STATIC = type & $export.S\n , IS_PROTO = type & $export.P\n , IS_BIND = type & $export.B\n , IS_WRAP = type & $export.W\n , exports = IS_GLOBAL ? core : core[name] || (core[name] = {})\n , target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE]\n , key, own, out;\n if(IS_GLOBAL)source = name;\n for(key in source){\n // contains in native\n own = !IS_FORCED && target && key in target;\n if(own && key in exports)continue;\n // export native or passed\n out = own ? target[key] : source[key];\n // prevent global pollution for namespaces\n exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]\n // bind timers to global for call from export context\n : IS_BIND && own ? ctx(out, global)\n // wrap global constructors for prevent change them in library\n : IS_WRAP && target[key] == out ? (function(C){\n var F = function(param){\n return this instanceof C ? new C(param) : C(param);\n };\n F[PROTOTYPE] = C[PROTOTYPE];\n return F;\n // make static versions for prototype methods\n })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;\n if(IS_PROTO)(exports[PROTOTYPE] || (exports[PROTOTYPE] = {}))[key] = out;\n }\n};\n// type bitmap\n$export.F = 1; // forced\n$export.G = 2; // global\n$export.S = 4; // static\n$export.P = 8; // proto\n$export.B = 16; // bind\n$export.W = 32; // wrap\nmodule.exports = $export;\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/~/core-js/library/modules/$.export.js\n ** module id = 8\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/babel-runtime/~/core-js/library/modules/$.export.js?"); + eval("var global = __webpack_require__(9)\n , core = __webpack_require__(10)\n , ctx = __webpack_require__(11)\n , PROTOTYPE = 'prototype';\n\nvar $export = function(type, name, source){\n var IS_FORCED = type & $export.F\n , IS_GLOBAL = type & $export.G\n , IS_STATIC = type & $export.S\n , IS_PROTO = type & $export.P\n , IS_BIND = type & $export.B\n , IS_WRAP = type & $export.W\n , exports = IS_GLOBAL ? core : core[name] || (core[name] = {})\n , target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE]\n , key, own, out;\n if(IS_GLOBAL)source = name;\n for(key in source){\n // contains in native\n own = !IS_FORCED && target && key in target;\n if(own && key in exports)continue;\n // export native or passed\n out = own ? target[key] : source[key];\n // prevent global pollution for namespaces\n exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key]\n // bind timers to global for call from export context\n : IS_BIND && own ? ctx(out, global)\n // wrap global constructors for prevent change them in library\n : IS_WRAP && target[key] == out ? (function(C){\n var F = function(param){\n return this instanceof C ? new C(param) : C(param);\n };\n F[PROTOTYPE] = C[PROTOTYPE];\n return F;\n // make static versions for prototype methods\n })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;\n if(IS_PROTO)(exports[PROTOTYPE] || (exports[PROTOTYPE] = {}))[key] = out;\n }\n};\n// type bitmap\n$export.F = 1; // forced\n$export.G = 2; // global\n$export.S = 4; // static\n$export.P = 8; // proto\n$export.B = 16; // bind\n$export.W = 32; // wrap\nmodule.exports = $export;\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.export.js\n ** module id = 8\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/modules/$.export.js?"); /***/ }, /* 9 */ /***/ function(module, exports) { - eval("// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nvar global = module.exports = typeof window != 'undefined' && window.Math == Math\n ? window : typeof self != 'undefined' && self.Math == Math ? self : Function('return this')();\nif(typeof __g == 'number')__g = global; // eslint-disable-line no-undef\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/~/core-js/library/modules/$.global.js\n ** module id = 9\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/babel-runtime/~/core-js/library/modules/$.global.js?"); + eval("// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nvar global = module.exports = typeof window != 'undefined' && window.Math == Math\n ? window : typeof self != 'undefined' && self.Math == Math ? self : Function('return this')();\nif(typeof __g == 'number')__g = global; // eslint-disable-line no-undef\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.global.js\n ** module id = 9\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/modules/$.global.js?"); /***/ }, /* 10 */ /***/ function(module, exports) { - eval("var core = module.exports = {version: '1.2.6'};\nif(typeof __e == 'number')__e = core; // eslint-disable-line no-undef\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/~/core-js/library/modules/$.core.js\n ** module id = 10\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/babel-runtime/~/core-js/library/modules/$.core.js?"); + eval("var core = module.exports = {version: '1.2.6'};\nif(typeof __e == 'number')__e = core; // eslint-disable-line no-undef\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.core.js\n ** module id = 10\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/modules/$.core.js?"); /***/ }, /* 11 */ /***/ function(module, exports, __webpack_require__) { - eval("// optional / simple context binding\nvar aFunction = __webpack_require__(12);\nmodule.exports = function(fn, that, length){\n aFunction(fn);\n if(that === undefined)return fn;\n switch(length){\n case 1: return function(a){\n return fn.call(that, a);\n };\n case 2: return function(a, b){\n return fn.call(that, a, b);\n };\n case 3: return function(a, b, c){\n return fn.call(that, a, b, c);\n };\n }\n return function(/* ...args */){\n return fn.apply(that, arguments);\n };\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/~/core-js/library/modules/$.ctx.js\n ** module id = 11\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/babel-runtime/~/core-js/library/modules/$.ctx.js?"); + eval("// optional / simple context binding\nvar aFunction = __webpack_require__(12);\nmodule.exports = function(fn, that, length){\n aFunction(fn);\n if(that === undefined)return fn;\n switch(length){\n case 1: return function(a){\n return fn.call(that, a);\n };\n case 2: return function(a, b){\n return fn.call(that, a, b);\n };\n case 3: return function(a, b, c){\n return fn.call(that, a, b, c);\n };\n }\n return function(/* ...args */){\n return fn.apply(that, arguments);\n };\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.ctx.js\n ** module id = 11\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/modules/$.ctx.js?"); /***/ }, /* 12 */ /***/ function(module, exports) { - eval("module.exports = function(it){\n if(typeof it != 'function')throw TypeError(it + ' is not a function!');\n return it;\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/~/core-js/library/modules/$.a-function.js\n ** module id = 12\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/babel-runtime/~/core-js/library/modules/$.a-function.js?"); + eval("module.exports = function(it){\n if(typeof it != 'function')throw TypeError(it + ' is not a function!');\n return it;\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.a-function.js\n ** module id = 12\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/modules/$.a-function.js?"); /***/ }, /* 13 */ /***/ function(module, exports, __webpack_require__) { - eval("// 19.1.2.1 Object.assign(target, source, ...)\nvar $ = __webpack_require__(14)\n , toObject = __webpack_require__(15)\n , IObject = __webpack_require__(17);\n\n// should work with symbols and should have deterministic property order (V8 bug)\nmodule.exports = __webpack_require__(19)(function(){\n var a = Object.assign\n , A = {}\n , B = {}\n , S = Symbol()\n , K = 'abcdefghijklmnopqrst';\n A[S] = 7;\n K.split('').forEach(function(k){ B[k] = k; });\n return a({}, A)[S] != 7 || Object.keys(a({}, B)).join('') != K;\n}) ? function assign(target, source){ // eslint-disable-line no-unused-vars\n var T = toObject(target)\n , $$ = arguments\n , $$len = $$.length\n , index = 1\n , getKeys = $.getKeys\n , getSymbols = $.getSymbols\n , isEnum = $.isEnum;\n while($$len > index){\n var S = IObject($$[index++])\n , keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S)\n , length = keys.length\n , j = 0\n , key;\n while(length > j)if(isEnum.call(S, key = keys[j++]))T[key] = S[key];\n }\n return T;\n} : Object.assign;\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/~/core-js/library/modules/$.object-assign.js\n ** module id = 13\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/babel-runtime/~/core-js/library/modules/$.object-assign.js?"); + eval("// 19.1.2.1 Object.assign(target, source, ...)\nvar $ = __webpack_require__(14)\n , toObject = __webpack_require__(15)\n , IObject = __webpack_require__(17);\n\n// should work with symbols and should have deterministic property order (V8 bug)\nmodule.exports = __webpack_require__(19)(function(){\n var a = Object.assign\n , A = {}\n , B = {}\n , S = Symbol()\n , K = 'abcdefghijklmnopqrst';\n A[S] = 7;\n K.split('').forEach(function(k){ B[k] = k; });\n return a({}, A)[S] != 7 || Object.keys(a({}, B)).join('') != K;\n}) ? function assign(target, source){ // eslint-disable-line no-unused-vars\n var T = toObject(target)\n , $$ = arguments\n , $$len = $$.length\n , index = 1\n , getKeys = $.getKeys\n , getSymbols = $.getSymbols\n , isEnum = $.isEnum;\n while($$len > index){\n var S = IObject($$[index++])\n , keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S)\n , length = keys.length\n , j = 0\n , key;\n while(length > j)if(isEnum.call(S, key = keys[j++]))T[key] = S[key];\n }\n return T;\n} : Object.assign;\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.object-assign.js\n ** module id = 13\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/modules/$.object-assign.js?"); /***/ }, /* 14 */ /***/ function(module, exports) { - eval("var $Object = Object;\nmodule.exports = {\n create: $Object.create,\n getProto: $Object.getPrototypeOf,\n isEnum: {}.propertyIsEnumerable,\n getDesc: $Object.getOwnPropertyDescriptor,\n setDesc: $Object.defineProperty,\n setDescs: $Object.defineProperties,\n getKeys: $Object.keys,\n getNames: $Object.getOwnPropertyNames,\n getSymbols: $Object.getOwnPropertySymbols,\n each: [].forEach\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/~/core-js/library/modules/$.js\n ** module id = 14\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/babel-runtime/~/core-js/library/modules/$.js?"); + eval("var $Object = Object;\nmodule.exports = {\n create: $Object.create,\n getProto: $Object.getPrototypeOf,\n isEnum: {}.propertyIsEnumerable,\n getDesc: $Object.getOwnPropertyDescriptor,\n setDesc: $Object.defineProperty,\n setDescs: $Object.defineProperties,\n getKeys: $Object.keys,\n getNames: $Object.getOwnPropertyNames,\n getSymbols: $Object.getOwnPropertySymbols,\n each: [].forEach\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.js\n ** module id = 14\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/modules/$.js?"); /***/ }, /* 15 */ /***/ function(module, exports, __webpack_require__) { - eval("// 7.1.13 ToObject(argument)\nvar defined = __webpack_require__(16);\nmodule.exports = function(it){\n return Object(defined(it));\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/~/core-js/library/modules/$.to-object.js\n ** module id = 15\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/babel-runtime/~/core-js/library/modules/$.to-object.js?"); + eval("// 7.1.13 ToObject(argument)\nvar defined = __webpack_require__(16);\nmodule.exports = function(it){\n return Object(defined(it));\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.to-object.js\n ** module id = 15\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/modules/$.to-object.js?"); /***/ }, /* 16 */ /***/ function(module, exports) { - eval("// 7.2.1 RequireObjectCoercible(argument)\nmodule.exports = function(it){\n if(it == undefined)throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/~/core-js/library/modules/$.defined.js\n ** module id = 16\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/babel-runtime/~/core-js/library/modules/$.defined.js?"); + eval("// 7.2.1 RequireObjectCoercible(argument)\nmodule.exports = function(it){\n if(it == undefined)throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.defined.js\n ** module id = 16\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/modules/$.defined.js?"); /***/ }, /* 17 */ /***/ function(module, exports, __webpack_require__) { - eval("// fallback for non-array-like ES3 and non-enumerable old V8 strings\nvar cof = __webpack_require__(18);\nmodule.exports = Object('z').propertyIsEnumerable(0) ? Object : function(it){\n return cof(it) == 'String' ? it.split('') : Object(it);\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/~/core-js/library/modules/$.iobject.js\n ** module id = 17\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/babel-runtime/~/core-js/library/modules/$.iobject.js?"); + eval("// fallback for non-array-like ES3 and non-enumerable old V8 strings\nvar cof = __webpack_require__(18);\nmodule.exports = Object('z').propertyIsEnumerable(0) ? Object : function(it){\n return cof(it) == 'String' ? it.split('') : Object(it);\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.iobject.js\n ** module id = 17\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/modules/$.iobject.js?"); /***/ }, /* 18 */ /***/ function(module, exports) { - eval("var toString = {}.toString;\n\nmodule.exports = function(it){\n return toString.call(it).slice(8, -1);\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/~/core-js/library/modules/$.cof.js\n ** module id = 18\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/babel-runtime/~/core-js/library/modules/$.cof.js?"); + eval("var toString = {}.toString;\n\nmodule.exports = function(it){\n return toString.call(it).slice(8, -1);\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.cof.js\n ** module id = 18\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/modules/$.cof.js?"); /***/ }, /* 19 */ /***/ function(module, exports) { - eval("module.exports = function(exec){\n try {\n return !!exec();\n } catch(e){\n return true;\n }\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/~/core-js/library/modules/$.fails.js\n ** module id = 19\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/babel-runtime/~/core-js/library/modules/$.fails.js?"); + eval("module.exports = function(exec){\n try {\n return !!exec();\n } catch(e){\n return true;\n }\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.fails.js\n ** module id = 19\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/modules/$.fails.js?"); /***/ }, /* 20 */ /***/ function(module, exports, __webpack_require__) { - eval("\"use strict\";\n\nexports.__esModule = true;\n\nvar _symbol = __webpack_require__(21);\n\nvar _symbol2 = _interopRequireDefault(_symbol);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction _typeof(obj) { return obj && typeof _Symbol !== \"undefined\" && obj.constructor === _Symbol ? \"symbol\" : typeof obj; }\n\nexports.default = function (obj) {\n return obj && typeof _symbol2.default !== \"undefined\" && obj.constructor === _symbol2.default ? \"symbol\" : typeof obj === \"undefined\" ? \"undefined\" : _typeof(obj);\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/helpers/typeof.js\n ** module id = 20\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/babel-runtime/helpers/typeof.js?"); + eval("\"use strict\";\n\nvar _typeof = typeof _Symbol === \"function\" && typeof _Symbol$iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof _Symbol === \"function\" && obj.constructor === _Symbol ? \"symbol\" : typeof obj; };\n\nexports.__esModule = true;\n\nvar _iterator = __webpack_require__(21);\n\nvar _iterator2 = _interopRequireDefault(_iterator);\n\nvar _symbol = __webpack_require__(44);\n\nvar _symbol2 = _interopRequireDefault(_symbol);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = typeof _symbol2.default === \"function\" && _typeof(_iterator2.default) === \"symbol\" ? function (obj) {\n return typeof obj === \"undefined\" ? \"undefined\" : _typeof(obj);\n} : function (obj) {\n return obj && typeof _symbol2.default === \"function\" && obj.constructor === _symbol2.default ? \"symbol\" : typeof obj === \"undefined\" ? \"undefined\" : _typeof(obj);\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/helpers/typeof.js\n ** module id = 20\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/babel-runtime/helpers/typeof.js?"); /***/ }, /* 21 */ /***/ function(module, exports, __webpack_require__) { - eval("module.exports = { \"default\": __webpack_require__(22), __esModule: true };\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/symbol.js\n ** module id = 21\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/babel-runtime/core-js/symbol.js?"); + eval("module.exports = { \"default\": __webpack_require__(22), __esModule: true };\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/symbol/iterator.js\n ** module id = 21\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/babel-runtime/core-js/symbol/iterator.js?"); /***/ }, /* 22 */ /***/ function(module, exports, __webpack_require__) { - eval("__webpack_require__(23);\n__webpack_require__(41);\nmodule.exports = __webpack_require__(10).Symbol;\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/~/core-js/library/fn/symbol/index.js\n ** module id = 22\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/babel-runtime/~/core-js/library/fn/symbol/index.js?"); + eval("__webpack_require__(23);\n__webpack_require__(39);\nmodule.exports = __webpack_require__(36)('iterator');\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/symbol/iterator.js\n ** module id = 22\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/fn/symbol/iterator.js?"); /***/ }, /* 23 */ /***/ function(module, exports, __webpack_require__) { - eval("'use strict';\n// ECMAScript 6 symbols shim\nvar $ = __webpack_require__(14)\n , global = __webpack_require__(9)\n , has = __webpack_require__(24)\n , DESCRIPTORS = __webpack_require__(25)\n , $export = __webpack_require__(8)\n , redefine = __webpack_require__(26)\n , $fails = __webpack_require__(19)\n , shared = __webpack_require__(29)\n , setToStringTag = __webpack_require__(30)\n , uid = __webpack_require__(32)\n , wks = __webpack_require__(31)\n , keyOf = __webpack_require__(33)\n , $names = __webpack_require__(35)\n , enumKeys = __webpack_require__(36)\n , isArray = __webpack_require__(37)\n , anObject = __webpack_require__(38)\n , toIObject = __webpack_require__(34)\n , createDesc = __webpack_require__(28)\n , getDesc = $.getDesc\n , setDesc = $.setDesc\n , _create = $.create\n , getNames = $names.get\n , $Symbol = global.Symbol\n , $JSON = global.JSON\n , _stringify = $JSON && $JSON.stringify\n , setter = false\n , HIDDEN = wks('_hidden')\n , isEnum = $.isEnum\n , SymbolRegistry = shared('symbol-registry')\n , AllSymbols = shared('symbols')\n , useNative = typeof $Symbol == 'function'\n , ObjectProto = Object.prototype;\n\n// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687\nvar setSymbolDesc = DESCRIPTORS && $fails(function(){\n return _create(setDesc({}, 'a', {\n get: function(){ return setDesc(this, 'a', {value: 7}).a; }\n })).a != 7;\n}) ? function(it, key, D){\n var protoDesc = getDesc(ObjectProto, key);\n if(protoDesc)delete ObjectProto[key];\n setDesc(it, key, D);\n if(protoDesc && it !== ObjectProto)setDesc(ObjectProto, key, protoDesc);\n} : setDesc;\n\nvar wrap = function(tag){\n var sym = AllSymbols[tag] = _create($Symbol.prototype);\n sym._k = tag;\n DESCRIPTORS && setter && setSymbolDesc(ObjectProto, tag, {\n configurable: true,\n set: function(value){\n if(has(this, HIDDEN) && has(this[HIDDEN], tag))this[HIDDEN][tag] = false;\n setSymbolDesc(this, tag, createDesc(1, value));\n }\n });\n return sym;\n};\n\nvar isSymbol = function(it){\n return typeof it == 'symbol';\n};\n\nvar $defineProperty = function defineProperty(it, key, D){\n if(D && has(AllSymbols, key)){\n if(!D.enumerable){\n if(!has(it, HIDDEN))setDesc(it, HIDDEN, createDesc(1, {}));\n it[HIDDEN][key] = true;\n } else {\n if(has(it, HIDDEN) && it[HIDDEN][key])it[HIDDEN][key] = false;\n D = _create(D, {enumerable: createDesc(0, false)});\n } return setSymbolDesc(it, key, D);\n } return setDesc(it, key, D);\n};\nvar $defineProperties = function defineProperties(it, P){\n anObject(it);\n var keys = enumKeys(P = toIObject(P))\n , i = 0\n , l = keys.length\n , key;\n while(l > i)$defineProperty(it, key = keys[i++], P[key]);\n return it;\n};\nvar $create = function create(it, P){\n return P === undefined ? _create(it) : $defineProperties(_create(it), P);\n};\nvar $propertyIsEnumerable = function propertyIsEnumerable(key){\n var E = isEnum.call(this, key);\n return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key]\n ? E : true;\n};\nvar $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key){\n var D = getDesc(it = toIObject(it), key);\n if(D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key]))D.enumerable = true;\n return D;\n};\nvar $getOwnPropertyNames = function getOwnPropertyNames(it){\n var names = getNames(toIObject(it))\n , result = []\n , i = 0\n , key;\n while(names.length > i)if(!has(AllSymbols, key = names[i++]) && key != HIDDEN)result.push(key);\n return result;\n};\nvar $getOwnPropertySymbols = function getOwnPropertySymbols(it){\n var names = getNames(toIObject(it))\n , result = []\n , i = 0\n , key;\n while(names.length > i)if(has(AllSymbols, key = names[i++]))result.push(AllSymbols[key]);\n return result;\n};\nvar $stringify = function stringify(it){\n if(it === undefined || isSymbol(it))return; // IE8 returns string on undefined\n var args = [it]\n , i = 1\n , $$ = arguments\n , replacer, $replacer;\n while($$.length > i)args.push($$[i++]);\n replacer = args[1];\n if(typeof replacer == 'function')$replacer = replacer;\n if($replacer || !isArray(replacer))replacer = function(key, value){\n if($replacer)value = $replacer.call(this, key, value);\n if(!isSymbol(value))return value;\n };\n args[1] = replacer;\n return _stringify.apply($JSON, args);\n};\nvar buggyJSON = $fails(function(){\n var S = $Symbol();\n // MS Edge converts symbol values to JSON as {}\n // WebKit converts symbol values to JSON as null\n // V8 throws on boxed symbols\n return _stringify([S]) != '[null]' || _stringify({a: S}) != '{}' || _stringify(Object(S)) != '{}';\n});\n\n// 19.4.1.1 Symbol([description])\nif(!useNative){\n $Symbol = function Symbol(){\n if(isSymbol(this))throw TypeError('Symbol is not a constructor');\n return wrap(uid(arguments.length > 0 ? arguments[0] : undefined));\n };\n redefine($Symbol.prototype, 'toString', function toString(){\n return this._k;\n });\n\n isSymbol = function(it){\n return it instanceof $Symbol;\n };\n\n $.create = $create;\n $.isEnum = $propertyIsEnumerable;\n $.getDesc = $getOwnPropertyDescriptor;\n $.setDesc = $defineProperty;\n $.setDescs = $defineProperties;\n $.getNames = $names.get = $getOwnPropertyNames;\n $.getSymbols = $getOwnPropertySymbols;\n\n if(DESCRIPTORS && !__webpack_require__(40)){\n redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);\n }\n}\n\nvar symbolStatics = {\n // 19.4.2.1 Symbol.for(key)\n 'for': function(key){\n return has(SymbolRegistry, key += '')\n ? SymbolRegistry[key]\n : SymbolRegistry[key] = $Symbol(key);\n },\n // 19.4.2.5 Symbol.keyFor(sym)\n keyFor: function keyFor(key){\n return keyOf(SymbolRegistry, key);\n },\n useSetter: function(){ setter = true; },\n useSimple: function(){ setter = false; }\n};\n// 19.4.2.2 Symbol.hasInstance\n// 19.4.2.3 Symbol.isConcatSpreadable\n// 19.4.2.4 Symbol.iterator\n// 19.4.2.6 Symbol.match\n// 19.4.2.8 Symbol.replace\n// 19.4.2.9 Symbol.search\n// 19.4.2.10 Symbol.species\n// 19.4.2.11 Symbol.split\n// 19.4.2.12 Symbol.toPrimitive\n// 19.4.2.13 Symbol.toStringTag\n// 19.4.2.14 Symbol.unscopables\n$.each.call((\n 'hasInstance,isConcatSpreadable,iterator,match,replace,search,' +\n 'species,split,toPrimitive,toStringTag,unscopables'\n).split(','), function(it){\n var sym = wks(it);\n symbolStatics[it] = useNative ? sym : wrap(sym);\n});\n\nsetter = true;\n\n$export($export.G + $export.W, {Symbol: $Symbol});\n\n$export($export.S, 'Symbol', symbolStatics);\n\n$export($export.S + $export.F * !useNative, 'Object', {\n // 19.1.2.2 Object.create(O [, Properties])\n create: $create,\n // 19.1.2.4 Object.defineProperty(O, P, Attributes)\n defineProperty: $defineProperty,\n // 19.1.2.3 Object.defineProperties(O, Properties)\n defineProperties: $defineProperties,\n // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)\n getOwnPropertyDescriptor: $getOwnPropertyDescriptor,\n // 19.1.2.7 Object.getOwnPropertyNames(O)\n getOwnPropertyNames: $getOwnPropertyNames,\n // 19.1.2.8 Object.getOwnPropertySymbols(O)\n getOwnPropertySymbols: $getOwnPropertySymbols\n});\n\n// 24.3.2 JSON.stringify(value [, replacer [, space]])\n$JSON && $export($export.S + $export.F * (!useNative || buggyJSON), 'JSON', {stringify: $stringify});\n\n// 19.4.3.5 Symbol.prototype[@@toStringTag]\nsetToStringTag($Symbol, 'Symbol');\n// 20.2.1.9 Math[@@toStringTag]\nsetToStringTag(Math, 'Math', true);\n// 24.3.3 JSON[@@toStringTag]\nsetToStringTag(global.JSON, 'JSON', true);\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/~/core-js/library/modules/es6.symbol.js\n ** module id = 23\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/babel-runtime/~/core-js/library/modules/es6.symbol.js?"); + eval("'use strict';\nvar $at = __webpack_require__(24)(true);\n\n// 21.1.3.27 String.prototype[@@iterator]()\n__webpack_require__(26)(String, 'String', function(iterated){\n this._t = String(iterated); // target\n this._i = 0; // next index\n// 21.1.5.2.1 %StringIteratorPrototype%.next()\n}, function(){\n var O = this._t\n , index = this._i\n , point;\n if(index >= O.length)return {value: undefined, done: true};\n point = $at(O, index);\n this._i += point.length;\n return {value: point, done: false};\n});\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/es6.string.iterator.js\n ** module id = 23\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/modules/es6.string.iterator.js?"); /***/ }, /* 24 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("var hasOwnProperty = {}.hasOwnProperty;\nmodule.exports = function(it, key){\n return hasOwnProperty.call(it, key);\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/~/core-js/library/modules/$.has.js\n ** module id = 24\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/babel-runtime/~/core-js/library/modules/$.has.js?"); + eval("var toInteger = __webpack_require__(25)\n , defined = __webpack_require__(16);\n// true -> String#at\n// false -> String#codePointAt\nmodule.exports = function(TO_STRING){\n return function(that, pos){\n var s = String(defined(that))\n , i = toInteger(pos)\n , l = s.length\n , a, b;\n if(i < 0 || i >= l)return TO_STRING ? '' : undefined;\n a = s.charCodeAt(i);\n return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff\n ? TO_STRING ? s.charAt(i) : a\n : TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;\n };\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.string-at.js\n ** module id = 24\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/modules/$.string-at.js?"); /***/ }, /* 25 */ -/***/ function(module, exports, __webpack_require__) { +/***/ function(module, exports) { - eval("// Thank's IE8 for his funny defineProperty\nmodule.exports = !__webpack_require__(19)(function(){\n return Object.defineProperty({}, 'a', {get: function(){ return 7; }}).a != 7;\n});\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/~/core-js/library/modules/$.descriptors.js\n ** module id = 25\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/babel-runtime/~/core-js/library/modules/$.descriptors.js?"); + eval("// 7.1.4 ToInteger\nvar ceil = Math.ceil\n , floor = Math.floor;\nmodule.exports = function(it){\n return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.to-integer.js\n ** module id = 25\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/modules/$.to-integer.js?"); /***/ }, /* 26 */ /***/ function(module, exports, __webpack_require__) { - eval("module.exports = __webpack_require__(27);\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/~/core-js/library/modules/$.redefine.js\n ** module id = 26\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/babel-runtime/~/core-js/library/modules/$.redefine.js?"); + eval("'use strict';\nvar LIBRARY = __webpack_require__(27)\n , $export = __webpack_require__(8)\n , redefine = __webpack_require__(28)\n , hide = __webpack_require__(29)\n , has = __webpack_require__(32)\n , Iterators = __webpack_require__(33)\n , $iterCreate = __webpack_require__(34)\n , setToStringTag = __webpack_require__(35)\n , getProto = __webpack_require__(14).getProto\n , ITERATOR = __webpack_require__(36)('iterator')\n , BUGGY = !([].keys && 'next' in [].keys()) // Safari has buggy iterators w/o `next`\n , FF_ITERATOR = '@@iterator'\n , KEYS = 'keys'\n , VALUES = 'values';\n\nvar returnThis = function(){ return this; };\n\nmodule.exports = function(Base, NAME, Constructor, next, DEFAULT, IS_SET, FORCED){\n $iterCreate(Constructor, NAME, next);\n var getMethod = function(kind){\n if(!BUGGY && kind in proto)return proto[kind];\n switch(kind){\n case KEYS: return function keys(){ return new Constructor(this, kind); };\n case VALUES: return function values(){ return new Constructor(this, kind); };\n } return function entries(){ return new Constructor(this, kind); };\n };\n var TAG = NAME + ' Iterator'\n , DEF_VALUES = DEFAULT == VALUES\n , VALUES_BUG = false\n , proto = Base.prototype\n , $native = proto[ITERATOR] || proto[FF_ITERATOR] || DEFAULT && proto[DEFAULT]\n , $default = $native || getMethod(DEFAULT)\n , methods, key;\n // Fix native\n if($native){\n var IteratorPrototype = getProto($default.call(new Base));\n // Set @@toStringTag to native iterators\n setToStringTag(IteratorPrototype, TAG, true);\n // FF fix\n if(!LIBRARY && has(proto, FF_ITERATOR))hide(IteratorPrototype, ITERATOR, returnThis);\n // fix Array#{values, @@iterator}.name in V8 / FF\n if(DEF_VALUES && $native.name !== VALUES){\n VALUES_BUG = true;\n $default = function values(){ return $native.call(this); };\n }\n }\n // Define iterator\n if((!LIBRARY || FORCED) && (BUGGY || VALUES_BUG || !proto[ITERATOR])){\n hide(proto, ITERATOR, $default);\n }\n // Plug for library\n Iterators[NAME] = $default;\n Iterators[TAG] = returnThis;\n if(DEFAULT){\n methods = {\n values: DEF_VALUES ? $default : getMethod(VALUES),\n keys: IS_SET ? $default : getMethod(KEYS),\n entries: !DEF_VALUES ? $default : getMethod('entries')\n };\n if(FORCED)for(key in methods){\n if(!(key in proto))redefine(proto, key, methods[key]);\n } else $export($export.P + $export.F * (BUGGY || VALUES_BUG), NAME, methods);\n }\n return methods;\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.iter-define.js\n ** module id = 26\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/modules/$.iter-define.js?"); /***/ }, /* 27 */ -/***/ function(module, exports, __webpack_require__) { +/***/ function(module, exports) { - eval("var $ = __webpack_require__(14)\n , createDesc = __webpack_require__(28);\nmodule.exports = __webpack_require__(25) ? function(object, key, value){\n return $.setDesc(object, key, createDesc(1, value));\n} : function(object, key, value){\n object[key] = value;\n return object;\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/~/core-js/library/modules/$.hide.js\n ** module id = 27\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/babel-runtime/~/core-js/library/modules/$.hide.js?"); + eval("module.exports = true;\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.library.js\n ** module id = 27\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/modules/$.library.js?"); /***/ }, /* 28 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("module.exports = function(bitmap, value){\n return {\n enumerable : !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable : !(bitmap & 4),\n value : value\n };\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/~/core-js/library/modules/$.property-desc.js\n ** module id = 28\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/babel-runtime/~/core-js/library/modules/$.property-desc.js?"); + eval("module.exports = __webpack_require__(29);\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.redefine.js\n ** module id = 28\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/modules/$.redefine.js?"); /***/ }, /* 29 */ /***/ function(module, exports, __webpack_require__) { - eval("var global = __webpack_require__(9)\n , SHARED = '__core-js_shared__'\n , store = global[SHARED] || (global[SHARED] = {});\nmodule.exports = function(key){\n return store[key] || (store[key] = {});\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/~/core-js/library/modules/$.shared.js\n ** module id = 29\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/babel-runtime/~/core-js/library/modules/$.shared.js?"); + eval("var $ = __webpack_require__(14)\n , createDesc = __webpack_require__(30);\nmodule.exports = __webpack_require__(31) ? function(object, key, value){\n return $.setDesc(object, key, createDesc(1, value));\n} : function(object, key, value){\n object[key] = value;\n return object;\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.hide.js\n ** module id = 29\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/modules/$.hide.js?"); /***/ }, /* 30 */ -/***/ function(module, exports, __webpack_require__) { +/***/ function(module, exports) { - eval("var def = __webpack_require__(14).setDesc\n , has = __webpack_require__(24)\n , TAG = __webpack_require__(31)('toStringTag');\n\nmodule.exports = function(it, tag, stat){\n if(it && !has(it = stat ? it : it.prototype, TAG))def(it, TAG, {configurable: true, value: tag});\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/~/core-js/library/modules/$.set-to-string-tag.js\n ** module id = 30\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/babel-runtime/~/core-js/library/modules/$.set-to-string-tag.js?"); + eval("module.exports = function(bitmap, value){\n return {\n enumerable : !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable : !(bitmap & 4),\n value : value\n };\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.property-desc.js\n ** module id = 30\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/modules/$.property-desc.js?"); /***/ }, /* 31 */ /***/ function(module, exports, __webpack_require__) { - eval("var store = __webpack_require__(29)('wks')\n , uid = __webpack_require__(32)\n , Symbol = __webpack_require__(9).Symbol;\nmodule.exports = function(name){\n return store[name] || (store[name] =\n Symbol && Symbol[name] || (Symbol || uid)('Symbol.' + name));\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/~/core-js/library/modules/$.wks.js\n ** module id = 31\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/babel-runtime/~/core-js/library/modules/$.wks.js?"); + eval("// Thank's IE8 for his funny defineProperty\nmodule.exports = !__webpack_require__(19)(function(){\n return Object.defineProperty({}, 'a', {get: function(){ return 7; }}).a != 7;\n});\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.descriptors.js\n ** module id = 31\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/modules/$.descriptors.js?"); /***/ }, /* 32 */ /***/ function(module, exports) { - eval("var id = 0\n , px = Math.random();\nmodule.exports = function(key){\n return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/~/core-js/library/modules/$.uid.js\n ** module id = 32\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/babel-runtime/~/core-js/library/modules/$.uid.js?"); + eval("var hasOwnProperty = {}.hasOwnProperty;\nmodule.exports = function(it, key){\n return hasOwnProperty.call(it, key);\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.has.js\n ** module id = 32\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/modules/$.has.js?"); /***/ }, /* 33 */ -/***/ function(module, exports, __webpack_require__) { +/***/ function(module, exports) { - eval("var $ = __webpack_require__(14)\n , toIObject = __webpack_require__(34);\nmodule.exports = function(object, el){\n var O = toIObject(object)\n , keys = $.getKeys(O)\n , length = keys.length\n , index = 0\n , key;\n while(length > index)if(O[key = keys[index++]] === el)return key;\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/~/core-js/library/modules/$.keyof.js\n ** module id = 33\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/babel-runtime/~/core-js/library/modules/$.keyof.js?"); + eval("module.exports = {};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.iterators.js\n ** module id = 33\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/modules/$.iterators.js?"); /***/ }, /* 34 */ /***/ function(module, exports, __webpack_require__) { - eval("// to indexed object, toObject with fallback for non-array-like ES3 strings\nvar IObject = __webpack_require__(17)\n , defined = __webpack_require__(16);\nmodule.exports = function(it){\n return IObject(defined(it));\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/~/core-js/library/modules/$.to-iobject.js\n ** module id = 34\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/babel-runtime/~/core-js/library/modules/$.to-iobject.js?"); + eval("'use strict';\nvar $ = __webpack_require__(14)\n , descriptor = __webpack_require__(30)\n , setToStringTag = __webpack_require__(35)\n , IteratorPrototype = {};\n\n// 25.1.2.1.1 %IteratorPrototype%[@@iterator]()\n__webpack_require__(29)(IteratorPrototype, __webpack_require__(36)('iterator'), function(){ return this; });\n\nmodule.exports = function(Constructor, NAME, next){\n Constructor.prototype = $.create(IteratorPrototype, {next: descriptor(1, next)});\n setToStringTag(Constructor, NAME + ' Iterator');\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.iter-create.js\n ** module id = 34\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/modules/$.iter-create.js?"); /***/ }, /* 35 */ /***/ function(module, exports, __webpack_require__) { - eval("// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window\nvar toIObject = __webpack_require__(34)\n , getNames = __webpack_require__(14).getNames\n , toString = {}.toString;\n\nvar windowNames = typeof window == 'object' && Object.getOwnPropertyNames\n ? Object.getOwnPropertyNames(window) : [];\n\nvar getWindowNames = function(it){\n try {\n return getNames(it);\n } catch(e){\n return windowNames.slice();\n }\n};\n\nmodule.exports.get = function getOwnPropertyNames(it){\n if(windowNames && toString.call(it) == '[object Window]')return getWindowNames(it);\n return getNames(toIObject(it));\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/~/core-js/library/modules/$.get-names.js\n ** module id = 35\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/babel-runtime/~/core-js/library/modules/$.get-names.js?"); + eval("var def = __webpack_require__(14).setDesc\n , has = __webpack_require__(32)\n , TAG = __webpack_require__(36)('toStringTag');\n\nmodule.exports = function(it, tag, stat){\n if(it && !has(it = stat ? it : it.prototype, TAG))def(it, TAG, {configurable: true, value: tag});\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.set-to-string-tag.js\n ** module id = 35\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/modules/$.set-to-string-tag.js?"); /***/ }, /* 36 */ /***/ function(module, exports, __webpack_require__) { - eval("// all enumerable object keys, includes symbols\nvar $ = __webpack_require__(14);\nmodule.exports = function(it){\n var keys = $.getKeys(it)\n , getSymbols = $.getSymbols;\n if(getSymbols){\n var symbols = getSymbols(it)\n , isEnum = $.isEnum\n , i = 0\n , key;\n while(symbols.length > i)if(isEnum.call(it, key = symbols[i++]))keys.push(key);\n }\n return keys;\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/~/core-js/library/modules/$.enum-keys.js\n ** module id = 36\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/babel-runtime/~/core-js/library/modules/$.enum-keys.js?"); + eval("var store = __webpack_require__(37)('wks')\n , uid = __webpack_require__(38)\n , Symbol = __webpack_require__(9).Symbol;\nmodule.exports = function(name){\n return store[name] || (store[name] =\n Symbol && Symbol[name] || (Symbol || uid)('Symbol.' + name));\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.wks.js\n ** module id = 36\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/modules/$.wks.js?"); /***/ }, /* 37 */ /***/ function(module, exports, __webpack_require__) { - eval("// 7.2.2 IsArray(argument)\nvar cof = __webpack_require__(18);\nmodule.exports = Array.isArray || function(arg){\n return cof(arg) == 'Array';\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/~/core-js/library/modules/$.is-array.js\n ** module id = 37\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/babel-runtime/~/core-js/library/modules/$.is-array.js?"); + eval("var global = __webpack_require__(9)\n , SHARED = '__core-js_shared__'\n , store = global[SHARED] || (global[SHARED] = {});\nmodule.exports = function(key){\n return store[key] || (store[key] = {});\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.shared.js\n ** module id = 37\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/modules/$.shared.js?"); /***/ }, /* 38 */ -/***/ function(module, exports, __webpack_require__) { +/***/ function(module, exports) { - eval("var isObject = __webpack_require__(39);\nmodule.exports = function(it){\n if(!isObject(it))throw TypeError(it + ' is not an object!');\n return it;\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/~/core-js/library/modules/$.an-object.js\n ** module id = 38\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/babel-runtime/~/core-js/library/modules/$.an-object.js?"); + eval("var id = 0\n , px = Math.random();\nmodule.exports = function(key){\n return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.uid.js\n ** module id = 38\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/modules/$.uid.js?"); /***/ }, /* 39 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("module.exports = function(it){\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/~/core-js/library/modules/$.is-object.js\n ** module id = 39\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/babel-runtime/~/core-js/library/modules/$.is-object.js?"); + eval("__webpack_require__(40);\nvar Iterators = __webpack_require__(33);\nIterators.NodeList = Iterators.HTMLCollection = Iterators.Array;\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/web.dom.iterable.js\n ** module id = 39\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/modules/web.dom.iterable.js?"); /***/ }, /* 40 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("module.exports = true;\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/~/core-js/library/modules/$.library.js\n ** module id = 40\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/babel-runtime/~/core-js/library/modules/$.library.js?"); + eval("'use strict';\nvar addToUnscopables = __webpack_require__(41)\n , step = __webpack_require__(42)\n , Iterators = __webpack_require__(33)\n , toIObject = __webpack_require__(43);\n\n// 22.1.3.4 Array.prototype.entries()\n// 22.1.3.13 Array.prototype.keys()\n// 22.1.3.29 Array.prototype.values()\n// 22.1.3.30 Array.prototype[@@iterator]()\nmodule.exports = __webpack_require__(26)(Array, 'Array', function(iterated, kind){\n this._t = toIObject(iterated); // target\n this._i = 0; // next index\n this._k = kind; // kind\n// 22.1.5.2.1 %ArrayIteratorPrototype%.next()\n}, function(){\n var O = this._t\n , kind = this._k\n , index = this._i++;\n if(!O || index >= O.length){\n this._t = undefined;\n return step(1);\n }\n if(kind == 'keys' )return step(0, index);\n if(kind == 'values')return step(0, O[index]);\n return step(0, [index, O[index]]);\n}, 'values');\n\n// argumentsList[@@iterator] is %ArrayProto_values% (9.4.4.6, 9.4.4.7)\nIterators.Arguments = Iterators.Array;\n\naddToUnscopables('keys');\naddToUnscopables('values');\naddToUnscopables('entries');\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/es6.array.iterator.js\n ** module id = 40\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/modules/es6.array.iterator.js?"); /***/ }, /* 41 */ /***/ function(module, exports) { - eval("\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/~/core-js/library/modules/es6.object.to-string.js\n ** module id = 41\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/babel-runtime/~/core-js/library/modules/es6.object.to-string.js?"); + eval("module.exports = function(){ /* empty */ };\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.add-to-unscopables.js\n ** module id = 41\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/modules/$.add-to-unscopables.js?"); /***/ }, /* 42 */ -/***/ function(module, exports, __webpack_require__) { +/***/ function(module, exports) { - eval("/* WEBPACK VAR INJECTION */(function(Buffer) {var map = __webpack_require__(43)\nvar extend = __webpack_require__(55)\nvar codec = __webpack_require__(56)\nvar bufeq = __webpack_require__(74)\nvar protocols = __webpack_require__(73)\nvar NotImplemented = new Error('Sorry, Not Implemented Yet.')\n\nexports = module.exports = Multiaddr\n\nexports.Buffer = Buffer\n\nfunction Multiaddr (addr) {\n if (!(this instanceof Multiaddr)) {\n return new Multiaddr(addr)\n }\n\n // defaults\n if (!addr) {\n addr = ''\n }\n\n if (addr instanceof Buffer) {\n this.buffer = codec.fromBuffer(addr)\n } else if (typeof (addr) === 'string' || addr instanceof String) {\n this.buffer = codec.fromString(addr)\n } else if (addr.buffer && addr.protos && addr.protoCodes) { // Multiaddr\n this.buffer = codec.fromBuffer(addr.buffer) // validate + copy buffer\n } else {\n throw new Error('addr must be a string, Buffer, or Multiaddr')\n }\n}\n\n// get the multiaddr protocols\nMultiaddr.prototype.toString = function toString () {\n return codec.bufferToString(this.buffer)\n}\n\n// get the multiaddr as a convinent options object to be dropped in net.createConnection\nMultiaddr.prototype.toOptions = function toOptions () {\n var opts = {}\n var parsed = this.toString().split('/')\n opts.family = parsed[1] === 'ip4' ? 'ipv4' : 'ipv6'\n opts.host = parsed[2]\n opts.port = parsed[4]\n return opts\n}\n\n// get the multiaddr protocols\nMultiaddr.prototype.inspect = function inspect () {\n return ''\n}\n\n// get the multiaddr protocols\nMultiaddr.prototype.protos = function protos () {\n return map(this.protoCodes(), function (code) {\n return extend(protocols(code))\n // copy to prevent users from modifying the internal objs.\n })\n}\n\n// get the multiaddr protocols\nMultiaddr.prototype.protos = function protos () {\n return map(this.protoCodes(), function (code) {\n return extend(protocols(code))\n // copy to prevent users from modifying the internal objs.\n })\n}\n\n// get the multiaddr protocol codes\nMultiaddr.prototype.protoCodes = function protoCodes () {\n var codes = []\n for (var i = 0; i < this.buffer.length; i++) {\n var code = 0 + this.buffer[i]\n var size = protocols(code).size / 8\n i += size // skip over proto data\n codes.push(code)\n }\n return codes\n}\n\n// get the multiaddr protocol string names\nMultiaddr.prototype.protoNames = function protoNames () {\n return map(this.protos(), function (proto) {\n return proto.name\n })\n}\n\n// Returns a tuple of parts:\nMultiaddr.prototype.tuples = function tuples () {\n return codec.bufferToTuples(this.buffer)\n}\n\n// Returns a tuple of string parts:\nMultiaddr.prototype.stringTuples = function stringTuples () {\n var t = codec.bufferToTuples(this.buffer)\n return codec.tuplesToStringTuples(t)\n}\n\nMultiaddr.prototype.encapsulate = function encapsulate (addr) {\n addr = Multiaddr(addr)\n return Multiaddr(this.toString() + addr.toString())\n}\n\nMultiaddr.prototype.decapsulate = function decapsulate (addr) {\n addr = addr.toString()\n var s = this.toString()\n var i = s.lastIndexOf(addr)\n if (i < 0) {\n throw new Error('Address ' + this + ' does not contain subaddress: ' + addr)\n }\n return Multiaddr(s.slice(0, i))\n}\n\nMultiaddr.prototype.equals = function equals (addr) {\n return bufeq(this.buffer, addr.buffer)\n}\n\n// get a node friendly address object\nMultiaddr.prototype.nodeAddress = function nodeAddress () {\n if (!this.isThinWaistAddress()) {\n throw new Error('Multiaddr must be \"thin waist\" address for nodeAddress.')\n }\n\n var codes = this.protoCodes()\n var parts = this.toString().split('/').slice(1)\n return {\n family: (codes[0] === 41) ? 'IPv6' : 'IPv4',\n address: parts[1], // ip addr\n port: parts[3] // tcp or udp port\n }\n}\n\n// from a node friendly address object\nMultiaddr.fromNodeAddress = function fromNodeAddress (addr, transport) {\n if (!addr) throw new Error('requires node address object')\n if (!transport) throw new Error('requires transport protocol')\n var ip = (addr.family === 'IPv6') ? 'ip6' : 'ip4'\n return Multiaddr('/' + [ip, addr.address, transport, addr.port].join('/'))\n}\n\n// returns whether this address is a standard combination:\n// /{IPv4, IPv6}/{TCP, UDP}\nMultiaddr.prototype.isThinWaistAddress = function isThinWaistAddress (addr) {\n var protos = (addr || this).protos()\n if (protos.length !== 2) {\n return false\n }\n if (protos[0].code !== 4 && protos[0].code !== 41) {\n return false\n }\n if (protos[1].code !== 6 && protos[1].code !== 17) {\n return false\n }\n return true\n}\n\n// parses the \"stupid string\" format:\n// ://[:]\n// udp4://1.2.3.4:5678\nMultiaddr.prototype.fromStupidString = function fromStupidString (str) {\n throw NotImplemented\n}\n\n// patch this in\nMultiaddr.protocols = protocols\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1).Buffer))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/multiaddr/src/index.js\n ** module id = 42\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/multiaddr/src/index.js?"); + eval("module.exports = function(done, value){\n return {value: value, done: !!done};\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.iter-step.js\n ** module id = 42\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/modules/$.iter-step.js?"); /***/ }, /* 43 */ /***/ function(module, exports, __webpack_require__) { - eval("/**\n * lodash 3.1.4 (Custom Build) \n * Build: `lodash modern modularize exports=\"npm\" -o ./`\n * Copyright 2012-2015 The Dojo Foundation \n * Based on Underscore.js 1.8.3 \n * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n * Available under MIT license \n */\nvar arrayMap = __webpack_require__(44),\n baseCallback = __webpack_require__(45),\n baseEach = __webpack_require__(54),\n isArray = __webpack_require__(47);\n\n/**\n * Used as the [maximum length](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.max_safe_integer)\n * of an array-like value.\n */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/**\n * The base implementation of `_.map` without support for callback shorthands\n * and `this` binding.\n *\n * @private\n * @param {Array|Object|string} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\nfunction baseMap(collection, iteratee) {\n var index = -1,\n result = isArrayLike(collection) ? Array(collection.length) : [];\n\n baseEach(collection, function(value, key, collection) {\n result[++index] = iteratee(value, key, collection);\n });\n return result;\n}\n\n/**\n * The base implementation of `_.property` without support for deep paths.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @returns {Function} Returns the new function.\n */\nfunction baseProperty(key) {\n return function(object) {\n return object == null ? undefined : object[key];\n };\n}\n\n/**\n * Gets the \"length\" property value of `object`.\n *\n * **Note:** This function is used to avoid a [JIT bug](https://bugs.webkit.org/show_bug.cgi?id=142792)\n * that affects Safari on at least iOS 8.1-8.3 ARM64.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {*} Returns the \"length\" value.\n */\nvar getLength = baseProperty('length');\n\n/**\n * Checks if `value` is array-like.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n */\nfunction isArrayLike(value) {\n return value != null && isLength(getLength(value));\n}\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This function is based on [`ToLength`](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength).\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n */\nfunction isLength(value) {\n return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\n/**\n * Creates an array of values by running each element in `collection` through\n * `iteratee`. The `iteratee` is bound to `thisArg` and invoked with three\n * arguments: (value, index|key, collection).\n *\n * If a property name is provided for `iteratee` the created `_.property`\n * style callback returns the property value of the given element.\n *\n * If a value is also provided for `thisArg` the created `_.matchesProperty`\n * style callback returns `true` for elements that have a matching property\n * value, else `false`.\n *\n * If an object is provided for `iteratee` the created `_.matches` style\n * callback returns `true` for elements that have the properties of the given\n * object, else `false`.\n *\n * Many lodash methods are guarded to work as iteratees for methods like\n * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.\n *\n * The guarded methods are:\n * `ary`, `callback`, `chunk`, `clone`, `create`, `curry`, `curryRight`,\n * `drop`, `dropRight`, `every`, `fill`, `flatten`, `invert`, `max`, `min`,\n * `parseInt`, `slice`, `sortBy`, `take`, `takeRight`, `template`, `trim`,\n * `trimLeft`, `trimRight`, `trunc`, `random`, `range`, `sample`, `some`,\n * `sum`, `uniq`, and `words`\n *\n * @static\n * @memberOf _\n * @alias collect\n * @category Collection\n * @param {Array|Object|string} collection The collection to iterate over.\n * @param {Function|Object|string} [iteratee=_.identity] The function invoked\n * per iteration.\n * @param {*} [thisArg] The `this` binding of `iteratee`.\n * @returns {Array} Returns the new mapped array.\n * @example\n *\n * function timesThree(n) {\n * return n * 3;\n * }\n *\n * _.map([1, 2], timesThree);\n * // => [3, 6]\n *\n * _.map({ 'a': 1, 'b': 2 }, timesThree);\n * // => [3, 6] (iteration order is not guaranteed)\n *\n * var users = [\n * { 'user': 'barney' },\n * { 'user': 'fred' }\n * ];\n *\n * // using the `_.property` callback shorthand\n * _.map(users, 'user');\n * // => ['barney', 'fred']\n */\nfunction map(collection, iteratee, thisArg) {\n var func = isArray(collection) ? arrayMap : baseMap;\n iteratee = baseCallback(iteratee, thisArg, 3);\n return func(collection, iteratee);\n}\n\nmodule.exports = map;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/multiaddr/~/lodash.map/index.js\n ** module id = 43\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/multiaddr/~/lodash.map/index.js?"); + eval("// to indexed object, toObject with fallback for non-array-like ES3 strings\nvar IObject = __webpack_require__(17)\n , defined = __webpack_require__(16);\nmodule.exports = function(it){\n return IObject(defined(it));\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.to-iobject.js\n ** module id = 43\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/modules/$.to-iobject.js?"); /***/ }, /* 44 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("/**\n * lodash 3.0.0 (Custom Build) \n * Build: `lodash modern modularize exports=\"npm\" -o ./`\n * Copyright 2012-2015 The Dojo Foundation \n * Based on Underscore.js 1.7.0 \n * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n * Available under MIT license \n */\n\n/**\n * A specialized version of `_.map` for arrays without support for callback\n * shorthands or `this` binding.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\nfunction arrayMap(array, iteratee) {\n var index = -1,\n length = array.length,\n result = Array(length);\n\n while (++index < length) {\n result[index] = iteratee(array[index], index, array);\n }\n return result;\n}\n\nmodule.exports = arrayMap;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/multiaddr/~/lodash.map/~/lodash._arraymap/index.js\n ** module id = 44\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/multiaddr/~/lodash.map/~/lodash._arraymap/index.js?"); + eval("module.exports = { \"default\": __webpack_require__(45), __esModule: true };\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/symbol.js\n ** module id = 44\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/babel-runtime/core-js/symbol.js?"); /***/ }, /* 45 */ /***/ function(module, exports, __webpack_require__) { - eval("/**\n * lodash 3.3.1 (Custom Build) \n * Build: `lodash modern modularize exports=\"npm\" -o ./`\n * Copyright 2012-2015 The Dojo Foundation \n * Based on Underscore.js 1.8.3 \n * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n * Available under MIT license \n */\nvar baseIsEqual = __webpack_require__(46),\n bindCallback = __webpack_require__(52),\n isArray = __webpack_require__(47),\n pairs = __webpack_require__(53);\n\n/** Used to match property names within property paths. */\nvar reIsDeepProp = /\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\n\\\\]|\\\\.)*?\\1)\\]/,\n reIsPlainProp = /^\\w*$/,\n rePropName = /[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\n\\\\]|\\\\.)*?)\\2)\\]/g;\n\n/** Used to match backslashes in property paths. */\nvar reEscapeChar = /\\\\(\\\\)?/g;\n\n/**\n * Converts `value` to a string if it's not one. An empty string is returned\n * for `null` or `undefined` values.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {string} Returns the string.\n */\nfunction baseToString(value) {\n return value == null ? '' : (value + '');\n}\n\n/**\n * The base implementation of `_.callback` which supports specifying the\n * number of arguments to provide to `func`.\n *\n * @private\n * @param {*} [func=_.identity] The value to convert to a callback.\n * @param {*} [thisArg] The `this` binding of `func`.\n * @param {number} [argCount] The number of arguments to provide to `func`.\n * @returns {Function} Returns the callback.\n */\nfunction baseCallback(func, thisArg, argCount) {\n var type = typeof func;\n if (type == 'function') {\n return thisArg === undefined\n ? func\n : bindCallback(func, thisArg, argCount);\n }\n if (func == null) {\n return identity;\n }\n if (type == 'object') {\n return baseMatches(func);\n }\n return thisArg === undefined\n ? property(func)\n : baseMatchesProperty(func, thisArg);\n}\n\n/**\n * The base implementation of `get` without support for string paths\n * and default values.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array} path The path of the property to get.\n * @param {string} [pathKey] The key representation of path.\n * @returns {*} Returns the resolved value.\n */\nfunction baseGet(object, path, pathKey) {\n if (object == null) {\n return;\n }\n if (pathKey !== undefined && pathKey in toObject(object)) {\n path = [pathKey];\n }\n var index = 0,\n length = path.length;\n\n while (object != null && index < length) {\n object = object[path[index++]];\n }\n return (index && index == length) ? object : undefined;\n}\n\n/**\n * The base implementation of `_.isMatch` without support for callback\n * shorthands and `this` binding.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Array} matchData The propery names, values, and compare flags to match.\n * @param {Function} [customizer] The function to customize comparing objects.\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n */\nfunction baseIsMatch(object, matchData, customizer) {\n var index = matchData.length,\n length = index,\n noCustomizer = !customizer;\n\n if (object == null) {\n return !length;\n }\n object = toObject(object);\n while (index--) {\n var data = matchData[index];\n if ((noCustomizer && data[2])\n ? data[1] !== object[data[0]]\n : !(data[0] in object)\n ) {\n return false;\n }\n }\n while (++index < length) {\n data = matchData[index];\n var key = data[0],\n objValue = object[key],\n srcValue = data[1];\n\n if (noCustomizer && data[2]) {\n if (objValue === undefined && !(key in object)) {\n return false;\n }\n } else {\n var result = customizer ? customizer(objValue, srcValue, key) : undefined;\n if (!(result === undefined ? baseIsEqual(srcValue, objValue, customizer, true) : result)) {\n return false;\n }\n }\n }\n return true;\n}\n\n/**\n * The base implementation of `_.matches` which does not clone `source`.\n *\n * @private\n * @param {Object} source The object of property values to match.\n * @returns {Function} Returns the new function.\n */\nfunction baseMatches(source) {\n var matchData = getMatchData(source);\n if (matchData.length == 1 && matchData[0][2]) {\n var key = matchData[0][0],\n value = matchData[0][1];\n\n return function(object) {\n if (object == null) {\n return false;\n }\n return object[key] === value && (value !== undefined || (key in toObject(object)));\n };\n }\n return function(object) {\n return baseIsMatch(object, matchData);\n };\n}\n\n/**\n * The base implementation of `_.matchesProperty` which does not clone `srcValue`.\n *\n * @private\n * @param {string} path The path of the property to get.\n * @param {*} srcValue The value to compare.\n * @returns {Function} Returns the new function.\n */\nfunction baseMatchesProperty(path, srcValue) {\n var isArr = isArray(path),\n isCommon = isKey(path) && isStrictComparable(srcValue),\n pathKey = (path + '');\n\n path = toPath(path);\n return function(object) {\n if (object == null) {\n return false;\n }\n var key = pathKey;\n object = toObject(object);\n if ((isArr || !isCommon) && !(key in object)) {\n object = path.length == 1 ? object : baseGet(object, baseSlice(path, 0, -1));\n if (object == null) {\n return false;\n }\n key = last(path);\n object = toObject(object);\n }\n return object[key] === srcValue\n ? (srcValue !== undefined || (key in object))\n : baseIsEqual(srcValue, object[key], undefined, true);\n };\n}\n\n/**\n * The base implementation of `_.property` without support for deep paths.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @returns {Function} Returns the new function.\n */\nfunction baseProperty(key) {\n return function(object) {\n return object == null ? undefined : object[key];\n };\n}\n\n/**\n * A specialized version of `baseProperty` which supports deep paths.\n *\n * @private\n * @param {Array|string} path The path of the property to get.\n * @returns {Function} Returns the new function.\n */\nfunction basePropertyDeep(path) {\n var pathKey = (path + '');\n path = toPath(path);\n return function(object) {\n return baseGet(object, path, pathKey);\n };\n}\n\n/**\n * The base implementation of `_.slice` without an iteratee call guard.\n *\n * @private\n * @param {Array} array The array to slice.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the slice of `array`.\n */\nfunction baseSlice(array, start, end) {\n var index = -1,\n length = array.length;\n\n start = start == null ? 0 : (+start || 0);\n if (start < 0) {\n start = -start > length ? 0 : (length + start);\n }\n end = (end === undefined || end > length) ? length : (+end || 0);\n if (end < 0) {\n end += length;\n }\n length = start > end ? 0 : ((end - start) >>> 0);\n start >>>= 0;\n\n var result = Array(length);\n while (++index < length) {\n result[index] = array[index + start];\n }\n return result;\n}\n\n/**\n * Gets the propery names, values, and compare flags of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the match data of `object`.\n */\nfunction getMatchData(object) {\n var result = pairs(object),\n length = result.length;\n\n while (length--) {\n result[length][2] = isStrictComparable(result[length][1]);\n }\n return result;\n}\n\n/**\n * Checks if `value` is a property name and not a property path.\n *\n * @private\n * @param {*} value The value to check.\n * @param {Object} [object] The object to query keys on.\n * @returns {boolean} Returns `true` if `value` is a property name, else `false`.\n */\nfunction isKey(value, object) {\n var type = typeof value;\n if ((type == 'string' && reIsPlainProp.test(value)) || type == 'number') {\n return true;\n }\n if (isArray(value)) {\n return false;\n }\n var result = !reIsDeepProp.test(value);\n return result || (object != null && value in toObject(object));\n}\n\n/**\n * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` if suitable for strict\n * equality comparisons, else `false`.\n */\nfunction isStrictComparable(value) {\n return value === value && !isObject(value);\n}\n\n/**\n * Converts `value` to an object if it's not one.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {Object} Returns the object.\n */\nfunction toObject(value) {\n return isObject(value) ? value : Object(value);\n}\n\n/**\n * Converts `value` to property path array if it's not one.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {Array} Returns the property path array.\n */\nfunction toPath(value) {\n if (isArray(value)) {\n return value;\n }\n var result = [];\n baseToString(value).replace(rePropName, function(match, number, quote, string) {\n result.push(quote ? string.replace(reEscapeChar, '$1') : (number || match));\n });\n return result;\n}\n\n/**\n * Gets the last element of `array`.\n *\n * @static\n * @memberOf _\n * @category Array\n * @param {Array} array The array to query.\n * @returns {*} Returns the last element of `array`.\n * @example\n *\n * _.last([1, 2, 3]);\n * // => 3\n */\nfunction last(array) {\n var length = array ? array.length : 0;\n return length ? array[length - 1] : undefined;\n}\n\n/**\n * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`.\n * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(1);\n * // => false\n */\nfunction isObject(value) {\n // Avoid a V8 JIT bug in Chrome 19-20.\n // See https://code.google.com/p/v8/issues/detail?id=2291 for more details.\n var type = typeof value;\n return !!value && (type == 'object' || type == 'function');\n}\n\n/**\n * This method returns the first argument provided to it.\n *\n * @static\n * @memberOf _\n * @category Utility\n * @param {*} value Any value.\n * @returns {*} Returns `value`.\n * @example\n *\n * var object = { 'user': 'fred' };\n *\n * _.identity(object) === object;\n * // => true\n */\nfunction identity(value) {\n return value;\n}\n\n/**\n * Creates a function that returns the property value at `path` on a\n * given object.\n *\n * @static\n * @memberOf _\n * @category Utility\n * @param {Array|string} path The path of the property to get.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var objects = [\n * { 'a': { 'b': { 'c': 2 } } },\n * { 'a': { 'b': { 'c': 1 } } }\n * ];\n *\n * _.map(objects, _.property('a.b.c'));\n * // => [2, 1]\n *\n * _.pluck(_.sortBy(objects, _.property(['a', 'b', 'c'])), 'a.b.c');\n * // => [1, 2]\n */\nfunction property(path) {\n return isKey(path) ? baseProperty(path) : basePropertyDeep(path);\n}\n\nmodule.exports = baseCallback;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/multiaddr/~/lodash.map/~/lodash._basecallback/index.js\n ** module id = 45\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/multiaddr/~/lodash.map/~/lodash._basecallback/index.js?"); + eval("__webpack_require__(46);\n__webpack_require__(53);\nmodule.exports = __webpack_require__(10).Symbol;\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/symbol/index.js\n ** module id = 45\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/fn/symbol/index.js?"); /***/ }, /* 46 */ /***/ function(module, exports, __webpack_require__) { - eval("/**\n * lodash 3.0.7 (Custom Build) \n * Build: `lodash modern modularize exports=\"npm\" -o ./`\n * Copyright 2012-2015 The Dojo Foundation \n * Based on Underscore.js 1.8.3 \n * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n * Available under MIT license \n */\nvar isArray = __webpack_require__(47),\n isTypedArray = __webpack_require__(48),\n keys = __webpack_require__(49);\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n numberTag = '[object Number]',\n objectTag = '[object Object]',\n regexpTag = '[object RegExp]',\n stringTag = '[object String]';\n\n/**\n * Checks if `value` is object-like.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n */\nfunction isObjectLike(value) {\n return !!value && typeof value == 'object';\n}\n\n/** Used for native method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the [`toStringTag`](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.prototype.tostring)\n * of values.\n */\nvar objToString = objectProto.toString;\n\n/**\n * A specialized version of `_.some` for arrays without support for callback\n * shorthands and `this` binding.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n */\nfunction arraySome(array, predicate) {\n var index = -1,\n length = array.length;\n\n while (++index < length) {\n if (predicate(array[index], index, array)) {\n return true;\n }\n }\n return false;\n}\n\n/**\n * The base implementation of `_.isEqual` without support for `this` binding\n * `customizer` functions.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @param {Function} [customizer] The function to customize comparing values.\n * @param {boolean} [isLoose] Specify performing partial comparisons.\n * @param {Array} [stackA] Tracks traversed `value` objects.\n * @param {Array} [stackB] Tracks traversed `other` objects.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n */\nfunction baseIsEqual(value, other, customizer, isLoose, stackA, stackB) {\n if (value === other) {\n return true;\n }\n if (value == null || other == null || (!isObject(value) && !isObjectLike(other))) {\n return value !== value && other !== other;\n }\n return baseIsEqualDeep(value, other, baseIsEqual, customizer, isLoose, stackA, stackB);\n}\n\n/**\n * A specialized version of `baseIsEqual` for arrays and objects which performs\n * deep comparisons and tracks traversed objects enabling objects with circular\n * references to be compared.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Function} [customizer] The function to customize comparing objects.\n * @param {boolean} [isLoose] Specify performing partial comparisons.\n * @param {Array} [stackA=[]] Tracks traversed `value` objects.\n * @param {Array} [stackB=[]] Tracks traversed `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction baseIsEqualDeep(object, other, equalFunc, customizer, isLoose, stackA, stackB) {\n var objIsArr = isArray(object),\n othIsArr = isArray(other),\n objTag = arrayTag,\n othTag = arrayTag;\n\n if (!objIsArr) {\n objTag = objToString.call(object);\n if (objTag == argsTag) {\n objTag = objectTag;\n } else if (objTag != objectTag) {\n objIsArr = isTypedArray(object);\n }\n }\n if (!othIsArr) {\n othTag = objToString.call(other);\n if (othTag == argsTag) {\n othTag = objectTag;\n } else if (othTag != objectTag) {\n othIsArr = isTypedArray(other);\n }\n }\n var objIsObj = objTag == objectTag,\n othIsObj = othTag == objectTag,\n isSameTag = objTag == othTag;\n\n if (isSameTag && !(objIsArr || objIsObj)) {\n return equalByTag(object, other, objTag);\n }\n if (!isLoose) {\n var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),\n othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');\n\n if (objIsWrapped || othIsWrapped) {\n return equalFunc(objIsWrapped ? object.value() : object, othIsWrapped ? other.value() : other, customizer, isLoose, stackA, stackB);\n }\n }\n if (!isSameTag) {\n return false;\n }\n // Assume cyclic values are equal.\n // For more information on detecting circular references see https://es5.github.io/#JO.\n stackA || (stackA = []);\n stackB || (stackB = []);\n\n var length = stackA.length;\n while (length--) {\n if (stackA[length] == object) {\n return stackB[length] == other;\n }\n }\n // Add `object` and `other` to the stack of traversed objects.\n stackA.push(object);\n stackB.push(other);\n\n var result = (objIsArr ? equalArrays : equalObjects)(object, other, equalFunc, customizer, isLoose, stackA, stackB);\n\n stackA.pop();\n stackB.pop();\n\n return result;\n}\n\n/**\n * A specialized version of `baseIsEqualDeep` for arrays with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Array} array The array to compare.\n * @param {Array} other The other array to compare.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Function} [customizer] The function to customize comparing arrays.\n * @param {boolean} [isLoose] Specify performing partial comparisons.\n * @param {Array} [stackA] Tracks traversed `value` objects.\n * @param {Array} [stackB] Tracks traversed `other` objects.\n * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.\n */\nfunction equalArrays(array, other, equalFunc, customizer, isLoose, stackA, stackB) {\n var index = -1,\n arrLength = array.length,\n othLength = other.length;\n\n if (arrLength != othLength && !(isLoose && othLength > arrLength)) {\n return false;\n }\n // Ignore non-index properties.\n while (++index < arrLength) {\n var arrValue = array[index],\n othValue = other[index],\n result = customizer ? customizer(isLoose ? othValue : arrValue, isLoose ? arrValue : othValue, index) : undefined;\n\n if (result !== undefined) {\n if (result) {\n continue;\n }\n return false;\n }\n // Recursively compare arrays (susceptible to call stack limits).\n if (isLoose) {\n if (!arraySome(other, function(othValue) {\n return arrValue === othValue || equalFunc(arrValue, othValue, customizer, isLoose, stackA, stackB);\n })) {\n return false;\n }\n } else if (!(arrValue === othValue || equalFunc(arrValue, othValue, customizer, isLoose, stackA, stackB))) {\n return false;\n }\n }\n return true;\n}\n\n/**\n * A specialized version of `baseIsEqualDeep` for comparing objects of\n * the same `toStringTag`.\n *\n * **Note:** This function only supports comparing values with tags of\n * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.\n *\n * @private\n * @param {Object} value The object to compare.\n * @param {Object} other The other object to compare.\n * @param {string} tag The `toStringTag` of the objects to compare.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction equalByTag(object, other, tag) {\n switch (tag) {\n case boolTag:\n case dateTag:\n // Coerce dates and booleans to numbers, dates to milliseconds and booleans\n // to `1` or `0` treating invalid dates coerced to `NaN` as not equal.\n return +object == +other;\n\n case errorTag:\n return object.name == other.name && object.message == other.message;\n\n case numberTag:\n // Treat `NaN` vs. `NaN` as equal.\n return (object != +object)\n ? other != +other\n : object == +other;\n\n case regexpTag:\n case stringTag:\n // Coerce regexes to strings and treat strings primitives and string\n // objects as equal. See https://es5.github.io/#x15.10.6.4 for more details.\n return object == (other + '');\n }\n return false;\n}\n\n/**\n * A specialized version of `baseIsEqualDeep` for objects with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Function} [customizer] The function to customize comparing values.\n * @param {boolean} [isLoose] Specify performing partial comparisons.\n * @param {Array} [stackA] Tracks traversed `value` objects.\n * @param {Array} [stackB] Tracks traversed `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction equalObjects(object, other, equalFunc, customizer, isLoose, stackA, stackB) {\n var objProps = keys(object),\n objLength = objProps.length,\n othProps = keys(other),\n othLength = othProps.length;\n\n if (objLength != othLength && !isLoose) {\n return false;\n }\n var index = objLength;\n while (index--) {\n var key = objProps[index];\n if (!(isLoose ? key in other : hasOwnProperty.call(other, key))) {\n return false;\n }\n }\n var skipCtor = isLoose;\n while (++index < objLength) {\n key = objProps[index];\n var objValue = object[key],\n othValue = other[key],\n result = customizer ? customizer(isLoose ? othValue : objValue, isLoose? objValue : othValue, key) : undefined;\n\n // Recursively compare objects (susceptible to call stack limits).\n if (!(result === undefined ? equalFunc(objValue, othValue, customizer, isLoose, stackA, stackB) : result)) {\n return false;\n }\n skipCtor || (skipCtor = key == 'constructor');\n }\n if (!skipCtor) {\n var objCtor = object.constructor,\n othCtor = other.constructor;\n\n // Non `Object` object instances with different constructors are not equal.\n if (objCtor != othCtor &&\n ('constructor' in object && 'constructor' in other) &&\n !(typeof objCtor == 'function' && objCtor instanceof objCtor &&\n typeof othCtor == 'function' && othCtor instanceof othCtor)) {\n return false;\n }\n }\n return true;\n}\n\n/**\n * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`.\n * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(1);\n * // => false\n */\nfunction isObject(value) {\n // Avoid a V8 JIT bug in Chrome 19-20.\n // See https://code.google.com/p/v8/issues/detail?id=2291 for more details.\n var type = typeof value;\n return !!value && (type == 'object' || type == 'function');\n}\n\nmodule.exports = baseIsEqual;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/multiaddr/~/lodash.map/~/lodash._basecallback/~/lodash._baseisequal/index.js\n ** module id = 46\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/multiaddr/~/lodash.map/~/lodash._basecallback/~/lodash._baseisequal/index.js?"); + eval("'use strict';\n// ECMAScript 6 symbols shim\nvar $ = __webpack_require__(14)\n , global = __webpack_require__(9)\n , has = __webpack_require__(32)\n , DESCRIPTORS = __webpack_require__(31)\n , $export = __webpack_require__(8)\n , redefine = __webpack_require__(28)\n , $fails = __webpack_require__(19)\n , shared = __webpack_require__(37)\n , setToStringTag = __webpack_require__(35)\n , uid = __webpack_require__(38)\n , wks = __webpack_require__(36)\n , keyOf = __webpack_require__(47)\n , $names = __webpack_require__(48)\n , enumKeys = __webpack_require__(49)\n , isArray = __webpack_require__(50)\n , anObject = __webpack_require__(51)\n , toIObject = __webpack_require__(43)\n , createDesc = __webpack_require__(30)\n , getDesc = $.getDesc\n , setDesc = $.setDesc\n , _create = $.create\n , getNames = $names.get\n , $Symbol = global.Symbol\n , $JSON = global.JSON\n , _stringify = $JSON && $JSON.stringify\n , setter = false\n , HIDDEN = wks('_hidden')\n , isEnum = $.isEnum\n , SymbolRegistry = shared('symbol-registry')\n , AllSymbols = shared('symbols')\n , useNative = typeof $Symbol == 'function'\n , ObjectProto = Object.prototype;\n\n// fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687\nvar setSymbolDesc = DESCRIPTORS && $fails(function(){\n return _create(setDesc({}, 'a', {\n get: function(){ return setDesc(this, 'a', {value: 7}).a; }\n })).a != 7;\n}) ? function(it, key, D){\n var protoDesc = getDesc(ObjectProto, key);\n if(protoDesc)delete ObjectProto[key];\n setDesc(it, key, D);\n if(protoDesc && it !== ObjectProto)setDesc(ObjectProto, key, protoDesc);\n} : setDesc;\n\nvar wrap = function(tag){\n var sym = AllSymbols[tag] = _create($Symbol.prototype);\n sym._k = tag;\n DESCRIPTORS && setter && setSymbolDesc(ObjectProto, tag, {\n configurable: true,\n set: function(value){\n if(has(this, HIDDEN) && has(this[HIDDEN], tag))this[HIDDEN][tag] = false;\n setSymbolDesc(this, tag, createDesc(1, value));\n }\n });\n return sym;\n};\n\nvar isSymbol = function(it){\n return typeof it == 'symbol';\n};\n\nvar $defineProperty = function defineProperty(it, key, D){\n if(D && has(AllSymbols, key)){\n if(!D.enumerable){\n if(!has(it, HIDDEN))setDesc(it, HIDDEN, createDesc(1, {}));\n it[HIDDEN][key] = true;\n } else {\n if(has(it, HIDDEN) && it[HIDDEN][key])it[HIDDEN][key] = false;\n D = _create(D, {enumerable: createDesc(0, false)});\n } return setSymbolDesc(it, key, D);\n } return setDesc(it, key, D);\n};\nvar $defineProperties = function defineProperties(it, P){\n anObject(it);\n var keys = enumKeys(P = toIObject(P))\n , i = 0\n , l = keys.length\n , key;\n while(l > i)$defineProperty(it, key = keys[i++], P[key]);\n return it;\n};\nvar $create = function create(it, P){\n return P === undefined ? _create(it) : $defineProperties(_create(it), P);\n};\nvar $propertyIsEnumerable = function propertyIsEnumerable(key){\n var E = isEnum.call(this, key);\n return E || !has(this, key) || !has(AllSymbols, key) || has(this, HIDDEN) && this[HIDDEN][key]\n ? E : true;\n};\nvar $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(it, key){\n var D = getDesc(it = toIObject(it), key);\n if(D && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key]))D.enumerable = true;\n return D;\n};\nvar $getOwnPropertyNames = function getOwnPropertyNames(it){\n var names = getNames(toIObject(it))\n , result = []\n , i = 0\n , key;\n while(names.length > i)if(!has(AllSymbols, key = names[i++]) && key != HIDDEN)result.push(key);\n return result;\n};\nvar $getOwnPropertySymbols = function getOwnPropertySymbols(it){\n var names = getNames(toIObject(it))\n , result = []\n , i = 0\n , key;\n while(names.length > i)if(has(AllSymbols, key = names[i++]))result.push(AllSymbols[key]);\n return result;\n};\nvar $stringify = function stringify(it){\n if(it === undefined || isSymbol(it))return; // IE8 returns string on undefined\n var args = [it]\n , i = 1\n , $$ = arguments\n , replacer, $replacer;\n while($$.length > i)args.push($$[i++]);\n replacer = args[1];\n if(typeof replacer == 'function')$replacer = replacer;\n if($replacer || !isArray(replacer))replacer = function(key, value){\n if($replacer)value = $replacer.call(this, key, value);\n if(!isSymbol(value))return value;\n };\n args[1] = replacer;\n return _stringify.apply($JSON, args);\n};\nvar buggyJSON = $fails(function(){\n var S = $Symbol();\n // MS Edge converts symbol values to JSON as {}\n // WebKit converts symbol values to JSON as null\n // V8 throws on boxed symbols\n return _stringify([S]) != '[null]' || _stringify({a: S}) != '{}' || _stringify(Object(S)) != '{}';\n});\n\n// 19.4.1.1 Symbol([description])\nif(!useNative){\n $Symbol = function Symbol(){\n if(isSymbol(this))throw TypeError('Symbol is not a constructor');\n return wrap(uid(arguments.length > 0 ? arguments[0] : undefined));\n };\n redefine($Symbol.prototype, 'toString', function toString(){\n return this._k;\n });\n\n isSymbol = function(it){\n return it instanceof $Symbol;\n };\n\n $.create = $create;\n $.isEnum = $propertyIsEnumerable;\n $.getDesc = $getOwnPropertyDescriptor;\n $.setDesc = $defineProperty;\n $.setDescs = $defineProperties;\n $.getNames = $names.get = $getOwnPropertyNames;\n $.getSymbols = $getOwnPropertySymbols;\n\n if(DESCRIPTORS && !__webpack_require__(27)){\n redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);\n }\n}\n\nvar symbolStatics = {\n // 19.4.2.1 Symbol.for(key)\n 'for': function(key){\n return has(SymbolRegistry, key += '')\n ? SymbolRegistry[key]\n : SymbolRegistry[key] = $Symbol(key);\n },\n // 19.4.2.5 Symbol.keyFor(sym)\n keyFor: function keyFor(key){\n return keyOf(SymbolRegistry, key);\n },\n useSetter: function(){ setter = true; },\n useSimple: function(){ setter = false; }\n};\n// 19.4.2.2 Symbol.hasInstance\n// 19.4.2.3 Symbol.isConcatSpreadable\n// 19.4.2.4 Symbol.iterator\n// 19.4.2.6 Symbol.match\n// 19.4.2.8 Symbol.replace\n// 19.4.2.9 Symbol.search\n// 19.4.2.10 Symbol.species\n// 19.4.2.11 Symbol.split\n// 19.4.2.12 Symbol.toPrimitive\n// 19.4.2.13 Symbol.toStringTag\n// 19.4.2.14 Symbol.unscopables\n$.each.call((\n 'hasInstance,isConcatSpreadable,iterator,match,replace,search,' +\n 'species,split,toPrimitive,toStringTag,unscopables'\n).split(','), function(it){\n var sym = wks(it);\n symbolStatics[it] = useNative ? sym : wrap(sym);\n});\n\nsetter = true;\n\n$export($export.G + $export.W, {Symbol: $Symbol});\n\n$export($export.S, 'Symbol', symbolStatics);\n\n$export($export.S + $export.F * !useNative, 'Object', {\n // 19.1.2.2 Object.create(O [, Properties])\n create: $create,\n // 19.1.2.4 Object.defineProperty(O, P, Attributes)\n defineProperty: $defineProperty,\n // 19.1.2.3 Object.defineProperties(O, Properties)\n defineProperties: $defineProperties,\n // 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)\n getOwnPropertyDescriptor: $getOwnPropertyDescriptor,\n // 19.1.2.7 Object.getOwnPropertyNames(O)\n getOwnPropertyNames: $getOwnPropertyNames,\n // 19.1.2.8 Object.getOwnPropertySymbols(O)\n getOwnPropertySymbols: $getOwnPropertySymbols\n});\n\n// 24.3.2 JSON.stringify(value [, replacer [, space]])\n$JSON && $export($export.S + $export.F * (!useNative || buggyJSON), 'JSON', {stringify: $stringify});\n\n// 19.4.3.5 Symbol.prototype[@@toStringTag]\nsetToStringTag($Symbol, 'Symbol');\n// 20.2.1.9 Math[@@toStringTag]\nsetToStringTag(Math, 'Math', true);\n// 24.3.3 JSON[@@toStringTag]\nsetToStringTag(global.JSON, 'JSON', true);\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/es6.symbol.js\n ** module id = 46\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/modules/es6.symbol.js?"); /***/ }, /* 47 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("/**\n * lodash 3.0.4 (Custom Build) \n * Build: `lodash modern modularize exports=\"npm\" -o ./`\n * Copyright 2012-2015 The Dojo Foundation \n * Based on Underscore.js 1.8.3 \n * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n * Available under MIT license \n */\n\n/** `Object#toString` result references. */\nvar arrayTag = '[object Array]',\n funcTag = '[object Function]';\n\n/** Used to detect host constructors (Safari > 5). */\nvar reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n/**\n * Checks if `value` is object-like.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n */\nfunction isObjectLike(value) {\n return !!value && typeof value == 'object';\n}\n\n/** Used for native method references. */\nvar objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar fnToString = Function.prototype.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar objToString = objectProto.toString;\n\n/** Used to detect if a method is native. */\nvar reIsNative = RegExp('^' +\n fnToString.call(hasOwnProperty).replace(/[\\\\^$.*+?()[\\]{}|]/g, '\\\\$&')\n .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$'\n);\n\n/* Native method references for those with the same name as other `lodash` methods. */\nvar nativeIsArray = getNative(Array, 'isArray');\n\n/**\n * Used as the [maximum length](http://ecma-international.org/ecma-262/6.0/#sec-number.max_safe_integer)\n * of an array-like value.\n */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\nfunction getNative(object, key) {\n var value = object == null ? undefined : object[key];\n return isNative(value) ? value : undefined;\n}\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This function is based on [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength).\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n */\nfunction isLength(value) {\n return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\n/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(function() { return arguments; }());\n * // => false\n */\nvar isArray = nativeIsArray || function(value) {\n return isObjectLike(value) && isLength(value.length) && objToString.call(value) == arrayTag;\n};\n\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\nfunction isFunction(value) {\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in older versions of Chrome and Safari which return 'function' for regexes\n // and Safari 8 equivalents which return 'object' for typed array constructors.\n return isObject(value) && objToString.call(value) == funcTag;\n}\n\n/**\n * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`.\n * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(1);\n * // => false\n */\nfunction isObject(value) {\n // Avoid a V8 JIT bug in Chrome 19-20.\n // See https://code.google.com/p/v8/issues/detail?id=2291 for more details.\n var type = typeof value;\n return !!value && (type == 'object' || type == 'function');\n}\n\n/**\n * Checks if `value` is a native function.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function, else `false`.\n * @example\n *\n * _.isNative(Array.prototype.push);\n * // => true\n *\n * _.isNative(_);\n * // => false\n */\nfunction isNative(value) {\n if (value == null) {\n return false;\n }\n if (isFunction(value)) {\n return reIsNative.test(fnToString.call(value));\n }\n return isObjectLike(value) && reIsHostCtor.test(value);\n}\n\nmodule.exports = isArray;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/multiaddr/~/lodash.map/~/lodash.isarray/index.js\n ** module id = 47\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/multiaddr/~/lodash.map/~/lodash.isarray/index.js?"); + eval("var $ = __webpack_require__(14)\n , toIObject = __webpack_require__(43);\nmodule.exports = function(object, el){\n var O = toIObject(object)\n , keys = $.getKeys(O)\n , length = keys.length\n , index = 0\n , key;\n while(length > index)if(O[key = keys[index++]] === el)return key;\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.keyof.js\n ** module id = 47\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/modules/$.keyof.js?"); /***/ }, /* 48 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(global) {/**\n * lodash 3.0.3 (Custom Build) \n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright 2012-2016 The Dojo Foundation \n * Based on Underscore.js 1.8.3 \n * Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n * Available under MIT license \n */\n\n/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n objectTag = '[object Object]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n weakMapTag = '[object WeakMap]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/** Used to identify `toStringTag` values of typed arrays. */\nvar typedArrayTags = {};\ntypedArrayTags[float32Tag] = typedArrayTags[float64Tag] =\ntypedArrayTags[int8Tag] = typedArrayTags[int16Tag] =\ntypedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =\ntypedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =\ntypedArrayTags[uint32Tag] = true;\ntypedArrayTags[argsTag] = typedArrayTags[arrayTag] =\ntypedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =\ntypedArrayTags[dateTag] = typedArrayTags[errorTag] =\ntypedArrayTags[funcTag] = typedArrayTags[mapTag] =\ntypedArrayTags[numberTag] = typedArrayTags[objectTag] =\ntypedArrayTags[regexpTag] = typedArrayTags[setTag] =\ntypedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false;\n\n/** Used for built-in method references. */\nvar objectProto = global.Object.prototype;\n\n/**\n * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar objectToString = objectProto.toString;\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This function is loosely based on [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\nfunction isLength(value) {\n return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return !!value && typeof value == 'object';\n}\n\n/**\n * Checks if `value` is classified as a typed array.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.\n * @example\n *\n * _.isTypedArray(new Uint8Array);\n * // => true\n *\n * _.isTypedArray([]);\n * // => false\n */\nfunction isTypedArray(value) {\n return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[objectToString.call(value)];\n}\n\nmodule.exports = isTypedArray;\n\n/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/multiaddr/~/lodash.map/~/lodash._basecallback/~/lodash._baseisequal/~/lodash.istypedarray/index.js\n ** module id = 48\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/multiaddr/~/lodash.map/~/lodash._basecallback/~/lodash._baseisequal/~/lodash.istypedarray/index.js?"); + eval("// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window\nvar toIObject = __webpack_require__(43)\n , getNames = __webpack_require__(14).getNames\n , toString = {}.toString;\n\nvar windowNames = typeof window == 'object' && Object.getOwnPropertyNames\n ? Object.getOwnPropertyNames(window) : [];\n\nvar getWindowNames = function(it){\n try {\n return getNames(it);\n } catch(e){\n return windowNames.slice();\n }\n};\n\nmodule.exports.get = function getOwnPropertyNames(it){\n if(windowNames && toString.call(it) == '[object Window]')return getWindowNames(it);\n return getNames(toIObject(it));\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.get-names.js\n ** module id = 48\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/modules/$.get-names.js?"); /***/ }, /* 49 */ /***/ function(module, exports, __webpack_require__) { - eval("/**\n * lodash 3.1.2 (Custom Build) \n * Build: `lodash modern modularize exports=\"npm\" -o ./`\n * Copyright 2012-2015 The Dojo Foundation \n * Based on Underscore.js 1.8.3 \n * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n * Available under MIT license \n */\nvar getNative = __webpack_require__(50),\n isArguments = __webpack_require__(51),\n isArray = __webpack_require__(47);\n\n/** Used to detect unsigned integer values. */\nvar reIsUint = /^\\d+$/;\n\n/** Used for native method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/* Native method references for those with the same name as other `lodash` methods. */\nvar nativeKeys = getNative(Object, 'keys');\n\n/**\n * Used as the [maximum length](http://ecma-international.org/ecma-262/6.0/#sec-number.max_safe_integer)\n * of an array-like value.\n */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/**\n * The base implementation of `_.property` without support for deep paths.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @returns {Function} Returns the new function.\n */\nfunction baseProperty(key) {\n return function(object) {\n return object == null ? undefined : object[key];\n };\n}\n\n/**\n * Gets the \"length\" property value of `object`.\n *\n * **Note:** This function is used to avoid a [JIT bug](https://bugs.webkit.org/show_bug.cgi?id=142792)\n * that affects Safari on at least iOS 8.1-8.3 ARM64.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {*} Returns the \"length\" value.\n */\nvar getLength = baseProperty('length');\n\n/**\n * Checks if `value` is array-like.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n */\nfunction isArrayLike(value) {\n return value != null && isLength(getLength(value));\n}\n\n/**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\nfunction isIndex(value, length) {\n value = (typeof value == 'number' || reIsUint.test(value)) ? +value : -1;\n length = length == null ? MAX_SAFE_INTEGER : length;\n return value > -1 && value % 1 == 0 && value < length;\n}\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This function is based on [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength).\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n */\nfunction isLength(value) {\n return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\n/**\n * A fallback implementation of `Object.keys` which creates an array of the\n * own enumerable property names of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction shimKeys(object) {\n var props = keysIn(object),\n propsLength = props.length,\n length = propsLength && object.length;\n\n var allowIndexes = !!length && isLength(length) &&\n (isArray(object) || isArguments(object));\n\n var index = -1,\n result = [];\n\n while (++index < propsLength) {\n var key = props[index];\n if ((allowIndexes && isIndex(key, length)) || hasOwnProperty.call(object, key)) {\n result.push(key);\n }\n }\n return result;\n}\n\n/**\n * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`.\n * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(1);\n * // => false\n */\nfunction isObject(value) {\n // Avoid a V8 JIT bug in Chrome 19-20.\n // See https://code.google.com/p/v8/issues/detail?id=2291 for more details.\n var type = typeof value;\n return !!value && (type == 'object' || type == 'function');\n}\n\n/**\n * Creates an array of the own enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects. See the\n * [ES spec](http://ecma-international.org/ecma-262/6.0/#sec-object.keys)\n * for more details.\n *\n * @static\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keys(new Foo);\n * // => ['a', 'b'] (iteration order is not guaranteed)\n *\n * _.keys('hi');\n * // => ['0', '1']\n */\nvar keys = !nativeKeys ? shimKeys : function(object) {\n var Ctor = object == null ? undefined : object.constructor;\n if ((typeof Ctor == 'function' && Ctor.prototype === object) ||\n (typeof object != 'function' && isArrayLike(object))) {\n return shimKeys(object);\n }\n return isObject(object) ? nativeKeys(object) : [];\n};\n\n/**\n * Creates an array of the own and inherited enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keysIn(new Foo);\n * // => ['a', 'b', 'c'] (iteration order is not guaranteed)\n */\nfunction keysIn(object) {\n if (object == null) {\n return [];\n }\n if (!isObject(object)) {\n object = Object(object);\n }\n var length = object.length;\n length = (length && isLength(length) &&\n (isArray(object) || isArguments(object)) && length) || 0;\n\n var Ctor = object.constructor,\n index = -1,\n isProto = typeof Ctor == 'function' && Ctor.prototype === object,\n result = Array(length),\n skipIndexes = length > 0;\n\n while (++index < length) {\n result[index] = (index + '');\n }\n for (var key in object) {\n if (!(skipIndexes && isIndex(key, length)) &&\n !(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = keys;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/multiaddr/~/lodash.map/~/lodash.keys/index.js\n ** module id = 49\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/multiaddr/~/lodash.map/~/lodash.keys/index.js?"); + eval("// all enumerable object keys, includes symbols\nvar $ = __webpack_require__(14);\nmodule.exports = function(it){\n var keys = $.getKeys(it)\n , getSymbols = $.getSymbols;\n if(getSymbols){\n var symbols = getSymbols(it)\n , isEnum = $.isEnum\n , i = 0\n , key;\n while(symbols.length > i)if(isEnum.call(it, key = symbols[i++]))keys.push(key);\n }\n return keys;\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.enum-keys.js\n ** module id = 49\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/modules/$.enum-keys.js?"); /***/ }, /* 50 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("/**\n * lodash 3.9.1 (Custom Build) \n * Build: `lodash modern modularize exports=\"npm\" -o ./`\n * Copyright 2012-2015 The Dojo Foundation \n * Based on Underscore.js 1.8.3 \n * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n * Available under MIT license \n */\n\n/** `Object#toString` result references. */\nvar funcTag = '[object Function]';\n\n/** Used to detect host constructors (Safari > 5). */\nvar reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n/**\n * Checks if `value` is object-like.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n */\nfunction isObjectLike(value) {\n return !!value && typeof value == 'object';\n}\n\n/** Used for native method references. */\nvar objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar fnToString = Function.prototype.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar objToString = objectProto.toString;\n\n/** Used to detect if a method is native. */\nvar reIsNative = RegExp('^' +\n fnToString.call(hasOwnProperty).replace(/[\\\\^$.*+?()[\\]{}|]/g, '\\\\$&')\n .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$'\n);\n\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\nfunction getNative(object, key) {\n var value = object == null ? undefined : object[key];\n return isNative(value) ? value : undefined;\n}\n\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\nfunction isFunction(value) {\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in older versions of Chrome and Safari which return 'function' for regexes\n // and Safari 8 equivalents which return 'object' for typed array constructors.\n return isObject(value) && objToString.call(value) == funcTag;\n}\n\n/**\n * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`.\n * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(1);\n * // => false\n */\nfunction isObject(value) {\n // Avoid a V8 JIT bug in Chrome 19-20.\n // See https://code.google.com/p/v8/issues/detail?id=2291 for more details.\n var type = typeof value;\n return !!value && (type == 'object' || type == 'function');\n}\n\n/**\n * Checks if `value` is a native function.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function, else `false`.\n * @example\n *\n * _.isNative(Array.prototype.push);\n * // => true\n *\n * _.isNative(_);\n * // => false\n */\nfunction isNative(value) {\n if (value == null) {\n return false;\n }\n if (isFunction(value)) {\n return reIsNative.test(fnToString.call(value));\n }\n return isObjectLike(value) && reIsHostCtor.test(value);\n}\n\nmodule.exports = getNative;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/multiaddr/~/lodash.map/~/lodash.keys/~/lodash._getnative/index.js\n ** module id = 50\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/multiaddr/~/lodash.map/~/lodash.keys/~/lodash._getnative/index.js?"); + eval("// 7.2.2 IsArray(argument)\nvar cof = __webpack_require__(18);\nmodule.exports = Array.isArray || function(arg){\n return cof(arg) == 'Array';\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.is-array.js\n ** module id = 50\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/modules/$.is-array.js?"); /***/ }, /* 51 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(global) {/**\n * lodash 3.0.5 (Custom Build) \n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright 2012-2016 The Dojo Foundation \n * Based on Underscore.js 1.8.3 \n * Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n * Available under MIT license \n */\n\n/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]';\n\n/** Used for built-in method references. */\nvar objectProto = global.Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar objectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n\n/**\n * The base implementation of `_.property` without support for deep paths.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @returns {Function} Returns the new function.\n */\nfunction baseProperty(key) {\n return function(object) {\n return object == null ? undefined : object[key];\n };\n}\n\n/**\n * Gets the \"length\" property value of `object`.\n *\n * **Note:** This function is used to avoid a [JIT bug](https://bugs.webkit.org/show_bug.cgi?id=142792)\n * that affects Safari on at least iOS 8.1-8.3 ARM64.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {*} Returns the \"length\" value.\n */\nvar getLength = baseProperty('length');\n\n/**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\nfunction isArguments(value) {\n // Safari 8.1 incorrectly makes `arguments.callee` enumerable in strict mode.\n return isArrayLikeObject(value) && hasOwnProperty.call(value, 'callee') &&\n (!propertyIsEnumerable.call(value, 'callee') || objectToString.call(value) == argsTag);\n}\n\n/**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @type Function\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\nfunction isArrayLike(value) {\n return value != null &&\n !(typeof value == 'function' && isFunction(value)) && isLength(getLength(value));\n}\n\n/**\n * This method is like `_.isArrayLike` except that it also checks if `value`\n * is an object.\n *\n * @static\n * @memberOf _\n * @type Function\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array-like object, else `false`.\n * @example\n *\n * _.isArrayLikeObject([1, 2, 3]);\n * // => true\n *\n * _.isArrayLikeObject(document.body.children);\n * // => true\n *\n * _.isArrayLikeObject('abc');\n * // => false\n *\n * _.isArrayLikeObject(_.noop);\n * // => false\n */\nfunction isArrayLikeObject(value) {\n return isObjectLike(value) && isArrayLike(value);\n}\n\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\nfunction isFunction(value) {\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 8 which returns 'object' for typed array constructors, and\n // PhantomJS 1.9 which returns 'function' for `NodeList` instances.\n var tag = isObject(value) ? objectToString.call(value) : '';\n return tag == funcTag || tag == genTag;\n}\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This function is loosely based on [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\nfunction isLength(value) {\n return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\n/**\n * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`.\n * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n // Avoid a V8 JIT bug in Chrome 19-20.\n // See https://code.google.com/p/v8/issues/detail?id=2291 for more details.\n var type = typeof value;\n return !!value && (type == 'object' || type == 'function');\n}\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return !!value && typeof value == 'object';\n}\n\nmodule.exports = isArguments;\n\n/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/multiaddr/~/lodash.map/~/lodash.keys/~/lodash.isarguments/index.js\n ** module id = 51\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/multiaddr/~/lodash.map/~/lodash.keys/~/lodash.isarguments/index.js?"); + eval("var isObject = __webpack_require__(52);\nmodule.exports = function(it){\n if(!isObject(it))throw TypeError(it + ' is not an object!');\n return it;\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.an-object.js\n ** module id = 51\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/modules/$.an-object.js?"); /***/ }, /* 52 */ /***/ function(module, exports) { - eval("/**\n * lodash 3.0.1 (Custom Build) \n * Build: `lodash modern modularize exports=\"npm\" -o ./`\n * Copyright 2012-2015 The Dojo Foundation \n * Based on Underscore.js 1.8.3 \n * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n * Available under MIT license \n */\n\n/**\n * A specialized version of `baseCallback` which only supports `this` binding\n * and specifying the number of arguments to provide to `func`.\n *\n * @private\n * @param {Function} func The function to bind.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {number} [argCount] The number of arguments to provide to `func`.\n * @returns {Function} Returns the callback.\n */\nfunction bindCallback(func, thisArg, argCount) {\n if (typeof func != 'function') {\n return identity;\n }\n if (thisArg === undefined) {\n return func;\n }\n switch (argCount) {\n case 1: return function(value) {\n return func.call(thisArg, value);\n };\n case 3: return function(value, index, collection) {\n return func.call(thisArg, value, index, collection);\n };\n case 4: return function(accumulator, value, index, collection) {\n return func.call(thisArg, accumulator, value, index, collection);\n };\n case 5: return function(value, other, key, object, source) {\n return func.call(thisArg, value, other, key, object, source);\n };\n }\n return function() {\n return func.apply(thisArg, arguments);\n };\n}\n\n/**\n * This method returns the first argument provided to it.\n *\n * @static\n * @memberOf _\n * @category Utility\n * @param {*} value Any value.\n * @returns {*} Returns `value`.\n * @example\n *\n * var object = { 'user': 'fred' };\n *\n * _.identity(object) === object;\n * // => true\n */\nfunction identity(value) {\n return value;\n}\n\nmodule.exports = bindCallback;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/multiaddr/~/lodash.map/~/lodash._basecallback/~/lodash._bindcallback/index.js\n ** module id = 52\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/multiaddr/~/lodash.map/~/lodash._basecallback/~/lodash._bindcallback/index.js?"); + eval("module.exports = function(it){\n return typeof it === 'object' ? it !== null : typeof it === 'function';\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.is-object.js\n ** module id = 52\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/modules/$.is-object.js?"); /***/ }, /* 53 */ -/***/ function(module, exports, __webpack_require__) { +/***/ function(module, exports) { - eval("/**\n * lodash 3.0.1 (Custom Build) \n * Build: `lodash modern modularize exports=\"npm\" -o ./`\n * Copyright 2012-2015 The Dojo Foundation \n * Based on Underscore.js 1.8.3 \n * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n * Available under MIT license \n */\nvar keys = __webpack_require__(49);\n\n/**\n * Converts `value` to an object if it's not one.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {Object} Returns the object.\n */\nfunction toObject(value) {\n return isObject(value) ? value : Object(value);\n}\n\n/**\n * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`.\n * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(1);\n * // => false\n */\nfunction isObject(value) {\n // Avoid a V8 JIT bug in Chrome 19-20.\n // See https://code.google.com/p/v8/issues/detail?id=2291 for more details.\n var type = typeof value;\n return !!value && (type == 'object' || type == 'function');\n}\n\n/**\n * Creates a two dimensional array of the key-value pairs for `object`,\n * e.g. `[[key1, value1], [key2, value2]]`.\n *\n * @static\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the new array of key-value pairs.\n * @example\n *\n * _.pairs({ 'barney': 36, 'fred': 40 });\n * // => [['barney', 36], ['fred', 40]] (iteration order is not guaranteed)\n */\nfunction pairs(object) {\n object = toObject(object);\n\n var index = -1,\n props = keys(object),\n length = props.length,\n result = Array(length);\n\n while (++index < length) {\n var key = props[index];\n result[index] = [key, object[key]];\n }\n return result;\n}\n\nmodule.exports = pairs;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/multiaddr/~/lodash.map/~/lodash._basecallback/~/lodash.pairs/index.js\n ** module id = 53\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/multiaddr/~/lodash.map/~/lodash._basecallback/~/lodash.pairs/index.js?"); + eval("\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/es6.object.to-string.js\n ** module id = 53\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/modules/es6.object.to-string.js?"); /***/ }, /* 54 */ /***/ function(module, exports, __webpack_require__) { - eval("/**\n * lodash 3.0.4 (Custom Build) \n * Build: `lodash modern modularize exports=\"npm\" -o ./`\n * Copyright 2012-2015 The Dojo Foundation \n * Based on Underscore.js 1.8.3 \n * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n * Available under MIT license \n */\nvar keys = __webpack_require__(49);\n\n/**\n * Used as the [maximum length](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.max_safe_integer)\n * of an array-like value.\n */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/**\n * The base implementation of `_.forEach` without support for callback\n * shorthands and `this` binding.\n *\n * @private\n * @param {Array|Object|string} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array|Object|string} Returns `collection`.\n */\nvar baseEach = createBaseEach(baseForOwn);\n\n/**\n * The base implementation of `baseForIn` and `baseForOwn` which iterates\n * over `object` properties returned by `keysFunc` invoking `iteratee` for\n * each property. Iteratee functions may exit iteration early by explicitly\n * returning `false`.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @returns {Object} Returns `object`.\n */\nvar baseFor = createBaseFor();\n\n/**\n * The base implementation of `_.forOwn` without support for callback\n * shorthands and `this` binding.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Object} Returns `object`.\n */\nfunction baseForOwn(object, iteratee) {\n return baseFor(object, iteratee, keys);\n}\n\n/**\n * The base implementation of `_.property` without support for deep paths.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @returns {Function} Returns the new function.\n */\nfunction baseProperty(key) {\n return function(object) {\n return object == null ? undefined : object[key];\n };\n}\n\n/**\n * Creates a `baseEach` or `baseEachRight` function.\n *\n * @private\n * @param {Function} eachFunc The function to iterate over a collection.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\nfunction createBaseEach(eachFunc, fromRight) {\n return function(collection, iteratee) {\n var length = collection ? getLength(collection) : 0;\n if (!isLength(length)) {\n return eachFunc(collection, iteratee);\n }\n var index = fromRight ? length : -1,\n iterable = toObject(collection);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (iteratee(iterable[index], index, iterable) === false) {\n break;\n }\n }\n return collection;\n };\n}\n\n/**\n * Creates a base function for `_.forIn` or `_.forInRight`.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\nfunction createBaseFor(fromRight) {\n return function(object, iteratee, keysFunc) {\n var iterable = toObject(object),\n props = keysFunc(object),\n length = props.length,\n index = fromRight ? length : -1;\n\n while ((fromRight ? index-- : ++index < length)) {\n var key = props[index];\n if (iteratee(iterable[key], key, iterable) === false) {\n break;\n }\n }\n return object;\n };\n}\n\n/**\n * Gets the \"length\" property value of `object`.\n *\n * **Note:** This function is used to avoid a [JIT bug](https://bugs.webkit.org/show_bug.cgi?id=142792)\n * that affects Safari on at least iOS 8.1-8.3 ARM64.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {*} Returns the \"length\" value.\n */\nvar getLength = baseProperty('length');\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This function is based on [`ToLength`](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength).\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n */\nfunction isLength(value) {\n return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\n/**\n * Converts `value` to an object if it's not one.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {Object} Returns the object.\n */\nfunction toObject(value) {\n return isObject(value) ? value : Object(value);\n}\n\n/**\n * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`.\n * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(1);\n * // => false\n */\nfunction isObject(value) {\n // Avoid a V8 JIT bug in Chrome 19-20.\n // See https://code.google.com/p/v8/issues/detail?id=2291 for more details.\n var type = typeof value;\n return !!value && (type == 'object' || type == 'function');\n}\n\nmodule.exports = baseEach;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/multiaddr/~/lodash.map/~/lodash._baseeach/index.js\n ** module id = 54\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/multiaddr/~/lodash.map/~/lodash._baseeach/index.js?"); + eval("/* WEBPACK VAR INJECTION */(function(Buffer) {var map = __webpack_require__(55)\nvar extend = __webpack_require__(67)\nvar codec = __webpack_require__(68)\nvar bufeq = __webpack_require__(76)\nvar protocols = __webpack_require__(75)\nvar NotImplemented = new Error('Sorry, Not Implemented Yet.')\n\nexports = module.exports = Multiaddr\n\nexports.Buffer = Buffer\n\nfunction Multiaddr (addr) {\n if (!(this instanceof Multiaddr)) {\n return new Multiaddr(addr)\n }\n\n // defaults\n if (!addr) {\n addr = ''\n }\n\n if (addr instanceof Buffer) {\n this.buffer = codec.fromBuffer(addr)\n } else if (typeof (addr) === 'string' || addr instanceof String) {\n this.buffer = codec.fromString(addr)\n } else if (addr.buffer && addr.protos && addr.protoCodes) { // Multiaddr\n this.buffer = codec.fromBuffer(addr.buffer) // validate + copy buffer\n } else {\n throw new Error('addr must be a string, Buffer, or Multiaddr')\n }\n}\n\n// get the multiaddr protocols\nMultiaddr.prototype.toString = function toString () {\n return codec.bufferToString(this.buffer)\n}\n\n// get the multiaddr as a convinent options object to be dropped in net.createConnection\nMultiaddr.prototype.toOptions = function toOptions () {\n var opts = {}\n var parsed = this.toString().split('/')\n opts.family = parsed[1] === 'ip4' ? 'ipv4' : 'ipv6'\n opts.host = parsed[2]\n opts.port = parsed[4]\n return opts\n}\n\n// get the multiaddr protocols\nMultiaddr.prototype.inspect = function inspect () {\n return ''\n}\n\n// get the multiaddr protocols\nMultiaddr.prototype.protos = function protos () {\n return map(this.protoCodes(), function (code) {\n return extend(protocols(code))\n // copy to prevent users from modifying the internal objs.\n })\n}\n\n// get the multiaddr protocols\nMultiaddr.prototype.protos = function protos () {\n return map(this.protoCodes(), function (code) {\n return extend(protocols(code))\n // copy to prevent users from modifying the internal objs.\n })\n}\n\n// get the multiaddr protocol codes\nMultiaddr.prototype.protoCodes = function protoCodes () {\n var codes = []\n for (var i = 0; i < this.buffer.length; i++) {\n var code = 0 + this.buffer[i]\n var size = protocols(code).size / 8\n i += size // skip over proto data\n codes.push(code)\n }\n return codes\n}\n\n// get the multiaddr protocol string names\nMultiaddr.prototype.protoNames = function protoNames () {\n return map(this.protos(), function (proto) {\n return proto.name\n })\n}\n\n// Returns a tuple of parts:\nMultiaddr.prototype.tuples = function tuples () {\n return codec.bufferToTuples(this.buffer)\n}\n\n// Returns a tuple of string parts:\nMultiaddr.prototype.stringTuples = function stringTuples () {\n var t = codec.bufferToTuples(this.buffer)\n return codec.tuplesToStringTuples(t)\n}\n\nMultiaddr.prototype.encapsulate = function encapsulate (addr) {\n addr = Multiaddr(addr)\n return Multiaddr(this.toString() + addr.toString())\n}\n\nMultiaddr.prototype.decapsulate = function decapsulate (addr) {\n addr = addr.toString()\n var s = this.toString()\n var i = s.lastIndexOf(addr)\n if (i < 0) {\n throw new Error('Address ' + this + ' does not contain subaddress: ' + addr)\n }\n return Multiaddr(s.slice(0, i))\n}\n\nMultiaddr.prototype.equals = function equals (addr) {\n return bufeq(this.buffer, addr.buffer)\n}\n\n// get a node friendly address object\nMultiaddr.prototype.nodeAddress = function nodeAddress () {\n if (!this.isThinWaistAddress()) {\n throw new Error('Multiaddr must be \"thin waist\" address for nodeAddress.')\n }\n\n var codes = this.protoCodes()\n var parts = this.toString().split('/').slice(1)\n return {\n family: (codes[0] === 41) ? 'IPv6' : 'IPv4',\n address: parts[1], // ip addr\n port: parts[3] // tcp or udp port\n }\n}\n\n// from a node friendly address object\nMultiaddr.fromNodeAddress = function fromNodeAddress (addr, transport) {\n if (!addr) throw new Error('requires node address object')\n if (!transport) throw new Error('requires transport protocol')\n var ip = (addr.family === 'IPv6') ? 'ip6' : 'ip4'\n return Multiaddr('/' + [ip, addr.address, transport, addr.port].join('/'))\n}\n\n// returns whether this address is a standard combination:\n// /{IPv4, IPv6}/{TCP, UDP}\nMultiaddr.prototype.isThinWaistAddress = function isThinWaistAddress (addr) {\n var protos = (addr || this).protos()\n if (protos.length !== 2) {\n return false\n }\n if (protos[0].code !== 4 && protos[0].code !== 41) {\n return false\n }\n if (protos[1].code !== 6 && protos[1].code !== 17) {\n return false\n }\n return true\n}\n\n// parses the \"stupid string\" format:\n// ://[:]\n// udp4://1.2.3.4:5678\nMultiaddr.prototype.fromStupidString = function fromStupidString (str) {\n throw NotImplemented\n}\n\n// patch this in\nMultiaddr.protocols = protocols\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1).Buffer))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/multiaddr/src/index.js\n ** module id = 54\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/multiaddr/src/index.js?"); /***/ }, /* 55 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("module.exports = extend\n\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\nfunction extend() {\n var target = {}\n\n for (var i = 0; i < arguments.length; i++) {\n var source = arguments[i]\n\n for (var key in source) {\n if (hasOwnProperty.call(source, key)) {\n target[key] = source[key]\n }\n }\n }\n\n return target\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/multiaddr/~/xtend/immutable.js\n ** module id = 55\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/multiaddr/~/xtend/immutable.js?"); + eval("/**\n * lodash 3.1.4 (Custom Build) \n * Build: `lodash modern modularize exports=\"npm\" -o ./`\n * Copyright 2012-2015 The Dojo Foundation \n * Based on Underscore.js 1.8.3 \n * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n * Available under MIT license \n */\nvar arrayMap = __webpack_require__(56),\n baseCallback = __webpack_require__(57),\n baseEach = __webpack_require__(66),\n isArray = __webpack_require__(59);\n\n/**\n * Used as the [maximum length](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.max_safe_integer)\n * of an array-like value.\n */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/**\n * The base implementation of `_.map` without support for callback shorthands\n * and `this` binding.\n *\n * @private\n * @param {Array|Object|string} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\nfunction baseMap(collection, iteratee) {\n var index = -1,\n result = isArrayLike(collection) ? Array(collection.length) : [];\n\n baseEach(collection, function(value, key, collection) {\n result[++index] = iteratee(value, key, collection);\n });\n return result;\n}\n\n/**\n * The base implementation of `_.property` without support for deep paths.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @returns {Function} Returns the new function.\n */\nfunction baseProperty(key) {\n return function(object) {\n return object == null ? undefined : object[key];\n };\n}\n\n/**\n * Gets the \"length\" property value of `object`.\n *\n * **Note:** This function is used to avoid a [JIT bug](https://bugs.webkit.org/show_bug.cgi?id=142792)\n * that affects Safari on at least iOS 8.1-8.3 ARM64.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {*} Returns the \"length\" value.\n */\nvar getLength = baseProperty('length');\n\n/**\n * Checks if `value` is array-like.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n */\nfunction isArrayLike(value) {\n return value != null && isLength(getLength(value));\n}\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This function is based on [`ToLength`](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength).\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n */\nfunction isLength(value) {\n return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\n/**\n * Creates an array of values by running each element in `collection` through\n * `iteratee`. The `iteratee` is bound to `thisArg` and invoked with three\n * arguments: (value, index|key, collection).\n *\n * If a property name is provided for `iteratee` the created `_.property`\n * style callback returns the property value of the given element.\n *\n * If a value is also provided for `thisArg` the created `_.matchesProperty`\n * style callback returns `true` for elements that have a matching property\n * value, else `false`.\n *\n * If an object is provided for `iteratee` the created `_.matches` style\n * callback returns `true` for elements that have the properties of the given\n * object, else `false`.\n *\n * Many lodash methods are guarded to work as iteratees for methods like\n * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.\n *\n * The guarded methods are:\n * `ary`, `callback`, `chunk`, `clone`, `create`, `curry`, `curryRight`,\n * `drop`, `dropRight`, `every`, `fill`, `flatten`, `invert`, `max`, `min`,\n * `parseInt`, `slice`, `sortBy`, `take`, `takeRight`, `template`, `trim`,\n * `trimLeft`, `trimRight`, `trunc`, `random`, `range`, `sample`, `some`,\n * `sum`, `uniq`, and `words`\n *\n * @static\n * @memberOf _\n * @alias collect\n * @category Collection\n * @param {Array|Object|string} collection The collection to iterate over.\n * @param {Function|Object|string} [iteratee=_.identity] The function invoked\n * per iteration.\n * @param {*} [thisArg] The `this` binding of `iteratee`.\n * @returns {Array} Returns the new mapped array.\n * @example\n *\n * function timesThree(n) {\n * return n * 3;\n * }\n *\n * _.map([1, 2], timesThree);\n * // => [3, 6]\n *\n * _.map({ 'a': 1, 'b': 2 }, timesThree);\n * // => [3, 6] (iteration order is not guaranteed)\n *\n * var users = [\n * { 'user': 'barney' },\n * { 'user': 'fred' }\n * ];\n *\n * // using the `_.property` callback shorthand\n * _.map(users, 'user');\n * // => ['barney', 'fred']\n */\nfunction map(collection, iteratee, thisArg) {\n var func = isArray(collection) ? arrayMap : baseMap;\n iteratee = baseCallback(iteratee, thisArg, 3);\n return func(collection, iteratee);\n}\n\nmodule.exports = map;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/lodash.map/index.js\n ** module id = 55\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/lodash.map/index.js?"); /***/ }, /* 56 */ -/***/ function(module, exports, __webpack_require__) { +/***/ function(module, exports) { - eval("/* WEBPACK VAR INJECTION */(function(Buffer) {var map = __webpack_require__(43)\nvar filter = __webpack_require__(57)\n// var log = console.log\nvar convert = __webpack_require__(70)\nvar protocols = __webpack_require__(73)\n\n// export codec\nmodule.exports = {\n stringToStringTuples: stringToStringTuples,\n stringTuplesToString: stringTuplesToString,\n\n tuplesToStringTuples: tuplesToStringTuples,\n stringTuplesToTuples: stringTuplesToTuples,\n\n bufferToTuples: bufferToTuples,\n tuplesToBuffer: tuplesToBuffer,\n\n bufferToString: bufferToString,\n stringToBuffer: stringToBuffer,\n\n fromString: fromString,\n fromBuffer: fromBuffer,\n validateBuffer: validateBuffer,\n isValidBuffer: isValidBuffer,\n cleanPath: cleanPath,\n\n ParseError: ParseError,\n protoFromTuple: protoFromTuple\n}\n\n// string -> [[str name, str addr]... ]\nfunction stringToStringTuples (str) {\n var tuples = []\n var parts = str.split('/').slice(1) // skip first empty elem\n if (parts.length === 1 && parts[0] === '') {\n return []\n }\n\n for (var p = 0; p < parts.length; p++) {\n var part = parts[p]\n var proto = protocols(part)\n if (proto.size === 0) {\n return [part]\n }\n\n p++ // advance addr part\n if (p >= parts.length) {\n throw ParseError('invalid address: ' + str)\n }\n\n tuples.push([part, parts[p]])\n }\n return tuples\n}\n\n// [[str name, str addr]... ] -> string\nfunction stringTuplesToString (tuples) {\n var parts = []\n map(tuples, function (tup) {\n var proto = protoFromTuple(tup)\n parts.push(proto.name)\n if (tup.length > 1) {\n parts.push(tup[1])\n }\n })\n return '/' + parts.join('/')\n}\n\n// [[str name, str addr]... ] -> [[int code, Buffer]... ]\nfunction stringTuplesToTuples (tuples) {\n return map(tuples, function (tup) {\n var proto = protoFromTuple(tup)\n if (tup.length > 1) {\n return [proto.code, convert.toBuffer(proto.code, tup[1])]\n }\n return [proto.code]\n })\n}\n\n// [[int code, Buffer]... ] -> [[str name, str addr]... ]\nfunction tuplesToStringTuples (tuples) {\n return map(tuples, function (tup) {\n var proto = protoFromTuple(tup)\n if (tup.length > 1) {\n return [proto.code, convert.toString(proto.code, tup[1])]\n }\n return [proto.code]\n })\n}\n\n// [[int code, Buffer ]... ] -> Buffer\nfunction tuplesToBuffer (tuples) {\n return fromBuffer(Buffer.concat(map(tuples, function (tup) {\n var proto = protoFromTuple(tup)\n var buf = new Buffer([proto.code])\n if (tup.length > 1) {\n buf = Buffer.concat([buf, tup[1]]) // add address buffer\n }\n return buf\n })))\n}\n\n// Buffer -> [[int code, Buffer ]... ]\nfunction bufferToTuples (buf) {\n var tuples = []\n for (var i = 0; i < buf.length;) {\n var code = buf[i]\n var proto = protocols(code)\n if (!proto) {\n throw ParseError('Invalid protocol code: ' + code)\n }\n\n var size = (proto.size / 8)\n code = 0 + buf[i]\n var addr = buf.slice(i + 1, i + 1 + size)\n i += 1 + size\n if (i > buf.length) { // did not end _exactly_ at buffer.length\n throw ParseError('Invalid address buffer: ' + buf.toString('hex'))\n }\n\n // ok, tuple seems good.\n tuples.push([code, addr])\n }\n return tuples\n}\n\n// Buffer -> String\nfunction bufferToString (buf) {\n var a = bufferToTuples(buf)\n var b = tuplesToStringTuples(a)\n return stringTuplesToString(b)\n}\n\n// String -> Buffer\nfunction stringToBuffer (str) {\n str = cleanPath(str)\n var a = stringToStringTuples(str)\n var b = stringTuplesToTuples(a)\n return tuplesToBuffer(b)\n}\n\n// String -> Buffer\nfunction fromString (str) {\n return stringToBuffer(str)\n}\n\n// Buffer -> Buffer\nfunction fromBuffer (buf) {\n var err = validateBuffer(buf)\n if (err) throw err\n return new Buffer(buf) // copy\n}\n\nfunction validateBuffer (buf) {\n bufferToTuples(buf) // try to parse. will throw if breaks\n}\n\nfunction isValidBuffer (buf) {\n try {\n validateBuffer(buf) // try to parse. will throw if breaks\n return true\n } catch (e) {\n return false\n }\n}\n\nfunction cleanPath (str) {\n return '/' + filter(str.trim().split('/')).join('/')\n}\n\nfunction ParseError (str) {\n return new Error('Error parsing address: ' + str)\n}\n\nfunction protoFromTuple (tup) {\n var proto = protocols(tup[0])\n if (tup.length > 1 && proto.size === 0) {\n throw ParseError('tuple has address but protocol size is 0')\n }\n return proto\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1).Buffer))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/multiaddr/src/codec.js\n ** module id = 56\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/multiaddr/src/codec.js?"); + eval("/**\n * lodash 3.0.0 (Custom Build) \n * Build: `lodash modern modularize exports=\"npm\" -o ./`\n * Copyright 2012-2015 The Dojo Foundation \n * Based on Underscore.js 1.7.0 \n * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n * Available under MIT license \n */\n\n/**\n * A specialized version of `_.map` for arrays without support for callback\n * shorthands or `this` binding.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\nfunction arrayMap(array, iteratee) {\n var index = -1,\n length = array.length,\n result = Array(length);\n\n while (++index < length) {\n result[index] = iteratee(array[index], index, array);\n }\n return result;\n}\n\nmodule.exports = arrayMap;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/lodash._arraymap/index.js\n ** module id = 56\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/lodash._arraymap/index.js?"); /***/ }, /* 57 */ /***/ function(module, exports, __webpack_require__) { - eval("/**\n * lodash 3.1.1 (Custom Build) \n * Build: `lodash modern modularize exports=\"npm\" -o ./`\n * Copyright 2012-2015 The Dojo Foundation \n * Based on Underscore.js 1.8.3 \n * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n * Available under MIT license \n */\nvar arrayFilter = __webpack_require__(58),\n baseCallback = __webpack_require__(59),\n baseFilter = __webpack_require__(68),\n isArray = __webpack_require__(61);\n\n/**\n * Iterates over elements of `collection`, returning an array of all elements\n * `predicate` returns truthy for. The predicate is bound to `thisArg` and\n * invoked with three arguments: (value, index|key, collection).\n *\n * If a property name is provided for `predicate` the created `_.property`\n * style callback returns the property value of the given element.\n *\n * If a value is also provided for `thisArg` the created `_.matchesProperty`\n * style callback returns `true` for elements that have a matching property\n * value, else `false`.\n *\n * If an object is provided for `predicate` the created `_.matches` style\n * callback returns `true` for elements that have the properties of the given\n * object, else `false`.\n *\n * @static\n * @memberOf _\n * @alias select\n * @category Collection\n * @param {Array|Object|string} collection The collection to iterate over.\n * @param {Function|Object|string} [predicate=_.identity] The function invoked\n * per iteration.\n * @param {*} [thisArg] The `this` binding of `predicate`.\n * @returns {Array} Returns the new filtered array.\n * @example\n *\n * _.filter([4, 5, 6], function(n) {\n * return n % 2 == 0;\n * });\n * // => [4, 6]\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': true },\n * { 'user': 'fred', 'age': 40, 'active': false }\n * ];\n *\n * // using the `_.matches` callback shorthand\n * _.pluck(_.filter(users, { 'age': 36, 'active': true }), 'user');\n * // => ['barney']\n *\n * // using the `_.matchesProperty` callback shorthand\n * _.pluck(_.filter(users, 'active', false), 'user');\n * // => ['fred']\n *\n * // using the `_.property` callback shorthand\n * _.pluck(_.filter(users, 'active'), 'user');\n * // => ['barney']\n */\nfunction filter(collection, predicate, thisArg) {\n var func = isArray(collection) ? arrayFilter : baseFilter;\n predicate = baseCallback(predicate, thisArg, 3);\n return func(collection, predicate);\n}\n\nmodule.exports = filter;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/multiaddr/~/lodash.filter/index.js\n ** module id = 57\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/multiaddr/~/lodash.filter/index.js?"); + eval("/**\n * lodash 3.3.1 (Custom Build) \n * Build: `lodash modern modularize exports=\"npm\" -o ./`\n * Copyright 2012-2015 The Dojo Foundation \n * Based on Underscore.js 1.8.3 \n * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n * Available under MIT license \n */\nvar baseIsEqual = __webpack_require__(58),\n bindCallback = __webpack_require__(64),\n isArray = __webpack_require__(59),\n pairs = __webpack_require__(65);\n\n/** Used to match property names within property paths. */\nvar reIsDeepProp = /\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\n\\\\]|\\\\.)*?\\1)\\]/,\n reIsPlainProp = /^\\w*$/,\n rePropName = /[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\n\\\\]|\\\\.)*?)\\2)\\]/g;\n\n/** Used to match backslashes in property paths. */\nvar reEscapeChar = /\\\\(\\\\)?/g;\n\n/**\n * Converts `value` to a string if it's not one. An empty string is returned\n * for `null` or `undefined` values.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {string} Returns the string.\n */\nfunction baseToString(value) {\n return value == null ? '' : (value + '');\n}\n\n/**\n * The base implementation of `_.callback` which supports specifying the\n * number of arguments to provide to `func`.\n *\n * @private\n * @param {*} [func=_.identity] The value to convert to a callback.\n * @param {*} [thisArg] The `this` binding of `func`.\n * @param {number} [argCount] The number of arguments to provide to `func`.\n * @returns {Function} Returns the callback.\n */\nfunction baseCallback(func, thisArg, argCount) {\n var type = typeof func;\n if (type == 'function') {\n return thisArg === undefined\n ? func\n : bindCallback(func, thisArg, argCount);\n }\n if (func == null) {\n return identity;\n }\n if (type == 'object') {\n return baseMatches(func);\n }\n return thisArg === undefined\n ? property(func)\n : baseMatchesProperty(func, thisArg);\n}\n\n/**\n * The base implementation of `get` without support for string paths\n * and default values.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array} path The path of the property to get.\n * @param {string} [pathKey] The key representation of path.\n * @returns {*} Returns the resolved value.\n */\nfunction baseGet(object, path, pathKey) {\n if (object == null) {\n return;\n }\n if (pathKey !== undefined && pathKey in toObject(object)) {\n path = [pathKey];\n }\n var index = 0,\n length = path.length;\n\n while (object != null && index < length) {\n object = object[path[index++]];\n }\n return (index && index == length) ? object : undefined;\n}\n\n/**\n * The base implementation of `_.isMatch` without support for callback\n * shorthands and `this` binding.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Array} matchData The propery names, values, and compare flags to match.\n * @param {Function} [customizer] The function to customize comparing objects.\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n */\nfunction baseIsMatch(object, matchData, customizer) {\n var index = matchData.length,\n length = index,\n noCustomizer = !customizer;\n\n if (object == null) {\n return !length;\n }\n object = toObject(object);\n while (index--) {\n var data = matchData[index];\n if ((noCustomizer && data[2])\n ? data[1] !== object[data[0]]\n : !(data[0] in object)\n ) {\n return false;\n }\n }\n while (++index < length) {\n data = matchData[index];\n var key = data[0],\n objValue = object[key],\n srcValue = data[1];\n\n if (noCustomizer && data[2]) {\n if (objValue === undefined && !(key in object)) {\n return false;\n }\n } else {\n var result = customizer ? customizer(objValue, srcValue, key) : undefined;\n if (!(result === undefined ? baseIsEqual(srcValue, objValue, customizer, true) : result)) {\n return false;\n }\n }\n }\n return true;\n}\n\n/**\n * The base implementation of `_.matches` which does not clone `source`.\n *\n * @private\n * @param {Object} source The object of property values to match.\n * @returns {Function} Returns the new function.\n */\nfunction baseMatches(source) {\n var matchData = getMatchData(source);\n if (matchData.length == 1 && matchData[0][2]) {\n var key = matchData[0][0],\n value = matchData[0][1];\n\n return function(object) {\n if (object == null) {\n return false;\n }\n return object[key] === value && (value !== undefined || (key in toObject(object)));\n };\n }\n return function(object) {\n return baseIsMatch(object, matchData);\n };\n}\n\n/**\n * The base implementation of `_.matchesProperty` which does not clone `srcValue`.\n *\n * @private\n * @param {string} path The path of the property to get.\n * @param {*} srcValue The value to compare.\n * @returns {Function} Returns the new function.\n */\nfunction baseMatchesProperty(path, srcValue) {\n var isArr = isArray(path),\n isCommon = isKey(path) && isStrictComparable(srcValue),\n pathKey = (path + '');\n\n path = toPath(path);\n return function(object) {\n if (object == null) {\n return false;\n }\n var key = pathKey;\n object = toObject(object);\n if ((isArr || !isCommon) && !(key in object)) {\n object = path.length == 1 ? object : baseGet(object, baseSlice(path, 0, -1));\n if (object == null) {\n return false;\n }\n key = last(path);\n object = toObject(object);\n }\n return object[key] === srcValue\n ? (srcValue !== undefined || (key in object))\n : baseIsEqual(srcValue, object[key], undefined, true);\n };\n}\n\n/**\n * The base implementation of `_.property` without support for deep paths.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @returns {Function} Returns the new function.\n */\nfunction baseProperty(key) {\n return function(object) {\n return object == null ? undefined : object[key];\n };\n}\n\n/**\n * A specialized version of `baseProperty` which supports deep paths.\n *\n * @private\n * @param {Array|string} path The path of the property to get.\n * @returns {Function} Returns the new function.\n */\nfunction basePropertyDeep(path) {\n var pathKey = (path + '');\n path = toPath(path);\n return function(object) {\n return baseGet(object, path, pathKey);\n };\n}\n\n/**\n * The base implementation of `_.slice` without an iteratee call guard.\n *\n * @private\n * @param {Array} array The array to slice.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the slice of `array`.\n */\nfunction baseSlice(array, start, end) {\n var index = -1,\n length = array.length;\n\n start = start == null ? 0 : (+start || 0);\n if (start < 0) {\n start = -start > length ? 0 : (length + start);\n }\n end = (end === undefined || end > length) ? length : (+end || 0);\n if (end < 0) {\n end += length;\n }\n length = start > end ? 0 : ((end - start) >>> 0);\n start >>>= 0;\n\n var result = Array(length);\n while (++index < length) {\n result[index] = array[index + start];\n }\n return result;\n}\n\n/**\n * Gets the propery names, values, and compare flags of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the match data of `object`.\n */\nfunction getMatchData(object) {\n var result = pairs(object),\n length = result.length;\n\n while (length--) {\n result[length][2] = isStrictComparable(result[length][1]);\n }\n return result;\n}\n\n/**\n * Checks if `value` is a property name and not a property path.\n *\n * @private\n * @param {*} value The value to check.\n * @param {Object} [object] The object to query keys on.\n * @returns {boolean} Returns `true` if `value` is a property name, else `false`.\n */\nfunction isKey(value, object) {\n var type = typeof value;\n if ((type == 'string' && reIsPlainProp.test(value)) || type == 'number') {\n return true;\n }\n if (isArray(value)) {\n return false;\n }\n var result = !reIsDeepProp.test(value);\n return result || (object != null && value in toObject(object));\n}\n\n/**\n * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` if suitable for strict\n * equality comparisons, else `false`.\n */\nfunction isStrictComparable(value) {\n return value === value && !isObject(value);\n}\n\n/**\n * Converts `value` to an object if it's not one.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {Object} Returns the object.\n */\nfunction toObject(value) {\n return isObject(value) ? value : Object(value);\n}\n\n/**\n * Converts `value` to property path array if it's not one.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {Array} Returns the property path array.\n */\nfunction toPath(value) {\n if (isArray(value)) {\n return value;\n }\n var result = [];\n baseToString(value).replace(rePropName, function(match, number, quote, string) {\n result.push(quote ? string.replace(reEscapeChar, '$1') : (number || match));\n });\n return result;\n}\n\n/**\n * Gets the last element of `array`.\n *\n * @static\n * @memberOf _\n * @category Array\n * @param {Array} array The array to query.\n * @returns {*} Returns the last element of `array`.\n * @example\n *\n * _.last([1, 2, 3]);\n * // => 3\n */\nfunction last(array) {\n var length = array ? array.length : 0;\n return length ? array[length - 1] : undefined;\n}\n\n/**\n * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`.\n * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(1);\n * // => false\n */\nfunction isObject(value) {\n // Avoid a V8 JIT bug in Chrome 19-20.\n // See https://code.google.com/p/v8/issues/detail?id=2291 for more details.\n var type = typeof value;\n return !!value && (type == 'object' || type == 'function');\n}\n\n/**\n * This method returns the first argument provided to it.\n *\n * @static\n * @memberOf _\n * @category Utility\n * @param {*} value Any value.\n * @returns {*} Returns `value`.\n * @example\n *\n * var object = { 'user': 'fred' };\n *\n * _.identity(object) === object;\n * // => true\n */\nfunction identity(value) {\n return value;\n}\n\n/**\n * Creates a function that returns the property value at `path` on a\n * given object.\n *\n * @static\n * @memberOf _\n * @category Utility\n * @param {Array|string} path The path of the property to get.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var objects = [\n * { 'a': { 'b': { 'c': 2 } } },\n * { 'a': { 'b': { 'c': 1 } } }\n * ];\n *\n * _.map(objects, _.property('a.b.c'));\n * // => [2, 1]\n *\n * _.pluck(_.sortBy(objects, _.property(['a', 'b', 'c'])), 'a.b.c');\n * // => [1, 2]\n */\nfunction property(path) {\n return isKey(path) ? baseProperty(path) : basePropertyDeep(path);\n}\n\nmodule.exports = baseCallback;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/lodash._basecallback/index.js\n ** module id = 57\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/lodash._basecallback/index.js?"); /***/ }, /* 58 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("/**\n * lodash 3.0.0 (Custom Build) \n * Build: `lodash modern modularize exports=\"npm\" -o ./`\n * Copyright 2012-2015 The Dojo Foundation \n * Based on Underscore.js 1.7.0 \n * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n * Available under MIT license \n */\n\n/**\n * A specialized version of `_.filter` for arrays without support for callback\n * shorthands or `this` binding.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\nfunction arrayFilter(array, predicate) {\n var index = -1,\n length = array.length,\n resIndex = -1,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (predicate(value, index, array)) {\n result[++resIndex] = value;\n }\n }\n return result;\n}\n\nmodule.exports = arrayFilter;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/multiaddr/~/lodash.filter/~/lodash._arrayfilter/index.js\n ** module id = 58\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/multiaddr/~/lodash.filter/~/lodash._arrayfilter/index.js?"); + eval("/**\n * lodash 3.0.7 (Custom Build) \n * Build: `lodash modern modularize exports=\"npm\" -o ./`\n * Copyright 2012-2015 The Dojo Foundation \n * Based on Underscore.js 1.8.3 \n * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n * Available under MIT license \n */\nvar isArray = __webpack_require__(59),\n isTypedArray = __webpack_require__(60),\n keys = __webpack_require__(61);\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n numberTag = '[object Number]',\n objectTag = '[object Object]',\n regexpTag = '[object RegExp]',\n stringTag = '[object String]';\n\n/**\n * Checks if `value` is object-like.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n */\nfunction isObjectLike(value) {\n return !!value && typeof value == 'object';\n}\n\n/** Used for native method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the [`toStringTag`](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.prototype.tostring)\n * of values.\n */\nvar objToString = objectProto.toString;\n\n/**\n * A specialized version of `_.some` for arrays without support for callback\n * shorthands and `this` binding.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n */\nfunction arraySome(array, predicate) {\n var index = -1,\n length = array.length;\n\n while (++index < length) {\n if (predicate(array[index], index, array)) {\n return true;\n }\n }\n return false;\n}\n\n/**\n * The base implementation of `_.isEqual` without support for `this` binding\n * `customizer` functions.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @param {Function} [customizer] The function to customize comparing values.\n * @param {boolean} [isLoose] Specify performing partial comparisons.\n * @param {Array} [stackA] Tracks traversed `value` objects.\n * @param {Array} [stackB] Tracks traversed `other` objects.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n */\nfunction baseIsEqual(value, other, customizer, isLoose, stackA, stackB) {\n if (value === other) {\n return true;\n }\n if (value == null || other == null || (!isObject(value) && !isObjectLike(other))) {\n return value !== value && other !== other;\n }\n return baseIsEqualDeep(value, other, baseIsEqual, customizer, isLoose, stackA, stackB);\n}\n\n/**\n * A specialized version of `baseIsEqual` for arrays and objects which performs\n * deep comparisons and tracks traversed objects enabling objects with circular\n * references to be compared.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Function} [customizer] The function to customize comparing objects.\n * @param {boolean} [isLoose] Specify performing partial comparisons.\n * @param {Array} [stackA=[]] Tracks traversed `value` objects.\n * @param {Array} [stackB=[]] Tracks traversed `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction baseIsEqualDeep(object, other, equalFunc, customizer, isLoose, stackA, stackB) {\n var objIsArr = isArray(object),\n othIsArr = isArray(other),\n objTag = arrayTag,\n othTag = arrayTag;\n\n if (!objIsArr) {\n objTag = objToString.call(object);\n if (objTag == argsTag) {\n objTag = objectTag;\n } else if (objTag != objectTag) {\n objIsArr = isTypedArray(object);\n }\n }\n if (!othIsArr) {\n othTag = objToString.call(other);\n if (othTag == argsTag) {\n othTag = objectTag;\n } else if (othTag != objectTag) {\n othIsArr = isTypedArray(other);\n }\n }\n var objIsObj = objTag == objectTag,\n othIsObj = othTag == objectTag,\n isSameTag = objTag == othTag;\n\n if (isSameTag && !(objIsArr || objIsObj)) {\n return equalByTag(object, other, objTag);\n }\n if (!isLoose) {\n var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),\n othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');\n\n if (objIsWrapped || othIsWrapped) {\n return equalFunc(objIsWrapped ? object.value() : object, othIsWrapped ? other.value() : other, customizer, isLoose, stackA, stackB);\n }\n }\n if (!isSameTag) {\n return false;\n }\n // Assume cyclic values are equal.\n // For more information on detecting circular references see https://es5.github.io/#JO.\n stackA || (stackA = []);\n stackB || (stackB = []);\n\n var length = stackA.length;\n while (length--) {\n if (stackA[length] == object) {\n return stackB[length] == other;\n }\n }\n // Add `object` and `other` to the stack of traversed objects.\n stackA.push(object);\n stackB.push(other);\n\n var result = (objIsArr ? equalArrays : equalObjects)(object, other, equalFunc, customizer, isLoose, stackA, stackB);\n\n stackA.pop();\n stackB.pop();\n\n return result;\n}\n\n/**\n * A specialized version of `baseIsEqualDeep` for arrays with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Array} array The array to compare.\n * @param {Array} other The other array to compare.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Function} [customizer] The function to customize comparing arrays.\n * @param {boolean} [isLoose] Specify performing partial comparisons.\n * @param {Array} [stackA] Tracks traversed `value` objects.\n * @param {Array} [stackB] Tracks traversed `other` objects.\n * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.\n */\nfunction equalArrays(array, other, equalFunc, customizer, isLoose, stackA, stackB) {\n var index = -1,\n arrLength = array.length,\n othLength = other.length;\n\n if (arrLength != othLength && !(isLoose && othLength > arrLength)) {\n return false;\n }\n // Ignore non-index properties.\n while (++index < arrLength) {\n var arrValue = array[index],\n othValue = other[index],\n result = customizer ? customizer(isLoose ? othValue : arrValue, isLoose ? arrValue : othValue, index) : undefined;\n\n if (result !== undefined) {\n if (result) {\n continue;\n }\n return false;\n }\n // Recursively compare arrays (susceptible to call stack limits).\n if (isLoose) {\n if (!arraySome(other, function(othValue) {\n return arrValue === othValue || equalFunc(arrValue, othValue, customizer, isLoose, stackA, stackB);\n })) {\n return false;\n }\n } else if (!(arrValue === othValue || equalFunc(arrValue, othValue, customizer, isLoose, stackA, stackB))) {\n return false;\n }\n }\n return true;\n}\n\n/**\n * A specialized version of `baseIsEqualDeep` for comparing objects of\n * the same `toStringTag`.\n *\n * **Note:** This function only supports comparing values with tags of\n * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.\n *\n * @private\n * @param {Object} value The object to compare.\n * @param {Object} other The other object to compare.\n * @param {string} tag The `toStringTag` of the objects to compare.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction equalByTag(object, other, tag) {\n switch (tag) {\n case boolTag:\n case dateTag:\n // Coerce dates and booleans to numbers, dates to milliseconds and booleans\n // to `1` or `0` treating invalid dates coerced to `NaN` as not equal.\n return +object == +other;\n\n case errorTag:\n return object.name == other.name && object.message == other.message;\n\n case numberTag:\n // Treat `NaN` vs. `NaN` as equal.\n return (object != +object)\n ? other != +other\n : object == +other;\n\n case regexpTag:\n case stringTag:\n // Coerce regexes to strings and treat strings primitives and string\n // objects as equal. See https://es5.github.io/#x15.10.6.4 for more details.\n return object == (other + '');\n }\n return false;\n}\n\n/**\n * A specialized version of `baseIsEqualDeep` for objects with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Function} [customizer] The function to customize comparing values.\n * @param {boolean} [isLoose] Specify performing partial comparisons.\n * @param {Array} [stackA] Tracks traversed `value` objects.\n * @param {Array} [stackB] Tracks traversed `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction equalObjects(object, other, equalFunc, customizer, isLoose, stackA, stackB) {\n var objProps = keys(object),\n objLength = objProps.length,\n othProps = keys(other),\n othLength = othProps.length;\n\n if (objLength != othLength && !isLoose) {\n return false;\n }\n var index = objLength;\n while (index--) {\n var key = objProps[index];\n if (!(isLoose ? key in other : hasOwnProperty.call(other, key))) {\n return false;\n }\n }\n var skipCtor = isLoose;\n while (++index < objLength) {\n key = objProps[index];\n var objValue = object[key],\n othValue = other[key],\n result = customizer ? customizer(isLoose ? othValue : objValue, isLoose? objValue : othValue, key) : undefined;\n\n // Recursively compare objects (susceptible to call stack limits).\n if (!(result === undefined ? equalFunc(objValue, othValue, customizer, isLoose, stackA, stackB) : result)) {\n return false;\n }\n skipCtor || (skipCtor = key == 'constructor');\n }\n if (!skipCtor) {\n var objCtor = object.constructor,\n othCtor = other.constructor;\n\n // Non `Object` object instances with different constructors are not equal.\n if (objCtor != othCtor &&\n ('constructor' in object && 'constructor' in other) &&\n !(typeof objCtor == 'function' && objCtor instanceof objCtor &&\n typeof othCtor == 'function' && othCtor instanceof othCtor)) {\n return false;\n }\n }\n return true;\n}\n\n/**\n * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`.\n * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(1);\n * // => false\n */\nfunction isObject(value) {\n // Avoid a V8 JIT bug in Chrome 19-20.\n // See https://code.google.com/p/v8/issues/detail?id=2291 for more details.\n var type = typeof value;\n return !!value && (type == 'object' || type == 'function');\n}\n\nmodule.exports = baseIsEqual;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/lodash._baseisequal/index.js\n ** module id = 58\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/lodash._baseisequal/index.js?"); /***/ }, /* 59 */ -/***/ function(module, exports, __webpack_require__) { +/***/ function(module, exports) { - eval("/**\n * lodash 3.3.1 (Custom Build) \n * Build: `lodash modern modularize exports=\"npm\" -o ./`\n * Copyright 2012-2015 The Dojo Foundation \n * Based on Underscore.js 1.8.3 \n * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n * Available under MIT license \n */\nvar baseIsEqual = __webpack_require__(60),\n bindCallback = __webpack_require__(66),\n isArray = __webpack_require__(61),\n pairs = __webpack_require__(67);\n\n/** Used to match property names within property paths. */\nvar reIsDeepProp = /\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\n\\\\]|\\\\.)*?\\1)\\]/,\n reIsPlainProp = /^\\w*$/,\n rePropName = /[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\n\\\\]|\\\\.)*?)\\2)\\]/g;\n\n/** Used to match backslashes in property paths. */\nvar reEscapeChar = /\\\\(\\\\)?/g;\n\n/**\n * Converts `value` to a string if it's not one. An empty string is returned\n * for `null` or `undefined` values.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {string} Returns the string.\n */\nfunction baseToString(value) {\n return value == null ? '' : (value + '');\n}\n\n/**\n * The base implementation of `_.callback` which supports specifying the\n * number of arguments to provide to `func`.\n *\n * @private\n * @param {*} [func=_.identity] The value to convert to a callback.\n * @param {*} [thisArg] The `this` binding of `func`.\n * @param {number} [argCount] The number of arguments to provide to `func`.\n * @returns {Function} Returns the callback.\n */\nfunction baseCallback(func, thisArg, argCount) {\n var type = typeof func;\n if (type == 'function') {\n return thisArg === undefined\n ? func\n : bindCallback(func, thisArg, argCount);\n }\n if (func == null) {\n return identity;\n }\n if (type == 'object') {\n return baseMatches(func);\n }\n return thisArg === undefined\n ? property(func)\n : baseMatchesProperty(func, thisArg);\n}\n\n/**\n * The base implementation of `get` without support for string paths\n * and default values.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array} path The path of the property to get.\n * @param {string} [pathKey] The key representation of path.\n * @returns {*} Returns the resolved value.\n */\nfunction baseGet(object, path, pathKey) {\n if (object == null) {\n return;\n }\n if (pathKey !== undefined && pathKey in toObject(object)) {\n path = [pathKey];\n }\n var index = 0,\n length = path.length;\n\n while (object != null && index < length) {\n object = object[path[index++]];\n }\n return (index && index == length) ? object : undefined;\n}\n\n/**\n * The base implementation of `_.isMatch` without support for callback\n * shorthands and `this` binding.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Array} matchData The propery names, values, and compare flags to match.\n * @param {Function} [customizer] The function to customize comparing objects.\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n */\nfunction baseIsMatch(object, matchData, customizer) {\n var index = matchData.length,\n length = index,\n noCustomizer = !customizer;\n\n if (object == null) {\n return !length;\n }\n object = toObject(object);\n while (index--) {\n var data = matchData[index];\n if ((noCustomizer && data[2])\n ? data[1] !== object[data[0]]\n : !(data[0] in object)\n ) {\n return false;\n }\n }\n while (++index < length) {\n data = matchData[index];\n var key = data[0],\n objValue = object[key],\n srcValue = data[1];\n\n if (noCustomizer && data[2]) {\n if (objValue === undefined && !(key in object)) {\n return false;\n }\n } else {\n var result = customizer ? customizer(objValue, srcValue, key) : undefined;\n if (!(result === undefined ? baseIsEqual(srcValue, objValue, customizer, true) : result)) {\n return false;\n }\n }\n }\n return true;\n}\n\n/**\n * The base implementation of `_.matches` which does not clone `source`.\n *\n * @private\n * @param {Object} source The object of property values to match.\n * @returns {Function} Returns the new function.\n */\nfunction baseMatches(source) {\n var matchData = getMatchData(source);\n if (matchData.length == 1 && matchData[0][2]) {\n var key = matchData[0][0],\n value = matchData[0][1];\n\n return function(object) {\n if (object == null) {\n return false;\n }\n return object[key] === value && (value !== undefined || (key in toObject(object)));\n };\n }\n return function(object) {\n return baseIsMatch(object, matchData);\n };\n}\n\n/**\n * The base implementation of `_.matchesProperty` which does not clone `srcValue`.\n *\n * @private\n * @param {string} path The path of the property to get.\n * @param {*} srcValue The value to compare.\n * @returns {Function} Returns the new function.\n */\nfunction baseMatchesProperty(path, srcValue) {\n var isArr = isArray(path),\n isCommon = isKey(path) && isStrictComparable(srcValue),\n pathKey = (path + '');\n\n path = toPath(path);\n return function(object) {\n if (object == null) {\n return false;\n }\n var key = pathKey;\n object = toObject(object);\n if ((isArr || !isCommon) && !(key in object)) {\n object = path.length == 1 ? object : baseGet(object, baseSlice(path, 0, -1));\n if (object == null) {\n return false;\n }\n key = last(path);\n object = toObject(object);\n }\n return object[key] === srcValue\n ? (srcValue !== undefined || (key in object))\n : baseIsEqual(srcValue, object[key], undefined, true);\n };\n}\n\n/**\n * The base implementation of `_.property` without support for deep paths.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @returns {Function} Returns the new function.\n */\nfunction baseProperty(key) {\n return function(object) {\n return object == null ? undefined : object[key];\n };\n}\n\n/**\n * A specialized version of `baseProperty` which supports deep paths.\n *\n * @private\n * @param {Array|string} path The path of the property to get.\n * @returns {Function} Returns the new function.\n */\nfunction basePropertyDeep(path) {\n var pathKey = (path + '');\n path = toPath(path);\n return function(object) {\n return baseGet(object, path, pathKey);\n };\n}\n\n/**\n * The base implementation of `_.slice` without an iteratee call guard.\n *\n * @private\n * @param {Array} array The array to slice.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the slice of `array`.\n */\nfunction baseSlice(array, start, end) {\n var index = -1,\n length = array.length;\n\n start = start == null ? 0 : (+start || 0);\n if (start < 0) {\n start = -start > length ? 0 : (length + start);\n }\n end = (end === undefined || end > length) ? length : (+end || 0);\n if (end < 0) {\n end += length;\n }\n length = start > end ? 0 : ((end - start) >>> 0);\n start >>>= 0;\n\n var result = Array(length);\n while (++index < length) {\n result[index] = array[index + start];\n }\n return result;\n}\n\n/**\n * Gets the propery names, values, and compare flags of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the match data of `object`.\n */\nfunction getMatchData(object) {\n var result = pairs(object),\n length = result.length;\n\n while (length--) {\n result[length][2] = isStrictComparable(result[length][1]);\n }\n return result;\n}\n\n/**\n * Checks if `value` is a property name and not a property path.\n *\n * @private\n * @param {*} value The value to check.\n * @param {Object} [object] The object to query keys on.\n * @returns {boolean} Returns `true` if `value` is a property name, else `false`.\n */\nfunction isKey(value, object) {\n var type = typeof value;\n if ((type == 'string' && reIsPlainProp.test(value)) || type == 'number') {\n return true;\n }\n if (isArray(value)) {\n return false;\n }\n var result = !reIsDeepProp.test(value);\n return result || (object != null && value in toObject(object));\n}\n\n/**\n * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` if suitable for strict\n * equality comparisons, else `false`.\n */\nfunction isStrictComparable(value) {\n return value === value && !isObject(value);\n}\n\n/**\n * Converts `value` to an object if it's not one.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {Object} Returns the object.\n */\nfunction toObject(value) {\n return isObject(value) ? value : Object(value);\n}\n\n/**\n * Converts `value` to property path array if it's not one.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {Array} Returns the property path array.\n */\nfunction toPath(value) {\n if (isArray(value)) {\n return value;\n }\n var result = [];\n baseToString(value).replace(rePropName, function(match, number, quote, string) {\n result.push(quote ? string.replace(reEscapeChar, '$1') : (number || match));\n });\n return result;\n}\n\n/**\n * Gets the last element of `array`.\n *\n * @static\n * @memberOf _\n * @category Array\n * @param {Array} array The array to query.\n * @returns {*} Returns the last element of `array`.\n * @example\n *\n * _.last([1, 2, 3]);\n * // => 3\n */\nfunction last(array) {\n var length = array ? array.length : 0;\n return length ? array[length - 1] : undefined;\n}\n\n/**\n * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`.\n * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(1);\n * // => false\n */\nfunction isObject(value) {\n // Avoid a V8 JIT bug in Chrome 19-20.\n // See https://code.google.com/p/v8/issues/detail?id=2291 for more details.\n var type = typeof value;\n return !!value && (type == 'object' || type == 'function');\n}\n\n/**\n * This method returns the first argument provided to it.\n *\n * @static\n * @memberOf _\n * @category Utility\n * @param {*} value Any value.\n * @returns {*} Returns `value`.\n * @example\n *\n * var object = { 'user': 'fred' };\n *\n * _.identity(object) === object;\n * // => true\n */\nfunction identity(value) {\n return value;\n}\n\n/**\n * Creates a function that returns the property value at `path` on a\n * given object.\n *\n * @static\n * @memberOf _\n * @category Utility\n * @param {Array|string} path The path of the property to get.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var objects = [\n * { 'a': { 'b': { 'c': 2 } } },\n * { 'a': { 'b': { 'c': 1 } } }\n * ];\n *\n * _.map(objects, _.property('a.b.c'));\n * // => [2, 1]\n *\n * _.pluck(_.sortBy(objects, _.property(['a', 'b', 'c'])), 'a.b.c');\n * // => [1, 2]\n */\nfunction property(path) {\n return isKey(path) ? baseProperty(path) : basePropertyDeep(path);\n}\n\nmodule.exports = baseCallback;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/multiaddr/~/lodash.filter/~/lodash._basecallback/index.js\n ** module id = 59\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/multiaddr/~/lodash.filter/~/lodash._basecallback/index.js?"); + eval("/**\n * lodash 3.0.4 (Custom Build) \n * Build: `lodash modern modularize exports=\"npm\" -o ./`\n * Copyright 2012-2015 The Dojo Foundation \n * Based on Underscore.js 1.8.3 \n * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n * Available under MIT license \n */\n\n/** `Object#toString` result references. */\nvar arrayTag = '[object Array]',\n funcTag = '[object Function]';\n\n/** Used to detect host constructors (Safari > 5). */\nvar reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n/**\n * Checks if `value` is object-like.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n */\nfunction isObjectLike(value) {\n return !!value && typeof value == 'object';\n}\n\n/** Used for native method references. */\nvar objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar fnToString = Function.prototype.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar objToString = objectProto.toString;\n\n/** Used to detect if a method is native. */\nvar reIsNative = RegExp('^' +\n fnToString.call(hasOwnProperty).replace(/[\\\\^$.*+?()[\\]{}|]/g, '\\\\$&')\n .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$'\n);\n\n/* Native method references for those with the same name as other `lodash` methods. */\nvar nativeIsArray = getNative(Array, 'isArray');\n\n/**\n * Used as the [maximum length](http://ecma-international.org/ecma-262/6.0/#sec-number.max_safe_integer)\n * of an array-like value.\n */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\nfunction getNative(object, key) {\n var value = object == null ? undefined : object[key];\n return isNative(value) ? value : undefined;\n}\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This function is based on [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength).\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n */\nfunction isLength(value) {\n return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\n/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(function() { return arguments; }());\n * // => false\n */\nvar isArray = nativeIsArray || function(value) {\n return isObjectLike(value) && isLength(value.length) && objToString.call(value) == arrayTag;\n};\n\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\nfunction isFunction(value) {\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in older versions of Chrome and Safari which return 'function' for regexes\n // and Safari 8 equivalents which return 'object' for typed array constructors.\n return isObject(value) && objToString.call(value) == funcTag;\n}\n\n/**\n * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`.\n * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(1);\n * // => false\n */\nfunction isObject(value) {\n // Avoid a V8 JIT bug in Chrome 19-20.\n // See https://code.google.com/p/v8/issues/detail?id=2291 for more details.\n var type = typeof value;\n return !!value && (type == 'object' || type == 'function');\n}\n\n/**\n * Checks if `value` is a native function.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function, else `false`.\n * @example\n *\n * _.isNative(Array.prototype.push);\n * // => true\n *\n * _.isNative(_);\n * // => false\n */\nfunction isNative(value) {\n if (value == null) {\n return false;\n }\n if (isFunction(value)) {\n return reIsNative.test(fnToString.call(value));\n }\n return isObjectLike(value) && reIsHostCtor.test(value);\n}\n\nmodule.exports = isArray;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/lodash.isarray/index.js\n ** module id = 59\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/lodash.isarray/index.js?"); /***/ }, /* 60 */ -/***/ function(module, exports, __webpack_require__) { +/***/ function(module, exports) { - eval("/**\n * lodash 3.0.7 (Custom Build) \n * Build: `lodash modern modularize exports=\"npm\" -o ./`\n * Copyright 2012-2015 The Dojo Foundation \n * Based on Underscore.js 1.8.3 \n * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n * Available under MIT license \n */\nvar isArray = __webpack_require__(61),\n isTypedArray = __webpack_require__(62),\n keys = __webpack_require__(63);\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n numberTag = '[object Number]',\n objectTag = '[object Object]',\n regexpTag = '[object RegExp]',\n stringTag = '[object String]';\n\n/**\n * Checks if `value` is object-like.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n */\nfunction isObjectLike(value) {\n return !!value && typeof value == 'object';\n}\n\n/** Used for native method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the [`toStringTag`](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.prototype.tostring)\n * of values.\n */\nvar objToString = objectProto.toString;\n\n/**\n * A specialized version of `_.some` for arrays without support for callback\n * shorthands and `this` binding.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n */\nfunction arraySome(array, predicate) {\n var index = -1,\n length = array.length;\n\n while (++index < length) {\n if (predicate(array[index], index, array)) {\n return true;\n }\n }\n return false;\n}\n\n/**\n * The base implementation of `_.isEqual` without support for `this` binding\n * `customizer` functions.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @param {Function} [customizer] The function to customize comparing values.\n * @param {boolean} [isLoose] Specify performing partial comparisons.\n * @param {Array} [stackA] Tracks traversed `value` objects.\n * @param {Array} [stackB] Tracks traversed `other` objects.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n */\nfunction baseIsEqual(value, other, customizer, isLoose, stackA, stackB) {\n if (value === other) {\n return true;\n }\n if (value == null || other == null || (!isObject(value) && !isObjectLike(other))) {\n return value !== value && other !== other;\n }\n return baseIsEqualDeep(value, other, baseIsEqual, customizer, isLoose, stackA, stackB);\n}\n\n/**\n * A specialized version of `baseIsEqual` for arrays and objects which performs\n * deep comparisons and tracks traversed objects enabling objects with circular\n * references to be compared.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Function} [customizer] The function to customize comparing objects.\n * @param {boolean} [isLoose] Specify performing partial comparisons.\n * @param {Array} [stackA=[]] Tracks traversed `value` objects.\n * @param {Array} [stackB=[]] Tracks traversed `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction baseIsEqualDeep(object, other, equalFunc, customizer, isLoose, stackA, stackB) {\n var objIsArr = isArray(object),\n othIsArr = isArray(other),\n objTag = arrayTag,\n othTag = arrayTag;\n\n if (!objIsArr) {\n objTag = objToString.call(object);\n if (objTag == argsTag) {\n objTag = objectTag;\n } else if (objTag != objectTag) {\n objIsArr = isTypedArray(object);\n }\n }\n if (!othIsArr) {\n othTag = objToString.call(other);\n if (othTag == argsTag) {\n othTag = objectTag;\n } else if (othTag != objectTag) {\n othIsArr = isTypedArray(other);\n }\n }\n var objIsObj = objTag == objectTag,\n othIsObj = othTag == objectTag,\n isSameTag = objTag == othTag;\n\n if (isSameTag && !(objIsArr || objIsObj)) {\n return equalByTag(object, other, objTag);\n }\n if (!isLoose) {\n var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),\n othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');\n\n if (objIsWrapped || othIsWrapped) {\n return equalFunc(objIsWrapped ? object.value() : object, othIsWrapped ? other.value() : other, customizer, isLoose, stackA, stackB);\n }\n }\n if (!isSameTag) {\n return false;\n }\n // Assume cyclic values are equal.\n // For more information on detecting circular references see https://es5.github.io/#JO.\n stackA || (stackA = []);\n stackB || (stackB = []);\n\n var length = stackA.length;\n while (length--) {\n if (stackA[length] == object) {\n return stackB[length] == other;\n }\n }\n // Add `object` and `other` to the stack of traversed objects.\n stackA.push(object);\n stackB.push(other);\n\n var result = (objIsArr ? equalArrays : equalObjects)(object, other, equalFunc, customizer, isLoose, stackA, stackB);\n\n stackA.pop();\n stackB.pop();\n\n return result;\n}\n\n/**\n * A specialized version of `baseIsEqualDeep` for arrays with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Array} array The array to compare.\n * @param {Array} other The other array to compare.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Function} [customizer] The function to customize comparing arrays.\n * @param {boolean} [isLoose] Specify performing partial comparisons.\n * @param {Array} [stackA] Tracks traversed `value` objects.\n * @param {Array} [stackB] Tracks traversed `other` objects.\n * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.\n */\nfunction equalArrays(array, other, equalFunc, customizer, isLoose, stackA, stackB) {\n var index = -1,\n arrLength = array.length,\n othLength = other.length;\n\n if (arrLength != othLength && !(isLoose && othLength > arrLength)) {\n return false;\n }\n // Ignore non-index properties.\n while (++index < arrLength) {\n var arrValue = array[index],\n othValue = other[index],\n result = customizer ? customizer(isLoose ? othValue : arrValue, isLoose ? arrValue : othValue, index) : undefined;\n\n if (result !== undefined) {\n if (result) {\n continue;\n }\n return false;\n }\n // Recursively compare arrays (susceptible to call stack limits).\n if (isLoose) {\n if (!arraySome(other, function(othValue) {\n return arrValue === othValue || equalFunc(arrValue, othValue, customizer, isLoose, stackA, stackB);\n })) {\n return false;\n }\n } else if (!(arrValue === othValue || equalFunc(arrValue, othValue, customizer, isLoose, stackA, stackB))) {\n return false;\n }\n }\n return true;\n}\n\n/**\n * A specialized version of `baseIsEqualDeep` for comparing objects of\n * the same `toStringTag`.\n *\n * **Note:** This function only supports comparing values with tags of\n * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.\n *\n * @private\n * @param {Object} value The object to compare.\n * @param {Object} other The other object to compare.\n * @param {string} tag The `toStringTag` of the objects to compare.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction equalByTag(object, other, tag) {\n switch (tag) {\n case boolTag:\n case dateTag:\n // Coerce dates and booleans to numbers, dates to milliseconds and booleans\n // to `1` or `0` treating invalid dates coerced to `NaN` as not equal.\n return +object == +other;\n\n case errorTag:\n return object.name == other.name && object.message == other.message;\n\n case numberTag:\n // Treat `NaN` vs. `NaN` as equal.\n return (object != +object)\n ? other != +other\n : object == +other;\n\n case regexpTag:\n case stringTag:\n // Coerce regexes to strings and treat strings primitives and string\n // objects as equal. See https://es5.github.io/#x15.10.6.4 for more details.\n return object == (other + '');\n }\n return false;\n}\n\n/**\n * A specialized version of `baseIsEqualDeep` for objects with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Function} [customizer] The function to customize comparing values.\n * @param {boolean} [isLoose] Specify performing partial comparisons.\n * @param {Array} [stackA] Tracks traversed `value` objects.\n * @param {Array} [stackB] Tracks traversed `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction equalObjects(object, other, equalFunc, customizer, isLoose, stackA, stackB) {\n var objProps = keys(object),\n objLength = objProps.length,\n othProps = keys(other),\n othLength = othProps.length;\n\n if (objLength != othLength && !isLoose) {\n return false;\n }\n var index = objLength;\n while (index--) {\n var key = objProps[index];\n if (!(isLoose ? key in other : hasOwnProperty.call(other, key))) {\n return false;\n }\n }\n var skipCtor = isLoose;\n while (++index < objLength) {\n key = objProps[index];\n var objValue = object[key],\n othValue = other[key],\n result = customizer ? customizer(isLoose ? othValue : objValue, isLoose? objValue : othValue, key) : undefined;\n\n // Recursively compare objects (susceptible to call stack limits).\n if (!(result === undefined ? equalFunc(objValue, othValue, customizer, isLoose, stackA, stackB) : result)) {\n return false;\n }\n skipCtor || (skipCtor = key == 'constructor');\n }\n if (!skipCtor) {\n var objCtor = object.constructor,\n othCtor = other.constructor;\n\n // Non `Object` object instances with different constructors are not equal.\n if (objCtor != othCtor &&\n ('constructor' in object && 'constructor' in other) &&\n !(typeof objCtor == 'function' && objCtor instanceof objCtor &&\n typeof othCtor == 'function' && othCtor instanceof othCtor)) {\n return false;\n }\n }\n return true;\n}\n\n/**\n * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`.\n * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(1);\n * // => false\n */\nfunction isObject(value) {\n // Avoid a V8 JIT bug in Chrome 19-20.\n // See https://code.google.com/p/v8/issues/detail?id=2291 for more details.\n var type = typeof value;\n return !!value && (type == 'object' || type == 'function');\n}\n\nmodule.exports = baseIsEqual;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/multiaddr/~/lodash.filter/~/lodash._basecallback/~/lodash._baseisequal/index.js\n ** module id = 60\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/multiaddr/~/lodash.filter/~/lodash._basecallback/~/lodash._baseisequal/index.js?"); + eval("/**\n * lodash 3.0.4 (Custom Build) \n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright 2012-2016 The Dojo Foundation \n * Based on Underscore.js 1.8.3 \n * Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n * Available under MIT license \n */\n\n/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n objectTag = '[object Object]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n weakMapTag = '[object WeakMap]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/** Used to identify `toStringTag` values of typed arrays. */\nvar typedArrayTags = {};\ntypedArrayTags[float32Tag] = typedArrayTags[float64Tag] =\ntypedArrayTags[int8Tag] = typedArrayTags[int16Tag] =\ntypedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =\ntypedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =\ntypedArrayTags[uint32Tag] = true;\ntypedArrayTags[argsTag] = typedArrayTags[arrayTag] =\ntypedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =\ntypedArrayTags[dateTag] = typedArrayTags[errorTag] =\ntypedArrayTags[funcTag] = typedArrayTags[mapTag] =\ntypedArrayTags[numberTag] = typedArrayTags[objectTag] =\ntypedArrayTags[regexpTag] = typedArrayTags[setTag] =\ntypedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false;\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar objectToString = objectProto.toString;\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This function is loosely based on [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\nfunction isLength(value) {\n return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return !!value && typeof value == 'object';\n}\n\n/**\n * Checks if `value` is classified as a typed array.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.\n * @example\n *\n * _.isTypedArray(new Uint8Array);\n * // => true\n *\n * _.isTypedArray([]);\n * // => false\n */\nfunction isTypedArray(value) {\n return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[objectToString.call(value)];\n}\n\nmodule.exports = isTypedArray;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/lodash.istypedarray/index.js\n ** module id = 60\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/lodash.istypedarray/index.js?"); /***/ }, /* 61 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("/**\n * lodash 3.0.4 (Custom Build) \n * Build: `lodash modern modularize exports=\"npm\" -o ./`\n * Copyright 2012-2015 The Dojo Foundation \n * Based on Underscore.js 1.8.3 \n * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n * Available under MIT license \n */\n\n/** `Object#toString` result references. */\nvar arrayTag = '[object Array]',\n funcTag = '[object Function]';\n\n/** Used to detect host constructors (Safari > 5). */\nvar reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n/**\n * Checks if `value` is object-like.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n */\nfunction isObjectLike(value) {\n return !!value && typeof value == 'object';\n}\n\n/** Used for native method references. */\nvar objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar fnToString = Function.prototype.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar objToString = objectProto.toString;\n\n/** Used to detect if a method is native. */\nvar reIsNative = RegExp('^' +\n fnToString.call(hasOwnProperty).replace(/[\\\\^$.*+?()[\\]{}|]/g, '\\\\$&')\n .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$'\n);\n\n/* Native method references for those with the same name as other `lodash` methods. */\nvar nativeIsArray = getNative(Array, 'isArray');\n\n/**\n * Used as the [maximum length](http://ecma-international.org/ecma-262/6.0/#sec-number.max_safe_integer)\n * of an array-like value.\n */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\nfunction getNative(object, key) {\n var value = object == null ? undefined : object[key];\n return isNative(value) ? value : undefined;\n}\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This function is based on [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength).\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n */\nfunction isLength(value) {\n return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\n/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(function() { return arguments; }());\n * // => false\n */\nvar isArray = nativeIsArray || function(value) {\n return isObjectLike(value) && isLength(value.length) && objToString.call(value) == arrayTag;\n};\n\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\nfunction isFunction(value) {\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in older versions of Chrome and Safari which return 'function' for regexes\n // and Safari 8 equivalents which return 'object' for typed array constructors.\n return isObject(value) && objToString.call(value) == funcTag;\n}\n\n/**\n * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`.\n * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(1);\n * // => false\n */\nfunction isObject(value) {\n // Avoid a V8 JIT bug in Chrome 19-20.\n // See https://code.google.com/p/v8/issues/detail?id=2291 for more details.\n var type = typeof value;\n return !!value && (type == 'object' || type == 'function');\n}\n\n/**\n * Checks if `value` is a native function.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function, else `false`.\n * @example\n *\n * _.isNative(Array.prototype.push);\n * // => true\n *\n * _.isNative(_);\n * // => false\n */\nfunction isNative(value) {\n if (value == null) {\n return false;\n }\n if (isFunction(value)) {\n return reIsNative.test(fnToString.call(value));\n }\n return isObjectLike(value) && reIsHostCtor.test(value);\n}\n\nmodule.exports = isArray;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/multiaddr/~/lodash.filter/~/lodash.isarray/index.js\n ** module id = 61\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/multiaddr/~/lodash.filter/~/lodash.isarray/index.js?"); + eval("/**\n * lodash 3.1.2 (Custom Build) \n * Build: `lodash modern modularize exports=\"npm\" -o ./`\n * Copyright 2012-2015 The Dojo Foundation \n * Based on Underscore.js 1.8.3 \n * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n * Available under MIT license \n */\nvar getNative = __webpack_require__(62),\n isArguments = __webpack_require__(63),\n isArray = __webpack_require__(59);\n\n/** Used to detect unsigned integer values. */\nvar reIsUint = /^\\d+$/;\n\n/** Used for native method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/* Native method references for those with the same name as other `lodash` methods. */\nvar nativeKeys = getNative(Object, 'keys');\n\n/**\n * Used as the [maximum length](http://ecma-international.org/ecma-262/6.0/#sec-number.max_safe_integer)\n * of an array-like value.\n */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/**\n * The base implementation of `_.property` without support for deep paths.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @returns {Function} Returns the new function.\n */\nfunction baseProperty(key) {\n return function(object) {\n return object == null ? undefined : object[key];\n };\n}\n\n/**\n * Gets the \"length\" property value of `object`.\n *\n * **Note:** This function is used to avoid a [JIT bug](https://bugs.webkit.org/show_bug.cgi?id=142792)\n * that affects Safari on at least iOS 8.1-8.3 ARM64.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {*} Returns the \"length\" value.\n */\nvar getLength = baseProperty('length');\n\n/**\n * Checks if `value` is array-like.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n */\nfunction isArrayLike(value) {\n return value != null && isLength(getLength(value));\n}\n\n/**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\nfunction isIndex(value, length) {\n value = (typeof value == 'number' || reIsUint.test(value)) ? +value : -1;\n length = length == null ? MAX_SAFE_INTEGER : length;\n return value > -1 && value % 1 == 0 && value < length;\n}\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This function is based on [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength).\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n */\nfunction isLength(value) {\n return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\n/**\n * A fallback implementation of `Object.keys` which creates an array of the\n * own enumerable property names of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction shimKeys(object) {\n var props = keysIn(object),\n propsLength = props.length,\n length = propsLength && object.length;\n\n var allowIndexes = !!length && isLength(length) &&\n (isArray(object) || isArguments(object));\n\n var index = -1,\n result = [];\n\n while (++index < propsLength) {\n var key = props[index];\n if ((allowIndexes && isIndex(key, length)) || hasOwnProperty.call(object, key)) {\n result.push(key);\n }\n }\n return result;\n}\n\n/**\n * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`.\n * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(1);\n * // => false\n */\nfunction isObject(value) {\n // Avoid a V8 JIT bug in Chrome 19-20.\n // See https://code.google.com/p/v8/issues/detail?id=2291 for more details.\n var type = typeof value;\n return !!value && (type == 'object' || type == 'function');\n}\n\n/**\n * Creates an array of the own enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects. See the\n * [ES spec](http://ecma-international.org/ecma-262/6.0/#sec-object.keys)\n * for more details.\n *\n * @static\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keys(new Foo);\n * // => ['a', 'b'] (iteration order is not guaranteed)\n *\n * _.keys('hi');\n * // => ['0', '1']\n */\nvar keys = !nativeKeys ? shimKeys : function(object) {\n var Ctor = object == null ? undefined : object.constructor;\n if ((typeof Ctor == 'function' && Ctor.prototype === object) ||\n (typeof object != 'function' && isArrayLike(object))) {\n return shimKeys(object);\n }\n return isObject(object) ? nativeKeys(object) : [];\n};\n\n/**\n * Creates an array of the own and inherited enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keysIn(new Foo);\n * // => ['a', 'b', 'c'] (iteration order is not guaranteed)\n */\nfunction keysIn(object) {\n if (object == null) {\n return [];\n }\n if (!isObject(object)) {\n object = Object(object);\n }\n var length = object.length;\n length = (length && isLength(length) &&\n (isArray(object) || isArguments(object)) && length) || 0;\n\n var Ctor = object.constructor,\n index = -1,\n isProto = typeof Ctor == 'function' && Ctor.prototype === object,\n result = Array(length),\n skipIndexes = length > 0;\n\n while (++index < length) {\n result[index] = (index + '');\n }\n for (var key in object) {\n if (!(skipIndexes && isIndex(key, length)) &&\n !(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = keys;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/lodash.keys/index.js\n ** module id = 61\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/lodash.keys/index.js?"); /***/ }, /* 62 */ /***/ function(module, exports) { - eval("/* WEBPACK VAR INJECTION */(function(global) {/**\n * lodash 3.0.3 (Custom Build) \n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright 2012-2016 The Dojo Foundation \n * Based on Underscore.js 1.8.3 \n * Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n * Available under MIT license \n */\n\n/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n objectTag = '[object Object]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n weakMapTag = '[object WeakMap]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/** Used to identify `toStringTag` values of typed arrays. */\nvar typedArrayTags = {};\ntypedArrayTags[float32Tag] = typedArrayTags[float64Tag] =\ntypedArrayTags[int8Tag] = typedArrayTags[int16Tag] =\ntypedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =\ntypedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =\ntypedArrayTags[uint32Tag] = true;\ntypedArrayTags[argsTag] = typedArrayTags[arrayTag] =\ntypedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =\ntypedArrayTags[dateTag] = typedArrayTags[errorTag] =\ntypedArrayTags[funcTag] = typedArrayTags[mapTag] =\ntypedArrayTags[numberTag] = typedArrayTags[objectTag] =\ntypedArrayTags[regexpTag] = typedArrayTags[setTag] =\ntypedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false;\n\n/** Used for built-in method references. */\nvar objectProto = global.Object.prototype;\n\n/**\n * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar objectToString = objectProto.toString;\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This function is loosely based on [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\nfunction isLength(value) {\n return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return !!value && typeof value == 'object';\n}\n\n/**\n * Checks if `value` is classified as a typed array.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.\n * @example\n *\n * _.isTypedArray(new Uint8Array);\n * // => true\n *\n * _.isTypedArray([]);\n * // => false\n */\nfunction isTypedArray(value) {\n return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[objectToString.call(value)];\n}\n\nmodule.exports = isTypedArray;\n\n/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/multiaddr/~/lodash.filter/~/lodash._basecallback/~/lodash._baseisequal/~/lodash.istypedarray/index.js\n ** module id = 62\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/multiaddr/~/lodash.filter/~/lodash._basecallback/~/lodash._baseisequal/~/lodash.istypedarray/index.js?"); + eval("/**\n * lodash 3.9.1 (Custom Build) \n * Build: `lodash modern modularize exports=\"npm\" -o ./`\n * Copyright 2012-2015 The Dojo Foundation \n * Based on Underscore.js 1.8.3 \n * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n * Available under MIT license \n */\n\n/** `Object#toString` result references. */\nvar funcTag = '[object Function]';\n\n/** Used to detect host constructors (Safari > 5). */\nvar reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n/**\n * Checks if `value` is object-like.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n */\nfunction isObjectLike(value) {\n return !!value && typeof value == 'object';\n}\n\n/** Used for native method references. */\nvar objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar fnToString = Function.prototype.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar objToString = objectProto.toString;\n\n/** Used to detect if a method is native. */\nvar reIsNative = RegExp('^' +\n fnToString.call(hasOwnProperty).replace(/[\\\\^$.*+?()[\\]{}|]/g, '\\\\$&')\n .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$'\n);\n\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\nfunction getNative(object, key) {\n var value = object == null ? undefined : object[key];\n return isNative(value) ? value : undefined;\n}\n\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\nfunction isFunction(value) {\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in older versions of Chrome and Safari which return 'function' for regexes\n // and Safari 8 equivalents which return 'object' for typed array constructors.\n return isObject(value) && objToString.call(value) == funcTag;\n}\n\n/**\n * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`.\n * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(1);\n * // => false\n */\nfunction isObject(value) {\n // Avoid a V8 JIT bug in Chrome 19-20.\n // See https://code.google.com/p/v8/issues/detail?id=2291 for more details.\n var type = typeof value;\n return !!value && (type == 'object' || type == 'function');\n}\n\n/**\n * Checks if `value` is a native function.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function, else `false`.\n * @example\n *\n * _.isNative(Array.prototype.push);\n * // => true\n *\n * _.isNative(_);\n * // => false\n */\nfunction isNative(value) {\n if (value == null) {\n return false;\n }\n if (isFunction(value)) {\n return reIsNative.test(fnToString.call(value));\n }\n return isObjectLike(value) && reIsHostCtor.test(value);\n}\n\nmodule.exports = getNative;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/lodash._getnative/index.js\n ** module id = 62\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/lodash._getnative/index.js?"); /***/ }, /* 63 */ -/***/ function(module, exports, __webpack_require__) { +/***/ function(module, exports) { - eval("/**\n * lodash 3.1.2 (Custom Build) \n * Build: `lodash modern modularize exports=\"npm\" -o ./`\n * Copyright 2012-2015 The Dojo Foundation \n * Based on Underscore.js 1.8.3 \n * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n * Available under MIT license \n */\nvar getNative = __webpack_require__(64),\n isArguments = __webpack_require__(65),\n isArray = __webpack_require__(61);\n\n/** Used to detect unsigned integer values. */\nvar reIsUint = /^\\d+$/;\n\n/** Used for native method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/* Native method references for those with the same name as other `lodash` methods. */\nvar nativeKeys = getNative(Object, 'keys');\n\n/**\n * Used as the [maximum length](http://ecma-international.org/ecma-262/6.0/#sec-number.max_safe_integer)\n * of an array-like value.\n */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/**\n * The base implementation of `_.property` without support for deep paths.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @returns {Function} Returns the new function.\n */\nfunction baseProperty(key) {\n return function(object) {\n return object == null ? undefined : object[key];\n };\n}\n\n/**\n * Gets the \"length\" property value of `object`.\n *\n * **Note:** This function is used to avoid a [JIT bug](https://bugs.webkit.org/show_bug.cgi?id=142792)\n * that affects Safari on at least iOS 8.1-8.3 ARM64.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {*} Returns the \"length\" value.\n */\nvar getLength = baseProperty('length');\n\n/**\n * Checks if `value` is array-like.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n */\nfunction isArrayLike(value) {\n return value != null && isLength(getLength(value));\n}\n\n/**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\nfunction isIndex(value, length) {\n value = (typeof value == 'number' || reIsUint.test(value)) ? +value : -1;\n length = length == null ? MAX_SAFE_INTEGER : length;\n return value > -1 && value % 1 == 0 && value < length;\n}\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This function is based on [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength).\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n */\nfunction isLength(value) {\n return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\n/**\n * A fallback implementation of `Object.keys` which creates an array of the\n * own enumerable property names of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction shimKeys(object) {\n var props = keysIn(object),\n propsLength = props.length,\n length = propsLength && object.length;\n\n var allowIndexes = !!length && isLength(length) &&\n (isArray(object) || isArguments(object));\n\n var index = -1,\n result = [];\n\n while (++index < propsLength) {\n var key = props[index];\n if ((allowIndexes && isIndex(key, length)) || hasOwnProperty.call(object, key)) {\n result.push(key);\n }\n }\n return result;\n}\n\n/**\n * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`.\n * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(1);\n * // => false\n */\nfunction isObject(value) {\n // Avoid a V8 JIT bug in Chrome 19-20.\n // See https://code.google.com/p/v8/issues/detail?id=2291 for more details.\n var type = typeof value;\n return !!value && (type == 'object' || type == 'function');\n}\n\n/**\n * Creates an array of the own enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects. See the\n * [ES spec](http://ecma-international.org/ecma-262/6.0/#sec-object.keys)\n * for more details.\n *\n * @static\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keys(new Foo);\n * // => ['a', 'b'] (iteration order is not guaranteed)\n *\n * _.keys('hi');\n * // => ['0', '1']\n */\nvar keys = !nativeKeys ? shimKeys : function(object) {\n var Ctor = object == null ? undefined : object.constructor;\n if ((typeof Ctor == 'function' && Ctor.prototype === object) ||\n (typeof object != 'function' && isArrayLike(object))) {\n return shimKeys(object);\n }\n return isObject(object) ? nativeKeys(object) : [];\n};\n\n/**\n * Creates an array of the own and inherited enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keysIn(new Foo);\n * // => ['a', 'b', 'c'] (iteration order is not guaranteed)\n */\nfunction keysIn(object) {\n if (object == null) {\n return [];\n }\n if (!isObject(object)) {\n object = Object(object);\n }\n var length = object.length;\n length = (length && isLength(length) &&\n (isArray(object) || isArguments(object)) && length) || 0;\n\n var Ctor = object.constructor,\n index = -1,\n isProto = typeof Ctor == 'function' && Ctor.prototype === object,\n result = Array(length),\n skipIndexes = length > 0;\n\n while (++index < length) {\n result[index] = (index + '');\n }\n for (var key in object) {\n if (!(skipIndexes && isIndex(key, length)) &&\n !(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = keys;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/multiaddr/~/lodash.filter/~/lodash.keys/index.js\n ** module id = 63\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/multiaddr/~/lodash.filter/~/lodash.keys/index.js?"); + eval("/**\n * lodash 3.0.6 (Custom Build) \n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright 2012-2016 The Dojo Foundation \n * Based on Underscore.js 1.8.3 \n * Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n * Available under MIT license \n */\n\n/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar objectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n\n/**\n * The base implementation of `_.property` without support for deep paths.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @returns {Function} Returns the new function.\n */\nfunction baseProperty(key) {\n return function(object) {\n return object == null ? undefined : object[key];\n };\n}\n\n/**\n * Gets the \"length\" property value of `object`.\n *\n * **Note:** This function is used to avoid a [JIT bug](https://bugs.webkit.org/show_bug.cgi?id=142792)\n * that affects Safari on at least iOS 8.1-8.3 ARM64.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {*} Returns the \"length\" value.\n */\nvar getLength = baseProperty('length');\n\n/**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\nfunction isArguments(value) {\n // Safari 8.1 incorrectly makes `arguments.callee` enumerable in strict mode.\n return isArrayLikeObject(value) && hasOwnProperty.call(value, 'callee') &&\n (!propertyIsEnumerable.call(value, 'callee') || objectToString.call(value) == argsTag);\n}\n\n/**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @type Function\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\nfunction isArrayLike(value) {\n return value != null &&\n !(typeof value == 'function' && isFunction(value)) && isLength(getLength(value));\n}\n\n/**\n * This method is like `_.isArrayLike` except that it also checks if `value`\n * is an object.\n *\n * @static\n * @memberOf _\n * @type Function\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array-like object, else `false`.\n * @example\n *\n * _.isArrayLikeObject([1, 2, 3]);\n * // => true\n *\n * _.isArrayLikeObject(document.body.children);\n * // => true\n *\n * _.isArrayLikeObject('abc');\n * // => false\n *\n * _.isArrayLikeObject(_.noop);\n * // => false\n */\nfunction isArrayLikeObject(value) {\n return isObjectLike(value) && isArrayLike(value);\n}\n\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\nfunction isFunction(value) {\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 8 which returns 'object' for typed array constructors, and\n // PhantomJS 1.9 which returns 'function' for `NodeList` instances.\n var tag = isObject(value) ? objectToString.call(value) : '';\n return tag == funcTag || tag == genTag;\n}\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This function is loosely based on [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\nfunction isLength(value) {\n return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\n/**\n * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`.\n * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return !!value && (type == 'object' || type == 'function');\n}\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return !!value && typeof value == 'object';\n}\n\nmodule.exports = isArguments;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/lodash.isarguments/index.js\n ** module id = 63\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/lodash.isarguments/index.js?"); /***/ }, /* 64 */ /***/ function(module, exports) { - eval("/**\n * lodash 3.9.1 (Custom Build) \n * Build: `lodash modern modularize exports=\"npm\" -o ./`\n * Copyright 2012-2015 The Dojo Foundation \n * Based on Underscore.js 1.8.3 \n * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n * Available under MIT license \n */\n\n/** `Object#toString` result references. */\nvar funcTag = '[object Function]';\n\n/** Used to detect host constructors (Safari > 5). */\nvar reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n/**\n * Checks if `value` is object-like.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n */\nfunction isObjectLike(value) {\n return !!value && typeof value == 'object';\n}\n\n/** Used for native method references. */\nvar objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar fnToString = Function.prototype.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar objToString = objectProto.toString;\n\n/** Used to detect if a method is native. */\nvar reIsNative = RegExp('^' +\n fnToString.call(hasOwnProperty).replace(/[\\\\^$.*+?()[\\]{}|]/g, '\\\\$&')\n .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$'\n);\n\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\nfunction getNative(object, key) {\n var value = object == null ? undefined : object[key];\n return isNative(value) ? value : undefined;\n}\n\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\nfunction isFunction(value) {\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in older versions of Chrome and Safari which return 'function' for regexes\n // and Safari 8 equivalents which return 'object' for typed array constructors.\n return isObject(value) && objToString.call(value) == funcTag;\n}\n\n/**\n * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`.\n * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(1);\n * // => false\n */\nfunction isObject(value) {\n // Avoid a V8 JIT bug in Chrome 19-20.\n // See https://code.google.com/p/v8/issues/detail?id=2291 for more details.\n var type = typeof value;\n return !!value && (type == 'object' || type == 'function');\n}\n\n/**\n * Checks if `value` is a native function.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function, else `false`.\n * @example\n *\n * _.isNative(Array.prototype.push);\n * // => true\n *\n * _.isNative(_);\n * // => false\n */\nfunction isNative(value) {\n if (value == null) {\n return false;\n }\n if (isFunction(value)) {\n return reIsNative.test(fnToString.call(value));\n }\n return isObjectLike(value) && reIsHostCtor.test(value);\n}\n\nmodule.exports = getNative;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/multiaddr/~/lodash.filter/~/lodash.keys/~/lodash._getnative/index.js\n ** module id = 64\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/multiaddr/~/lodash.filter/~/lodash.keys/~/lodash._getnative/index.js?"); + eval("/**\n * lodash 3.0.1 (Custom Build) \n * Build: `lodash modern modularize exports=\"npm\" -o ./`\n * Copyright 2012-2015 The Dojo Foundation \n * Based on Underscore.js 1.8.3 \n * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n * Available under MIT license \n */\n\n/**\n * A specialized version of `baseCallback` which only supports `this` binding\n * and specifying the number of arguments to provide to `func`.\n *\n * @private\n * @param {Function} func The function to bind.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {number} [argCount] The number of arguments to provide to `func`.\n * @returns {Function} Returns the callback.\n */\nfunction bindCallback(func, thisArg, argCount) {\n if (typeof func != 'function') {\n return identity;\n }\n if (thisArg === undefined) {\n return func;\n }\n switch (argCount) {\n case 1: return function(value) {\n return func.call(thisArg, value);\n };\n case 3: return function(value, index, collection) {\n return func.call(thisArg, value, index, collection);\n };\n case 4: return function(accumulator, value, index, collection) {\n return func.call(thisArg, accumulator, value, index, collection);\n };\n case 5: return function(value, other, key, object, source) {\n return func.call(thisArg, value, other, key, object, source);\n };\n }\n return function() {\n return func.apply(thisArg, arguments);\n };\n}\n\n/**\n * This method returns the first argument provided to it.\n *\n * @static\n * @memberOf _\n * @category Utility\n * @param {*} value Any value.\n * @returns {*} Returns `value`.\n * @example\n *\n * var object = { 'user': 'fred' };\n *\n * _.identity(object) === object;\n * // => true\n */\nfunction identity(value) {\n return value;\n}\n\nmodule.exports = bindCallback;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/lodash._bindcallback/index.js\n ** module id = 64\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/lodash._bindcallback/index.js?"); /***/ }, /* 65 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(global) {/**\n * lodash 3.0.5 (Custom Build) \n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright 2012-2016 The Dojo Foundation \n * Based on Underscore.js 1.8.3 \n * Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n * Available under MIT license \n */\n\n/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]';\n\n/** Used for built-in method references. */\nvar objectProto = global.Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar objectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n\n/**\n * The base implementation of `_.property` without support for deep paths.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @returns {Function} Returns the new function.\n */\nfunction baseProperty(key) {\n return function(object) {\n return object == null ? undefined : object[key];\n };\n}\n\n/**\n * Gets the \"length\" property value of `object`.\n *\n * **Note:** This function is used to avoid a [JIT bug](https://bugs.webkit.org/show_bug.cgi?id=142792)\n * that affects Safari on at least iOS 8.1-8.3 ARM64.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {*} Returns the \"length\" value.\n */\nvar getLength = baseProperty('length');\n\n/**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\nfunction isArguments(value) {\n // Safari 8.1 incorrectly makes `arguments.callee` enumerable in strict mode.\n return isArrayLikeObject(value) && hasOwnProperty.call(value, 'callee') &&\n (!propertyIsEnumerable.call(value, 'callee') || objectToString.call(value) == argsTag);\n}\n\n/**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @type Function\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\nfunction isArrayLike(value) {\n return value != null &&\n !(typeof value == 'function' && isFunction(value)) && isLength(getLength(value));\n}\n\n/**\n * This method is like `_.isArrayLike` except that it also checks if `value`\n * is an object.\n *\n * @static\n * @memberOf _\n * @type Function\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array-like object, else `false`.\n * @example\n *\n * _.isArrayLikeObject([1, 2, 3]);\n * // => true\n *\n * _.isArrayLikeObject(document.body.children);\n * // => true\n *\n * _.isArrayLikeObject('abc');\n * // => false\n *\n * _.isArrayLikeObject(_.noop);\n * // => false\n */\nfunction isArrayLikeObject(value) {\n return isObjectLike(value) && isArrayLike(value);\n}\n\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\nfunction isFunction(value) {\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 8 which returns 'object' for typed array constructors, and\n // PhantomJS 1.9 which returns 'function' for `NodeList` instances.\n var tag = isObject(value) ? objectToString.call(value) : '';\n return tag == funcTag || tag == genTag;\n}\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This function is loosely based on [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\nfunction isLength(value) {\n return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\n/**\n * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`.\n * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n // Avoid a V8 JIT bug in Chrome 19-20.\n // See https://code.google.com/p/v8/issues/detail?id=2291 for more details.\n var type = typeof value;\n return !!value && (type == 'object' || type == 'function');\n}\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return !!value && typeof value == 'object';\n}\n\nmodule.exports = isArguments;\n\n/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/multiaddr/~/lodash.filter/~/lodash.keys/~/lodash.isarguments/index.js\n ** module id = 65\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/multiaddr/~/lodash.filter/~/lodash.keys/~/lodash.isarguments/index.js?"); + eval("/**\n * lodash 3.0.1 (Custom Build) \n * Build: `lodash modern modularize exports=\"npm\" -o ./`\n * Copyright 2012-2015 The Dojo Foundation \n * Based on Underscore.js 1.8.3 \n * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n * Available under MIT license \n */\nvar keys = __webpack_require__(61);\n\n/**\n * Converts `value` to an object if it's not one.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {Object} Returns the object.\n */\nfunction toObject(value) {\n return isObject(value) ? value : Object(value);\n}\n\n/**\n * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`.\n * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(1);\n * // => false\n */\nfunction isObject(value) {\n // Avoid a V8 JIT bug in Chrome 19-20.\n // See https://code.google.com/p/v8/issues/detail?id=2291 for more details.\n var type = typeof value;\n return !!value && (type == 'object' || type == 'function');\n}\n\n/**\n * Creates a two dimensional array of the key-value pairs for `object`,\n * e.g. `[[key1, value1], [key2, value2]]`.\n *\n * @static\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the new array of key-value pairs.\n * @example\n *\n * _.pairs({ 'barney': 36, 'fred': 40 });\n * // => [['barney', 36], ['fred', 40]] (iteration order is not guaranteed)\n */\nfunction pairs(object) {\n object = toObject(object);\n\n var index = -1,\n props = keys(object),\n length = props.length,\n result = Array(length);\n\n while (++index < length) {\n var key = props[index];\n result[index] = [key, object[key]];\n }\n return result;\n}\n\nmodule.exports = pairs;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/lodash.pairs/index.js\n ** module id = 65\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/lodash.pairs/index.js?"); /***/ }, /* 66 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("/**\n * lodash 3.0.1 (Custom Build) \n * Build: `lodash modern modularize exports=\"npm\" -o ./`\n * Copyright 2012-2015 The Dojo Foundation \n * Based on Underscore.js 1.8.3 \n * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n * Available under MIT license \n */\n\n/**\n * A specialized version of `baseCallback` which only supports `this` binding\n * and specifying the number of arguments to provide to `func`.\n *\n * @private\n * @param {Function} func The function to bind.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {number} [argCount] The number of arguments to provide to `func`.\n * @returns {Function} Returns the callback.\n */\nfunction bindCallback(func, thisArg, argCount) {\n if (typeof func != 'function') {\n return identity;\n }\n if (thisArg === undefined) {\n return func;\n }\n switch (argCount) {\n case 1: return function(value) {\n return func.call(thisArg, value);\n };\n case 3: return function(value, index, collection) {\n return func.call(thisArg, value, index, collection);\n };\n case 4: return function(accumulator, value, index, collection) {\n return func.call(thisArg, accumulator, value, index, collection);\n };\n case 5: return function(value, other, key, object, source) {\n return func.call(thisArg, value, other, key, object, source);\n };\n }\n return function() {\n return func.apply(thisArg, arguments);\n };\n}\n\n/**\n * This method returns the first argument provided to it.\n *\n * @static\n * @memberOf _\n * @category Utility\n * @param {*} value Any value.\n * @returns {*} Returns `value`.\n * @example\n *\n * var object = { 'user': 'fred' };\n *\n * _.identity(object) === object;\n * // => true\n */\nfunction identity(value) {\n return value;\n}\n\nmodule.exports = bindCallback;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/multiaddr/~/lodash.filter/~/lodash._basecallback/~/lodash._bindcallback/index.js\n ** module id = 66\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/multiaddr/~/lodash.filter/~/lodash._basecallback/~/lodash._bindcallback/index.js?"); + eval("/**\n * lodash 3.0.4 (Custom Build) \n * Build: `lodash modern modularize exports=\"npm\" -o ./`\n * Copyright 2012-2015 The Dojo Foundation \n * Based on Underscore.js 1.8.3 \n * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n * Available under MIT license \n */\nvar keys = __webpack_require__(61);\n\n/**\n * Used as the [maximum length](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.max_safe_integer)\n * of an array-like value.\n */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/**\n * The base implementation of `_.forEach` without support for callback\n * shorthands and `this` binding.\n *\n * @private\n * @param {Array|Object|string} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array|Object|string} Returns `collection`.\n */\nvar baseEach = createBaseEach(baseForOwn);\n\n/**\n * The base implementation of `baseForIn` and `baseForOwn` which iterates\n * over `object` properties returned by `keysFunc` invoking `iteratee` for\n * each property. Iteratee functions may exit iteration early by explicitly\n * returning `false`.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @returns {Object} Returns `object`.\n */\nvar baseFor = createBaseFor();\n\n/**\n * The base implementation of `_.forOwn` without support for callback\n * shorthands and `this` binding.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Object} Returns `object`.\n */\nfunction baseForOwn(object, iteratee) {\n return baseFor(object, iteratee, keys);\n}\n\n/**\n * The base implementation of `_.property` without support for deep paths.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @returns {Function} Returns the new function.\n */\nfunction baseProperty(key) {\n return function(object) {\n return object == null ? undefined : object[key];\n };\n}\n\n/**\n * Creates a `baseEach` or `baseEachRight` function.\n *\n * @private\n * @param {Function} eachFunc The function to iterate over a collection.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\nfunction createBaseEach(eachFunc, fromRight) {\n return function(collection, iteratee) {\n var length = collection ? getLength(collection) : 0;\n if (!isLength(length)) {\n return eachFunc(collection, iteratee);\n }\n var index = fromRight ? length : -1,\n iterable = toObject(collection);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (iteratee(iterable[index], index, iterable) === false) {\n break;\n }\n }\n return collection;\n };\n}\n\n/**\n * Creates a base function for `_.forIn` or `_.forInRight`.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\nfunction createBaseFor(fromRight) {\n return function(object, iteratee, keysFunc) {\n var iterable = toObject(object),\n props = keysFunc(object),\n length = props.length,\n index = fromRight ? length : -1;\n\n while ((fromRight ? index-- : ++index < length)) {\n var key = props[index];\n if (iteratee(iterable[key], key, iterable) === false) {\n break;\n }\n }\n return object;\n };\n}\n\n/**\n * Gets the \"length\" property value of `object`.\n *\n * **Note:** This function is used to avoid a [JIT bug](https://bugs.webkit.org/show_bug.cgi?id=142792)\n * that affects Safari on at least iOS 8.1-8.3 ARM64.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {*} Returns the \"length\" value.\n */\nvar getLength = baseProperty('length');\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This function is based on [`ToLength`](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength).\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n */\nfunction isLength(value) {\n return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\n/**\n * Converts `value` to an object if it's not one.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {Object} Returns the object.\n */\nfunction toObject(value) {\n return isObject(value) ? value : Object(value);\n}\n\n/**\n * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`.\n * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(1);\n * // => false\n */\nfunction isObject(value) {\n // Avoid a V8 JIT bug in Chrome 19-20.\n // See https://code.google.com/p/v8/issues/detail?id=2291 for more details.\n var type = typeof value;\n return !!value && (type == 'object' || type == 'function');\n}\n\nmodule.exports = baseEach;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/lodash._baseeach/index.js\n ** module id = 66\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/lodash._baseeach/index.js?"); /***/ }, /* 67 */ -/***/ function(module, exports, __webpack_require__) { +/***/ function(module, exports) { - eval("/**\n * lodash 3.0.1 (Custom Build) \n * Build: `lodash modern modularize exports=\"npm\" -o ./`\n * Copyright 2012-2015 The Dojo Foundation \n * Based on Underscore.js 1.8.3 \n * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n * Available under MIT license \n */\nvar keys = __webpack_require__(63);\n\n/**\n * Converts `value` to an object if it's not one.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {Object} Returns the object.\n */\nfunction toObject(value) {\n return isObject(value) ? value : Object(value);\n}\n\n/**\n * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`.\n * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(1);\n * // => false\n */\nfunction isObject(value) {\n // Avoid a V8 JIT bug in Chrome 19-20.\n // See https://code.google.com/p/v8/issues/detail?id=2291 for more details.\n var type = typeof value;\n return !!value && (type == 'object' || type == 'function');\n}\n\n/**\n * Creates a two dimensional array of the key-value pairs for `object`,\n * e.g. `[[key1, value1], [key2, value2]]`.\n *\n * @static\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the new array of key-value pairs.\n * @example\n *\n * _.pairs({ 'barney': 36, 'fred': 40 });\n * // => [['barney', 36], ['fred', 40]] (iteration order is not guaranteed)\n */\nfunction pairs(object) {\n object = toObject(object);\n\n var index = -1,\n props = keys(object),\n length = props.length,\n result = Array(length);\n\n while (++index < length) {\n var key = props[index];\n result[index] = [key, object[key]];\n }\n return result;\n}\n\nmodule.exports = pairs;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/multiaddr/~/lodash.filter/~/lodash._basecallback/~/lodash.pairs/index.js\n ** module id = 67\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/multiaddr/~/lodash.filter/~/lodash._basecallback/~/lodash.pairs/index.js?"); + eval("module.exports = extend\n\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\nfunction extend() {\n var target = {}\n\n for (var i = 0; i < arguments.length; i++) {\n var source = arguments[i]\n\n for (var key in source) {\n if (hasOwnProperty.call(source, key)) {\n target[key] = source[key]\n }\n }\n }\n\n return target\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/xtend/immutable.js\n ** module id = 67\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/xtend/immutable.js?"); /***/ }, /* 68 */ /***/ function(module, exports, __webpack_require__) { - eval("/**\n * lodash 3.0.0 (Custom Build) \n * Build: `lodash modern modularize exports=\"npm\" -o ./`\n * Copyright 2012-2015 The Dojo Foundation \n * Based on Underscore.js 1.7.0 \n * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n * Available under MIT license \n */\nvar baseEach = __webpack_require__(69);\n\n/**\n * The base implementation of `_.filter` without support for callback\n * shorthands or `this` binding.\n *\n * @private\n * @param {Array|Object|string} collection The collection to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\nfunction baseFilter(collection, predicate) {\n var result = [];\n baseEach(collection, function(value, index, collection) {\n if (predicate(value, index, collection)) {\n result.push(value);\n }\n });\n return result;\n}\n\nmodule.exports = baseFilter;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/multiaddr/~/lodash.filter/~/lodash._basefilter/index.js\n ** module id = 68\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/multiaddr/~/lodash.filter/~/lodash._basefilter/index.js?"); + eval("/* WEBPACK VAR INJECTION */(function(Buffer) {var map = __webpack_require__(55)\nvar filter = __webpack_require__(69)\n// var log = console.log\nvar convert = __webpack_require__(72)\nvar protocols = __webpack_require__(75)\n\n// export codec\nmodule.exports = {\n stringToStringTuples: stringToStringTuples,\n stringTuplesToString: stringTuplesToString,\n\n tuplesToStringTuples: tuplesToStringTuples,\n stringTuplesToTuples: stringTuplesToTuples,\n\n bufferToTuples: bufferToTuples,\n tuplesToBuffer: tuplesToBuffer,\n\n bufferToString: bufferToString,\n stringToBuffer: stringToBuffer,\n\n fromString: fromString,\n fromBuffer: fromBuffer,\n validateBuffer: validateBuffer,\n isValidBuffer: isValidBuffer,\n cleanPath: cleanPath,\n\n ParseError: ParseError,\n protoFromTuple: protoFromTuple\n}\n\n// string -> [[str name, str addr]... ]\nfunction stringToStringTuples (str) {\n var tuples = []\n var parts = str.split('/').slice(1) // skip first empty elem\n if (parts.length === 1 && parts[0] === '') {\n return []\n }\n\n for (var p = 0; p < parts.length; p++) {\n var part = parts[p]\n var proto = protocols(part)\n if (proto.size === 0) {\n return [part]\n }\n\n p++ // advance addr part\n if (p >= parts.length) {\n throw ParseError('invalid address: ' + str)\n }\n\n tuples.push([part, parts[p]])\n }\n return tuples\n}\n\n// [[str name, str addr]... ] -> string\nfunction stringTuplesToString (tuples) {\n var parts = []\n map(tuples, function (tup) {\n var proto = protoFromTuple(tup)\n parts.push(proto.name)\n if (tup.length > 1) {\n parts.push(tup[1])\n }\n })\n return '/' + parts.join('/')\n}\n\n// [[str name, str addr]... ] -> [[int code, Buffer]... ]\nfunction stringTuplesToTuples (tuples) {\n return map(tuples, function (tup) {\n var proto = protoFromTuple(tup)\n if (tup.length > 1) {\n return [proto.code, convert.toBuffer(proto.code, tup[1])]\n }\n return [proto.code]\n })\n}\n\n// [[int code, Buffer]... ] -> [[str name, str addr]... ]\nfunction tuplesToStringTuples (tuples) {\n return map(tuples, function (tup) {\n var proto = protoFromTuple(tup)\n if (tup.length > 1) {\n return [proto.code, convert.toString(proto.code, tup[1])]\n }\n return [proto.code]\n })\n}\n\n// [[int code, Buffer ]... ] -> Buffer\nfunction tuplesToBuffer (tuples) {\n return fromBuffer(Buffer.concat(map(tuples, function (tup) {\n var proto = protoFromTuple(tup)\n var buf = new Buffer([proto.code])\n if (tup.length > 1) {\n buf = Buffer.concat([buf, tup[1]]) // add address buffer\n }\n return buf\n })))\n}\n\n// Buffer -> [[int code, Buffer ]... ]\nfunction bufferToTuples (buf) {\n var tuples = []\n for (var i = 0; i < buf.length;) {\n var code = buf[i]\n var proto = protocols(code)\n if (!proto) {\n throw ParseError('Invalid protocol code: ' + code)\n }\n\n var size = (proto.size / 8)\n code = 0 + buf[i]\n var addr = buf.slice(i + 1, i + 1 + size)\n i += 1 + size\n if (i > buf.length) { // did not end _exactly_ at buffer.length\n throw ParseError('Invalid address buffer: ' + buf.toString('hex'))\n }\n\n // ok, tuple seems good.\n tuples.push([code, addr])\n }\n return tuples\n}\n\n// Buffer -> String\nfunction bufferToString (buf) {\n var a = bufferToTuples(buf)\n var b = tuplesToStringTuples(a)\n return stringTuplesToString(b)\n}\n\n// String -> Buffer\nfunction stringToBuffer (str) {\n str = cleanPath(str)\n var a = stringToStringTuples(str)\n var b = stringTuplesToTuples(a)\n return tuplesToBuffer(b)\n}\n\n// String -> Buffer\nfunction fromString (str) {\n return stringToBuffer(str)\n}\n\n// Buffer -> Buffer\nfunction fromBuffer (buf) {\n var err = validateBuffer(buf)\n if (err) throw err\n return new Buffer(buf) // copy\n}\n\nfunction validateBuffer (buf) {\n bufferToTuples(buf) // try to parse. will throw if breaks\n}\n\nfunction isValidBuffer (buf) {\n try {\n validateBuffer(buf) // try to parse. will throw if breaks\n return true\n } catch (e) {\n return false\n }\n}\n\nfunction cleanPath (str) {\n return '/' + filter(str.trim().split('/')).join('/')\n}\n\nfunction ParseError (str) {\n return new Error('Error parsing address: ' + str)\n}\n\nfunction protoFromTuple (tup) {\n var proto = protocols(tup[0])\n if (tup.length > 1 && proto.size === 0) {\n throw ParseError('tuple has address but protocol size is 0')\n }\n return proto\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1).Buffer))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/multiaddr/src/codec.js\n ** module id = 68\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/multiaddr/src/codec.js?"); /***/ }, /* 69 */ /***/ function(module, exports, __webpack_require__) { - eval("/**\n * lodash 3.0.4 (Custom Build) \n * Build: `lodash modern modularize exports=\"npm\" -o ./`\n * Copyright 2012-2015 The Dojo Foundation \n * Based on Underscore.js 1.8.3 \n * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n * Available under MIT license \n */\nvar keys = __webpack_require__(63);\n\n/**\n * Used as the [maximum length](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.max_safe_integer)\n * of an array-like value.\n */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/**\n * The base implementation of `_.forEach` without support for callback\n * shorthands and `this` binding.\n *\n * @private\n * @param {Array|Object|string} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array|Object|string} Returns `collection`.\n */\nvar baseEach = createBaseEach(baseForOwn);\n\n/**\n * The base implementation of `baseForIn` and `baseForOwn` which iterates\n * over `object` properties returned by `keysFunc` invoking `iteratee` for\n * each property. Iteratee functions may exit iteration early by explicitly\n * returning `false`.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @returns {Object} Returns `object`.\n */\nvar baseFor = createBaseFor();\n\n/**\n * The base implementation of `_.forOwn` without support for callback\n * shorthands and `this` binding.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Object} Returns `object`.\n */\nfunction baseForOwn(object, iteratee) {\n return baseFor(object, iteratee, keys);\n}\n\n/**\n * The base implementation of `_.property` without support for deep paths.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @returns {Function} Returns the new function.\n */\nfunction baseProperty(key) {\n return function(object) {\n return object == null ? undefined : object[key];\n };\n}\n\n/**\n * Creates a `baseEach` or `baseEachRight` function.\n *\n * @private\n * @param {Function} eachFunc The function to iterate over a collection.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\nfunction createBaseEach(eachFunc, fromRight) {\n return function(collection, iteratee) {\n var length = collection ? getLength(collection) : 0;\n if (!isLength(length)) {\n return eachFunc(collection, iteratee);\n }\n var index = fromRight ? length : -1,\n iterable = toObject(collection);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (iteratee(iterable[index], index, iterable) === false) {\n break;\n }\n }\n return collection;\n };\n}\n\n/**\n * Creates a base function for `_.forIn` or `_.forInRight`.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\nfunction createBaseFor(fromRight) {\n return function(object, iteratee, keysFunc) {\n var iterable = toObject(object),\n props = keysFunc(object),\n length = props.length,\n index = fromRight ? length : -1;\n\n while ((fromRight ? index-- : ++index < length)) {\n var key = props[index];\n if (iteratee(iterable[key], key, iterable) === false) {\n break;\n }\n }\n return object;\n };\n}\n\n/**\n * Gets the \"length\" property value of `object`.\n *\n * **Note:** This function is used to avoid a [JIT bug](https://bugs.webkit.org/show_bug.cgi?id=142792)\n * that affects Safari on at least iOS 8.1-8.3 ARM64.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {*} Returns the \"length\" value.\n */\nvar getLength = baseProperty('length');\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This function is based on [`ToLength`](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength).\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n */\nfunction isLength(value) {\n return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\n/**\n * Converts `value` to an object if it's not one.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {Object} Returns the object.\n */\nfunction toObject(value) {\n return isObject(value) ? value : Object(value);\n}\n\n/**\n * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`.\n * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(1);\n * // => false\n */\nfunction isObject(value) {\n // Avoid a V8 JIT bug in Chrome 19-20.\n // See https://code.google.com/p/v8/issues/detail?id=2291 for more details.\n var type = typeof value;\n return !!value && (type == 'object' || type == 'function');\n}\n\nmodule.exports = baseEach;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/multiaddr/~/lodash.filter/~/lodash._basefilter/~/lodash._baseeach/index.js\n ** module id = 69\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/multiaddr/~/lodash.filter/~/lodash._basefilter/~/lodash._baseeach/index.js?"); + eval("/**\n * lodash 3.1.1 (Custom Build) \n * Build: `lodash modern modularize exports=\"npm\" -o ./`\n * Copyright 2012-2015 The Dojo Foundation \n * Based on Underscore.js 1.8.3 \n * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n * Available under MIT license \n */\nvar arrayFilter = __webpack_require__(70),\n baseCallback = __webpack_require__(57),\n baseFilter = __webpack_require__(71),\n isArray = __webpack_require__(59);\n\n/**\n * Iterates over elements of `collection`, returning an array of all elements\n * `predicate` returns truthy for. The predicate is bound to `thisArg` and\n * invoked with three arguments: (value, index|key, collection).\n *\n * If a property name is provided for `predicate` the created `_.property`\n * style callback returns the property value of the given element.\n *\n * If a value is also provided for `thisArg` the created `_.matchesProperty`\n * style callback returns `true` for elements that have a matching property\n * value, else `false`.\n *\n * If an object is provided for `predicate` the created `_.matches` style\n * callback returns `true` for elements that have the properties of the given\n * object, else `false`.\n *\n * @static\n * @memberOf _\n * @alias select\n * @category Collection\n * @param {Array|Object|string} collection The collection to iterate over.\n * @param {Function|Object|string} [predicate=_.identity] The function invoked\n * per iteration.\n * @param {*} [thisArg] The `this` binding of `predicate`.\n * @returns {Array} Returns the new filtered array.\n * @example\n *\n * _.filter([4, 5, 6], function(n) {\n * return n % 2 == 0;\n * });\n * // => [4, 6]\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': true },\n * { 'user': 'fred', 'age': 40, 'active': false }\n * ];\n *\n * // using the `_.matches` callback shorthand\n * _.pluck(_.filter(users, { 'age': 36, 'active': true }), 'user');\n * // => ['barney']\n *\n * // using the `_.matchesProperty` callback shorthand\n * _.pluck(_.filter(users, 'active', false), 'user');\n * // => ['fred']\n *\n * // using the `_.property` callback shorthand\n * _.pluck(_.filter(users, 'active'), 'user');\n * // => ['barney']\n */\nfunction filter(collection, predicate, thisArg) {\n var func = isArray(collection) ? arrayFilter : baseFilter;\n predicate = baseCallback(predicate, thisArg, 3);\n return func(collection, predicate);\n}\n\nmodule.exports = filter;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/lodash.filter/index.js\n ** module id = 69\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/lodash.filter/index.js?"); /***/ }, /* 70 */ -/***/ function(module, exports, __webpack_require__) { +/***/ function(module, exports) { - eval("/* WEBPACK VAR INJECTION */(function(Buffer) {var ip = __webpack_require__(71)\nvar protocols = __webpack_require__(73)\n\nmodule.exports = Convert\n\n// converts (serializes) addresses\nfunction Convert (proto, a) {\n if (a instanceof Buffer) {\n return Convert.toString(proto, a)\n } else {\n return Convert.toBuffer(proto, a)\n }\n}\n\nConvert.toString = function convertToString (proto, buf) {\n proto = protocols(proto)\n switch (proto.code) {\n case 4: // ipv4\n case 41: // ipv6\n return ip.toString(buf)\n\n case 6: // tcp\n case 17: // udp\n case 33: // dccp\n case 132: // sctp\n return buf2port(buf)\n }\n return buf.toString('hex') // no clue. convert to hex\n}\n\nConvert.toBuffer = function convertToBuffer (proto, str) {\n proto = protocols(proto)\n switch (proto.code) {\n case 4: // ipv4\n case 41: // ipv6\n return ip.toBuffer(str)\n\n case 6: // tcp\n case 17: // udp\n case 33: // dccp\n case 132: // sctp\n return port2buf(parseInt(str, 10))\n }\n return new Buffer(str, 'hex') // no clue. convert from hex\n}\n\nfunction port2buf (port) {\n var buf = new Buffer(2)\n buf.writeUInt16BE(port, 0)\n return buf\n}\n\nfunction buf2port (buf) {\n return buf.readUInt16BE(0)\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1).Buffer))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/multiaddr/src/convert.js\n ** module id = 70\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/multiaddr/src/convert.js?"); + eval("/**\n * lodash 3.0.0 (Custom Build) \n * Build: `lodash modern modularize exports=\"npm\" -o ./`\n * Copyright 2012-2015 The Dojo Foundation \n * Based on Underscore.js 1.7.0 \n * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n * Available under MIT license \n */\n\n/**\n * A specialized version of `_.filter` for arrays without support for callback\n * shorthands or `this` binding.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\nfunction arrayFilter(array, predicate) {\n var index = -1,\n length = array.length,\n resIndex = -1,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (predicate(value, index, array)) {\n result[++resIndex] = value;\n }\n }\n return result;\n}\n\nmodule.exports = arrayFilter;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/lodash._arrayfilter/index.js\n ** module id = 70\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/lodash._arrayfilter/index.js?"); /***/ }, /* 71 */ /***/ function(module, exports, __webpack_require__) { - eval("'use strict';\n\nvar ip = exports;\nvar Buffer = __webpack_require__(1).Buffer;\nvar os = __webpack_require__(72);\n\nip.toBuffer = function toBuffer(ip, buff, offset) {\n offset = ~~offset;\n\n var result;\n\n if (this.isV4Format(ip)) {\n result = buff || new Buffer(offset + 4);\n ip.split(/\\./g).map(function(byte) {\n result[offset++] = parseInt(byte, 10) & 0xff;\n });\n } else if (this.isV6Format(ip)) {\n var sections = ip.split(':', 8);\n\n var i;\n for (i = 0; i < sections.length; i++) {\n var isv4 = this.isV4Format(sections[i]);\n var v4Buffer;\n\n if (isv4) {\n v4Buffer = this.toBuffer(sections[i]);\n sections[i] = v4Buffer.slice(0, 2).toString('hex');\n }\n\n if (v4Buffer && ++i < 8) {\n sections.splice(i, 0, v4Buffer.slice(2, 4).toString('hex'));\n }\n }\n\n if (sections[0] === '') {\n while (sections.length < 8) sections.unshift('0');\n } else if (sections[sections.length - 1] === '') {\n while (sections.length < 8) sections.push('0');\n } else if (sections.length < 8) {\n for (i = 0; i < sections.length && sections[i] !== ''; i++);\n var argv = [ i, 1 ];\n for (i = 9 - sections.length; i > 0; i--) {\n argv.push('0');\n }\n sections.splice.apply(sections, argv);\n }\n\n result = buff || new Buffer(offset + 16);\n for (i = 0; i < sections.length; i++) {\n var word = parseInt(sections[i], 16);\n result[offset++] = (word >> 8) & 0xff;\n result[offset++] = word & 0xff;\n }\n }\n\n if (!result) {\n throw Error('Invalid ip address: ' + ip);\n }\n\n return result;\n};\n\nip.toString = function toString(buff, offset, length) {\n offset = ~~offset;\n length = length || (buff.length - offset);\n\n var result = [];\n if (length === 4) {\n // IPv4\n for (var i = 0; i < length; i++) {\n result.push(buff[offset + i]);\n }\n result = result.join('.');\n } else if (length === 16) {\n // IPv6\n for (var i = 0; i < length; i += 2) {\n result.push(buff.readUInt16BE(offset + i).toString(16));\n }\n result = result.join(':');\n result = result.replace(/(^|:)0(:0)*:0(:|$)/, '$1::$3');\n result = result.replace(/:{3,4}/, '::');\n }\n\n return result;\n};\n\nvar ipv4Regex = /^(\\d{1,3}\\.){3,3}\\d{1,3}$/;\nvar ipv6Regex =\n /^(::)?(((\\d{1,3}\\.){3}(\\d{1,3}){1})?([0-9a-f]){0,4}:{0,2}){1,8}(::)?$/i;\n\nip.isV4Format = function isV4Format(ip) {\n return ipv4Regex.test(ip);\n};\n\nip.isV6Format = function isV6Format(ip) {\n return ipv6Regex.test(ip);\n};\nfunction _normalizeFamily(family) {\n return family ? family.toLowerCase() : 'ipv4';\n}\n\nip.fromPrefixLen = function fromPrefixLen(prefixlen, family) {\n if (prefixlen > 32) {\n family = 'ipv6';\n } else {\n family = _normalizeFamily(family);\n }\n\n var len = 4;\n if (family === 'ipv6') {\n len = 16;\n }\n var buff = new Buffer(len);\n\n for (var i = 0, n = buff.length; i < n; ++i) {\n var bits = 8;\n if (prefixlen < 8) {\n bits = prefixlen;\n }\n prefixlen -= bits;\n\n buff[i] = ~(0xff >> bits);\n }\n\n return ip.toString(buff);\n};\n\nip.mask = function mask(addr, mask) {\n addr = ip.toBuffer(addr);\n mask = ip.toBuffer(mask);\n\n var result = new Buffer(Math.max(addr.length, mask.length));\n\n // Same protocol - do bitwise and\n if (addr.length === mask.length) {\n for (var i = 0; i < addr.length; i++) {\n result[i] = addr[i] & mask[i];\n }\n } else if (mask.length === 4) {\n // IPv6 address and IPv4 mask\n // (Mask low bits)\n for (var i = 0; i < mask.length; i++) {\n result[i] = addr[addr.length - 4 + i] & mask[i];\n }\n } else {\n // IPv6 mask and IPv4 addr\n for (var i = 0; i < result.length - 6; i++) {\n result[i] = 0;\n }\n\n // ::ffff:ipv4\n result[10] = 0xff;\n result[11] = 0xff;\n for (var i = 0; i < addr.length; i++) {\n result[i + 12] = addr[i] & mask[i + 12];\n }\n }\n\n return ip.toString(result);\n};\n\nip.cidr = function cidr(cidrString) {\n var cidrParts = cidrString.split('/');\n\n var addr = cidrParts[0];\n if (cidrParts.length !== 2)\n throw new Error('invalid CIDR subnet: ' + addr);\n\n var mask = ip.fromPrefixLen(parseInt(cidrParts[1], 10));\n\n return ip.mask(addr, mask);\n};\n\nip.subnet = function subnet(addr, mask) {\n var networkAddress = ip.toLong(ip.mask(addr, mask));\n\n // Calculate the mask's length.\n var maskBuffer = ip.toBuffer(mask);\n var maskLength = 0;\n\n for (var i = 0; i < maskBuffer.length; i++) {\n if (maskBuffer[i] === 0xff) {\n maskLength += 8;\n } else {\n var octet = maskBuffer[i] & 0xff;\n while (octet) {\n octet = (octet << 1) & 0xff;\n maskLength++;\n }\n }\n }\n\n var numberOfAddresses = Math.pow(2, 32 - maskLength);\n\n return {\n networkAddress: ip.fromLong(networkAddress),\n firstAddress: numberOfAddresses <= 2 ?\n ip.fromLong(networkAddress) :\n ip.fromLong(networkAddress + 1),\n lastAddress: numberOfAddresses <= 2 ?\n ip.fromLong(networkAddress + numberOfAddresses - 1) :\n ip.fromLong(networkAddress + numberOfAddresses - 2),\n broadcastAddress: ip.fromLong(networkAddress + numberOfAddresses - 1),\n subnetMask: mask,\n subnetMaskLength: maskLength,\n numHosts: numberOfAddresses <= 2 ?\n numberOfAddresses : numberOfAddresses - 2,\n length: numberOfAddresses,\n contains: function(other) {\n return networkAddress === ip.toLong(ip.mask(other, mask));\n }\n };\n};\n\nip.cidrSubnet = function cidrSubnet(cidrString) {\n var cidrParts = cidrString.split('/');\n\n var addr = cidrParts[0];\n if (cidrParts.length !== 2)\n throw new Error('invalid CIDR subnet: ' + addr);\n\n var mask = ip.fromPrefixLen(parseInt(cidrParts[1], 10));\n\n return ip.subnet(addr, mask);\n};\n\nip.not = function not(addr) {\n var buff = ip.toBuffer(addr);\n for (var i = 0; i < buff.length; i++) {\n buff[i] = 0xff ^ buff[i];\n }\n return ip.toString(buff);\n};\n\nip.or = function or(a, b) {\n a = ip.toBuffer(a);\n b = ip.toBuffer(b);\n\n // same protocol\n if (a.length === b.length) {\n for (var i = 0; i < a.length; ++i) {\n a[i] |= b[i];\n }\n return ip.toString(a);\n\n // mixed protocols\n } else {\n var buff = a;\n var other = b;\n if (b.length > a.length) {\n buff = b;\n other = a;\n }\n\n var offset = buff.length - other.length;\n for (var i = offset; i < buff.length; ++i) {\n buff[i] |= other[i - offset];\n }\n\n return ip.toString(buff);\n }\n};\n\nip.isEqual = function isEqual(a, b) {\n a = ip.toBuffer(a);\n b = ip.toBuffer(b);\n\n // Same protocol\n if (a.length === b.length) {\n for (var i = 0; i < a.length; i++) {\n if (a[i] !== b[i]) return false;\n }\n return true;\n }\n\n // Swap\n if (b.length === 4) {\n var t = b;\n b = a;\n a = t;\n }\n\n // a - IPv4, b - IPv6\n for (var i = 0; i < 10; i++) {\n if (b[i] !== 0) return false;\n }\n\n var word = b.readUInt16BE(10);\n if (word !== 0 && word !== 0xffff) return false;\n\n for (var i = 0; i < 4; i++) {\n if (a[i] !== b[i + 12]) return false;\n }\n\n return true;\n};\n\nip.isPrivate = function isPrivate(addr) {\n return /^(::f{4}:)?10\\.([0-9]{1,3})\\.([0-9]{1,3})\\.([0-9]{1,3})$/\n .test(addr) ||\n /^(::f{4}:)?192\\.168\\.([0-9]{1,3})\\.([0-9]{1,3})$/.test(addr) ||\n /^(::f{4}:)?172\\.(1[6-9]|2\\d|30|31)\\.([0-9]{1,3})\\.([0-9]{1,3})$/\n .test(addr) ||\n /^(::f{4}:)?127\\.([0-9]{1,3})\\.([0-9]{1,3})\\.([0-9]{1,3})$/.test(addr) ||\n /^(::f{4}:)?169\\.254\\.([0-9]{1,3})\\.([0-9]{1,3})$/.test(addr) ||\n /^fc00:/i.test(addr) ||\n /^fe80:/i.test(addr) ||\n /^::1$/.test(addr) ||\n /^::$/.test(addr);\n};\n\nip.isPublic = function isPublic(addr) {\n return !ip.isPrivate(addr);\n};\n\nip.isLoopback = function isLoopback(addr) {\n return /^(::f{4}:)?127\\.([0-9]{1,3})\\.([0-9]{1,3})\\.([0-9]{1,3})/\n .test(addr) ||\n /^fe80::1$/.test(addr) ||\n /^::1$/.test(addr) ||\n /^::$/.test(addr);\n};\n\nip.loopback = function loopback(family) {\n //\n // Default to `ipv4`\n //\n family = _normalizeFamily(family);\n\n if (family !== 'ipv4' && family !== 'ipv6') {\n throw new Error('family must be ipv4 or ipv6');\n }\n\n return family === 'ipv4' ? '127.0.0.1' : 'fe80::1';\n};\n\n//\n// ### function address (name, family)\n// #### @name {string|'public'|'private'} **Optional** Name or security\n// of the network interface.\n// #### @family {ipv4|ipv6} **Optional** IP family of the address (defaults\n// to ipv4).\n//\n// Returns the address for the network interface on the current system with\n// the specified `name`:\n// * String: First `family` address of the interface.\n// If not found see `undefined`.\n// * 'public': the first public ip address of family.\n// * 'private': the first private ip address of family.\n// * undefined: First address with `ipv4` or loopback address `127.0.0.1`.\n//\nip.address = function address(name, family) {\n var interfaces = os.networkInterfaces();\n var all;\n\n //\n // Default to `ipv4`\n //\n family = _normalizeFamily(family);\n\n //\n // If a specific network interface has been named,\n // return the address.\n //\n if (name && name !== 'private' && name !== 'public') {\n var res = interfaces[name].filter(function(details) {\n var itemFamily = details.family.toLowerCase();\n return itemFamily === family;\n });\n if (res.length === 0)\n return undefined;\n return res[0].address;\n }\n\n var all = Object.keys(interfaces).map(function (nic) {\n //\n // Note: name will only be `public` or `private`\n // when this is called.\n //\n var addresses = interfaces[nic].filter(function (details) {\n details.family = details.family.toLowerCase();\n if (details.family !== family || ip.isLoopback(details.address)) {\n return false;\n } else if (!name) {\n return true;\n }\n\n return name === 'public' ? !ip.isPrivate(details.address) :\n ip.isPrivate(details.address);\n });\n\n return addresses.length ? addresses[0].address : undefined;\n }).filter(Boolean);\n\n return !all.length ? ip.loopback(family) : all[0];\n};\n\nip.toLong = function toInt(ip) {\n var ipl = 0;\n ip.split('.').forEach(function(octet) {\n ipl <<= 8;\n ipl += parseInt(octet);\n });\n return(ipl >>> 0);\n};\n\nip.fromLong = function fromInt(ipl) {\n return ((ipl >>> 24) + '.' +\n (ipl >> 16 & 255) + '.' +\n (ipl >> 8 & 255) + '.' +\n (ipl & 255) );\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/multiaddr/~/ip/lib/ip.js\n ** module id = 71\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/multiaddr/~/ip/lib/ip.js?"); + eval("/**\n * lodash 3.0.0 (Custom Build) \n * Build: `lodash modern modularize exports=\"npm\" -o ./`\n * Copyright 2012-2015 The Dojo Foundation \n * Based on Underscore.js 1.7.0 \n * Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n * Available under MIT license \n */\nvar baseEach = __webpack_require__(66);\n\n/**\n * The base implementation of `_.filter` without support for callback\n * shorthands or `this` binding.\n *\n * @private\n * @param {Array|Object|string} collection The collection to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\nfunction baseFilter(collection, predicate) {\n var result = [];\n baseEach(collection, function(value, index, collection) {\n if (predicate(value, index, collection)) {\n result.push(value);\n }\n });\n return result;\n}\n\nmodule.exports = baseFilter;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/lodash._basefilter/index.js\n ** module id = 71\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/lodash._basefilter/index.js?"); /***/ }, /* 72 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("exports.endianness = function () { return 'LE' };\n\nexports.hostname = function () {\n if (typeof location !== 'undefined') {\n return location.hostname\n }\n else return '';\n};\n\nexports.loadavg = function () { return [] };\n\nexports.uptime = function () { return 0 };\n\nexports.freemem = function () {\n return Number.MAX_VALUE;\n};\n\nexports.totalmem = function () {\n return Number.MAX_VALUE;\n};\n\nexports.cpus = function () { return [] };\n\nexports.type = function () { return 'Browser' };\n\nexports.release = function () {\n if (typeof navigator !== 'undefined') {\n return navigator.appVersion;\n }\n return '';\n};\n\nexports.networkInterfaces\n= exports.getNetworkInterfaces\n= function () { return {} };\n\nexports.arch = function () { return 'javascript' };\n\nexports.platform = function () { return 'browser' };\n\nexports.tmpdir = exports.tmpDir = function () {\n return '/tmp';\n};\n\nexports.EOL = '\\n';\n\n\n/*****************\n ** WEBPACK FOOTER\n ** (webpack)/~/node-libs-browser/~/os-browserify/browser.js\n ** module id = 72\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///(webpack)/~/node-libs-browser/~/os-browserify/browser.js?"); + eval("/* WEBPACK VAR INJECTION */(function(Buffer) {var ip = __webpack_require__(73)\nvar protocols = __webpack_require__(75)\n\nmodule.exports = Convert\n\n// converts (serializes) addresses\nfunction Convert (proto, a) {\n if (a instanceof Buffer) {\n return Convert.toString(proto, a)\n } else {\n return Convert.toBuffer(proto, a)\n }\n}\n\nConvert.toString = function convertToString (proto, buf) {\n proto = protocols(proto)\n switch (proto.code) {\n case 4: // ipv4\n case 41: // ipv6\n return ip.toString(buf)\n\n case 6: // tcp\n case 17: // udp\n case 33: // dccp\n case 132: // sctp\n return buf2port(buf)\n }\n return buf.toString('hex') // no clue. convert to hex\n}\n\nConvert.toBuffer = function convertToBuffer (proto, str) {\n proto = protocols(proto)\n switch (proto.code) {\n case 4: // ipv4\n case 41: // ipv6\n return ip.toBuffer(str)\n\n case 6: // tcp\n case 17: // udp\n case 33: // dccp\n case 132: // sctp\n return port2buf(parseInt(str, 10))\n }\n return new Buffer(str, 'hex') // no clue. convert from hex\n}\n\nfunction port2buf (port) {\n var buf = new Buffer(2)\n buf.writeUInt16BE(port, 0)\n return buf\n}\n\nfunction buf2port (buf) {\n return buf.readUInt16BE(0)\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1).Buffer))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/multiaddr/src/convert.js\n ** module id = 72\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/multiaddr/src/convert.js?"); /***/ }, /* 73 */ /***/ function(module, exports, __webpack_require__) { - eval("var map = __webpack_require__(43)\n\nmodule.exports = Protocols\n\nfunction Protocols (proto) {\n if (typeof (proto) === 'number') {\n if (Protocols.codes[proto]) {\n return Protocols.codes[proto]\n }\n\n throw new Error('no protocol with code: ' + proto)\n } else if (typeof (proto) === 'string' || proto instanceof String) {\n if (Protocols.names[proto]) {\n return Protocols.names[proto]\n }\n\n throw new Error('no protocol with name: ' + proto)\n }\n\n throw new Error('invalid protocol id type: ' + proto)\n}\n\n// replicating table here to:\n// 1. avoid parsing the csv\n// 2. ensuring errors in the csv don't screw up code.\n// 3. changing a number has to happen in two places.\n\nProtocols.table = [\n [4, 32, 'ip4'],\n [6, 16, 'tcp'],\n [17, 16, 'udp'],\n [33, 16, 'dccp'],\n [41, 128, 'ip6'],\n // these require varint:\n [132, 16, 'sctp']\n// [480, 0, 'http'],\n// [443, 0, 'https'],\n]\n\nProtocols.names = {}\nProtocols.codes = {}\n\n// populate tables\nmap(Protocols.table, function (e) {\n var proto = p.apply(this, e)\n Protocols.codes[proto.code] = proto\n Protocols.names[proto.name] = proto\n})\n\nProtocols.object = p\n\nfunction p (code, size, name) {\n return {code: code, size: size, name: name}\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/multiaddr/src/protocols.js\n ** module id = 73\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/multiaddr/src/protocols.js?"); + eval("'use strict';\n\nvar ip = exports;\nvar Buffer = __webpack_require__(1).Buffer;\nvar os = __webpack_require__(74);\n\nip.toBuffer = function toBuffer(ip, buff, offset) {\n offset = ~~offset;\n\n var result;\n\n if (this.isV4Format(ip)) {\n result = buff || new Buffer(offset + 4);\n ip.split(/\\./g).map(function(byte) {\n result[offset++] = parseInt(byte, 10) & 0xff;\n });\n } else if (this.isV6Format(ip)) {\n var sections = ip.split(':', 8);\n\n var i;\n for (i = 0; i < sections.length; i++) {\n var isv4 = this.isV4Format(sections[i]);\n var v4Buffer;\n\n if (isv4) {\n v4Buffer = this.toBuffer(sections[i]);\n sections[i] = v4Buffer.slice(0, 2).toString('hex');\n }\n\n if (v4Buffer && ++i < 8) {\n sections.splice(i, 0, v4Buffer.slice(2, 4).toString('hex'));\n }\n }\n\n if (sections[0] === '') {\n while (sections.length < 8) sections.unshift('0');\n } else if (sections[sections.length - 1] === '') {\n while (sections.length < 8) sections.push('0');\n } else if (sections.length < 8) {\n for (i = 0; i < sections.length && sections[i] !== ''; i++);\n var argv = [ i, 1 ];\n for (i = 9 - sections.length; i > 0; i--) {\n argv.push('0');\n }\n sections.splice.apply(sections, argv);\n }\n\n result = buff || new Buffer(offset + 16);\n for (i = 0; i < sections.length; i++) {\n var word = parseInt(sections[i], 16);\n result[offset++] = (word >> 8) & 0xff;\n result[offset++] = word & 0xff;\n }\n }\n\n if (!result) {\n throw Error('Invalid ip address: ' + ip);\n }\n\n return result;\n};\n\nip.toString = function toString(buff, offset, length) {\n offset = ~~offset;\n length = length || (buff.length - offset);\n\n var result = [];\n if (length === 4) {\n // IPv4\n for (var i = 0; i < length; i++) {\n result.push(buff[offset + i]);\n }\n result = result.join('.');\n } else if (length === 16) {\n // IPv6\n for (var i = 0; i < length; i += 2) {\n result.push(buff.readUInt16BE(offset + i).toString(16));\n }\n result = result.join(':');\n result = result.replace(/(^|:)0(:0)*:0(:|$)/, '$1::$3');\n result = result.replace(/:{3,4}/, '::');\n }\n\n return result;\n};\n\nvar ipv4Regex = /^(\\d{1,3}\\.){3,3}\\d{1,3}$/;\nvar ipv6Regex =\n /^(::)?(((\\d{1,3}\\.){3}(\\d{1,3}){1})?([0-9a-f]){0,4}:{0,2}){1,8}(::)?$/i;\n\nip.isV4Format = function isV4Format(ip) {\n return ipv4Regex.test(ip);\n};\n\nip.isV6Format = function isV6Format(ip) {\n return ipv6Regex.test(ip);\n};\nfunction _normalizeFamily(family) {\n return family ? family.toLowerCase() : 'ipv4';\n}\n\nip.fromPrefixLen = function fromPrefixLen(prefixlen, family) {\n if (prefixlen > 32) {\n family = 'ipv6';\n } else {\n family = _normalizeFamily(family);\n }\n\n var len = 4;\n if (family === 'ipv6') {\n len = 16;\n }\n var buff = new Buffer(len);\n\n for (var i = 0, n = buff.length; i < n; ++i) {\n var bits = 8;\n if (prefixlen < 8) {\n bits = prefixlen;\n }\n prefixlen -= bits;\n\n buff[i] = ~(0xff >> bits);\n }\n\n return ip.toString(buff);\n};\n\nip.mask = function mask(addr, mask) {\n addr = ip.toBuffer(addr);\n mask = ip.toBuffer(mask);\n\n var result = new Buffer(Math.max(addr.length, mask.length));\n\n // Same protocol - do bitwise and\n if (addr.length === mask.length) {\n for (var i = 0; i < addr.length; i++) {\n result[i] = addr[i] & mask[i];\n }\n } else if (mask.length === 4) {\n // IPv6 address and IPv4 mask\n // (Mask low bits)\n for (var i = 0; i < mask.length; i++) {\n result[i] = addr[addr.length - 4 + i] & mask[i];\n }\n } else {\n // IPv6 mask and IPv4 addr\n for (var i = 0; i < result.length - 6; i++) {\n result[i] = 0;\n }\n\n // ::ffff:ipv4\n result[10] = 0xff;\n result[11] = 0xff;\n for (var i = 0; i < addr.length; i++) {\n result[i + 12] = addr[i] & mask[i + 12];\n }\n }\n\n return ip.toString(result);\n};\n\nip.cidr = function cidr(cidrString) {\n var cidrParts = cidrString.split('/');\n\n var addr = cidrParts[0];\n if (cidrParts.length !== 2)\n throw new Error('invalid CIDR subnet: ' + addr);\n\n var mask = ip.fromPrefixLen(parseInt(cidrParts[1], 10));\n\n return ip.mask(addr, mask);\n};\n\nip.subnet = function subnet(addr, mask) {\n var networkAddress = ip.toLong(ip.mask(addr, mask));\n\n // Calculate the mask's length.\n var maskBuffer = ip.toBuffer(mask);\n var maskLength = 0;\n\n for (var i = 0; i < maskBuffer.length; i++) {\n if (maskBuffer[i] === 0xff) {\n maskLength += 8;\n } else {\n var octet = maskBuffer[i] & 0xff;\n while (octet) {\n octet = (octet << 1) & 0xff;\n maskLength++;\n }\n }\n }\n\n var numberOfAddresses = Math.pow(2, 32 - maskLength);\n\n return {\n networkAddress: ip.fromLong(networkAddress),\n firstAddress: numberOfAddresses <= 2 ?\n ip.fromLong(networkAddress) :\n ip.fromLong(networkAddress + 1),\n lastAddress: numberOfAddresses <= 2 ?\n ip.fromLong(networkAddress + numberOfAddresses - 1) :\n ip.fromLong(networkAddress + numberOfAddresses - 2),\n broadcastAddress: ip.fromLong(networkAddress + numberOfAddresses - 1),\n subnetMask: mask,\n subnetMaskLength: maskLength,\n numHosts: numberOfAddresses <= 2 ?\n numberOfAddresses : numberOfAddresses - 2,\n length: numberOfAddresses,\n contains: function(other) {\n return networkAddress === ip.toLong(ip.mask(other, mask));\n }\n };\n};\n\nip.cidrSubnet = function cidrSubnet(cidrString) {\n var cidrParts = cidrString.split('/');\n\n var addr = cidrParts[0];\n if (cidrParts.length !== 2)\n throw new Error('invalid CIDR subnet: ' + addr);\n\n var mask = ip.fromPrefixLen(parseInt(cidrParts[1], 10));\n\n return ip.subnet(addr, mask);\n};\n\nip.not = function not(addr) {\n var buff = ip.toBuffer(addr);\n for (var i = 0; i < buff.length; i++) {\n buff[i] = 0xff ^ buff[i];\n }\n return ip.toString(buff);\n};\n\nip.or = function or(a, b) {\n a = ip.toBuffer(a);\n b = ip.toBuffer(b);\n\n // same protocol\n if (a.length === b.length) {\n for (var i = 0; i < a.length; ++i) {\n a[i] |= b[i];\n }\n return ip.toString(a);\n\n // mixed protocols\n } else {\n var buff = a;\n var other = b;\n if (b.length > a.length) {\n buff = b;\n other = a;\n }\n\n var offset = buff.length - other.length;\n for (var i = offset; i < buff.length; ++i) {\n buff[i] |= other[i - offset];\n }\n\n return ip.toString(buff);\n }\n};\n\nip.isEqual = function isEqual(a, b) {\n a = ip.toBuffer(a);\n b = ip.toBuffer(b);\n\n // Same protocol\n if (a.length === b.length) {\n for (var i = 0; i < a.length; i++) {\n if (a[i] !== b[i]) return false;\n }\n return true;\n }\n\n // Swap\n if (b.length === 4) {\n var t = b;\n b = a;\n a = t;\n }\n\n // a - IPv4, b - IPv6\n for (var i = 0; i < 10; i++) {\n if (b[i] !== 0) return false;\n }\n\n var word = b.readUInt16BE(10);\n if (word !== 0 && word !== 0xffff) return false;\n\n for (var i = 0; i < 4; i++) {\n if (a[i] !== b[i + 12]) return false;\n }\n\n return true;\n};\n\nip.isPrivate = function isPrivate(addr) {\n return /^(::f{4}:)?10\\.([0-9]{1,3})\\.([0-9]{1,3})\\.([0-9]{1,3})$/\n .test(addr) ||\n /^(::f{4}:)?192\\.168\\.([0-9]{1,3})\\.([0-9]{1,3})$/.test(addr) ||\n /^(::f{4}:)?172\\.(1[6-9]|2\\d|30|31)\\.([0-9]{1,3})\\.([0-9]{1,3})$/\n .test(addr) ||\n /^(::f{4}:)?127\\.([0-9]{1,3})\\.([0-9]{1,3})\\.([0-9]{1,3})$/.test(addr) ||\n /^(::f{4}:)?169\\.254\\.([0-9]{1,3})\\.([0-9]{1,3})$/.test(addr) ||\n /^fc00:/i.test(addr) ||\n /^fe80:/i.test(addr) ||\n /^::1$/.test(addr) ||\n /^::$/.test(addr);\n};\n\nip.isPublic = function isPublic(addr) {\n return !ip.isPrivate(addr);\n};\n\nip.isLoopback = function isLoopback(addr) {\n return /^(::f{4}:)?127\\.([0-9]{1,3})\\.([0-9]{1,3})\\.([0-9]{1,3})/\n .test(addr) ||\n /^fe80::1$/.test(addr) ||\n /^::1$/.test(addr) ||\n /^::$/.test(addr);\n};\n\nip.loopback = function loopback(family) {\n //\n // Default to `ipv4`\n //\n family = _normalizeFamily(family);\n\n if (family !== 'ipv4' && family !== 'ipv6') {\n throw new Error('family must be ipv4 or ipv6');\n }\n\n return family === 'ipv4' ? '127.0.0.1' : 'fe80::1';\n};\n\n//\n// ### function address (name, family)\n// #### @name {string|'public'|'private'} **Optional** Name or security\n// of the network interface.\n// #### @family {ipv4|ipv6} **Optional** IP family of the address (defaults\n// to ipv4).\n//\n// Returns the address for the network interface on the current system with\n// the specified `name`:\n// * String: First `family` address of the interface.\n// If not found see `undefined`.\n// * 'public': the first public ip address of family.\n// * 'private': the first private ip address of family.\n// * undefined: First address with `ipv4` or loopback address `127.0.0.1`.\n//\nip.address = function address(name, family) {\n var interfaces = os.networkInterfaces();\n var all;\n\n //\n // Default to `ipv4`\n //\n family = _normalizeFamily(family);\n\n //\n // If a specific network interface has been named,\n // return the address.\n //\n if (name && name !== 'private' && name !== 'public') {\n var res = interfaces[name].filter(function(details) {\n var itemFamily = details.family.toLowerCase();\n return itemFamily === family;\n });\n if (res.length === 0)\n return undefined;\n return res[0].address;\n }\n\n var all = Object.keys(interfaces).map(function (nic) {\n //\n // Note: name will only be `public` or `private`\n // when this is called.\n //\n var addresses = interfaces[nic].filter(function (details) {\n details.family = details.family.toLowerCase();\n if (details.family !== family || ip.isLoopback(details.address)) {\n return false;\n } else if (!name) {\n return true;\n }\n\n return name === 'public' ? !ip.isPrivate(details.address) :\n ip.isPrivate(details.address);\n });\n\n return addresses.length ? addresses[0].address : undefined;\n }).filter(Boolean);\n\n return !all.length ? ip.loopback(family) : all[0];\n};\n\nip.toLong = function toInt(ip) {\n var ipl = 0;\n ip.split('.').forEach(function(octet) {\n ipl <<= 8;\n ipl += parseInt(octet);\n });\n return(ipl >>> 0);\n};\n\nip.fromLong = function fromInt(ipl) {\n return ((ipl >>> 24) + '.' +\n (ipl >> 16 & 255) + '.' +\n (ipl >> 8 & 255) + '.' +\n (ipl & 255) );\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/ip/lib/ip.js\n ** module id = 73\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/ip/lib/ip.js?"); /***/ }, /* 74 */ -/***/ function(module, exports, __webpack_require__) { +/***/ function(module, exports) { - eval("var Buffer = __webpack_require__(1).Buffer; // for use with browserify\n\nmodule.exports = function (a, b) {\n if (!Buffer.isBuffer(a)) return undefined;\n if (!Buffer.isBuffer(b)) return undefined;\n if (typeof a.equals === 'function') return a.equals(b);\n if (a.length !== b.length) return false;\n \n for (var i = 0; i < a.length; i++) {\n if (a[i] !== b[i]) return false;\n }\n \n return true;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/multiaddr/~/buffer-equal/index.js\n ** module id = 74\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/multiaddr/~/buffer-equal/index.js?"); + eval("exports.endianness = function () { return 'LE' };\n\nexports.hostname = function () {\n if (typeof location !== 'undefined') {\n return location.hostname\n }\n else return '';\n};\n\nexports.loadavg = function () { return [] };\n\nexports.uptime = function () { return 0 };\n\nexports.freemem = function () {\n return Number.MAX_VALUE;\n};\n\nexports.totalmem = function () {\n return Number.MAX_VALUE;\n};\n\nexports.cpus = function () { return [] };\n\nexports.type = function () { return 'Browser' };\n\nexports.release = function () {\n if (typeof navigator !== 'undefined') {\n return navigator.appVersion;\n }\n return '';\n};\n\nexports.networkInterfaces\n= exports.getNetworkInterfaces\n= function () { return {} };\n\nexports.arch = function () { return 'javascript' };\n\nexports.platform = function () { return 'browser' };\n\nexports.tmpdir = exports.tmpDir = function () {\n return '/tmp';\n};\n\nexports.EOL = '\\n';\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/os-browserify/browser.js\n ** module id = 74\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/os-browserify/browser.js?"); /***/ }, /* 75 */ /***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(global) {'use strict';\n\nvar _keys = __webpack_require__(76);\n\nvar _keys2 = _interopRequireDefault(_keys);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar isNode = !global.window;\n\nfunction requireCommands() {\n if (isNode) return __webpack_require__(80)('./api');\n\n return {\n add: __webpack_require__(81),\n block: __webpack_require__(161),\n cat: __webpack_require__(163),\n commands: __webpack_require__(164),\n config: __webpack_require__(165),\n dht: __webpack_require__(166),\n diag: __webpack_require__(167),\n id: __webpack_require__(168),\n log: __webpack_require__(169),\n ls: __webpack_require__(183),\n mount: __webpack_require__(184),\n name: __webpack_require__(185),\n object: __webpack_require__(186),\n pin: __webpack_require__(187),\n ping: __webpack_require__(188),\n refs: __webpack_require__(189),\n swarm: __webpack_require__(190),\n update: __webpack_require__(191),\n version: __webpack_require__(192)\n };\n}\n\nfunction loadCommands(send) {\n var files = requireCommands();\n var cmds = {};\n\n (0, _keys2.default)(files).forEach(function (file) {\n cmds[file] = files[file](send);\n });\n\n return cmds;\n}\n\nmodule.exports = loadCommands;\n/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/load-commands.js\n ** module id = 75\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./src/load-commands.js?"); + eval("var map = __webpack_require__(55)\n\nmodule.exports = Protocols\n\nfunction Protocols (proto) {\n if (typeof (proto) === 'number') {\n if (Protocols.codes[proto]) {\n return Protocols.codes[proto]\n }\n\n throw new Error('no protocol with code: ' + proto)\n } else if (typeof (proto) === 'string' || proto instanceof String) {\n if (Protocols.names[proto]) {\n return Protocols.names[proto]\n }\n\n throw new Error('no protocol with name: ' + proto)\n }\n\n throw new Error('invalid protocol id type: ' + proto)\n}\n\n// replicating table here to:\n// 1. avoid parsing the csv\n// 2. ensuring errors in the csv don't screw up code.\n// 3. changing a number has to happen in two places.\n\nProtocols.table = [\n [4, 32, 'ip4'],\n [6, 16, 'tcp'],\n [17, 16, 'udp'],\n [33, 16, 'dccp'],\n [41, 128, 'ip6'],\n // these require varint:\n [132, 16, 'sctp']\n// [480, 0, 'http'],\n// [443, 0, 'https'],\n]\n\nProtocols.names = {}\nProtocols.codes = {}\n\n// populate tables\nmap(Protocols.table, function (e) {\n var proto = p.apply(this, e)\n Protocols.codes[proto.code] = proto\n Protocols.names[proto.name] = proto\n})\n\nProtocols.object = p\n\nfunction p (code, size, name) {\n return {code: code, size: size, name: name}\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/multiaddr/src/protocols.js\n ** module id = 75\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/multiaddr/src/protocols.js?"); /***/ }, /* 76 */ /***/ function(module, exports, __webpack_require__) { - eval("module.exports = { \"default\": __webpack_require__(77), __esModule: true };\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/object/keys.js\n ** module id = 76\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/babel-runtime/core-js/object/keys.js?"); + eval("var Buffer = __webpack_require__(1).Buffer; // for use with browserify\n\nmodule.exports = function (a, b) {\n if (!Buffer.isBuffer(a)) return undefined;\n if (!Buffer.isBuffer(b)) return undefined;\n if (typeof a.equals === 'function') return a.equals(b);\n if (a.length !== b.length) return false;\n \n for (var i = 0; i < a.length; i++) {\n if (a[i] !== b[i]) return false;\n }\n \n return true;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/buffer-equal/index.js\n ** module id = 76\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/buffer-equal/index.js?"); /***/ }, /* 77 */ /***/ function(module, exports, __webpack_require__) { - eval("__webpack_require__(78);\nmodule.exports = __webpack_require__(10).Object.keys;\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/~/core-js/library/fn/object/keys.js\n ** module id = 77\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/babel-runtime/~/core-js/library/fn/object/keys.js?"); + eval("/* WEBPACK VAR INJECTION */(function(global) {'use strict';\n\nvar _keys = __webpack_require__(78);\n\nvar _keys2 = _interopRequireDefault(_keys);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar isNode = !global.window;\n\nfunction requireCommands() {\n if (isNode) return __webpack_require__(82)('./api');\n\n return {\n add: __webpack_require__(83),\n block: __webpack_require__(159),\n cat: __webpack_require__(161),\n commands: __webpack_require__(162),\n config: __webpack_require__(163),\n dht: __webpack_require__(164),\n diag: __webpack_require__(185),\n id: __webpack_require__(186),\n log: __webpack_require__(187),\n ls: __webpack_require__(196),\n mount: __webpack_require__(197),\n name: __webpack_require__(198),\n object: __webpack_require__(199),\n pin: __webpack_require__(200),\n ping: __webpack_require__(201),\n refs: __webpack_require__(202),\n swarm: __webpack_require__(203),\n update: __webpack_require__(204),\n version: __webpack_require__(205)\n };\n}\n\nfunction loadCommands(send) {\n var files = requireCommands();\n var cmds = {};\n\n (0, _keys2.default)(files).forEach(function (file) {\n cmds[file] = files[file](send);\n });\n\n return cmds;\n}\n\nmodule.exports = loadCommands;\n/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/load-commands.js\n ** module id = 77\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./src/load-commands.js?"); /***/ }, /* 78 */ /***/ function(module, exports, __webpack_require__) { - eval("// 19.1.2.14 Object.keys(O)\nvar toObject = __webpack_require__(15);\n\n__webpack_require__(79)('keys', function($keys){\n return function keys(it){\n return $keys(toObject(it));\n };\n});\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/~/core-js/library/modules/es6.object.keys.js\n ** module id = 78\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/babel-runtime/~/core-js/library/modules/es6.object.keys.js?"); + eval("module.exports = { \"default\": __webpack_require__(79), __esModule: true };\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/object/keys.js\n ** module id = 78\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/babel-runtime/core-js/object/keys.js?"); /***/ }, /* 79 */ /***/ function(module, exports, __webpack_require__) { - eval("// most Object methods by ES6 should accept primitives\nvar $export = __webpack_require__(8)\n , core = __webpack_require__(10)\n , fails = __webpack_require__(19);\nmodule.exports = function(KEY, exec){\n var fn = (core.Object || {})[KEY] || Object[KEY]\n , exp = {};\n exp[KEY] = exec(fn);\n $export($export.S + $export.F * fails(function(){ fn(1); }), 'Object', exp);\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/~/core-js/library/modules/$.object-sap.js\n ** module id = 79\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/babel-runtime/~/core-js/library/modules/$.object-sap.js?"); + eval("__webpack_require__(80);\nmodule.exports = __webpack_require__(10).Object.keys;\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/object/keys.js\n ** module id = 79\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/fn/object/keys.js?"); /***/ }, /* 80 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("module.exports = {};\n\n/*****************\n ** WEBPACK FOOTER\n ** external \"{}\"\n ** module id = 80\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///external_%22%7B%7D%22?"); + eval("// 19.1.2.14 Object.keys(O)\nvar toObject = __webpack_require__(15);\n\n__webpack_require__(81)('keys', function($keys){\n return function keys(it){\n return $keys(toObject(it));\n };\n});\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/es6.object.keys.js\n ** module id = 80\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/modules/es6.object.keys.js?"); /***/ }, /* 81 */ /***/ function(module, exports, __webpack_require__) { - eval("'use strict';\n\nvar Wreck = __webpack_require__(82);\n\nmodule.exports = function (send) {\n return function add(files, opts, cb) {\n if (typeof opts === 'function' && cb === undefined) {\n cb = opts;\n opts = {};\n }\n\n if (typeof files === 'string' && files.startsWith('http')) {\n return Wreck.request('GET', files, null, function (err, res) {\n if (err) return cb(err);\n\n send('add', null, opts, res, cb);\n });\n }\n\n return send('add', null, opts, files, cb);\n };\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/api/add.js\n ** module id = 81\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./src/api/add.js?"); + eval("// most Object methods by ES6 should accept primitives\nvar $export = __webpack_require__(8)\n , core = __webpack_require__(10)\n , fails = __webpack_require__(19);\nmodule.exports = function(KEY, exec){\n var fn = (core.Object || {})[KEY] || Object[KEY]\n , exp = {};\n exp[KEY] = exec(fn);\n $export($export.S + $export.F * fails(function(){ fn(1); }), 'Object', exp);\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.object-sap.js\n ** module id = 81\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/modules/$.object-sap.js?"); /***/ }, /* 82 */ -/***/ function(module, exports, __webpack_require__) { +/***/ function(module, exports) { - eval("/* WEBPACK VAR INJECTION */(function(Buffer, process) {'use strict';\n\n// Load modules\n\nvar Events = __webpack_require__(84);\nvar Url = __webpack_require__(85);\nvar Http = __webpack_require__(91);\nvar Https = __webpack_require__(116);\nvar Stream = __webpack_require__(96);\nvar Hoek = __webpack_require__(117);\nvar Boom = __webpack_require__(153);\nvar Payload = __webpack_require__(158);\nvar Recorder = __webpack_require__(159);\nvar Tap = __webpack_require__(160);\n\n// Declare internals\n\nvar internals = {\n jsonRegex: /^application\\/[a-z.+-]*json$/,\n shallowOptions: ['agent', 'payload', 'downstreamRes', 'beforeRedirect', 'redirected']\n};\n\n// new instance is exported as module.exports\n\ninternals.Client = function (defaults) {\n\n Events.EventEmitter.call(this);\n\n this.agents = {\n https: new Https.Agent({ maxSockets: Infinity }),\n http: new Http.Agent({ maxSockets: Infinity }),\n httpsAllowUnauthorized: new Https.Agent({ maxSockets: Infinity, rejectUnauthorized: false })\n };\n\n this._defaults = defaults || {};\n};\n\nHoek.inherits(internals.Client, Events.EventEmitter);\n\ninternals.Client.prototype.defaults = function (options) {\n\n options = Hoek.applyToDefaultsWithShallow(options, this._defaults, internals.shallowOptions);\n return new internals.Client(options);\n};\n\ninternals.resolveUrl = function (baseUrl, path) {\n\n if (!path) {\n return baseUrl;\n }\n\n var parsedBase = Url.parse(baseUrl);\n var parsedPath = Url.parse(path);\n\n parsedBase.pathname = parsedBase.pathname + parsedPath.pathname;\n parsedBase.pathname = parsedBase.pathname.replace(/[/]{2,}/g, '/');\n parsedBase.search = parsedPath.search; // Always use the querystring from the path argument\n\n return Url.format(parsedBase);\n};\n\ninternals.Client.prototype.request = function (method, url, options, callback, _trace) {\n var _this = this;\n\n options = Hoek.applyToDefaultsWithShallow(options || {}, this._defaults, internals.shallowOptions);\n\n Hoek.assert(options.payload === null || options.payload === undefined || typeof options.payload === 'string' || options.payload instanceof Stream || Buffer.isBuffer(options.payload), 'options.payload must be a string, a Buffer, or a Stream');\n\n Hoek.assert(options.agent === undefined || options.agent === null || typeof options.rejectUnauthorized !== 'boolean', 'options.agent cannot be set to an Agent at the same time as options.rejectUnauthorized is set');\n\n Hoek.assert(options.beforeRedirect === undefined || options.beforeRedirect === null || typeof options.beforeRedirect === 'function', 'options.beforeRedirect must be a function');\n\n Hoek.assert(options.redirected === undefined || options.redirected === null || typeof options.redirected === 'function', 'options.redirected must be a function');\n\n if (options.baseUrl) {\n url = internals.resolveUrl(options.baseUrl, url);\n delete options.baseUrl;\n }\n\n var uri = Url.parse(url);\n uri.method = method.toUpperCase();\n uri.headers = options.headers;\n\n var payloadSupported = uri.method !== 'GET' && uri.method !== 'HEAD' && options.payload !== null && options.payload !== undefined;\n if (payloadSupported && (typeof options.payload === 'string' || Buffer.isBuffer(options.payload))) {\n\n uri.headers = Hoek.clone(uri.headers) || {};\n uri.headers['Content-Length'] = Buffer.isBuffer(options.payload) ? options.payload.length : Buffer.byteLength(options.payload);\n }\n\n var redirects = options.hasOwnProperty('redirects') ? options.redirects : false; // Needed to allow 0 as valid value when passed recursively\n\n _trace = _trace || [];\n _trace.push({ method: uri.method, url: url });\n\n var client = uri.protocol === 'https:' ? Https : Http;\n\n if (options.rejectUnauthorized !== undefined && uri.protocol === 'https:') {\n uri.agent = options.rejectUnauthorized ? this.agents.https : this.agents.httpsAllowUnauthorized;\n } else if (options.agent || options.agent === false) {\n uri.agent = options.agent;\n } else {\n uri.agent = uri.protocol === 'https:' ? this.agents.https : this.agents.http;\n }\n\n if (options.secureProtocol !== undefined) {\n uri.secureProtocol = options.secureProtocol;\n }\n\n var start = Date.now();\n var req = client.request(uri);\n\n var shadow = null; // A copy of the streamed request payload when redirects are enabled\n\n var onResponse = undefined;\n var onError = undefined;\n var timeoutId = undefined;\n\n // Register handlers\n\n var finish = function finish(err, res) {\n\n if (!callback || err) {\n req.abort();\n }\n\n req.removeListener('response', onResponse);\n req.removeListener('error', onError);\n req.on('error', Hoek.ignore);\n clearTimeout(timeoutId);\n _this.emit('response', err, req, res, start, uri);\n\n if (callback) {\n return callback(err, res);\n }\n };\n\n var finishOnce = Hoek.once(finish);\n\n onError = function onError(err) {\n\n err.trace = _trace;\n return finishOnce(Boom.badGateway('Client request error', err));\n };\n\n req.once('error', onError);\n\n onResponse = function onResponse(res) {\n\n // Pass-through response\n\n var statusCode = res.statusCode;\n\n if (redirects === false || [301, 302, 307, 308].indexOf(statusCode) === -1) {\n\n return finishOnce(null, res);\n }\n\n // Redirection\n\n var redirectMethod = statusCode === 301 || statusCode === 302 ? 'GET' : uri.method;\n var location = res.headers.location;\n\n res.destroy();\n\n if (redirects === 0) {\n return finishOnce(Boom.badGateway('Maximum redirections reached', _trace));\n }\n\n if (!location) {\n return finishOnce(Boom.badGateway('Received redirection without location', _trace));\n }\n\n if (!/^https?:/i.test(location)) {\n location = Url.resolve(uri.href, location);\n }\n\n var redirectOptions = Hoek.cloneWithShallow(options, internals.shallowOptions);\n\n redirectOptions.payload = shadow || options.payload; // shadow must be ready at this point if set\n redirectOptions.redirects = --redirects;\n\n if (options.beforeRedirect) {\n options.beforeRedirect(redirectMethod, statusCode, location, redirectOptions);\n }\n\n var redirectReq = _this.request(redirectMethod, location, redirectOptions, finishOnce, _trace);\n\n if (options.redirected) {\n options.redirected(statusCode, location, redirectReq);\n }\n };\n\n req.once('response', onResponse);\n\n if (options.timeout) {\n timeoutId = setTimeout(function () {\n\n return finishOnce(Boom.gatewayTimeout('Client request timeout'));\n }, options.timeout);\n delete options.timeout;\n }\n\n // Write payload\n\n if (payloadSupported) {\n if (options.payload instanceof Stream) {\n var stream = options.payload;\n\n if (redirects) {\n (function () {\n var collector = new Tap();\n collector.once('finish', function () {\n\n shadow = collector.collect();\n });\n\n stream = options.payload.pipe(collector);\n })();\n }\n\n stream.pipe(req);\n return;\n }\n\n req.write(options.payload);\n }\n\n // Custom abort method to detect early aborts\n\n var _abort = req.abort;\n var aborted = false;\n req.abort = function () {\n\n if (!aborted && !req.res && !req.socket) {\n process.nextTick(function () {\n\n // Fake an ECONNRESET error\n\n var error = new Error('socket hang up');\n error.code = 'ECONNRESET';\n finishOnce(error);\n });\n }\n\n aborted = true;\n return _abort.call(req);\n };\n\n // Finalize request\n\n req.end();\n\n return req;\n};\n\n// read()\n\ninternals.Client.prototype.read = function (res, options, callback) {\n\n options = Hoek.applyToDefaultsWithShallow(options || {}, this._defaults, internals.shallowOptions);\n\n // Set stream timeout\n\n var clientTimeout = options.timeout;\n var clientTimeoutId = null;\n\n // Finish once\n\n var finish = function finish(err, buffer) {\n\n clearTimeout(clientTimeoutId);\n reader.removeListener('error', onReaderError);\n reader.removeListener('finish', onReaderFinish);\n res.removeListener('error', onResError);\n res.removeListener('close', onResClose);\n res.on('error', Hoek.ignore);\n\n if (err || !options.json) {\n\n return callback(err, buffer);\n }\n\n // Parse JSON\n\n var result = undefined;\n if (buffer.length === 0) {\n return callback(null, null);\n }\n\n if (options.json === 'force') {\n result = internals.tryParseBuffer(buffer);\n return callback(result.err, result.json);\n }\n\n // mode is \"smart\" or true\n\n var contentType = res.headers && res.headers['content-type'] || '';\n var mime = contentType.split(';')[0].trim().toLowerCase();\n\n if (!internals.jsonRegex.test(mime)) {\n return callback(null, buffer);\n }\n\n result = internals.tryParseBuffer(buffer);\n return callback(result.err, result.json);\n };\n\n var finishOnce = Hoek.once(finish);\n\n if (clientTimeout && clientTimeout > 0) {\n\n clientTimeoutId = setTimeout(function () {\n\n finishOnce(Boom.clientTimeout());\n }, clientTimeout);\n }\n\n // Hander errors\n\n var onResError = function onResError(err) {\n\n return finishOnce(Boom.internal('Payload stream error', err));\n };\n\n var onResClose = function onResClose() {\n\n return finishOnce(Boom.internal('Payload stream closed prematurely'));\n };\n\n res.once('error', onResError);\n res.once('close', onResClose);\n\n // Read payload\n\n var reader = new Recorder({ maxBytes: options.maxBytes });\n\n var onReaderError = function onReaderError(err) {\n\n if (res.destroy) {\n // GZip stream has no destroy() method\n res.destroy();\n }\n\n return finishOnce(err);\n };\n\n reader.once('error', onReaderError);\n\n var onReaderFinish = function onReaderFinish() {\n\n return finishOnce(null, reader.collect());\n };\n\n reader.once('finish', onReaderFinish);\n\n res.pipe(reader);\n};\n\n// toReadableStream()\n\ninternals.Client.prototype.toReadableStream = function (payload, encoding) {\n\n return new Payload(payload, encoding);\n};\n\n// parseCacheControl()\n\ninternals.Client.prototype.parseCacheControl = function (field) {\n\n /*\n Cache-Control = 1#cache-directive\n cache-directive = token [ \"=\" ( token / quoted-string ) ]\n token = [^\\x00-\\x20\\(\\)<>@\\,;\\:\\\\\"\\/\\[\\]\\?\\=\\{\\}\\x7F]+\n quoted-string = \"(?:[^\"\\\\]|\\\\.)*\"\n */\n\n // 1: directive = 2: token 3: quoted-string\n var regex = /(?:^|(?:\\s*\\,\\s*))([^\\x00-\\x20\\(\\)<>@\\,;\\:\\\\\"\\/\\[\\]\\?\\=\\{\\}\\x7F]+)(?:\\=(?:([^\\x00-\\x20\\(\\)<>@\\,;\\:\\\\\"\\/\\[\\]\\?\\=\\{\\}\\x7F]+)|(?:\\\"((?:[^\"\\\\]|\\\\.)*)\\\")))?/g;\n\n var header = {};\n var error = field.replace(regex, function ($0, $1, $2, $3) {\n\n var value = $2 || $3;\n header[$1] = value ? value.toLowerCase() : true;\n return '';\n });\n\n if (header['max-age']) {\n try {\n var maxAge = parseInt(header['max-age'], 10);\n if (isNaN(maxAge)) {\n return null;\n }\n\n header['max-age'] = maxAge;\n } catch (err) {}\n }\n\n return error ? null : header;\n};\n\n// Shortcuts\n\ninternals.Client.prototype.get = function (uri, options, callback) {\n\n return this._shortcutWrap('GET', uri, options, callback);\n};\n\ninternals.Client.prototype.post = function (uri, options, callback) {\n\n return this._shortcutWrap('POST', uri, options, callback);\n};\n\ninternals.Client.prototype.patch = function (uri, options, callback) {\n\n return this._shortcutWrap('PATCH', uri, options, callback);\n};\n\ninternals.Client.prototype.put = function (uri, options, callback) {\n\n return this._shortcutWrap('PUT', uri, options, callback);\n};\n\ninternals.Client.prototype.delete = function (uri, options, callback) {\n\n return this._shortcutWrap('DELETE', uri, options, callback);\n};\n\n// Wrapper so that shortcut can be optimized with required params\n\ninternals.Client.prototype._shortcutWrap = function (method, uri /* [options], callback */) {\n\n var options = typeof arguments[2] === 'function' ? {} : arguments[2];\n var callback = typeof arguments[2] === 'function' ? arguments[2] : arguments[3];\n\n return this._shortcut(method, uri, options, callback);\n};\n\ninternals.Client.prototype._shortcut = function (method, uri, options, callback) {\n var _this2 = this;\n\n return this.request(method, uri, options, function (err, res) {\n\n if (err) {\n return callback(err);\n }\n\n _this2.read(res, options, function (err, payload) {\n\n return callback(err, res, payload);\n });\n });\n};\n\ninternals.tryParseBuffer = function (buffer) {\n\n var result = {\n json: null,\n err: null\n };\n try {\n var json = JSON.parse(buffer.toString());\n result.json = json;\n } catch (err) {\n result.err = err;\n }\n return result;\n};\n\nmodule.exports = new internals.Client();\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1).Buffer, __webpack_require__(83)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/wreck/lib/index.js\n ** module id = 82\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/wreck/lib/index.js?"); + eval("module.exports = {};\n\n/*****************\n ** WEBPACK FOOTER\n ** external \"{}\"\n ** module id = 82\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///external_%22%7B%7D%22?"); /***/ }, /* 83 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("// shim for using process in browser\n\nvar process = module.exports = {};\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = setTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n clearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n setTimeout(drainQueue, 0);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** (webpack)/~/node-libs-browser/~/process/browser.js\n ** module id = 83\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///(webpack)/~/node-libs-browser/~/process/browser.js?"); + eval("'use strict';\n\nvar Wreck = __webpack_require__(84);\n\nmodule.exports = function (send) {\n return function add(files, opts, cb) {\n if (typeof opts === 'function' && cb === undefined) {\n cb = opts;\n opts = {};\n }\n\n if (typeof files === 'string' && files.startsWith('http')) {\n return Wreck.request('GET', files, null, function (err, res) {\n if (err) return cb(err);\n\n send('add', null, opts, res, cb);\n });\n }\n\n return send('add', null, opts, files, cb);\n };\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/api/add.js\n ** module id = 83\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./src/api/add.js?"); /***/ }, /* 84 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nfunction EventEmitter() {\n this._events = this._events || {};\n this._maxListeners = this._maxListeners || undefined;\n}\nmodule.exports = EventEmitter;\n\n// Backwards-compat with node 0.10.x\nEventEmitter.EventEmitter = EventEmitter;\n\nEventEmitter.prototype._events = undefined;\nEventEmitter.prototype._maxListeners = undefined;\n\n// By default EventEmitters will print a warning if more than 10 listeners are\n// added to it. This is a useful default which helps finding memory leaks.\nEventEmitter.defaultMaxListeners = 10;\n\n// Obviously not all Emitters should be limited to 10. This function allows\n// that to be increased. Set to zero for unlimited.\nEventEmitter.prototype.setMaxListeners = function(n) {\n if (!isNumber(n) || n < 0 || isNaN(n))\n throw TypeError('n must be a positive number');\n this._maxListeners = n;\n return this;\n};\n\nEventEmitter.prototype.emit = function(type) {\n var er, handler, len, args, i, listeners;\n\n if (!this._events)\n this._events = {};\n\n // If there is no 'error' event listener then throw.\n if (type === 'error') {\n if (!this._events.error ||\n (isObject(this._events.error) && !this._events.error.length)) {\n er = arguments[1];\n if (er instanceof Error) {\n throw er; // Unhandled 'error' event\n }\n throw TypeError('Uncaught, unspecified \"error\" event.');\n }\n }\n\n handler = this._events[type];\n\n if (isUndefined(handler))\n return false;\n\n if (isFunction(handler)) {\n switch (arguments.length) {\n // fast cases\n case 1:\n handler.call(this);\n break;\n case 2:\n handler.call(this, arguments[1]);\n break;\n case 3:\n handler.call(this, arguments[1], arguments[2]);\n break;\n // slower\n default:\n args = Array.prototype.slice.call(arguments, 1);\n handler.apply(this, args);\n }\n } else if (isObject(handler)) {\n args = Array.prototype.slice.call(arguments, 1);\n listeners = handler.slice();\n len = listeners.length;\n for (i = 0; i < len; i++)\n listeners[i].apply(this, args);\n }\n\n return true;\n};\n\nEventEmitter.prototype.addListener = function(type, listener) {\n var m;\n\n if (!isFunction(listener))\n throw TypeError('listener must be a function');\n\n if (!this._events)\n this._events = {};\n\n // To avoid recursion in the case that type === \"newListener\"! Before\n // adding it to the listeners, first emit \"newListener\".\n if (this._events.newListener)\n this.emit('newListener', type,\n isFunction(listener.listener) ?\n listener.listener : listener);\n\n if (!this._events[type])\n // Optimize the case of one listener. Don't need the extra array object.\n this._events[type] = listener;\n else if (isObject(this._events[type]))\n // If we've already got an array, just append.\n this._events[type].push(listener);\n else\n // Adding the second element, need to change to array.\n this._events[type] = [this._events[type], listener];\n\n // Check for listener leak\n if (isObject(this._events[type]) && !this._events[type].warned) {\n if (!isUndefined(this._maxListeners)) {\n m = this._maxListeners;\n } else {\n m = EventEmitter.defaultMaxListeners;\n }\n\n if (m && m > 0 && this._events[type].length > m) {\n this._events[type].warned = true;\n console.error('(node) warning: possible EventEmitter memory ' +\n 'leak detected. %d listeners added. ' +\n 'Use emitter.setMaxListeners() to increase limit.',\n this._events[type].length);\n if (typeof console.trace === 'function') {\n // not supported in IE 10\n console.trace();\n }\n }\n }\n\n return this;\n};\n\nEventEmitter.prototype.on = EventEmitter.prototype.addListener;\n\nEventEmitter.prototype.once = function(type, listener) {\n if (!isFunction(listener))\n throw TypeError('listener must be a function');\n\n var fired = false;\n\n function g() {\n this.removeListener(type, g);\n\n if (!fired) {\n fired = true;\n listener.apply(this, arguments);\n }\n }\n\n g.listener = listener;\n this.on(type, g);\n\n return this;\n};\n\n// emits a 'removeListener' event iff the listener was removed\nEventEmitter.prototype.removeListener = function(type, listener) {\n var list, position, length, i;\n\n if (!isFunction(listener))\n throw TypeError('listener must be a function');\n\n if (!this._events || !this._events[type])\n return this;\n\n list = this._events[type];\n length = list.length;\n position = -1;\n\n if (list === listener ||\n (isFunction(list.listener) && list.listener === listener)) {\n delete this._events[type];\n if (this._events.removeListener)\n this.emit('removeListener', type, listener);\n\n } else if (isObject(list)) {\n for (i = length; i-- > 0;) {\n if (list[i] === listener ||\n (list[i].listener && list[i].listener === listener)) {\n position = i;\n break;\n }\n }\n\n if (position < 0)\n return this;\n\n if (list.length === 1) {\n list.length = 0;\n delete this._events[type];\n } else {\n list.splice(position, 1);\n }\n\n if (this._events.removeListener)\n this.emit('removeListener', type, listener);\n }\n\n return this;\n};\n\nEventEmitter.prototype.removeAllListeners = function(type) {\n var key, listeners;\n\n if (!this._events)\n return this;\n\n // not listening for removeListener, no need to emit\n if (!this._events.removeListener) {\n if (arguments.length === 0)\n this._events = {};\n else if (this._events[type])\n delete this._events[type];\n return this;\n }\n\n // emit removeListener for all listeners on all events\n if (arguments.length === 0) {\n for (key in this._events) {\n if (key === 'removeListener') continue;\n this.removeAllListeners(key);\n }\n this.removeAllListeners('removeListener');\n this._events = {};\n return this;\n }\n\n listeners = this._events[type];\n\n if (isFunction(listeners)) {\n this.removeListener(type, listeners);\n } else if (listeners) {\n // LIFO order\n while (listeners.length)\n this.removeListener(type, listeners[listeners.length - 1]);\n }\n delete this._events[type];\n\n return this;\n};\n\nEventEmitter.prototype.listeners = function(type) {\n var ret;\n if (!this._events || !this._events[type])\n ret = [];\n else if (isFunction(this._events[type]))\n ret = [this._events[type]];\n else\n ret = this._events[type].slice();\n return ret;\n};\n\nEventEmitter.prototype.listenerCount = function(type) {\n if (this._events) {\n var evlistener = this._events[type];\n\n if (isFunction(evlistener))\n return 1;\n else if (evlistener)\n return evlistener.length;\n }\n return 0;\n};\n\nEventEmitter.listenerCount = function(emitter, type) {\n return emitter.listenerCount(type);\n};\n\nfunction isFunction(arg) {\n return typeof arg === 'function';\n}\n\nfunction isNumber(arg) {\n return typeof arg === 'number';\n}\n\nfunction isObject(arg) {\n return typeof arg === 'object' && arg !== null;\n}\n\nfunction isUndefined(arg) {\n return arg === void 0;\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** (webpack)/~/node-libs-browser/~/events/events.js\n ** module id = 84\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///(webpack)/~/node-libs-browser/~/events/events.js?"); + eval("/* WEBPACK VAR INJECTION */(function(Buffer, process) {'use strict';\n\n// Load modules\n\nvar Events = __webpack_require__(86);\nvar Url = __webpack_require__(87);\nvar Http = __webpack_require__(93);\nvar Https = __webpack_require__(115);\nvar Stream = __webpack_require__(98);\nvar Hoek = __webpack_require__(116);\nvar Boom = __webpack_require__(151);\nvar Payload = __webpack_require__(156);\nvar Recorder = __webpack_require__(157);\nvar Tap = __webpack_require__(158);\n\n// Declare internals\n\nvar internals = {\n jsonRegex: /^application\\/[a-z.+-]*json$/,\n shallowOptions: ['agent', 'payload', 'downstreamRes', 'beforeRedirect', 'redirected']\n};\n\n// new instance is exported as module.exports\n\ninternals.Client = function (defaults) {\n\n Events.EventEmitter.call(this);\n\n this.agents = {\n https: new Https.Agent({ maxSockets: Infinity }),\n http: new Http.Agent({ maxSockets: Infinity }),\n httpsAllowUnauthorized: new Https.Agent({ maxSockets: Infinity, rejectUnauthorized: false })\n };\n\n this._defaults = defaults || {};\n};\n\nHoek.inherits(internals.Client, Events.EventEmitter);\n\ninternals.Client.prototype.defaults = function (options) {\n\n options = Hoek.applyToDefaultsWithShallow(options, this._defaults, internals.shallowOptions);\n return new internals.Client(options);\n};\n\ninternals.resolveUrl = function (baseUrl, path) {\n\n if (!path) {\n return baseUrl;\n }\n\n var parsedBase = Url.parse(baseUrl);\n var parsedPath = Url.parse(path);\n\n parsedBase.pathname = parsedBase.pathname + parsedPath.pathname;\n parsedBase.pathname = parsedBase.pathname.replace(/[/]{2,}/g, '/');\n parsedBase.search = parsedPath.search; // Always use the querystring from the path argument\n\n return Url.format(parsedBase);\n};\n\ninternals.Client.prototype.request = function (method, url, options, callback, _trace) {\n var _this = this;\n\n options = Hoek.applyToDefaultsWithShallow(options || {}, this._defaults, internals.shallowOptions);\n\n Hoek.assert(options.payload === null || options.payload === undefined || typeof options.payload === 'string' || options.payload instanceof Stream || Buffer.isBuffer(options.payload), 'options.payload must be a string, a Buffer, or a Stream');\n\n Hoek.assert(options.agent === undefined || options.agent === null || typeof options.rejectUnauthorized !== 'boolean', 'options.agent cannot be set to an Agent at the same time as options.rejectUnauthorized is set');\n\n Hoek.assert(options.beforeRedirect === undefined || options.beforeRedirect === null || typeof options.beforeRedirect === 'function', 'options.beforeRedirect must be a function');\n\n Hoek.assert(options.redirected === undefined || options.redirected === null || typeof options.redirected === 'function', 'options.redirected must be a function');\n\n if (options.baseUrl) {\n url = internals.resolveUrl(options.baseUrl, url);\n delete options.baseUrl;\n }\n\n var uri = Url.parse(url);\n uri.method = method.toUpperCase();\n uri.headers = options.headers;\n\n var payloadSupported = uri.method !== 'GET' && uri.method !== 'HEAD' && options.payload !== null && options.payload !== undefined;\n if (payloadSupported && (typeof options.payload === 'string' || Buffer.isBuffer(options.payload))) {\n\n uri.headers = Hoek.clone(uri.headers) || {};\n uri.headers['Content-Length'] = Buffer.isBuffer(options.payload) ? options.payload.length : Buffer.byteLength(options.payload);\n }\n\n var redirects = options.hasOwnProperty('redirects') ? options.redirects : false; // Needed to allow 0 as valid value when passed recursively\n\n _trace = _trace || [];\n _trace.push({ method: uri.method, url: url });\n\n var client = uri.protocol === 'https:' ? Https : Http;\n\n if (options.rejectUnauthorized !== undefined && uri.protocol === 'https:') {\n uri.agent = options.rejectUnauthorized ? this.agents.https : this.agents.httpsAllowUnauthorized;\n } else if (options.agent || options.agent === false) {\n uri.agent = options.agent;\n } else {\n uri.agent = uri.protocol === 'https:' ? this.agents.https : this.agents.http;\n }\n\n if (options.secureProtocol !== undefined) {\n uri.secureProtocol = options.secureProtocol;\n }\n\n var start = Date.now();\n var req = client.request(uri);\n\n var shadow = null; // A copy of the streamed request payload when redirects are enabled\n\n var onResponse = undefined;\n var onError = undefined;\n var timeoutId = undefined;\n\n // Register handlers\n\n var finish = function finish(err, res) {\n\n if (!callback || err) {\n req.abort();\n }\n\n req.removeListener('response', onResponse);\n req.removeListener('error', onError);\n req.on('error', Hoek.ignore);\n clearTimeout(timeoutId);\n _this.emit('response', err, req, res, start, uri);\n\n if (callback) {\n return callback(err, res);\n }\n };\n\n var finishOnce = Hoek.once(finish);\n\n onError = function onError(err) {\n\n err.trace = _trace;\n return finishOnce(Boom.badGateway('Client request error', err));\n };\n\n req.once('error', onError);\n\n onResponse = function onResponse(res) {\n\n // Pass-through response\n\n var statusCode = res.statusCode;\n\n if (redirects === false || [301, 302, 307, 308].indexOf(statusCode) === -1) {\n\n return finishOnce(null, res);\n }\n\n // Redirection\n\n var redirectMethod = statusCode === 301 || statusCode === 302 ? 'GET' : uri.method;\n var location = res.headers.location;\n\n res.destroy();\n\n if (redirects === 0) {\n return finishOnce(Boom.badGateway('Maximum redirections reached', _trace));\n }\n\n if (!location) {\n return finishOnce(Boom.badGateway('Received redirection without location', _trace));\n }\n\n if (!/^https?:/i.test(location)) {\n location = Url.resolve(uri.href, location);\n }\n\n var redirectOptions = Hoek.cloneWithShallow(options, internals.shallowOptions);\n\n redirectOptions.payload = shadow || options.payload; // shadow must be ready at this point if set\n redirectOptions.redirects = --redirects;\n\n if (options.beforeRedirect) {\n options.beforeRedirect(redirectMethod, statusCode, location, redirectOptions);\n }\n\n var redirectReq = _this.request(redirectMethod, location, redirectOptions, finishOnce, _trace);\n\n if (options.redirected) {\n options.redirected(statusCode, location, redirectReq);\n }\n };\n\n req.once('response', onResponse);\n\n if (options.timeout) {\n timeoutId = setTimeout(function () {\n\n return finishOnce(Boom.gatewayTimeout('Client request timeout'));\n }, options.timeout);\n delete options.timeout;\n }\n\n // Write payload\n\n if (payloadSupported) {\n if (options.payload instanceof Stream) {\n var stream = options.payload;\n\n if (redirects) {\n (function () {\n var collector = new Tap();\n collector.once('finish', function () {\n\n shadow = collector.collect();\n });\n\n stream = options.payload.pipe(collector);\n })();\n }\n\n stream.pipe(req);\n return;\n }\n\n req.write(options.payload);\n }\n\n // Custom abort method to detect early aborts\n\n var _abort = req.abort;\n var aborted = false;\n req.abort = function () {\n\n if (!aborted && !req.res && !req.socket) {\n process.nextTick(function () {\n\n // Fake an ECONNRESET error\n\n var error = new Error('socket hang up');\n error.code = 'ECONNRESET';\n finishOnce(error);\n });\n }\n\n aborted = true;\n return _abort.call(req);\n };\n\n // Finalize request\n\n req.end();\n\n return req;\n};\n\n// read()\n\ninternals.Client.prototype.read = function (res, options, callback) {\n\n options = Hoek.applyToDefaultsWithShallow(options || {}, this._defaults, internals.shallowOptions);\n\n // Set stream timeout\n\n var clientTimeout = options.timeout;\n var clientTimeoutId = null;\n\n // Finish once\n\n var finish = function finish(err, buffer) {\n\n clearTimeout(clientTimeoutId);\n reader.removeListener('error', onReaderError);\n reader.removeListener('finish', onReaderFinish);\n res.removeListener('error', onResError);\n res.removeListener('close', onResClose);\n res.on('error', Hoek.ignore);\n\n if (err || !options.json) {\n\n return callback(err, buffer);\n }\n\n // Parse JSON\n\n var result = undefined;\n if (buffer.length === 0) {\n return callback(null, null);\n }\n\n if (options.json === 'force') {\n result = internals.tryParseBuffer(buffer);\n return callback(result.err, result.json);\n }\n\n // mode is \"smart\" or true\n\n var contentType = res.headers && res.headers['content-type'] || '';\n var mime = contentType.split(';')[0].trim().toLowerCase();\n\n if (!internals.jsonRegex.test(mime)) {\n return callback(null, buffer);\n }\n\n result = internals.tryParseBuffer(buffer);\n return callback(result.err, result.json);\n };\n\n var finishOnce = Hoek.once(finish);\n\n if (clientTimeout && clientTimeout > 0) {\n\n clientTimeoutId = setTimeout(function () {\n\n finishOnce(Boom.clientTimeout());\n }, clientTimeout);\n }\n\n // Hander errors\n\n var onResError = function onResError(err) {\n\n return finishOnce(Boom.internal('Payload stream error', err));\n };\n\n var onResClose = function onResClose() {\n\n return finishOnce(Boom.internal('Payload stream closed prematurely'));\n };\n\n res.once('error', onResError);\n res.once('close', onResClose);\n\n // Read payload\n\n var reader = new Recorder({ maxBytes: options.maxBytes });\n\n var onReaderError = function onReaderError(err) {\n\n if (res.destroy) {\n // GZip stream has no destroy() method\n res.destroy();\n }\n\n return finishOnce(err);\n };\n\n reader.once('error', onReaderError);\n\n var onReaderFinish = function onReaderFinish() {\n\n return finishOnce(null, reader.collect());\n };\n\n reader.once('finish', onReaderFinish);\n\n res.pipe(reader);\n};\n\n// toReadableStream()\n\ninternals.Client.prototype.toReadableStream = function (payload, encoding) {\n\n return new Payload(payload, encoding);\n};\n\n// parseCacheControl()\n\ninternals.Client.prototype.parseCacheControl = function (field) {\n\n /*\n Cache-Control = 1#cache-directive\n cache-directive = token [ \"=\" ( token / quoted-string ) ]\n token = [^\\x00-\\x20\\(\\)<>@\\,;\\:\\\\\"\\/\\[\\]\\?\\=\\{\\}\\x7F]+\n quoted-string = \"(?:[^\"\\\\]|\\\\.)*\"\n */\n\n // 1: directive = 2: token 3: quoted-string\n var regex = /(?:^|(?:\\s*\\,\\s*))([^\\x00-\\x20\\(\\)<>@\\,;\\:\\\\\"\\/\\[\\]\\?\\=\\{\\}\\x7F]+)(?:\\=(?:([^\\x00-\\x20\\(\\)<>@\\,;\\:\\\\\"\\/\\[\\]\\?\\=\\{\\}\\x7F]+)|(?:\\\"((?:[^\"\\\\]|\\\\.)*)\\\")))?/g;\n\n var header = {};\n var error = field.replace(regex, function ($0, $1, $2, $3) {\n\n var value = $2 || $3;\n header[$1] = value ? value.toLowerCase() : true;\n return '';\n });\n\n if (header['max-age']) {\n try {\n var maxAge = parseInt(header['max-age'], 10);\n if (isNaN(maxAge)) {\n return null;\n }\n\n header['max-age'] = maxAge;\n } catch (err) {}\n }\n\n return error ? null : header;\n};\n\n// Shortcuts\n\ninternals.Client.prototype.get = function (uri, options, callback) {\n\n return this._shortcutWrap('GET', uri, options, callback);\n};\n\ninternals.Client.prototype.post = function (uri, options, callback) {\n\n return this._shortcutWrap('POST', uri, options, callback);\n};\n\ninternals.Client.prototype.patch = function (uri, options, callback) {\n\n return this._shortcutWrap('PATCH', uri, options, callback);\n};\n\ninternals.Client.prototype.put = function (uri, options, callback) {\n\n return this._shortcutWrap('PUT', uri, options, callback);\n};\n\ninternals.Client.prototype.delete = function (uri, options, callback) {\n\n return this._shortcutWrap('DELETE', uri, options, callback);\n};\n\n// Wrapper so that shortcut can be optimized with required params\n\ninternals.Client.prototype._shortcutWrap = function (method, uri /* [options], callback */) {\n\n var options = typeof arguments[2] === 'function' ? {} : arguments[2];\n var callback = typeof arguments[2] === 'function' ? arguments[2] : arguments[3];\n\n return this._shortcut(method, uri, options, callback);\n};\n\ninternals.Client.prototype._shortcut = function (method, uri, options, callback) {\n var _this2 = this;\n\n return this.request(method, uri, options, function (err, res) {\n\n if (err) {\n return callback(err);\n }\n\n _this2.read(res, options, function (err, payload) {\n\n return callback(err, res, payload);\n });\n });\n};\n\ninternals.tryParseBuffer = function (buffer) {\n\n var result = {\n json: null,\n err: null\n };\n try {\n var json = JSON.parse(buffer.toString());\n result.json = json;\n } catch (err) {\n result.err = err;\n }\n return result;\n};\n\nmodule.exports = new internals.Client();\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1).Buffer, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/wreck/lib/index.js\n ** module id = 84\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/wreck/lib/index.js?"); /***/ }, /* 85 */ -/***/ function(module, exports, __webpack_require__) { +/***/ function(module, exports) { - eval("// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nvar punycode = __webpack_require__(86);\n\nexports.parse = urlParse;\nexports.resolve = urlResolve;\nexports.resolveObject = urlResolveObject;\nexports.format = urlFormat;\n\nexports.Url = Url;\n\nfunction Url() {\n this.protocol = null;\n this.slashes = null;\n this.auth = null;\n this.host = null;\n this.port = null;\n this.hostname = null;\n this.hash = null;\n this.search = null;\n this.query = null;\n this.pathname = null;\n this.path = null;\n this.href = null;\n}\n\n// Reference: RFC 3986, RFC 1808, RFC 2396\n\n// define these here so at least they only have to be\n// compiled once on the first module load.\nvar protocolPattern = /^([a-z0-9.+-]+:)/i,\n portPattern = /:[0-9]*$/,\n\n // RFC 2396: characters reserved for delimiting URLs.\n // We actually just auto-escape these.\n delims = ['<', '>', '\"', '`', ' ', '\\r', '\\n', '\\t'],\n\n // RFC 2396: characters not allowed for various reasons.\n unwise = ['{', '}', '|', '\\\\', '^', '`'].concat(delims),\n\n // Allowed by RFCs, but cause of XSS attacks. Always escape these.\n autoEscape = ['\\''].concat(unwise),\n // Characters that are never ever allowed in a hostname.\n // Note that any invalid chars are also handled, but these\n // are the ones that are *expected* to be seen, so we fast-path\n // them.\n nonHostChars = ['%', '/', '?', ';', '#'].concat(autoEscape),\n hostEndingChars = ['/', '?', '#'],\n hostnameMaxLen = 255,\n hostnamePartPattern = /^[a-z0-9A-Z_-]{0,63}$/,\n hostnamePartStart = /^([a-z0-9A-Z_-]{0,63})(.*)$/,\n // protocols that can allow \"unsafe\" and \"unwise\" chars.\n unsafeProtocol = {\n 'javascript': true,\n 'javascript:': true\n },\n // protocols that never have a hostname.\n hostlessProtocol = {\n 'javascript': true,\n 'javascript:': true\n },\n // protocols that always contain a // bit.\n slashedProtocol = {\n 'http': true,\n 'https': true,\n 'ftp': true,\n 'gopher': true,\n 'file': true,\n 'http:': true,\n 'https:': true,\n 'ftp:': true,\n 'gopher:': true,\n 'file:': true\n },\n querystring = __webpack_require__(88);\n\nfunction urlParse(url, parseQueryString, slashesDenoteHost) {\n if (url && isObject(url) && url instanceof Url) return url;\n\n var u = new Url;\n u.parse(url, parseQueryString, slashesDenoteHost);\n return u;\n}\n\nUrl.prototype.parse = function(url, parseQueryString, slashesDenoteHost) {\n if (!isString(url)) {\n throw new TypeError(\"Parameter 'url' must be a string, not \" + typeof url);\n }\n\n var rest = url;\n\n // trim before proceeding.\n // This is to support parse stuff like \" http://foo.com \\n\"\n rest = rest.trim();\n\n var proto = protocolPattern.exec(rest);\n if (proto) {\n proto = proto[0];\n var lowerProto = proto.toLowerCase();\n this.protocol = lowerProto;\n rest = rest.substr(proto.length);\n }\n\n // figure out if it's got a host\n // user@server is *always* interpreted as a hostname, and url\n // resolution will treat //foo/bar as host=foo,path=bar because that's\n // how the browser resolves relative URLs.\n if (slashesDenoteHost || proto || rest.match(/^\\/\\/[^@\\/]+@[^@\\/]+/)) {\n var slashes = rest.substr(0, 2) === '//';\n if (slashes && !(proto && hostlessProtocol[proto])) {\n rest = rest.substr(2);\n this.slashes = true;\n }\n }\n\n if (!hostlessProtocol[proto] &&\n (slashes || (proto && !slashedProtocol[proto]))) {\n\n // there's a hostname.\n // the first instance of /, ?, ;, or # ends the host.\n //\n // If there is an @ in the hostname, then non-host chars *are* allowed\n // to the left of the last @ sign, unless some host-ending character\n // comes *before* the @-sign.\n // URLs are obnoxious.\n //\n // ex:\n // http://a@b@c/ => user:a@b host:c\n // http://a@b?@c => user:a host:c path:/?@c\n\n // v0.12 TODO(isaacs): This is not quite how Chrome does things.\n // Review our test case against browsers more comprehensively.\n\n // find the first instance of any hostEndingChars\n var hostEnd = -1;\n for (var i = 0; i < hostEndingChars.length; i++) {\n var hec = rest.indexOf(hostEndingChars[i]);\n if (hec !== -1 && (hostEnd === -1 || hec < hostEnd))\n hostEnd = hec;\n }\n\n // at this point, either we have an explicit point where the\n // auth portion cannot go past, or the last @ char is the decider.\n var auth, atSign;\n if (hostEnd === -1) {\n // atSign can be anywhere.\n atSign = rest.lastIndexOf('@');\n } else {\n // atSign must be in auth portion.\n // http://a@b/c@d => host:b auth:a path:/c@d\n atSign = rest.lastIndexOf('@', hostEnd);\n }\n\n // Now we have a portion which is definitely the auth.\n // Pull that off.\n if (atSign !== -1) {\n auth = rest.slice(0, atSign);\n rest = rest.slice(atSign + 1);\n this.auth = decodeURIComponent(auth);\n }\n\n // the host is the remaining to the left of the first non-host char\n hostEnd = -1;\n for (var i = 0; i < nonHostChars.length; i++) {\n var hec = rest.indexOf(nonHostChars[i]);\n if (hec !== -1 && (hostEnd === -1 || hec < hostEnd))\n hostEnd = hec;\n }\n // if we still have not hit it, then the entire thing is a host.\n if (hostEnd === -1)\n hostEnd = rest.length;\n\n this.host = rest.slice(0, hostEnd);\n rest = rest.slice(hostEnd);\n\n // pull out port.\n this.parseHost();\n\n // we've indicated that there is a hostname,\n // so even if it's empty, it has to be present.\n this.hostname = this.hostname || '';\n\n // if hostname begins with [ and ends with ]\n // assume that it's an IPv6 address.\n var ipv6Hostname = this.hostname[0] === '[' &&\n this.hostname[this.hostname.length - 1] === ']';\n\n // validate a little.\n if (!ipv6Hostname) {\n var hostparts = this.hostname.split(/\\./);\n for (var i = 0, l = hostparts.length; i < l; i++) {\n var part = hostparts[i];\n if (!part) continue;\n if (!part.match(hostnamePartPattern)) {\n var newpart = '';\n for (var j = 0, k = part.length; j < k; j++) {\n if (part.charCodeAt(j) > 127) {\n // we replace non-ASCII char with a temporary placeholder\n // we need this to make sure size of hostname is not\n // broken by replacing non-ASCII by nothing\n newpart += 'x';\n } else {\n newpart += part[j];\n }\n }\n // we test again with ASCII char only\n if (!newpart.match(hostnamePartPattern)) {\n var validParts = hostparts.slice(0, i);\n var notHost = hostparts.slice(i + 1);\n var bit = part.match(hostnamePartStart);\n if (bit) {\n validParts.push(bit[1]);\n notHost.unshift(bit[2]);\n }\n if (notHost.length) {\n rest = '/' + notHost.join('.') + rest;\n }\n this.hostname = validParts.join('.');\n break;\n }\n }\n }\n }\n\n if (this.hostname.length > hostnameMaxLen) {\n this.hostname = '';\n } else {\n // hostnames are always lower case.\n this.hostname = this.hostname.toLowerCase();\n }\n\n if (!ipv6Hostname) {\n // IDNA Support: Returns a puny coded representation of \"domain\".\n // It only converts the part of the domain name that\n // has non ASCII characters. I.e. it dosent matter if\n // you call it with a domain that already is in ASCII.\n var domainArray = this.hostname.split('.');\n var newOut = [];\n for (var i = 0; i < domainArray.length; ++i) {\n var s = domainArray[i];\n newOut.push(s.match(/[^A-Za-z0-9_-]/) ?\n 'xn--' + punycode.encode(s) : s);\n }\n this.hostname = newOut.join('.');\n }\n\n var p = this.port ? ':' + this.port : '';\n var h = this.hostname || '';\n this.host = h + p;\n this.href += this.host;\n\n // strip [ and ] from the hostname\n // the host field still retains them, though\n if (ipv6Hostname) {\n this.hostname = this.hostname.substr(1, this.hostname.length - 2);\n if (rest[0] !== '/') {\n rest = '/' + rest;\n }\n }\n }\n\n // now rest is set to the post-host stuff.\n // chop off any delim chars.\n if (!unsafeProtocol[lowerProto]) {\n\n // First, make 100% sure that any \"autoEscape\" chars get\n // escaped, even if encodeURIComponent doesn't think they\n // need to be.\n for (var i = 0, l = autoEscape.length; i < l; i++) {\n var ae = autoEscape[i];\n var esc = encodeURIComponent(ae);\n if (esc === ae) {\n esc = escape(ae);\n }\n rest = rest.split(ae).join(esc);\n }\n }\n\n\n // chop off from the tail first.\n var hash = rest.indexOf('#');\n if (hash !== -1) {\n // got a fragment string.\n this.hash = rest.substr(hash);\n rest = rest.slice(0, hash);\n }\n var qm = rest.indexOf('?');\n if (qm !== -1) {\n this.search = rest.substr(qm);\n this.query = rest.substr(qm + 1);\n if (parseQueryString) {\n this.query = querystring.parse(this.query);\n }\n rest = rest.slice(0, qm);\n } else if (parseQueryString) {\n // no query string, but parseQueryString still requested\n this.search = '';\n this.query = {};\n }\n if (rest) this.pathname = rest;\n if (slashedProtocol[lowerProto] &&\n this.hostname && !this.pathname) {\n this.pathname = '/';\n }\n\n //to support http.request\n if (this.pathname || this.search) {\n var p = this.pathname || '';\n var s = this.search || '';\n this.path = p + s;\n }\n\n // finally, reconstruct the href based on what has been validated.\n this.href = this.format();\n return this;\n};\n\n// format a parsed object into a url string\nfunction urlFormat(obj) {\n // ensure it's an object, and not a string url.\n // If it's an obj, this is a no-op.\n // this way, you can call url_format() on strings\n // to clean up potentially wonky urls.\n if (isString(obj)) obj = urlParse(obj);\n if (!(obj instanceof Url)) return Url.prototype.format.call(obj);\n return obj.format();\n}\n\nUrl.prototype.format = function() {\n var auth = this.auth || '';\n if (auth) {\n auth = encodeURIComponent(auth);\n auth = auth.replace(/%3A/i, ':');\n auth += '@';\n }\n\n var protocol = this.protocol || '',\n pathname = this.pathname || '',\n hash = this.hash || '',\n host = false,\n query = '';\n\n if (this.host) {\n host = auth + this.host;\n } else if (this.hostname) {\n host = auth + (this.hostname.indexOf(':') === -1 ?\n this.hostname :\n '[' + this.hostname + ']');\n if (this.port) {\n host += ':' + this.port;\n }\n }\n\n if (this.query &&\n isObject(this.query) &&\n Object.keys(this.query).length) {\n query = querystring.stringify(this.query);\n }\n\n var search = this.search || (query && ('?' + query)) || '';\n\n if (protocol && protocol.substr(-1) !== ':') protocol += ':';\n\n // only the slashedProtocols get the //. Not mailto:, xmpp:, etc.\n // unless they had them to begin with.\n if (this.slashes ||\n (!protocol || slashedProtocol[protocol]) && host !== false) {\n host = '//' + (host || '');\n if (pathname && pathname.charAt(0) !== '/') pathname = '/' + pathname;\n } else if (!host) {\n host = '';\n }\n\n if (hash && hash.charAt(0) !== '#') hash = '#' + hash;\n if (search && search.charAt(0) !== '?') search = '?' + search;\n\n pathname = pathname.replace(/[?#]/g, function(match) {\n return encodeURIComponent(match);\n });\n search = search.replace('#', '%23');\n\n return protocol + host + pathname + search + hash;\n};\n\nfunction urlResolve(source, relative) {\n return urlParse(source, false, true).resolve(relative);\n}\n\nUrl.prototype.resolve = function(relative) {\n return this.resolveObject(urlParse(relative, false, true)).format();\n};\n\nfunction urlResolveObject(source, relative) {\n if (!source) return relative;\n return urlParse(source, false, true).resolveObject(relative);\n}\n\nUrl.prototype.resolveObject = function(relative) {\n if (isString(relative)) {\n var rel = new Url();\n rel.parse(relative, false, true);\n relative = rel;\n }\n\n var result = new Url();\n Object.keys(this).forEach(function(k) {\n result[k] = this[k];\n }, this);\n\n // hash is always overridden, no matter what.\n // even href=\"\" will remove it.\n result.hash = relative.hash;\n\n // if the relative url is empty, then there's nothing left to do here.\n if (relative.href === '') {\n result.href = result.format();\n return result;\n }\n\n // hrefs like //foo/bar always cut to the protocol.\n if (relative.slashes && !relative.protocol) {\n // take everything except the protocol from relative\n Object.keys(relative).forEach(function(k) {\n if (k !== 'protocol')\n result[k] = relative[k];\n });\n\n //urlParse appends trailing / to urls like http://www.example.com\n if (slashedProtocol[result.protocol] &&\n result.hostname && !result.pathname) {\n result.path = result.pathname = '/';\n }\n\n result.href = result.format();\n return result;\n }\n\n if (relative.protocol && relative.protocol !== result.protocol) {\n // if it's a known url protocol, then changing\n // the protocol does weird things\n // first, if it's not file:, then we MUST have a host,\n // and if there was a path\n // to begin with, then we MUST have a path.\n // if it is file:, then the host is dropped,\n // because that's known to be hostless.\n // anything else is assumed to be absolute.\n if (!slashedProtocol[relative.protocol]) {\n Object.keys(relative).forEach(function(k) {\n result[k] = relative[k];\n });\n result.href = result.format();\n return result;\n }\n\n result.protocol = relative.protocol;\n if (!relative.host && !hostlessProtocol[relative.protocol]) {\n var relPath = (relative.pathname || '').split('/');\n while (relPath.length && !(relative.host = relPath.shift()));\n if (!relative.host) relative.host = '';\n if (!relative.hostname) relative.hostname = '';\n if (relPath[0] !== '') relPath.unshift('');\n if (relPath.length < 2) relPath.unshift('');\n result.pathname = relPath.join('/');\n } else {\n result.pathname = relative.pathname;\n }\n result.search = relative.search;\n result.query = relative.query;\n result.host = relative.host || '';\n result.auth = relative.auth;\n result.hostname = relative.hostname || relative.host;\n result.port = relative.port;\n // to support http.request\n if (result.pathname || result.search) {\n var p = result.pathname || '';\n var s = result.search || '';\n result.path = p + s;\n }\n result.slashes = result.slashes || relative.slashes;\n result.href = result.format();\n return result;\n }\n\n var isSourceAbs = (result.pathname && result.pathname.charAt(0) === '/'),\n isRelAbs = (\n relative.host ||\n relative.pathname && relative.pathname.charAt(0) === '/'\n ),\n mustEndAbs = (isRelAbs || isSourceAbs ||\n (result.host && relative.pathname)),\n removeAllDots = mustEndAbs,\n srcPath = result.pathname && result.pathname.split('/') || [],\n relPath = relative.pathname && relative.pathname.split('/') || [],\n psychotic = result.protocol && !slashedProtocol[result.protocol];\n\n // if the url is a non-slashed url, then relative\n // links like ../.. should be able\n // to crawl up to the hostname, as well. This is strange.\n // result.protocol has already been set by now.\n // Later on, put the first path part into the host field.\n if (psychotic) {\n result.hostname = '';\n result.port = null;\n if (result.host) {\n if (srcPath[0] === '') srcPath[0] = result.host;\n else srcPath.unshift(result.host);\n }\n result.host = '';\n if (relative.protocol) {\n relative.hostname = null;\n relative.port = null;\n if (relative.host) {\n if (relPath[0] === '') relPath[0] = relative.host;\n else relPath.unshift(relative.host);\n }\n relative.host = null;\n }\n mustEndAbs = mustEndAbs && (relPath[0] === '' || srcPath[0] === '');\n }\n\n if (isRelAbs) {\n // it's absolute.\n result.host = (relative.host || relative.host === '') ?\n relative.host : result.host;\n result.hostname = (relative.hostname || relative.hostname === '') ?\n relative.hostname : result.hostname;\n result.search = relative.search;\n result.query = relative.query;\n srcPath = relPath;\n // fall through to the dot-handling below.\n } else if (relPath.length) {\n // it's relative\n // throw away the existing file, and take the new path instead.\n if (!srcPath) srcPath = [];\n srcPath.pop();\n srcPath = srcPath.concat(relPath);\n result.search = relative.search;\n result.query = relative.query;\n } else if (!isNullOrUndefined(relative.search)) {\n // just pull out the search.\n // like href='?foo'.\n // Put this after the other two cases because it simplifies the booleans\n if (psychotic) {\n result.hostname = result.host = srcPath.shift();\n //occationaly the auth can get stuck only in host\n //this especialy happens in cases like\n //url.resolveObject('mailto:local1@domain1', 'local2@domain2')\n var authInHost = result.host && result.host.indexOf('@') > 0 ?\n result.host.split('@') : false;\n if (authInHost) {\n result.auth = authInHost.shift();\n result.host = result.hostname = authInHost.shift();\n }\n }\n result.search = relative.search;\n result.query = relative.query;\n //to support http.request\n if (!isNull(result.pathname) || !isNull(result.search)) {\n result.path = (result.pathname ? result.pathname : '') +\n (result.search ? result.search : '');\n }\n result.href = result.format();\n return result;\n }\n\n if (!srcPath.length) {\n // no path at all. easy.\n // we've already handled the other stuff above.\n result.pathname = null;\n //to support http.request\n if (result.search) {\n result.path = '/' + result.search;\n } else {\n result.path = null;\n }\n result.href = result.format();\n return result;\n }\n\n // if a url ENDs in . or .., then it must get a trailing slash.\n // however, if it ends in anything else non-slashy,\n // then it must NOT get a trailing slash.\n var last = srcPath.slice(-1)[0];\n var hasTrailingSlash = (\n (result.host || relative.host) && (last === '.' || last === '..') ||\n last === '');\n\n // strip single dots, resolve double dots to parent dir\n // if the path tries to go above the root, `up` ends up > 0\n var up = 0;\n for (var i = srcPath.length; i >= 0; i--) {\n last = srcPath[i];\n if (last == '.') {\n srcPath.splice(i, 1);\n } else if (last === '..') {\n srcPath.splice(i, 1);\n up++;\n } else if (up) {\n srcPath.splice(i, 1);\n up--;\n }\n }\n\n // if the path is allowed to go above the root, restore leading ..s\n if (!mustEndAbs && !removeAllDots) {\n for (; up--; up) {\n srcPath.unshift('..');\n }\n }\n\n if (mustEndAbs && srcPath[0] !== '' &&\n (!srcPath[0] || srcPath[0].charAt(0) !== '/')) {\n srcPath.unshift('');\n }\n\n if (hasTrailingSlash && (srcPath.join('/').substr(-1) !== '/')) {\n srcPath.push('');\n }\n\n var isAbsolute = srcPath[0] === '' ||\n (srcPath[0] && srcPath[0].charAt(0) === '/');\n\n // put the host back\n if (psychotic) {\n result.hostname = result.host = isAbsolute ? '' :\n srcPath.length ? srcPath.shift() : '';\n //occationaly the auth can get stuck only in host\n //this especialy happens in cases like\n //url.resolveObject('mailto:local1@domain1', 'local2@domain2')\n var authInHost = result.host && result.host.indexOf('@') > 0 ?\n result.host.split('@') : false;\n if (authInHost) {\n result.auth = authInHost.shift();\n result.host = result.hostname = authInHost.shift();\n }\n }\n\n mustEndAbs = mustEndAbs || (result.host && srcPath.length);\n\n if (mustEndAbs && !isAbsolute) {\n srcPath.unshift('');\n }\n\n if (!srcPath.length) {\n result.pathname = null;\n result.path = null;\n } else {\n result.pathname = srcPath.join('/');\n }\n\n //to support request.http\n if (!isNull(result.pathname) || !isNull(result.search)) {\n result.path = (result.pathname ? result.pathname : '') +\n (result.search ? result.search : '');\n }\n result.auth = relative.auth || result.auth;\n result.slashes = result.slashes || relative.slashes;\n result.href = result.format();\n return result;\n};\n\nUrl.prototype.parseHost = function() {\n var host = this.host;\n var port = portPattern.exec(host);\n if (port) {\n port = port[0];\n if (port !== ':') {\n this.port = port.substr(1);\n }\n host = host.substr(0, host.length - port.length);\n }\n if (host) this.hostname = host;\n};\n\nfunction isString(arg) {\n return typeof arg === \"string\";\n}\n\nfunction isObject(arg) {\n return typeof arg === 'object' && arg !== null;\n}\n\nfunction isNull(arg) {\n return arg === null;\n}\nfunction isNullOrUndefined(arg) {\n return arg == null;\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** (webpack)/~/node-libs-browser/~/url/url.js\n ** module id = 85\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///(webpack)/~/node-libs-browser/~/url/url.js?"); + eval("// shim for using process in browser\n\nvar process = module.exports = {};\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = setTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n clearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n setTimeout(drainQueue, 0);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/process/browser.js\n ** module id = 85\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/process/browser.js?"); /***/ }, /* 86 */ -/***/ function(module, exports, __webpack_require__) { +/***/ function(module, exports) { - eval("var __WEBPACK_AMD_DEFINE_RESULT__;/* WEBPACK VAR INJECTION */(function(module, global) {/*! https://mths.be/punycode v1.3.2 by @mathias */\n;(function(root) {\n\n\t/** Detect free variables */\n\tvar freeExports = typeof exports == 'object' && exports &&\n\t\t!exports.nodeType && exports;\n\tvar freeModule = typeof module == 'object' && module &&\n\t\t!module.nodeType && module;\n\tvar freeGlobal = typeof global == 'object' && global;\n\tif (\n\t\tfreeGlobal.global === freeGlobal ||\n\t\tfreeGlobal.window === freeGlobal ||\n\t\tfreeGlobal.self === freeGlobal\n\t) {\n\t\troot = freeGlobal;\n\t}\n\n\t/**\n\t * The `punycode` object.\n\t * @name punycode\n\t * @type Object\n\t */\n\tvar punycode,\n\n\t/** Highest positive signed 32-bit float value */\n\tmaxInt = 2147483647, // aka. 0x7FFFFFFF or 2^31-1\n\n\t/** Bootstring parameters */\n\tbase = 36,\n\ttMin = 1,\n\ttMax = 26,\n\tskew = 38,\n\tdamp = 700,\n\tinitialBias = 72,\n\tinitialN = 128, // 0x80\n\tdelimiter = '-', // '\\x2D'\n\n\t/** Regular expressions */\n\tregexPunycode = /^xn--/,\n\tregexNonASCII = /[^\\x20-\\x7E]/, // unprintable ASCII chars + non-ASCII chars\n\tregexSeparators = /[\\x2E\\u3002\\uFF0E\\uFF61]/g, // RFC 3490 separators\n\n\t/** Error messages */\n\terrors = {\n\t\t'overflow': 'Overflow: input needs wider integers to process',\n\t\t'not-basic': 'Illegal input >= 0x80 (not a basic code point)',\n\t\t'invalid-input': 'Invalid input'\n\t},\n\n\t/** Convenience shortcuts */\n\tbaseMinusTMin = base - tMin,\n\tfloor = Math.floor,\n\tstringFromCharCode = String.fromCharCode,\n\n\t/** Temporary variable */\n\tkey;\n\n\t/*--------------------------------------------------------------------------*/\n\n\t/**\n\t * A generic error utility function.\n\t * @private\n\t * @param {String} type The error type.\n\t * @returns {Error} Throws a `RangeError` with the applicable error message.\n\t */\n\tfunction error(type) {\n\t\tthrow RangeError(errors[type]);\n\t}\n\n\t/**\n\t * A generic `Array#map` utility function.\n\t * @private\n\t * @param {Array} array The array to iterate over.\n\t * @param {Function} callback The function that gets called for every array\n\t * item.\n\t * @returns {Array} A new array of values returned by the callback function.\n\t */\n\tfunction map(array, fn) {\n\t\tvar length = array.length;\n\t\tvar result = [];\n\t\twhile (length--) {\n\t\t\tresult[length] = fn(array[length]);\n\t\t}\n\t\treturn result;\n\t}\n\n\t/**\n\t * A simple `Array#map`-like wrapper to work with domain name strings or email\n\t * addresses.\n\t * @private\n\t * @param {String} domain The domain name or email address.\n\t * @param {Function} callback The function that gets called for every\n\t * character.\n\t * @returns {Array} A new string of characters returned by the callback\n\t * function.\n\t */\n\tfunction mapDomain(string, fn) {\n\t\tvar parts = string.split('@');\n\t\tvar result = '';\n\t\tif (parts.length > 1) {\n\t\t\t// In email addresses, only the domain name should be punycoded. Leave\n\t\t\t// the local part (i.e. everything up to `@`) intact.\n\t\t\tresult = parts[0] + '@';\n\t\t\tstring = parts[1];\n\t\t}\n\t\t// Avoid `split(regex)` for IE8 compatibility. See #17.\n\t\tstring = string.replace(regexSeparators, '\\x2E');\n\t\tvar labels = string.split('.');\n\t\tvar encoded = map(labels, fn).join('.');\n\t\treturn result + encoded;\n\t}\n\n\t/**\n\t * Creates an array containing the numeric code points of each Unicode\n\t * character in the string. While JavaScript uses UCS-2 internally,\n\t * this function will convert a pair of surrogate halves (each of which\n\t * UCS-2 exposes as separate characters) into a single code point,\n\t * matching UTF-16.\n\t * @see `punycode.ucs2.encode`\n\t * @see \n\t * @memberOf punycode.ucs2\n\t * @name decode\n\t * @param {String} string The Unicode input string (UCS-2).\n\t * @returns {Array} The new array of code points.\n\t */\n\tfunction ucs2decode(string) {\n\t\tvar output = [],\n\t\t counter = 0,\n\t\t length = string.length,\n\t\t value,\n\t\t extra;\n\t\twhile (counter < length) {\n\t\t\tvalue = string.charCodeAt(counter++);\n\t\t\tif (value >= 0xD800 && value <= 0xDBFF && counter < length) {\n\t\t\t\t// high surrogate, and there is a next character\n\t\t\t\textra = string.charCodeAt(counter++);\n\t\t\t\tif ((extra & 0xFC00) == 0xDC00) { // low surrogate\n\t\t\t\t\toutput.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);\n\t\t\t\t} else {\n\t\t\t\t\t// unmatched surrogate; only append this code unit, in case the next\n\t\t\t\t\t// code unit is the high surrogate of a surrogate pair\n\t\t\t\t\toutput.push(value);\n\t\t\t\t\tcounter--;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\toutput.push(value);\n\t\t\t}\n\t\t}\n\t\treturn output;\n\t}\n\n\t/**\n\t * Creates a string based on an array of numeric code points.\n\t * @see `punycode.ucs2.decode`\n\t * @memberOf punycode.ucs2\n\t * @name encode\n\t * @param {Array} codePoints The array of numeric code points.\n\t * @returns {String} The new Unicode string (UCS-2).\n\t */\n\tfunction ucs2encode(array) {\n\t\treturn map(array, function(value) {\n\t\t\tvar output = '';\n\t\t\tif (value > 0xFFFF) {\n\t\t\t\tvalue -= 0x10000;\n\t\t\t\toutput += stringFromCharCode(value >>> 10 & 0x3FF | 0xD800);\n\t\t\t\tvalue = 0xDC00 | value & 0x3FF;\n\t\t\t}\n\t\t\toutput += stringFromCharCode(value);\n\t\t\treturn output;\n\t\t}).join('');\n\t}\n\n\t/**\n\t * Converts a basic code point into a digit/integer.\n\t * @see `digitToBasic()`\n\t * @private\n\t * @param {Number} codePoint The basic numeric code point value.\n\t * @returns {Number} The numeric value of a basic code point (for use in\n\t * representing integers) in the range `0` to `base - 1`, or `base` if\n\t * the code point does not represent a value.\n\t */\n\tfunction basicToDigit(codePoint) {\n\t\tif (codePoint - 48 < 10) {\n\t\t\treturn codePoint - 22;\n\t\t}\n\t\tif (codePoint - 65 < 26) {\n\t\t\treturn codePoint - 65;\n\t\t}\n\t\tif (codePoint - 97 < 26) {\n\t\t\treturn codePoint - 97;\n\t\t}\n\t\treturn base;\n\t}\n\n\t/**\n\t * Converts a digit/integer into a basic code point.\n\t * @see `basicToDigit()`\n\t * @private\n\t * @param {Number} digit The numeric value of a basic code point.\n\t * @returns {Number} The basic code point whose value (when used for\n\t * representing integers) is `digit`, which needs to be in the range\n\t * `0` to `base - 1`. If `flag` is non-zero, the uppercase form is\n\t * used; else, the lowercase form is used. The behavior is undefined\n\t * if `flag` is non-zero and `digit` has no uppercase form.\n\t */\n\tfunction digitToBasic(digit, flag) {\n\t\t// 0..25 map to ASCII a..z or A..Z\n\t\t// 26..35 map to ASCII 0..9\n\t\treturn digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5);\n\t}\n\n\t/**\n\t * Bias adaptation function as per section 3.4 of RFC 3492.\n\t * http://tools.ietf.org/html/rfc3492#section-3.4\n\t * @private\n\t */\n\tfunction adapt(delta, numPoints, firstTime) {\n\t\tvar k = 0;\n\t\tdelta = firstTime ? floor(delta / damp) : delta >> 1;\n\t\tdelta += floor(delta / numPoints);\n\t\tfor (/* no initialization */; delta > baseMinusTMin * tMax >> 1; k += base) {\n\t\t\tdelta = floor(delta / baseMinusTMin);\n\t\t}\n\t\treturn floor(k + (baseMinusTMin + 1) * delta / (delta + skew));\n\t}\n\n\t/**\n\t * Converts a Punycode string of ASCII-only symbols to a string of Unicode\n\t * symbols.\n\t * @memberOf punycode\n\t * @param {String} input The Punycode string of ASCII-only symbols.\n\t * @returns {String} The resulting string of Unicode symbols.\n\t */\n\tfunction decode(input) {\n\t\t// Don't use UCS-2\n\t\tvar output = [],\n\t\t inputLength = input.length,\n\t\t out,\n\t\t i = 0,\n\t\t n = initialN,\n\t\t bias = initialBias,\n\t\t basic,\n\t\t j,\n\t\t index,\n\t\t oldi,\n\t\t w,\n\t\t k,\n\t\t digit,\n\t\t t,\n\t\t /** Cached calculation results */\n\t\t baseMinusT;\n\n\t\t// Handle the basic code points: let `basic` be the number of input code\n\t\t// points before the last delimiter, or `0` if there is none, then copy\n\t\t// the first basic code points to the output.\n\n\t\tbasic = input.lastIndexOf(delimiter);\n\t\tif (basic < 0) {\n\t\t\tbasic = 0;\n\t\t}\n\n\t\tfor (j = 0; j < basic; ++j) {\n\t\t\t// if it's not a basic code point\n\t\t\tif (input.charCodeAt(j) >= 0x80) {\n\t\t\t\terror('not-basic');\n\t\t\t}\n\t\t\toutput.push(input.charCodeAt(j));\n\t\t}\n\n\t\t// Main decoding loop: start just after the last delimiter if any basic code\n\t\t// points were copied; start at the beginning otherwise.\n\n\t\tfor (index = basic > 0 ? basic + 1 : 0; index < inputLength; /* no final expression */) {\n\n\t\t\t// `index` is the index of the next character to be consumed.\n\t\t\t// Decode a generalized variable-length integer into `delta`,\n\t\t\t// which gets added to `i`. The overflow checking is easier\n\t\t\t// if we increase `i` as we go, then subtract off its starting\n\t\t\t// value at the end to obtain `delta`.\n\t\t\tfor (oldi = i, w = 1, k = base; /* no condition */; k += base) {\n\n\t\t\t\tif (index >= inputLength) {\n\t\t\t\t\terror('invalid-input');\n\t\t\t\t}\n\n\t\t\t\tdigit = basicToDigit(input.charCodeAt(index++));\n\n\t\t\t\tif (digit >= base || digit > floor((maxInt - i) / w)) {\n\t\t\t\t\terror('overflow');\n\t\t\t\t}\n\n\t\t\t\ti += digit * w;\n\t\t\t\tt = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);\n\n\t\t\t\tif (digit < t) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tbaseMinusT = base - t;\n\t\t\t\tif (w > floor(maxInt / baseMinusT)) {\n\t\t\t\t\terror('overflow');\n\t\t\t\t}\n\n\t\t\t\tw *= baseMinusT;\n\n\t\t\t}\n\n\t\t\tout = output.length + 1;\n\t\t\tbias = adapt(i - oldi, out, oldi == 0);\n\n\t\t\t// `i` was supposed to wrap around from `out` to `0`,\n\t\t\t// incrementing `n` each time, so we'll fix that now:\n\t\t\tif (floor(i / out) > maxInt - n) {\n\t\t\t\terror('overflow');\n\t\t\t}\n\n\t\t\tn += floor(i / out);\n\t\t\ti %= out;\n\n\t\t\t// Insert `n` at position `i` of the output\n\t\t\toutput.splice(i++, 0, n);\n\n\t\t}\n\n\t\treturn ucs2encode(output);\n\t}\n\n\t/**\n\t * Converts a string of Unicode symbols (e.g. a domain name label) to a\n\t * Punycode string of ASCII-only symbols.\n\t * @memberOf punycode\n\t * @param {String} input The string of Unicode symbols.\n\t * @returns {String} The resulting Punycode string of ASCII-only symbols.\n\t */\n\tfunction encode(input) {\n\t\tvar n,\n\t\t delta,\n\t\t handledCPCount,\n\t\t basicLength,\n\t\t bias,\n\t\t j,\n\t\t m,\n\t\t q,\n\t\t k,\n\t\t t,\n\t\t currentValue,\n\t\t output = [],\n\t\t /** `inputLength` will hold the number of code points in `input`. */\n\t\t inputLength,\n\t\t /** Cached calculation results */\n\t\t handledCPCountPlusOne,\n\t\t baseMinusT,\n\t\t qMinusT;\n\n\t\t// Convert the input in UCS-2 to Unicode\n\t\tinput = ucs2decode(input);\n\n\t\t// Cache the length\n\t\tinputLength = input.length;\n\n\t\t// Initialize the state\n\t\tn = initialN;\n\t\tdelta = 0;\n\t\tbias = initialBias;\n\n\t\t// Handle the basic code points\n\t\tfor (j = 0; j < inputLength; ++j) {\n\t\t\tcurrentValue = input[j];\n\t\t\tif (currentValue < 0x80) {\n\t\t\t\toutput.push(stringFromCharCode(currentValue));\n\t\t\t}\n\t\t}\n\n\t\thandledCPCount = basicLength = output.length;\n\n\t\t// `handledCPCount` is the number of code points that have been handled;\n\t\t// `basicLength` is the number of basic code points.\n\n\t\t// Finish the basic string - if it is not empty - with a delimiter\n\t\tif (basicLength) {\n\t\t\toutput.push(delimiter);\n\t\t}\n\n\t\t// Main encoding loop:\n\t\twhile (handledCPCount < inputLength) {\n\n\t\t\t// All non-basic code points < n have been handled already. Find the next\n\t\t\t// larger one:\n\t\t\tfor (m = maxInt, j = 0; j < inputLength; ++j) {\n\t\t\t\tcurrentValue = input[j];\n\t\t\t\tif (currentValue >= n && currentValue < m) {\n\t\t\t\t\tm = currentValue;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Increase `delta` enough to advance the decoder's state to ,\n\t\t\t// but guard against overflow\n\t\t\thandledCPCountPlusOne = handledCPCount + 1;\n\t\t\tif (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {\n\t\t\t\terror('overflow');\n\t\t\t}\n\n\t\t\tdelta += (m - n) * handledCPCountPlusOne;\n\t\t\tn = m;\n\n\t\t\tfor (j = 0; j < inputLength; ++j) {\n\t\t\t\tcurrentValue = input[j];\n\n\t\t\t\tif (currentValue < n && ++delta > maxInt) {\n\t\t\t\t\terror('overflow');\n\t\t\t\t}\n\n\t\t\t\tif (currentValue == n) {\n\t\t\t\t\t// Represent delta as a generalized variable-length integer\n\t\t\t\t\tfor (q = delta, k = base; /* no condition */; k += base) {\n\t\t\t\t\t\tt = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);\n\t\t\t\t\t\tif (q < t) {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tqMinusT = q - t;\n\t\t\t\t\t\tbaseMinusT = base - t;\n\t\t\t\t\t\toutput.push(\n\t\t\t\t\t\t\tstringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0))\n\t\t\t\t\t\t);\n\t\t\t\t\t\tq = floor(qMinusT / baseMinusT);\n\t\t\t\t\t}\n\n\t\t\t\t\toutput.push(stringFromCharCode(digitToBasic(q, 0)));\n\t\t\t\t\tbias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength);\n\t\t\t\t\tdelta = 0;\n\t\t\t\t\t++handledCPCount;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t++delta;\n\t\t\t++n;\n\n\t\t}\n\t\treturn output.join('');\n\t}\n\n\t/**\n\t * Converts a Punycode string representing a domain name or an email address\n\t * to Unicode. Only the Punycoded parts of the input will be converted, i.e.\n\t * it doesn't matter if you call it on a string that has already been\n\t * converted to Unicode.\n\t * @memberOf punycode\n\t * @param {String} input The Punycoded domain name or email address to\n\t * convert to Unicode.\n\t * @returns {String} The Unicode representation of the given Punycode\n\t * string.\n\t */\n\tfunction toUnicode(input) {\n\t\treturn mapDomain(input, function(string) {\n\t\t\treturn regexPunycode.test(string)\n\t\t\t\t? decode(string.slice(4).toLowerCase())\n\t\t\t\t: string;\n\t\t});\n\t}\n\n\t/**\n\t * Converts a Unicode string representing a domain name or an email address to\n\t * Punycode. Only the non-ASCII parts of the domain name will be converted,\n\t * i.e. it doesn't matter if you call it with a domain that's already in\n\t * ASCII.\n\t * @memberOf punycode\n\t * @param {String} input The domain name or email address to convert, as a\n\t * Unicode string.\n\t * @returns {String} The Punycode representation of the given domain name or\n\t * email address.\n\t */\n\tfunction toASCII(input) {\n\t\treturn mapDomain(input, function(string) {\n\t\t\treturn regexNonASCII.test(string)\n\t\t\t\t? 'xn--' + encode(string)\n\t\t\t\t: string;\n\t\t});\n\t}\n\n\t/*--------------------------------------------------------------------------*/\n\n\t/** Define the public API */\n\tpunycode = {\n\t\t/**\n\t\t * A string representing the current Punycode.js version number.\n\t\t * @memberOf punycode\n\t\t * @type String\n\t\t */\n\t\t'version': '1.3.2',\n\t\t/**\n\t\t * An object of methods to convert from JavaScript's internal character\n\t\t * representation (UCS-2) to Unicode code points, and back.\n\t\t * @see \n\t\t * @memberOf punycode\n\t\t * @type Object\n\t\t */\n\t\t'ucs2': {\n\t\t\t'decode': ucs2decode,\n\t\t\t'encode': ucs2encode\n\t\t},\n\t\t'decode': decode,\n\t\t'encode': encode,\n\t\t'toASCII': toASCII,\n\t\t'toUnicode': toUnicode\n\t};\n\n\t/** Expose `punycode` */\n\t// Some AMD build optimizers, like r.js, check for specific condition patterns\n\t// like the following:\n\tif (\n\t\ttrue\n\t) {\n\t\t!(__WEBPACK_AMD_DEFINE_RESULT__ = function() {\n\t\t\treturn punycode;\n\t\t}.call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\t} else if (freeExports && freeModule) {\n\t\tif (module.exports == freeExports) { // in Node.js or RingoJS v0.8.0+\n\t\t\tfreeModule.exports = punycode;\n\t\t} else { // in Narwhal or RingoJS v0.7.0-\n\t\t\tfor (key in punycode) {\n\t\t\t\tpunycode.hasOwnProperty(key) && (freeExports[key] = punycode[key]);\n\t\t\t}\n\t\t}\n\t} else { // in Rhino or a web browser\n\t\troot.punycode = punycode;\n\t}\n\n}(this));\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(87)(module), (function() { return this; }())))\n\n/*****************\n ** WEBPACK FOOTER\n ** (webpack)/~/node-libs-browser/~/url/~/punycode/punycode.js\n ** module id = 86\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///(webpack)/~/node-libs-browser/~/url/~/punycode/punycode.js?"); + eval("// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nfunction EventEmitter() {\n this._events = this._events || {};\n this._maxListeners = this._maxListeners || undefined;\n}\nmodule.exports = EventEmitter;\n\n// Backwards-compat with node 0.10.x\nEventEmitter.EventEmitter = EventEmitter;\n\nEventEmitter.prototype._events = undefined;\nEventEmitter.prototype._maxListeners = undefined;\n\n// By default EventEmitters will print a warning if more than 10 listeners are\n// added to it. This is a useful default which helps finding memory leaks.\nEventEmitter.defaultMaxListeners = 10;\n\n// Obviously not all Emitters should be limited to 10. This function allows\n// that to be increased. Set to zero for unlimited.\nEventEmitter.prototype.setMaxListeners = function(n) {\n if (!isNumber(n) || n < 0 || isNaN(n))\n throw TypeError('n must be a positive number');\n this._maxListeners = n;\n return this;\n};\n\nEventEmitter.prototype.emit = function(type) {\n var er, handler, len, args, i, listeners;\n\n if (!this._events)\n this._events = {};\n\n // If there is no 'error' event listener then throw.\n if (type === 'error') {\n if (!this._events.error ||\n (isObject(this._events.error) && !this._events.error.length)) {\n er = arguments[1];\n if (er instanceof Error) {\n throw er; // Unhandled 'error' event\n }\n throw TypeError('Uncaught, unspecified \"error\" event.');\n }\n }\n\n handler = this._events[type];\n\n if (isUndefined(handler))\n return false;\n\n if (isFunction(handler)) {\n switch (arguments.length) {\n // fast cases\n case 1:\n handler.call(this);\n break;\n case 2:\n handler.call(this, arguments[1]);\n break;\n case 3:\n handler.call(this, arguments[1], arguments[2]);\n break;\n // slower\n default:\n args = Array.prototype.slice.call(arguments, 1);\n handler.apply(this, args);\n }\n } else if (isObject(handler)) {\n args = Array.prototype.slice.call(arguments, 1);\n listeners = handler.slice();\n len = listeners.length;\n for (i = 0; i < len; i++)\n listeners[i].apply(this, args);\n }\n\n return true;\n};\n\nEventEmitter.prototype.addListener = function(type, listener) {\n var m;\n\n if (!isFunction(listener))\n throw TypeError('listener must be a function');\n\n if (!this._events)\n this._events = {};\n\n // To avoid recursion in the case that type === \"newListener\"! Before\n // adding it to the listeners, first emit \"newListener\".\n if (this._events.newListener)\n this.emit('newListener', type,\n isFunction(listener.listener) ?\n listener.listener : listener);\n\n if (!this._events[type])\n // Optimize the case of one listener. Don't need the extra array object.\n this._events[type] = listener;\n else if (isObject(this._events[type]))\n // If we've already got an array, just append.\n this._events[type].push(listener);\n else\n // Adding the second element, need to change to array.\n this._events[type] = [this._events[type], listener];\n\n // Check for listener leak\n if (isObject(this._events[type]) && !this._events[type].warned) {\n if (!isUndefined(this._maxListeners)) {\n m = this._maxListeners;\n } else {\n m = EventEmitter.defaultMaxListeners;\n }\n\n if (m && m > 0 && this._events[type].length > m) {\n this._events[type].warned = true;\n console.error('(node) warning: possible EventEmitter memory ' +\n 'leak detected. %d listeners added. ' +\n 'Use emitter.setMaxListeners() to increase limit.',\n this._events[type].length);\n if (typeof console.trace === 'function') {\n // not supported in IE 10\n console.trace();\n }\n }\n }\n\n return this;\n};\n\nEventEmitter.prototype.on = EventEmitter.prototype.addListener;\n\nEventEmitter.prototype.once = function(type, listener) {\n if (!isFunction(listener))\n throw TypeError('listener must be a function');\n\n var fired = false;\n\n function g() {\n this.removeListener(type, g);\n\n if (!fired) {\n fired = true;\n listener.apply(this, arguments);\n }\n }\n\n g.listener = listener;\n this.on(type, g);\n\n return this;\n};\n\n// emits a 'removeListener' event iff the listener was removed\nEventEmitter.prototype.removeListener = function(type, listener) {\n var list, position, length, i;\n\n if (!isFunction(listener))\n throw TypeError('listener must be a function');\n\n if (!this._events || !this._events[type])\n return this;\n\n list = this._events[type];\n length = list.length;\n position = -1;\n\n if (list === listener ||\n (isFunction(list.listener) && list.listener === listener)) {\n delete this._events[type];\n if (this._events.removeListener)\n this.emit('removeListener', type, listener);\n\n } else if (isObject(list)) {\n for (i = length; i-- > 0;) {\n if (list[i] === listener ||\n (list[i].listener && list[i].listener === listener)) {\n position = i;\n break;\n }\n }\n\n if (position < 0)\n return this;\n\n if (list.length === 1) {\n list.length = 0;\n delete this._events[type];\n } else {\n list.splice(position, 1);\n }\n\n if (this._events.removeListener)\n this.emit('removeListener', type, listener);\n }\n\n return this;\n};\n\nEventEmitter.prototype.removeAllListeners = function(type) {\n var key, listeners;\n\n if (!this._events)\n return this;\n\n // not listening for removeListener, no need to emit\n if (!this._events.removeListener) {\n if (arguments.length === 0)\n this._events = {};\n else if (this._events[type])\n delete this._events[type];\n return this;\n }\n\n // emit removeListener for all listeners on all events\n if (arguments.length === 0) {\n for (key in this._events) {\n if (key === 'removeListener') continue;\n this.removeAllListeners(key);\n }\n this.removeAllListeners('removeListener');\n this._events = {};\n return this;\n }\n\n listeners = this._events[type];\n\n if (isFunction(listeners)) {\n this.removeListener(type, listeners);\n } else if (listeners) {\n // LIFO order\n while (listeners.length)\n this.removeListener(type, listeners[listeners.length - 1]);\n }\n delete this._events[type];\n\n return this;\n};\n\nEventEmitter.prototype.listeners = function(type) {\n var ret;\n if (!this._events || !this._events[type])\n ret = [];\n else if (isFunction(this._events[type]))\n ret = [this._events[type]];\n else\n ret = this._events[type].slice();\n return ret;\n};\n\nEventEmitter.prototype.listenerCount = function(type) {\n if (this._events) {\n var evlistener = this._events[type];\n\n if (isFunction(evlistener))\n return 1;\n else if (evlistener)\n return evlistener.length;\n }\n return 0;\n};\n\nEventEmitter.listenerCount = function(emitter, type) {\n return emitter.listenerCount(type);\n};\n\nfunction isFunction(arg) {\n return typeof arg === 'function';\n}\n\nfunction isNumber(arg) {\n return typeof arg === 'number';\n}\n\nfunction isObject(arg) {\n return typeof arg === 'object' && arg !== null;\n}\n\nfunction isUndefined(arg) {\n return arg === void 0;\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/events/events.js\n ** module id = 86\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/events/events.js?"); /***/ }, /* 87 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("module.exports = function(module) {\r\n\tif(!module.webpackPolyfill) {\r\n\t\tmodule.deprecate = function() {};\r\n\t\tmodule.paths = [];\r\n\t\t// module.parent = undefined by default\r\n\t\tmodule.children = [];\r\n\t\tmodule.webpackPolyfill = 1;\r\n\t}\r\n\treturn module;\r\n}\r\n\n\n/*****************\n ** WEBPACK FOOTER\n ** (webpack)/buildin/module.js\n ** module id = 87\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///(webpack)/buildin/module.js?"); + eval("// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nvar punycode = __webpack_require__(88);\n\nexports.parse = urlParse;\nexports.resolve = urlResolve;\nexports.resolveObject = urlResolveObject;\nexports.format = urlFormat;\n\nexports.Url = Url;\n\nfunction Url() {\n this.protocol = null;\n this.slashes = null;\n this.auth = null;\n this.host = null;\n this.port = null;\n this.hostname = null;\n this.hash = null;\n this.search = null;\n this.query = null;\n this.pathname = null;\n this.path = null;\n this.href = null;\n}\n\n// Reference: RFC 3986, RFC 1808, RFC 2396\n\n// define these here so at least they only have to be\n// compiled once on the first module load.\nvar protocolPattern = /^([a-z0-9.+-]+:)/i,\n portPattern = /:[0-9]*$/,\n\n // RFC 2396: characters reserved for delimiting URLs.\n // We actually just auto-escape these.\n delims = ['<', '>', '\"', '`', ' ', '\\r', '\\n', '\\t'],\n\n // RFC 2396: characters not allowed for various reasons.\n unwise = ['{', '}', '|', '\\\\', '^', '`'].concat(delims),\n\n // Allowed by RFCs, but cause of XSS attacks. Always escape these.\n autoEscape = ['\\''].concat(unwise),\n // Characters that are never ever allowed in a hostname.\n // Note that any invalid chars are also handled, but these\n // are the ones that are *expected* to be seen, so we fast-path\n // them.\n nonHostChars = ['%', '/', '?', ';', '#'].concat(autoEscape),\n hostEndingChars = ['/', '?', '#'],\n hostnameMaxLen = 255,\n hostnamePartPattern = /^[a-z0-9A-Z_-]{0,63}$/,\n hostnamePartStart = /^([a-z0-9A-Z_-]{0,63})(.*)$/,\n // protocols that can allow \"unsafe\" and \"unwise\" chars.\n unsafeProtocol = {\n 'javascript': true,\n 'javascript:': true\n },\n // protocols that never have a hostname.\n hostlessProtocol = {\n 'javascript': true,\n 'javascript:': true\n },\n // protocols that always contain a // bit.\n slashedProtocol = {\n 'http': true,\n 'https': true,\n 'ftp': true,\n 'gopher': true,\n 'file': true,\n 'http:': true,\n 'https:': true,\n 'ftp:': true,\n 'gopher:': true,\n 'file:': true\n },\n querystring = __webpack_require__(90);\n\nfunction urlParse(url, parseQueryString, slashesDenoteHost) {\n if (url && isObject(url) && url instanceof Url) return url;\n\n var u = new Url;\n u.parse(url, parseQueryString, slashesDenoteHost);\n return u;\n}\n\nUrl.prototype.parse = function(url, parseQueryString, slashesDenoteHost) {\n if (!isString(url)) {\n throw new TypeError(\"Parameter 'url' must be a string, not \" + typeof url);\n }\n\n var rest = url;\n\n // trim before proceeding.\n // This is to support parse stuff like \" http://foo.com \\n\"\n rest = rest.trim();\n\n var proto = protocolPattern.exec(rest);\n if (proto) {\n proto = proto[0];\n var lowerProto = proto.toLowerCase();\n this.protocol = lowerProto;\n rest = rest.substr(proto.length);\n }\n\n // figure out if it's got a host\n // user@server is *always* interpreted as a hostname, and url\n // resolution will treat //foo/bar as host=foo,path=bar because that's\n // how the browser resolves relative URLs.\n if (slashesDenoteHost || proto || rest.match(/^\\/\\/[^@\\/]+@[^@\\/]+/)) {\n var slashes = rest.substr(0, 2) === '//';\n if (slashes && !(proto && hostlessProtocol[proto])) {\n rest = rest.substr(2);\n this.slashes = true;\n }\n }\n\n if (!hostlessProtocol[proto] &&\n (slashes || (proto && !slashedProtocol[proto]))) {\n\n // there's a hostname.\n // the first instance of /, ?, ;, or # ends the host.\n //\n // If there is an @ in the hostname, then non-host chars *are* allowed\n // to the left of the last @ sign, unless some host-ending character\n // comes *before* the @-sign.\n // URLs are obnoxious.\n //\n // ex:\n // http://a@b@c/ => user:a@b host:c\n // http://a@b?@c => user:a host:c path:/?@c\n\n // v0.12 TODO(isaacs): This is not quite how Chrome does things.\n // Review our test case against browsers more comprehensively.\n\n // find the first instance of any hostEndingChars\n var hostEnd = -1;\n for (var i = 0; i < hostEndingChars.length; i++) {\n var hec = rest.indexOf(hostEndingChars[i]);\n if (hec !== -1 && (hostEnd === -1 || hec < hostEnd))\n hostEnd = hec;\n }\n\n // at this point, either we have an explicit point where the\n // auth portion cannot go past, or the last @ char is the decider.\n var auth, atSign;\n if (hostEnd === -1) {\n // atSign can be anywhere.\n atSign = rest.lastIndexOf('@');\n } else {\n // atSign must be in auth portion.\n // http://a@b/c@d => host:b auth:a path:/c@d\n atSign = rest.lastIndexOf('@', hostEnd);\n }\n\n // Now we have a portion which is definitely the auth.\n // Pull that off.\n if (atSign !== -1) {\n auth = rest.slice(0, atSign);\n rest = rest.slice(atSign + 1);\n this.auth = decodeURIComponent(auth);\n }\n\n // the host is the remaining to the left of the first non-host char\n hostEnd = -1;\n for (var i = 0; i < nonHostChars.length; i++) {\n var hec = rest.indexOf(nonHostChars[i]);\n if (hec !== -1 && (hostEnd === -1 || hec < hostEnd))\n hostEnd = hec;\n }\n // if we still have not hit it, then the entire thing is a host.\n if (hostEnd === -1)\n hostEnd = rest.length;\n\n this.host = rest.slice(0, hostEnd);\n rest = rest.slice(hostEnd);\n\n // pull out port.\n this.parseHost();\n\n // we've indicated that there is a hostname,\n // so even if it's empty, it has to be present.\n this.hostname = this.hostname || '';\n\n // if hostname begins with [ and ends with ]\n // assume that it's an IPv6 address.\n var ipv6Hostname = this.hostname[0] === '[' &&\n this.hostname[this.hostname.length - 1] === ']';\n\n // validate a little.\n if (!ipv6Hostname) {\n var hostparts = this.hostname.split(/\\./);\n for (var i = 0, l = hostparts.length; i < l; i++) {\n var part = hostparts[i];\n if (!part) continue;\n if (!part.match(hostnamePartPattern)) {\n var newpart = '';\n for (var j = 0, k = part.length; j < k; j++) {\n if (part.charCodeAt(j) > 127) {\n // we replace non-ASCII char with a temporary placeholder\n // we need this to make sure size of hostname is not\n // broken by replacing non-ASCII by nothing\n newpart += 'x';\n } else {\n newpart += part[j];\n }\n }\n // we test again with ASCII char only\n if (!newpart.match(hostnamePartPattern)) {\n var validParts = hostparts.slice(0, i);\n var notHost = hostparts.slice(i + 1);\n var bit = part.match(hostnamePartStart);\n if (bit) {\n validParts.push(bit[1]);\n notHost.unshift(bit[2]);\n }\n if (notHost.length) {\n rest = '/' + notHost.join('.') + rest;\n }\n this.hostname = validParts.join('.');\n break;\n }\n }\n }\n }\n\n if (this.hostname.length > hostnameMaxLen) {\n this.hostname = '';\n } else {\n // hostnames are always lower case.\n this.hostname = this.hostname.toLowerCase();\n }\n\n if (!ipv6Hostname) {\n // IDNA Support: Returns a puny coded representation of \"domain\".\n // It only converts the part of the domain name that\n // has non ASCII characters. I.e. it dosent matter if\n // you call it with a domain that already is in ASCII.\n var domainArray = this.hostname.split('.');\n var newOut = [];\n for (var i = 0; i < domainArray.length; ++i) {\n var s = domainArray[i];\n newOut.push(s.match(/[^A-Za-z0-9_-]/) ?\n 'xn--' + punycode.encode(s) : s);\n }\n this.hostname = newOut.join('.');\n }\n\n var p = this.port ? ':' + this.port : '';\n var h = this.hostname || '';\n this.host = h + p;\n this.href += this.host;\n\n // strip [ and ] from the hostname\n // the host field still retains them, though\n if (ipv6Hostname) {\n this.hostname = this.hostname.substr(1, this.hostname.length - 2);\n if (rest[0] !== '/') {\n rest = '/' + rest;\n }\n }\n }\n\n // now rest is set to the post-host stuff.\n // chop off any delim chars.\n if (!unsafeProtocol[lowerProto]) {\n\n // First, make 100% sure that any \"autoEscape\" chars get\n // escaped, even if encodeURIComponent doesn't think they\n // need to be.\n for (var i = 0, l = autoEscape.length; i < l; i++) {\n var ae = autoEscape[i];\n var esc = encodeURIComponent(ae);\n if (esc === ae) {\n esc = escape(ae);\n }\n rest = rest.split(ae).join(esc);\n }\n }\n\n\n // chop off from the tail first.\n var hash = rest.indexOf('#');\n if (hash !== -1) {\n // got a fragment string.\n this.hash = rest.substr(hash);\n rest = rest.slice(0, hash);\n }\n var qm = rest.indexOf('?');\n if (qm !== -1) {\n this.search = rest.substr(qm);\n this.query = rest.substr(qm + 1);\n if (parseQueryString) {\n this.query = querystring.parse(this.query);\n }\n rest = rest.slice(0, qm);\n } else if (parseQueryString) {\n // no query string, but parseQueryString still requested\n this.search = '';\n this.query = {};\n }\n if (rest) this.pathname = rest;\n if (slashedProtocol[lowerProto] &&\n this.hostname && !this.pathname) {\n this.pathname = '/';\n }\n\n //to support http.request\n if (this.pathname || this.search) {\n var p = this.pathname || '';\n var s = this.search || '';\n this.path = p + s;\n }\n\n // finally, reconstruct the href based on what has been validated.\n this.href = this.format();\n return this;\n};\n\n// format a parsed object into a url string\nfunction urlFormat(obj) {\n // ensure it's an object, and not a string url.\n // If it's an obj, this is a no-op.\n // this way, you can call url_format() on strings\n // to clean up potentially wonky urls.\n if (isString(obj)) obj = urlParse(obj);\n if (!(obj instanceof Url)) return Url.prototype.format.call(obj);\n return obj.format();\n}\n\nUrl.prototype.format = function() {\n var auth = this.auth || '';\n if (auth) {\n auth = encodeURIComponent(auth);\n auth = auth.replace(/%3A/i, ':');\n auth += '@';\n }\n\n var protocol = this.protocol || '',\n pathname = this.pathname || '',\n hash = this.hash || '',\n host = false,\n query = '';\n\n if (this.host) {\n host = auth + this.host;\n } else if (this.hostname) {\n host = auth + (this.hostname.indexOf(':') === -1 ?\n this.hostname :\n '[' + this.hostname + ']');\n if (this.port) {\n host += ':' + this.port;\n }\n }\n\n if (this.query &&\n isObject(this.query) &&\n Object.keys(this.query).length) {\n query = querystring.stringify(this.query);\n }\n\n var search = this.search || (query && ('?' + query)) || '';\n\n if (protocol && protocol.substr(-1) !== ':') protocol += ':';\n\n // only the slashedProtocols get the //. Not mailto:, xmpp:, etc.\n // unless they had them to begin with.\n if (this.slashes ||\n (!protocol || slashedProtocol[protocol]) && host !== false) {\n host = '//' + (host || '');\n if (pathname && pathname.charAt(0) !== '/') pathname = '/' + pathname;\n } else if (!host) {\n host = '';\n }\n\n if (hash && hash.charAt(0) !== '#') hash = '#' + hash;\n if (search && search.charAt(0) !== '?') search = '?' + search;\n\n pathname = pathname.replace(/[?#]/g, function(match) {\n return encodeURIComponent(match);\n });\n search = search.replace('#', '%23');\n\n return protocol + host + pathname + search + hash;\n};\n\nfunction urlResolve(source, relative) {\n return urlParse(source, false, true).resolve(relative);\n}\n\nUrl.prototype.resolve = function(relative) {\n return this.resolveObject(urlParse(relative, false, true)).format();\n};\n\nfunction urlResolveObject(source, relative) {\n if (!source) return relative;\n return urlParse(source, false, true).resolveObject(relative);\n}\n\nUrl.prototype.resolveObject = function(relative) {\n if (isString(relative)) {\n var rel = new Url();\n rel.parse(relative, false, true);\n relative = rel;\n }\n\n var result = new Url();\n Object.keys(this).forEach(function(k) {\n result[k] = this[k];\n }, this);\n\n // hash is always overridden, no matter what.\n // even href=\"\" will remove it.\n result.hash = relative.hash;\n\n // if the relative url is empty, then there's nothing left to do here.\n if (relative.href === '') {\n result.href = result.format();\n return result;\n }\n\n // hrefs like //foo/bar always cut to the protocol.\n if (relative.slashes && !relative.protocol) {\n // take everything except the protocol from relative\n Object.keys(relative).forEach(function(k) {\n if (k !== 'protocol')\n result[k] = relative[k];\n });\n\n //urlParse appends trailing / to urls like http://www.example.com\n if (slashedProtocol[result.protocol] &&\n result.hostname && !result.pathname) {\n result.path = result.pathname = '/';\n }\n\n result.href = result.format();\n return result;\n }\n\n if (relative.protocol && relative.protocol !== result.protocol) {\n // if it's a known url protocol, then changing\n // the protocol does weird things\n // first, if it's not file:, then we MUST have a host,\n // and if there was a path\n // to begin with, then we MUST have a path.\n // if it is file:, then the host is dropped,\n // because that's known to be hostless.\n // anything else is assumed to be absolute.\n if (!slashedProtocol[relative.protocol]) {\n Object.keys(relative).forEach(function(k) {\n result[k] = relative[k];\n });\n result.href = result.format();\n return result;\n }\n\n result.protocol = relative.protocol;\n if (!relative.host && !hostlessProtocol[relative.protocol]) {\n var relPath = (relative.pathname || '').split('/');\n while (relPath.length && !(relative.host = relPath.shift()));\n if (!relative.host) relative.host = '';\n if (!relative.hostname) relative.hostname = '';\n if (relPath[0] !== '') relPath.unshift('');\n if (relPath.length < 2) relPath.unshift('');\n result.pathname = relPath.join('/');\n } else {\n result.pathname = relative.pathname;\n }\n result.search = relative.search;\n result.query = relative.query;\n result.host = relative.host || '';\n result.auth = relative.auth;\n result.hostname = relative.hostname || relative.host;\n result.port = relative.port;\n // to support http.request\n if (result.pathname || result.search) {\n var p = result.pathname || '';\n var s = result.search || '';\n result.path = p + s;\n }\n result.slashes = result.slashes || relative.slashes;\n result.href = result.format();\n return result;\n }\n\n var isSourceAbs = (result.pathname && result.pathname.charAt(0) === '/'),\n isRelAbs = (\n relative.host ||\n relative.pathname && relative.pathname.charAt(0) === '/'\n ),\n mustEndAbs = (isRelAbs || isSourceAbs ||\n (result.host && relative.pathname)),\n removeAllDots = mustEndAbs,\n srcPath = result.pathname && result.pathname.split('/') || [],\n relPath = relative.pathname && relative.pathname.split('/') || [],\n psychotic = result.protocol && !slashedProtocol[result.protocol];\n\n // if the url is a non-slashed url, then relative\n // links like ../.. should be able\n // to crawl up to the hostname, as well. This is strange.\n // result.protocol has already been set by now.\n // Later on, put the first path part into the host field.\n if (psychotic) {\n result.hostname = '';\n result.port = null;\n if (result.host) {\n if (srcPath[0] === '') srcPath[0] = result.host;\n else srcPath.unshift(result.host);\n }\n result.host = '';\n if (relative.protocol) {\n relative.hostname = null;\n relative.port = null;\n if (relative.host) {\n if (relPath[0] === '') relPath[0] = relative.host;\n else relPath.unshift(relative.host);\n }\n relative.host = null;\n }\n mustEndAbs = mustEndAbs && (relPath[0] === '' || srcPath[0] === '');\n }\n\n if (isRelAbs) {\n // it's absolute.\n result.host = (relative.host || relative.host === '') ?\n relative.host : result.host;\n result.hostname = (relative.hostname || relative.hostname === '') ?\n relative.hostname : result.hostname;\n result.search = relative.search;\n result.query = relative.query;\n srcPath = relPath;\n // fall through to the dot-handling below.\n } else if (relPath.length) {\n // it's relative\n // throw away the existing file, and take the new path instead.\n if (!srcPath) srcPath = [];\n srcPath.pop();\n srcPath = srcPath.concat(relPath);\n result.search = relative.search;\n result.query = relative.query;\n } else if (!isNullOrUndefined(relative.search)) {\n // just pull out the search.\n // like href='?foo'.\n // Put this after the other two cases because it simplifies the booleans\n if (psychotic) {\n result.hostname = result.host = srcPath.shift();\n //occationaly the auth can get stuck only in host\n //this especialy happens in cases like\n //url.resolveObject('mailto:local1@domain1', 'local2@domain2')\n var authInHost = result.host && result.host.indexOf('@') > 0 ?\n result.host.split('@') : false;\n if (authInHost) {\n result.auth = authInHost.shift();\n result.host = result.hostname = authInHost.shift();\n }\n }\n result.search = relative.search;\n result.query = relative.query;\n //to support http.request\n if (!isNull(result.pathname) || !isNull(result.search)) {\n result.path = (result.pathname ? result.pathname : '') +\n (result.search ? result.search : '');\n }\n result.href = result.format();\n return result;\n }\n\n if (!srcPath.length) {\n // no path at all. easy.\n // we've already handled the other stuff above.\n result.pathname = null;\n //to support http.request\n if (result.search) {\n result.path = '/' + result.search;\n } else {\n result.path = null;\n }\n result.href = result.format();\n return result;\n }\n\n // if a url ENDs in . or .., then it must get a trailing slash.\n // however, if it ends in anything else non-slashy,\n // then it must NOT get a trailing slash.\n var last = srcPath.slice(-1)[0];\n var hasTrailingSlash = (\n (result.host || relative.host) && (last === '.' || last === '..') ||\n last === '');\n\n // strip single dots, resolve double dots to parent dir\n // if the path tries to go above the root, `up` ends up > 0\n var up = 0;\n for (var i = srcPath.length; i >= 0; i--) {\n last = srcPath[i];\n if (last == '.') {\n srcPath.splice(i, 1);\n } else if (last === '..') {\n srcPath.splice(i, 1);\n up++;\n } else if (up) {\n srcPath.splice(i, 1);\n up--;\n }\n }\n\n // if the path is allowed to go above the root, restore leading ..s\n if (!mustEndAbs && !removeAllDots) {\n for (; up--; up) {\n srcPath.unshift('..');\n }\n }\n\n if (mustEndAbs && srcPath[0] !== '' &&\n (!srcPath[0] || srcPath[0].charAt(0) !== '/')) {\n srcPath.unshift('');\n }\n\n if (hasTrailingSlash && (srcPath.join('/').substr(-1) !== '/')) {\n srcPath.push('');\n }\n\n var isAbsolute = srcPath[0] === '' ||\n (srcPath[0] && srcPath[0].charAt(0) === '/');\n\n // put the host back\n if (psychotic) {\n result.hostname = result.host = isAbsolute ? '' :\n srcPath.length ? srcPath.shift() : '';\n //occationaly the auth can get stuck only in host\n //this especialy happens in cases like\n //url.resolveObject('mailto:local1@domain1', 'local2@domain2')\n var authInHost = result.host && result.host.indexOf('@') > 0 ?\n result.host.split('@') : false;\n if (authInHost) {\n result.auth = authInHost.shift();\n result.host = result.hostname = authInHost.shift();\n }\n }\n\n mustEndAbs = mustEndAbs || (result.host && srcPath.length);\n\n if (mustEndAbs && !isAbsolute) {\n srcPath.unshift('');\n }\n\n if (!srcPath.length) {\n result.pathname = null;\n result.path = null;\n } else {\n result.pathname = srcPath.join('/');\n }\n\n //to support request.http\n if (!isNull(result.pathname) || !isNull(result.search)) {\n result.path = (result.pathname ? result.pathname : '') +\n (result.search ? result.search : '');\n }\n result.auth = relative.auth || result.auth;\n result.slashes = result.slashes || relative.slashes;\n result.href = result.format();\n return result;\n};\n\nUrl.prototype.parseHost = function() {\n var host = this.host;\n var port = portPattern.exec(host);\n if (port) {\n port = port[0];\n if (port !== ':') {\n this.port = port.substr(1);\n }\n host = host.substr(0, host.length - port.length);\n }\n if (host) this.hostname = host;\n};\n\nfunction isString(arg) {\n return typeof arg === \"string\";\n}\n\nfunction isObject(arg) {\n return typeof arg === 'object' && arg !== null;\n}\n\nfunction isNull(arg) {\n return arg === null;\n}\nfunction isNullOrUndefined(arg) {\n return arg == null;\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/url/url.js\n ** module id = 87\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/url/url.js?"); /***/ }, /* 88 */ /***/ function(module, exports, __webpack_require__) { - eval("'use strict';\n\nexports.decode = exports.parse = __webpack_require__(89);\nexports.encode = exports.stringify = __webpack_require__(90);\n\n\n/*****************\n ** WEBPACK FOOTER\n ** (webpack)/~/node-libs-browser/~/url/~/querystring/index.js\n ** module id = 88\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///(webpack)/~/node-libs-browser/~/url/~/querystring/index.js?"); + eval("var __WEBPACK_AMD_DEFINE_RESULT__;/* WEBPACK VAR INJECTION */(function(module, global) {/*! https://mths.be/punycode v1.3.2 by @mathias */\n;(function(root) {\n\n\t/** Detect free variables */\n\tvar freeExports = typeof exports == 'object' && exports &&\n\t\t!exports.nodeType && exports;\n\tvar freeModule = typeof module == 'object' && module &&\n\t\t!module.nodeType && module;\n\tvar freeGlobal = typeof global == 'object' && global;\n\tif (\n\t\tfreeGlobal.global === freeGlobal ||\n\t\tfreeGlobal.window === freeGlobal ||\n\t\tfreeGlobal.self === freeGlobal\n\t) {\n\t\troot = freeGlobal;\n\t}\n\n\t/**\n\t * The `punycode` object.\n\t * @name punycode\n\t * @type Object\n\t */\n\tvar punycode,\n\n\t/** Highest positive signed 32-bit float value */\n\tmaxInt = 2147483647, // aka. 0x7FFFFFFF or 2^31-1\n\n\t/** Bootstring parameters */\n\tbase = 36,\n\ttMin = 1,\n\ttMax = 26,\n\tskew = 38,\n\tdamp = 700,\n\tinitialBias = 72,\n\tinitialN = 128, // 0x80\n\tdelimiter = '-', // '\\x2D'\n\n\t/** Regular expressions */\n\tregexPunycode = /^xn--/,\n\tregexNonASCII = /[^\\x20-\\x7E]/, // unprintable ASCII chars + non-ASCII chars\n\tregexSeparators = /[\\x2E\\u3002\\uFF0E\\uFF61]/g, // RFC 3490 separators\n\n\t/** Error messages */\n\terrors = {\n\t\t'overflow': 'Overflow: input needs wider integers to process',\n\t\t'not-basic': 'Illegal input >= 0x80 (not a basic code point)',\n\t\t'invalid-input': 'Invalid input'\n\t},\n\n\t/** Convenience shortcuts */\n\tbaseMinusTMin = base - tMin,\n\tfloor = Math.floor,\n\tstringFromCharCode = String.fromCharCode,\n\n\t/** Temporary variable */\n\tkey;\n\n\t/*--------------------------------------------------------------------------*/\n\n\t/**\n\t * A generic error utility function.\n\t * @private\n\t * @param {String} type The error type.\n\t * @returns {Error} Throws a `RangeError` with the applicable error message.\n\t */\n\tfunction error(type) {\n\t\tthrow RangeError(errors[type]);\n\t}\n\n\t/**\n\t * A generic `Array#map` utility function.\n\t * @private\n\t * @param {Array} array The array to iterate over.\n\t * @param {Function} callback The function that gets called for every array\n\t * item.\n\t * @returns {Array} A new array of values returned by the callback function.\n\t */\n\tfunction map(array, fn) {\n\t\tvar length = array.length;\n\t\tvar result = [];\n\t\twhile (length--) {\n\t\t\tresult[length] = fn(array[length]);\n\t\t}\n\t\treturn result;\n\t}\n\n\t/**\n\t * A simple `Array#map`-like wrapper to work with domain name strings or email\n\t * addresses.\n\t * @private\n\t * @param {String} domain The domain name or email address.\n\t * @param {Function} callback The function that gets called for every\n\t * character.\n\t * @returns {Array} A new string of characters returned by the callback\n\t * function.\n\t */\n\tfunction mapDomain(string, fn) {\n\t\tvar parts = string.split('@');\n\t\tvar result = '';\n\t\tif (parts.length > 1) {\n\t\t\t// In email addresses, only the domain name should be punycoded. Leave\n\t\t\t// the local part (i.e. everything up to `@`) intact.\n\t\t\tresult = parts[0] + '@';\n\t\t\tstring = parts[1];\n\t\t}\n\t\t// Avoid `split(regex)` for IE8 compatibility. See #17.\n\t\tstring = string.replace(regexSeparators, '\\x2E');\n\t\tvar labels = string.split('.');\n\t\tvar encoded = map(labels, fn).join('.');\n\t\treturn result + encoded;\n\t}\n\n\t/**\n\t * Creates an array containing the numeric code points of each Unicode\n\t * character in the string. While JavaScript uses UCS-2 internally,\n\t * this function will convert a pair of surrogate halves (each of which\n\t * UCS-2 exposes as separate characters) into a single code point,\n\t * matching UTF-16.\n\t * @see `punycode.ucs2.encode`\n\t * @see \n\t * @memberOf punycode.ucs2\n\t * @name decode\n\t * @param {String} string The Unicode input string (UCS-2).\n\t * @returns {Array} The new array of code points.\n\t */\n\tfunction ucs2decode(string) {\n\t\tvar output = [],\n\t\t counter = 0,\n\t\t length = string.length,\n\t\t value,\n\t\t extra;\n\t\twhile (counter < length) {\n\t\t\tvalue = string.charCodeAt(counter++);\n\t\t\tif (value >= 0xD800 && value <= 0xDBFF && counter < length) {\n\t\t\t\t// high surrogate, and there is a next character\n\t\t\t\textra = string.charCodeAt(counter++);\n\t\t\t\tif ((extra & 0xFC00) == 0xDC00) { // low surrogate\n\t\t\t\t\toutput.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);\n\t\t\t\t} else {\n\t\t\t\t\t// unmatched surrogate; only append this code unit, in case the next\n\t\t\t\t\t// code unit is the high surrogate of a surrogate pair\n\t\t\t\t\toutput.push(value);\n\t\t\t\t\tcounter--;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\toutput.push(value);\n\t\t\t}\n\t\t}\n\t\treturn output;\n\t}\n\n\t/**\n\t * Creates a string based on an array of numeric code points.\n\t * @see `punycode.ucs2.decode`\n\t * @memberOf punycode.ucs2\n\t * @name encode\n\t * @param {Array} codePoints The array of numeric code points.\n\t * @returns {String} The new Unicode string (UCS-2).\n\t */\n\tfunction ucs2encode(array) {\n\t\treturn map(array, function(value) {\n\t\t\tvar output = '';\n\t\t\tif (value > 0xFFFF) {\n\t\t\t\tvalue -= 0x10000;\n\t\t\t\toutput += stringFromCharCode(value >>> 10 & 0x3FF | 0xD800);\n\t\t\t\tvalue = 0xDC00 | value & 0x3FF;\n\t\t\t}\n\t\t\toutput += stringFromCharCode(value);\n\t\t\treturn output;\n\t\t}).join('');\n\t}\n\n\t/**\n\t * Converts a basic code point into a digit/integer.\n\t * @see `digitToBasic()`\n\t * @private\n\t * @param {Number} codePoint The basic numeric code point value.\n\t * @returns {Number} The numeric value of a basic code point (for use in\n\t * representing integers) in the range `0` to `base - 1`, or `base` if\n\t * the code point does not represent a value.\n\t */\n\tfunction basicToDigit(codePoint) {\n\t\tif (codePoint - 48 < 10) {\n\t\t\treturn codePoint - 22;\n\t\t}\n\t\tif (codePoint - 65 < 26) {\n\t\t\treturn codePoint - 65;\n\t\t}\n\t\tif (codePoint - 97 < 26) {\n\t\t\treturn codePoint - 97;\n\t\t}\n\t\treturn base;\n\t}\n\n\t/**\n\t * Converts a digit/integer into a basic code point.\n\t * @see `basicToDigit()`\n\t * @private\n\t * @param {Number} digit The numeric value of a basic code point.\n\t * @returns {Number} The basic code point whose value (when used for\n\t * representing integers) is `digit`, which needs to be in the range\n\t * `0` to `base - 1`. If `flag` is non-zero, the uppercase form is\n\t * used; else, the lowercase form is used. The behavior is undefined\n\t * if `flag` is non-zero and `digit` has no uppercase form.\n\t */\n\tfunction digitToBasic(digit, flag) {\n\t\t// 0..25 map to ASCII a..z or A..Z\n\t\t// 26..35 map to ASCII 0..9\n\t\treturn digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5);\n\t}\n\n\t/**\n\t * Bias adaptation function as per section 3.4 of RFC 3492.\n\t * http://tools.ietf.org/html/rfc3492#section-3.4\n\t * @private\n\t */\n\tfunction adapt(delta, numPoints, firstTime) {\n\t\tvar k = 0;\n\t\tdelta = firstTime ? floor(delta / damp) : delta >> 1;\n\t\tdelta += floor(delta / numPoints);\n\t\tfor (/* no initialization */; delta > baseMinusTMin * tMax >> 1; k += base) {\n\t\t\tdelta = floor(delta / baseMinusTMin);\n\t\t}\n\t\treturn floor(k + (baseMinusTMin + 1) * delta / (delta + skew));\n\t}\n\n\t/**\n\t * Converts a Punycode string of ASCII-only symbols to a string of Unicode\n\t * symbols.\n\t * @memberOf punycode\n\t * @param {String} input The Punycode string of ASCII-only symbols.\n\t * @returns {String} The resulting string of Unicode symbols.\n\t */\n\tfunction decode(input) {\n\t\t// Don't use UCS-2\n\t\tvar output = [],\n\t\t inputLength = input.length,\n\t\t out,\n\t\t i = 0,\n\t\t n = initialN,\n\t\t bias = initialBias,\n\t\t basic,\n\t\t j,\n\t\t index,\n\t\t oldi,\n\t\t w,\n\t\t k,\n\t\t digit,\n\t\t t,\n\t\t /** Cached calculation results */\n\t\t baseMinusT;\n\n\t\t// Handle the basic code points: let `basic` be the number of input code\n\t\t// points before the last delimiter, or `0` if there is none, then copy\n\t\t// the first basic code points to the output.\n\n\t\tbasic = input.lastIndexOf(delimiter);\n\t\tif (basic < 0) {\n\t\t\tbasic = 0;\n\t\t}\n\n\t\tfor (j = 0; j < basic; ++j) {\n\t\t\t// if it's not a basic code point\n\t\t\tif (input.charCodeAt(j) >= 0x80) {\n\t\t\t\terror('not-basic');\n\t\t\t}\n\t\t\toutput.push(input.charCodeAt(j));\n\t\t}\n\n\t\t// Main decoding loop: start just after the last delimiter if any basic code\n\t\t// points were copied; start at the beginning otherwise.\n\n\t\tfor (index = basic > 0 ? basic + 1 : 0; index < inputLength; /* no final expression */) {\n\n\t\t\t// `index` is the index of the next character to be consumed.\n\t\t\t// Decode a generalized variable-length integer into `delta`,\n\t\t\t// which gets added to `i`. The overflow checking is easier\n\t\t\t// if we increase `i` as we go, then subtract off its starting\n\t\t\t// value at the end to obtain `delta`.\n\t\t\tfor (oldi = i, w = 1, k = base; /* no condition */; k += base) {\n\n\t\t\t\tif (index >= inputLength) {\n\t\t\t\t\terror('invalid-input');\n\t\t\t\t}\n\n\t\t\t\tdigit = basicToDigit(input.charCodeAt(index++));\n\n\t\t\t\tif (digit >= base || digit > floor((maxInt - i) / w)) {\n\t\t\t\t\terror('overflow');\n\t\t\t\t}\n\n\t\t\t\ti += digit * w;\n\t\t\t\tt = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);\n\n\t\t\t\tif (digit < t) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tbaseMinusT = base - t;\n\t\t\t\tif (w > floor(maxInt / baseMinusT)) {\n\t\t\t\t\terror('overflow');\n\t\t\t\t}\n\n\t\t\t\tw *= baseMinusT;\n\n\t\t\t}\n\n\t\t\tout = output.length + 1;\n\t\t\tbias = adapt(i - oldi, out, oldi == 0);\n\n\t\t\t// `i` was supposed to wrap around from `out` to `0`,\n\t\t\t// incrementing `n` each time, so we'll fix that now:\n\t\t\tif (floor(i / out) > maxInt - n) {\n\t\t\t\terror('overflow');\n\t\t\t}\n\n\t\t\tn += floor(i / out);\n\t\t\ti %= out;\n\n\t\t\t// Insert `n` at position `i` of the output\n\t\t\toutput.splice(i++, 0, n);\n\n\t\t}\n\n\t\treturn ucs2encode(output);\n\t}\n\n\t/**\n\t * Converts a string of Unicode symbols (e.g. a domain name label) to a\n\t * Punycode string of ASCII-only symbols.\n\t * @memberOf punycode\n\t * @param {String} input The string of Unicode symbols.\n\t * @returns {String} The resulting Punycode string of ASCII-only symbols.\n\t */\n\tfunction encode(input) {\n\t\tvar n,\n\t\t delta,\n\t\t handledCPCount,\n\t\t basicLength,\n\t\t bias,\n\t\t j,\n\t\t m,\n\t\t q,\n\t\t k,\n\t\t t,\n\t\t currentValue,\n\t\t output = [],\n\t\t /** `inputLength` will hold the number of code points in `input`. */\n\t\t inputLength,\n\t\t /** Cached calculation results */\n\t\t handledCPCountPlusOne,\n\t\t baseMinusT,\n\t\t qMinusT;\n\n\t\t// Convert the input in UCS-2 to Unicode\n\t\tinput = ucs2decode(input);\n\n\t\t// Cache the length\n\t\tinputLength = input.length;\n\n\t\t// Initialize the state\n\t\tn = initialN;\n\t\tdelta = 0;\n\t\tbias = initialBias;\n\n\t\t// Handle the basic code points\n\t\tfor (j = 0; j < inputLength; ++j) {\n\t\t\tcurrentValue = input[j];\n\t\t\tif (currentValue < 0x80) {\n\t\t\t\toutput.push(stringFromCharCode(currentValue));\n\t\t\t}\n\t\t}\n\n\t\thandledCPCount = basicLength = output.length;\n\n\t\t// `handledCPCount` is the number of code points that have been handled;\n\t\t// `basicLength` is the number of basic code points.\n\n\t\t// Finish the basic string - if it is not empty - with a delimiter\n\t\tif (basicLength) {\n\t\t\toutput.push(delimiter);\n\t\t}\n\n\t\t// Main encoding loop:\n\t\twhile (handledCPCount < inputLength) {\n\n\t\t\t// All non-basic code points < n have been handled already. Find the next\n\t\t\t// larger one:\n\t\t\tfor (m = maxInt, j = 0; j < inputLength; ++j) {\n\t\t\t\tcurrentValue = input[j];\n\t\t\t\tif (currentValue >= n && currentValue < m) {\n\t\t\t\t\tm = currentValue;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Increase `delta` enough to advance the decoder's state to ,\n\t\t\t// but guard against overflow\n\t\t\thandledCPCountPlusOne = handledCPCount + 1;\n\t\t\tif (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {\n\t\t\t\terror('overflow');\n\t\t\t}\n\n\t\t\tdelta += (m - n) * handledCPCountPlusOne;\n\t\t\tn = m;\n\n\t\t\tfor (j = 0; j < inputLength; ++j) {\n\t\t\t\tcurrentValue = input[j];\n\n\t\t\t\tif (currentValue < n && ++delta > maxInt) {\n\t\t\t\t\terror('overflow');\n\t\t\t\t}\n\n\t\t\t\tif (currentValue == n) {\n\t\t\t\t\t// Represent delta as a generalized variable-length integer\n\t\t\t\t\tfor (q = delta, k = base; /* no condition */; k += base) {\n\t\t\t\t\t\tt = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);\n\t\t\t\t\t\tif (q < t) {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tqMinusT = q - t;\n\t\t\t\t\t\tbaseMinusT = base - t;\n\t\t\t\t\t\toutput.push(\n\t\t\t\t\t\t\tstringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0))\n\t\t\t\t\t\t);\n\t\t\t\t\t\tq = floor(qMinusT / baseMinusT);\n\t\t\t\t\t}\n\n\t\t\t\t\toutput.push(stringFromCharCode(digitToBasic(q, 0)));\n\t\t\t\t\tbias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength);\n\t\t\t\t\tdelta = 0;\n\t\t\t\t\t++handledCPCount;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t++delta;\n\t\t\t++n;\n\n\t\t}\n\t\treturn output.join('');\n\t}\n\n\t/**\n\t * Converts a Punycode string representing a domain name or an email address\n\t * to Unicode. Only the Punycoded parts of the input will be converted, i.e.\n\t * it doesn't matter if you call it on a string that has already been\n\t * converted to Unicode.\n\t * @memberOf punycode\n\t * @param {String} input The Punycoded domain name or email address to\n\t * convert to Unicode.\n\t * @returns {String} The Unicode representation of the given Punycode\n\t * string.\n\t */\n\tfunction toUnicode(input) {\n\t\treturn mapDomain(input, function(string) {\n\t\t\treturn regexPunycode.test(string)\n\t\t\t\t? decode(string.slice(4).toLowerCase())\n\t\t\t\t: string;\n\t\t});\n\t}\n\n\t/**\n\t * Converts a Unicode string representing a domain name or an email address to\n\t * Punycode. Only the non-ASCII parts of the domain name will be converted,\n\t * i.e. it doesn't matter if you call it with a domain that's already in\n\t * ASCII.\n\t * @memberOf punycode\n\t * @param {String} input The domain name or email address to convert, as a\n\t * Unicode string.\n\t * @returns {String} The Punycode representation of the given domain name or\n\t * email address.\n\t */\n\tfunction toASCII(input) {\n\t\treturn mapDomain(input, function(string) {\n\t\t\treturn regexNonASCII.test(string)\n\t\t\t\t? 'xn--' + encode(string)\n\t\t\t\t: string;\n\t\t});\n\t}\n\n\t/*--------------------------------------------------------------------------*/\n\n\t/** Define the public API */\n\tpunycode = {\n\t\t/**\n\t\t * A string representing the current Punycode.js version number.\n\t\t * @memberOf punycode\n\t\t * @type String\n\t\t */\n\t\t'version': '1.3.2',\n\t\t/**\n\t\t * An object of methods to convert from JavaScript's internal character\n\t\t * representation (UCS-2) to Unicode code points, and back.\n\t\t * @see \n\t\t * @memberOf punycode\n\t\t * @type Object\n\t\t */\n\t\t'ucs2': {\n\t\t\t'decode': ucs2decode,\n\t\t\t'encode': ucs2encode\n\t\t},\n\t\t'decode': decode,\n\t\t'encode': encode,\n\t\t'toASCII': toASCII,\n\t\t'toUnicode': toUnicode\n\t};\n\n\t/** Expose `punycode` */\n\t// Some AMD build optimizers, like r.js, check for specific condition patterns\n\t// like the following:\n\tif (\n\t\ttrue\n\t) {\n\t\t!(__WEBPACK_AMD_DEFINE_RESULT__ = function() {\n\t\t\treturn punycode;\n\t\t}.call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\t} else if (freeExports && freeModule) {\n\t\tif (module.exports == freeExports) { // in Node.js or RingoJS v0.8.0+\n\t\t\tfreeModule.exports = punycode;\n\t\t} else { // in Narwhal or RingoJS v0.7.0-\n\t\t\tfor (key in punycode) {\n\t\t\t\tpunycode.hasOwnProperty(key) && (freeExports[key] = punycode[key]);\n\t\t\t}\n\t\t}\n\t} else { // in Rhino or a web browser\n\t\troot.punycode = punycode;\n\t}\n\n}(this));\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(89)(module), (function() { return this; }())))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/url/~/punycode/punycode.js\n ** module id = 88\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/url/~/punycode/punycode.js?"); /***/ }, /* 89 */ /***/ function(module, exports) { - eval("// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n'use strict';\n\n// If obj.hasOwnProperty has been overridden, then calling\n// obj.hasOwnProperty(prop) will break.\n// See: https://github.com/joyent/node/issues/1707\nfunction hasOwnProperty(obj, prop) {\n return Object.prototype.hasOwnProperty.call(obj, prop);\n}\n\nmodule.exports = function(qs, sep, eq, options) {\n sep = sep || '&';\n eq = eq || '=';\n var obj = {};\n\n if (typeof qs !== 'string' || qs.length === 0) {\n return obj;\n }\n\n var regexp = /\\+/g;\n qs = qs.split(sep);\n\n var maxKeys = 1000;\n if (options && typeof options.maxKeys === 'number') {\n maxKeys = options.maxKeys;\n }\n\n var len = qs.length;\n // maxKeys <= 0 means that we should not limit keys count\n if (maxKeys > 0 && len > maxKeys) {\n len = maxKeys;\n }\n\n for (var i = 0; i < len; ++i) {\n var x = qs[i].replace(regexp, '%20'),\n idx = x.indexOf(eq),\n kstr, vstr, k, v;\n\n if (idx >= 0) {\n kstr = x.substr(0, idx);\n vstr = x.substr(idx + 1);\n } else {\n kstr = x;\n vstr = '';\n }\n\n k = decodeURIComponent(kstr);\n v = decodeURIComponent(vstr);\n\n if (!hasOwnProperty(obj, k)) {\n obj[k] = v;\n } else if (Array.isArray(obj[k])) {\n obj[k].push(v);\n } else {\n obj[k] = [obj[k], v];\n }\n }\n\n return obj;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** (webpack)/~/node-libs-browser/~/url/~/querystring/decode.js\n ** module id = 89\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///(webpack)/~/node-libs-browser/~/url/~/querystring/decode.js?"); + eval("module.exports = function(module) {\r\n\tif(!module.webpackPolyfill) {\r\n\t\tmodule.deprecate = function() {};\r\n\t\tmodule.paths = [];\r\n\t\t// module.parent = undefined by default\r\n\t\tmodule.children = [];\r\n\t\tmodule.webpackPolyfill = 1;\r\n\t}\r\n\treturn module;\r\n}\r\n\n\n/*****************\n ** WEBPACK FOOTER\n ** (webpack)/buildin/module.js\n ** module id = 89\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///(webpack)/buildin/module.js?"); /***/ }, /* 90 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n'use strict';\n\nvar stringifyPrimitive = function(v) {\n switch (typeof v) {\n case 'string':\n return v;\n\n case 'boolean':\n return v ? 'true' : 'false';\n\n case 'number':\n return isFinite(v) ? v : '';\n\n default:\n return '';\n }\n};\n\nmodule.exports = function(obj, sep, eq, name) {\n sep = sep || '&';\n eq = eq || '=';\n if (obj === null) {\n obj = undefined;\n }\n\n if (typeof obj === 'object') {\n return Object.keys(obj).map(function(k) {\n var ks = encodeURIComponent(stringifyPrimitive(k)) + eq;\n if (Array.isArray(obj[k])) {\n return obj[k].map(function(v) {\n return ks + encodeURIComponent(stringifyPrimitive(v));\n }).join(sep);\n } else {\n return ks + encodeURIComponent(stringifyPrimitive(obj[k]));\n }\n }).join(sep);\n\n }\n\n if (!name) return '';\n return encodeURIComponent(stringifyPrimitive(name)) + eq +\n encodeURIComponent(stringifyPrimitive(obj));\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** (webpack)/~/node-libs-browser/~/url/~/querystring/encode.js\n ** module id = 90\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///(webpack)/~/node-libs-browser/~/url/~/querystring/encode.js?"); + eval("'use strict';\n\nexports.decode = exports.parse = __webpack_require__(91);\nexports.encode = exports.stringify = __webpack_require__(92);\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/querystring/index.js\n ** module id = 90\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/querystring/index.js?"); /***/ }, /* 91 */ -/***/ function(module, exports, __webpack_require__) { +/***/ function(module, exports) { - eval("/* WEBPACK VAR INJECTION */(function(global) {var ClientRequest = __webpack_require__(92)\nvar extend = __webpack_require__(114)\nvar statusCodes = __webpack_require__(115)\nvar url = __webpack_require__(85)\n\nvar http = exports\n\nhttp.request = function (opts, cb) {\n\tif (typeof opts === 'string')\n\t\topts = url.parse(opts)\n\telse\n\t\topts = extend(opts)\n\n\t// Normally, the page is loaded from http or https, so not specifying a protocol\n\t// will result in a (valid) protocol-relative url. However, this won't work if\n\t// the protocol is something else, like 'file:'\n\tvar defaultProtocol = global.location.protocol.search(/^https?:$/) === -1 ? 'http:' : ''\n\n\tvar protocol = opts.protocol || defaultProtocol\n\tvar host = opts.hostname || opts.host\n\tvar port = opts.port\n\tvar path = opts.path || '/'\n\n\t// Necessary for IPv6 addresses\n\tif (host && host.indexOf(':') !== -1)\n\t\thost = '[' + host + ']'\n\n\t// This may be a relative url. The browser should always be able to interpret it correctly.\n\topts.url = (host ? (protocol + '//' + host) : '') + (port ? ':' + port : '') + path\n\topts.method = (opts.method || 'GET').toUpperCase()\n\topts.headers = opts.headers || {}\n\n\t// Also valid opts.auth, opts.mode\n\n\tvar req = new ClientRequest(opts)\n\tif (cb)\n\t\treq.on('response', cb)\n\treturn req\n}\n\nhttp.get = function get (opts, cb) {\n\tvar req = http.request(opts, cb)\n\treq.end()\n\treturn req\n}\n\nhttp.Agent = function () {}\nhttp.Agent.defaultMaxSockets = 4\n\nhttp.STATUS_CODES = statusCodes\n\nhttp.METHODS = [\n\t'CHECKOUT',\n\t'CONNECT',\n\t'COPY',\n\t'DELETE',\n\t'GET',\n\t'HEAD',\n\t'LOCK',\n\t'M-SEARCH',\n\t'MERGE',\n\t'MKACTIVITY',\n\t'MKCOL',\n\t'MOVE',\n\t'NOTIFY',\n\t'OPTIONS',\n\t'PATCH',\n\t'POST',\n\t'PROPFIND',\n\t'PROPPATCH',\n\t'PURGE',\n\t'PUT',\n\t'REPORT',\n\t'SEARCH',\n\t'SUBSCRIBE',\n\t'TRACE',\n\t'UNLOCK',\n\t'UNSUBSCRIBE'\n]\n/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/stream-http/index.js\n ** module id = 91\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/stream-http/index.js?"); + eval("// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n'use strict';\n\n// If obj.hasOwnProperty has been overridden, then calling\n// obj.hasOwnProperty(prop) will break.\n// See: https://github.com/joyent/node/issues/1707\nfunction hasOwnProperty(obj, prop) {\n return Object.prototype.hasOwnProperty.call(obj, prop);\n}\n\nmodule.exports = function(qs, sep, eq, options) {\n sep = sep || '&';\n eq = eq || '=';\n var obj = {};\n\n if (typeof qs !== 'string' || qs.length === 0) {\n return obj;\n }\n\n var regexp = /\\+/g;\n qs = qs.split(sep);\n\n var maxKeys = 1000;\n if (options && typeof options.maxKeys === 'number') {\n maxKeys = options.maxKeys;\n }\n\n var len = qs.length;\n // maxKeys <= 0 means that we should not limit keys count\n if (maxKeys > 0 && len > maxKeys) {\n len = maxKeys;\n }\n\n for (var i = 0; i < len; ++i) {\n var x = qs[i].replace(regexp, '%20'),\n idx = x.indexOf(eq),\n kstr, vstr, k, v;\n\n if (idx >= 0) {\n kstr = x.substr(0, idx);\n vstr = x.substr(idx + 1);\n } else {\n kstr = x;\n vstr = '';\n }\n\n k = decodeURIComponent(kstr);\n v = decodeURIComponent(vstr);\n\n if (!hasOwnProperty(obj, k)) {\n obj[k] = v;\n } else if (Array.isArray(obj[k])) {\n obj[k].push(v);\n } else {\n obj[k] = [obj[k], v];\n }\n }\n\n return obj;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/querystring/decode.js\n ** module id = 91\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/querystring/decode.js?"); /***/ }, /* 92 */ -/***/ function(module, exports, __webpack_require__) { +/***/ function(module, exports) { - eval("/* WEBPACK VAR INJECTION */(function(Buffer, global, process) {// var Base64 = require('Base64')\nvar capability = __webpack_require__(93)\nvar inherits = __webpack_require__(94)\nvar response = __webpack_require__(95)\nvar stream = __webpack_require__(96)\nvar toArrayBuffer = __webpack_require__(113)\n\nvar IncomingMessage = response.IncomingMessage\nvar rStates = response.readyStates\n\nfunction decideMode (preferBinary) {\n\tif (capability.fetch) {\n\t\treturn 'fetch'\n\t} else if (capability.mozchunkedarraybuffer) {\n\t\treturn 'moz-chunked-arraybuffer'\n\t} else if (capability.msstream) {\n\t\treturn 'ms-stream'\n\t} else if (capability.arraybuffer && preferBinary) {\n\t\treturn 'arraybuffer'\n\t} else if (capability.vbArray && preferBinary) {\n\t\treturn 'text:vbarray'\n\t} else {\n\t\treturn 'text'\n\t}\n}\n\nvar ClientRequest = module.exports = function (opts) {\n\tvar self = this\n\tstream.Writable.call(self)\n\n\tself._opts = opts\n\tself._body = []\n\tself._headers = {}\n\tif (opts.auth)\n\t\tself.setHeader('Authorization', 'Basic ' + new Buffer(opts.auth).toString('base64'))\n\tObject.keys(opts.headers).forEach(function (name) {\n\t\tself.setHeader(name, opts.headers[name])\n\t})\n\n\tvar preferBinary\n\tif (opts.mode === 'prefer-streaming') {\n\t\t// If streaming is a high priority but binary compatibility and\n\t\t// the accuracy of the 'content-type' header aren't\n\t\tpreferBinary = false\n\t} else if (opts.mode === 'allow-wrong-content-type') {\n\t\t// If streaming is more important than preserving the 'content-type' header\n\t\tpreferBinary = !capability.overrideMimeType\n\t} else if (!opts.mode || opts.mode === 'default' || opts.mode === 'prefer-fast') {\n\t\t// Use binary if text streaming may corrupt data or the content-type header, or for speed\n\t\tpreferBinary = true\n\t} else {\n\t\tthrow new Error('Invalid value for opts.mode')\n\t}\n\tself._mode = decideMode(preferBinary)\n\n\tself.on('finish', function () {\n\t\tself._onFinish()\n\t})\n}\n\ninherits(ClientRequest, stream.Writable)\n\nClientRequest.prototype.setHeader = function (name, value) {\n\tvar self = this\n\tvar lowerName = name.toLowerCase()\n\t// This check is not necessary, but it prevents warnings from browsers about setting unsafe\n\t// headers. To be honest I'm not entirely sure hiding these warnings is a good thing, but\n\t// http-browserify did it, so I will too.\n\tif (unsafeHeaders.indexOf(lowerName) !== -1)\n\t\treturn\n\n\tself._headers[lowerName] = {\n\t\tname: name,\n\t\tvalue: value\n\t}\n}\n\nClientRequest.prototype.getHeader = function (name) {\n\tvar self = this\n\treturn self._headers[name.toLowerCase()].value\n}\n\nClientRequest.prototype.removeHeader = function (name) {\n\tvar self = this\n\tdelete self._headers[name.toLowerCase()]\n}\n\nClientRequest.prototype._onFinish = function () {\n\tvar self = this\n\n\tif (self._destroyed)\n\t\treturn\n\tvar opts = self._opts\n\n\tvar headersObj = self._headers\n\tvar body\n\tif (opts.method === 'POST' || opts.method === 'PUT' || opts.method === 'PATCH') {\n\t\tif (capability.blobConstructor) {\n\t\t\tbody = new global.Blob(self._body.map(function (buffer) {\n\t\t\t\treturn toArrayBuffer(buffer)\n\t\t\t}), {\n\t\t\t\ttype: (headersObj['content-type'] || {}).value || ''\n\t\t\t})\n\t\t} else {\n\t\t\t// get utf8 string\n\t\t\tbody = Buffer.concat(self._body).toString()\n\t\t}\n\t}\n\n\tif (self._mode === 'fetch') {\n\t\tvar headers = Object.keys(headersObj).map(function (name) {\n\t\t\treturn [headersObj[name].name, headersObj[name].value]\n\t\t})\n\n\t\tglobal.fetch(self._opts.url, {\n\t\t\tmethod: self._opts.method,\n\t\t\theaders: headers,\n\t\t\tbody: body,\n\t\t\tmode: 'cors',\n\t\t\tcredentials: opts.withCredentials ? 'include' : 'same-origin'\n\t\t}).then(function (response) {\n\t\t\tself._fetchResponse = response\n\t\t\tself._connect()\n\t\t}, function (reason) {\n\t\t\tself.emit('error', reason)\n\t\t})\n\t} else {\n\t\tvar xhr = self._xhr = new global.XMLHttpRequest()\n\t\ttry {\n\t\t\txhr.open(self._opts.method, self._opts.url, true)\n\t\t} catch (err) {\n\t\t\tprocess.nextTick(function () {\n\t\t\t\tself.emit('error', err)\n\t\t\t})\n\t\t\treturn\n\t\t}\n\n\t\t// Can't set responseType on really old browsers\n\t\tif ('responseType' in xhr)\n\t\t\txhr.responseType = self._mode.split(':')[0]\n\n\t\tif ('withCredentials' in xhr)\n\t\t\txhr.withCredentials = !!opts.withCredentials\n\n\t\tif (self._mode === 'text' && 'overrideMimeType' in xhr)\n\t\t\txhr.overrideMimeType('text/plain; charset=x-user-defined')\n\n\t\tObject.keys(headersObj).forEach(function (name) {\n\t\t\txhr.setRequestHeader(headersObj[name].name, headersObj[name].value)\n\t\t})\n\n\t\tself._response = null\n\t\txhr.onreadystatechange = function () {\n\t\t\tswitch (xhr.readyState) {\n\t\t\t\tcase rStates.LOADING:\n\t\t\t\tcase rStates.DONE:\n\t\t\t\t\tself._onXHRProgress()\n\t\t\t\t\tbreak\n\t\t\t}\n\t\t}\n\t\t// Necessary for streaming in Firefox, since xhr.response is ONLY defined\n\t\t// in onprogress, not in onreadystatechange with xhr.readyState = 3\n\t\tif (self._mode === 'moz-chunked-arraybuffer') {\n\t\t\txhr.onprogress = function () {\n\t\t\t\tself._onXHRProgress()\n\t\t\t}\n\t\t}\n\n\t\txhr.onerror = function () {\n\t\t\tif (self._destroyed)\n\t\t\t\treturn\n\t\t\tself.emit('error', new Error('XHR error'))\n\t\t}\n\n\t\ttry {\n\t\t\txhr.send(body)\n\t\t} catch (err) {\n\t\t\tprocess.nextTick(function () {\n\t\t\t\tself.emit('error', err)\n\t\t\t})\n\t\t\treturn\n\t\t}\n\t}\n}\n\n/**\n * Checks if xhr.status is readable and non-zero, indicating no error.\n * Even though the spec says it should be available in readyState 3,\n * accessing it throws an exception in IE8\n */\nfunction statusValid (xhr) {\n\ttry {\n\t\tvar status = xhr.status\n\t\treturn (status !== null && status !== 0)\n\t} catch (e) {\n\t\treturn false\n\t}\n}\n\nClientRequest.prototype._onXHRProgress = function () {\n\tvar self = this\n\n\tif (!statusValid(self._xhr) || self._destroyed)\n\t\treturn\n\n\tif (!self._response)\n\t\tself._connect()\n\n\tself._response._onXHRProgress()\n}\n\nClientRequest.prototype._connect = function () {\n\tvar self = this\n\n\tif (self._destroyed)\n\t\treturn\n\n\tself._response = new IncomingMessage(self._xhr, self._fetchResponse, self._mode)\n\tself.emit('response', self._response)\n}\n\nClientRequest.prototype._write = function (chunk, encoding, cb) {\n\tvar self = this\n\n\tself._body.push(chunk)\n\tcb()\n}\n\nClientRequest.prototype.abort = ClientRequest.prototype.destroy = function () {\n\tvar self = this\n\tself._destroyed = true\n\tif (self._response)\n\t\tself._response._destroyed = true\n\tif (self._xhr)\n\t\tself._xhr.abort()\n\t// Currently, there isn't a way to truly abort a fetch.\n\t// If you like bikeshedding, see https://github.com/whatwg/fetch/issues/27\n}\n\nClientRequest.prototype.end = function (data, encoding, cb) {\n\tvar self = this\n\tif (typeof data === 'function') {\n\t\tcb = data\n\t\tdata = undefined\n\t}\n\n\tstream.Writable.prototype.end.call(self, data, encoding, cb)\n}\n\nClientRequest.prototype.flushHeaders = function () {}\nClientRequest.prototype.setTimeout = function () {}\nClientRequest.prototype.setNoDelay = function () {}\nClientRequest.prototype.setSocketKeepAlive = function () {}\n\n// Taken from http://www.w3.org/TR/XMLHttpRequest/#the-setrequestheader%28%29-method\nvar unsafeHeaders = [\n\t'accept-charset',\n\t'accept-encoding',\n\t'access-control-request-headers',\n\t'access-control-request-method',\n\t'connection',\n\t'content-length',\n\t'cookie',\n\t'cookie2',\n\t'date',\n\t'dnt',\n\t'expect',\n\t'host',\n\t'keep-alive',\n\t'origin',\n\t'referer',\n\t'te',\n\t'trailer',\n\t'transfer-encoding',\n\t'upgrade',\n\t'user-agent',\n\t'via'\n]\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1).Buffer, (function() { return this; }()), __webpack_require__(83)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/stream-http/lib/request.js\n ** module id = 92\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/stream-http/lib/request.js?"); + eval("// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n'use strict';\n\nvar stringifyPrimitive = function(v) {\n switch (typeof v) {\n case 'string':\n return v;\n\n case 'boolean':\n return v ? 'true' : 'false';\n\n case 'number':\n return isFinite(v) ? v : '';\n\n default:\n return '';\n }\n};\n\nmodule.exports = function(obj, sep, eq, name) {\n sep = sep || '&';\n eq = eq || '=';\n if (obj === null) {\n obj = undefined;\n }\n\n if (typeof obj === 'object') {\n return Object.keys(obj).map(function(k) {\n var ks = encodeURIComponent(stringifyPrimitive(k)) + eq;\n if (Array.isArray(obj[k])) {\n return obj[k].map(function(v) {\n return ks + encodeURIComponent(stringifyPrimitive(v));\n }).join(sep);\n } else {\n return ks + encodeURIComponent(stringifyPrimitive(obj[k]));\n }\n }).join(sep);\n\n }\n\n if (!name) return '';\n return encodeURIComponent(stringifyPrimitive(name)) + eq +\n encodeURIComponent(stringifyPrimitive(obj));\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/querystring/encode.js\n ** module id = 92\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/querystring/encode.js?"); /***/ }, /* 93 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(global) {exports.fetch = isFunction(global.fetch) && isFunction(global.ReadableByteStream)\n\nexports.blobConstructor = false\ntry {\n\tnew Blob([new ArrayBuffer(1)])\n\texports.blobConstructor = true\n} catch (e) {}\n\nvar xhr = new global.XMLHttpRequest()\n// If location.host is empty, e.g. if this page/worker was loaded\n// from a Blob, then use example.com to avoid an error\nxhr.open('GET', global.location.host ? '/' : 'https://example.com')\n\nfunction checkTypeSupport (type) {\n\ttry {\n\t\txhr.responseType = type\n\t\treturn xhr.responseType === type\n\t} catch (e) {}\n\treturn false\n}\n\n// For some strange reason, Safari 7.0 reports typeof global.ArrayBuffer === 'object'.\n// Safari 7.1 appears to have fixed this bug.\nvar haveArrayBuffer = typeof global.ArrayBuffer !== 'undefined'\nvar haveSlice = haveArrayBuffer && isFunction(global.ArrayBuffer.prototype.slice)\n\nexports.arraybuffer = haveArrayBuffer && checkTypeSupport('arraybuffer')\n// These next two tests unavoidably show warnings in Chrome. Since fetch will always\n// be used if it's available, just return false for these to avoid the warnings.\nexports.msstream = !exports.fetch && haveSlice && checkTypeSupport('ms-stream')\nexports.mozchunkedarraybuffer = !exports.fetch && haveArrayBuffer &&\n\tcheckTypeSupport('moz-chunked-arraybuffer')\nexports.overrideMimeType = isFunction(xhr.overrideMimeType)\nexports.vbArray = isFunction(global.VBArray)\n\nfunction isFunction (value) {\n return typeof value === 'function'\n}\n\nxhr = null // Help gc\n\n/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/stream-http/lib/capability.js\n ** module id = 93\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/stream-http/lib/capability.js?"); + eval("/* WEBPACK VAR INJECTION */(function(global) {var ClientRequest = __webpack_require__(94)\nvar extend = __webpack_require__(67)\nvar statusCodes = __webpack_require__(114)\nvar url = __webpack_require__(87)\n\nvar http = exports\n\nhttp.request = function (opts, cb) {\n\tif (typeof opts === 'string')\n\t\topts = url.parse(opts)\n\telse\n\t\topts = extend(opts)\n\n\t// Normally, the page is loaded from http or https, so not specifying a protocol\n\t// will result in a (valid) protocol-relative url. However, this won't work if\n\t// the protocol is something else, like 'file:'\n\tvar defaultProtocol = global.location.protocol.search(/^https?:$/) === -1 ? 'http:' : ''\n\n\tvar protocol = opts.protocol || defaultProtocol\n\tvar host = opts.hostname || opts.host\n\tvar port = opts.port\n\tvar path = opts.path || '/'\n\n\t// Necessary for IPv6 addresses\n\tif (host && host.indexOf(':') !== -1)\n\t\thost = '[' + host + ']'\n\n\t// This may be a relative url. The browser should always be able to interpret it correctly.\n\topts.url = (host ? (protocol + '//' + host) : '') + (port ? ':' + port : '') + path\n\topts.method = (opts.method || 'GET').toUpperCase()\n\topts.headers = opts.headers || {}\n\n\t// Also valid opts.auth, opts.mode\n\n\tvar req = new ClientRequest(opts)\n\tif (cb)\n\t\treq.on('response', cb)\n\treturn req\n}\n\nhttp.get = function get (opts, cb) {\n\tvar req = http.request(opts, cb)\n\treq.end()\n\treturn req\n}\n\nhttp.Agent = function () {}\nhttp.Agent.defaultMaxSockets = 4\n\nhttp.STATUS_CODES = statusCodes\n\nhttp.METHODS = [\n\t'CHECKOUT',\n\t'CONNECT',\n\t'COPY',\n\t'DELETE',\n\t'GET',\n\t'HEAD',\n\t'LOCK',\n\t'M-SEARCH',\n\t'MERGE',\n\t'MKACTIVITY',\n\t'MKCOL',\n\t'MOVE',\n\t'NOTIFY',\n\t'OPTIONS',\n\t'PATCH',\n\t'POST',\n\t'PROPFIND',\n\t'PROPPATCH',\n\t'PURGE',\n\t'PUT',\n\t'REPORT',\n\t'SEARCH',\n\t'SUBSCRIBE',\n\t'TRACE',\n\t'UNLOCK',\n\t'UNSUBSCRIBE'\n]\n/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/stream-http/index.js\n ** module id = 93\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/stream-http/index.js?"); /***/ }, /* 94 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("if (typeof Object.create === 'function') {\n // implementation from standard node.js 'util' module\n module.exports = function inherits(ctor, superCtor) {\n ctor.super_ = superCtor\n ctor.prototype = Object.create(superCtor.prototype, {\n constructor: {\n value: ctor,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n };\n} else {\n // old school shim for old browsers\n module.exports = function inherits(ctor, superCtor) {\n ctor.super_ = superCtor\n var TempCtor = function () {}\n TempCtor.prototype = superCtor.prototype\n ctor.prototype = new TempCtor()\n ctor.prototype.constructor = ctor\n }\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/stream-http/~/inherits/inherits_browser.js\n ** module id = 94\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/stream-http/~/inherits/inherits_browser.js?"); + eval("/* WEBPACK VAR INJECTION */(function(Buffer, global, process) {// var Base64 = require('Base64')\nvar capability = __webpack_require__(95)\nvar inherits = __webpack_require__(96)\nvar response = __webpack_require__(97)\nvar stream = __webpack_require__(98)\nvar toArrayBuffer = __webpack_require__(113)\n\nvar IncomingMessage = response.IncomingMessage\nvar rStates = response.readyStates\n\nfunction decideMode (preferBinary) {\n\tif (capability.fetch) {\n\t\treturn 'fetch'\n\t} else if (capability.mozchunkedarraybuffer) {\n\t\treturn 'moz-chunked-arraybuffer'\n\t} else if (capability.msstream) {\n\t\treturn 'ms-stream'\n\t} else if (capability.arraybuffer && preferBinary) {\n\t\treturn 'arraybuffer'\n\t} else if (capability.vbArray && preferBinary) {\n\t\treturn 'text:vbarray'\n\t} else {\n\t\treturn 'text'\n\t}\n}\n\nvar ClientRequest = module.exports = function (opts) {\n\tvar self = this\n\tstream.Writable.call(self)\n\n\tself._opts = opts\n\tself._body = []\n\tself._headers = {}\n\tif (opts.auth)\n\t\tself.setHeader('Authorization', 'Basic ' + new Buffer(opts.auth).toString('base64'))\n\tObject.keys(opts.headers).forEach(function (name) {\n\t\tself.setHeader(name, opts.headers[name])\n\t})\n\n\tvar preferBinary\n\tif (opts.mode === 'prefer-streaming') {\n\t\t// If streaming is a high priority but binary compatibility and\n\t\t// the accuracy of the 'content-type' header aren't\n\t\tpreferBinary = false\n\t} else if (opts.mode === 'allow-wrong-content-type') {\n\t\t// If streaming is more important than preserving the 'content-type' header\n\t\tpreferBinary = !capability.overrideMimeType\n\t} else if (!opts.mode || opts.mode === 'default' || opts.mode === 'prefer-fast') {\n\t\t// Use binary if text streaming may corrupt data or the content-type header, or for speed\n\t\tpreferBinary = true\n\t} else {\n\t\tthrow new Error('Invalid value for opts.mode')\n\t}\n\tself._mode = decideMode(preferBinary)\n\n\tself.on('finish', function () {\n\t\tself._onFinish()\n\t})\n}\n\ninherits(ClientRequest, stream.Writable)\n\nClientRequest.prototype.setHeader = function (name, value) {\n\tvar self = this\n\tvar lowerName = name.toLowerCase()\n\t// This check is not necessary, but it prevents warnings from browsers about setting unsafe\n\t// headers. To be honest I'm not entirely sure hiding these warnings is a good thing, but\n\t// http-browserify did it, so I will too.\n\tif (unsafeHeaders.indexOf(lowerName) !== -1)\n\t\treturn\n\n\tself._headers[lowerName] = {\n\t\tname: name,\n\t\tvalue: value\n\t}\n}\n\nClientRequest.prototype.getHeader = function (name) {\n\tvar self = this\n\treturn self._headers[name.toLowerCase()].value\n}\n\nClientRequest.prototype.removeHeader = function (name) {\n\tvar self = this\n\tdelete self._headers[name.toLowerCase()]\n}\n\nClientRequest.prototype._onFinish = function () {\n\tvar self = this\n\n\tif (self._destroyed)\n\t\treturn\n\tvar opts = self._opts\n\n\tvar headersObj = self._headers\n\tvar body\n\tif (opts.method === 'POST' || opts.method === 'PUT' || opts.method === 'PATCH') {\n\t\tif (capability.blobConstructor) {\n\t\t\tbody = new global.Blob(self._body.map(function (buffer) {\n\t\t\t\treturn toArrayBuffer(buffer)\n\t\t\t}), {\n\t\t\t\ttype: (headersObj['content-type'] || {}).value || ''\n\t\t\t})\n\t\t} else {\n\t\t\t// get utf8 string\n\t\t\tbody = Buffer.concat(self._body).toString()\n\t\t}\n\t}\n\n\tif (self._mode === 'fetch') {\n\t\tvar headers = Object.keys(headersObj).map(function (name) {\n\t\t\treturn [headersObj[name].name, headersObj[name].value]\n\t\t})\n\n\t\tglobal.fetch(self._opts.url, {\n\t\t\tmethod: self._opts.method,\n\t\t\theaders: headers,\n\t\t\tbody: body,\n\t\t\tmode: 'cors',\n\t\t\tcredentials: opts.withCredentials ? 'include' : 'same-origin'\n\t\t}).then(function (response) {\n\t\t\tself._fetchResponse = response\n\t\t\tself._connect()\n\t\t}, function (reason) {\n\t\t\tself.emit('error', reason)\n\t\t})\n\t} else {\n\t\tvar xhr = self._xhr = new global.XMLHttpRequest()\n\t\ttry {\n\t\t\txhr.open(self._opts.method, self._opts.url, true)\n\t\t} catch (err) {\n\t\t\tprocess.nextTick(function () {\n\t\t\t\tself.emit('error', err)\n\t\t\t})\n\t\t\treturn\n\t\t}\n\n\t\t// Can't set responseType on really old browsers\n\t\tif ('responseType' in xhr)\n\t\t\txhr.responseType = self._mode.split(':')[0]\n\n\t\tif ('withCredentials' in xhr)\n\t\t\txhr.withCredentials = !!opts.withCredentials\n\n\t\tif (self._mode === 'text' && 'overrideMimeType' in xhr)\n\t\t\txhr.overrideMimeType('text/plain; charset=x-user-defined')\n\n\t\tObject.keys(headersObj).forEach(function (name) {\n\t\t\txhr.setRequestHeader(headersObj[name].name, headersObj[name].value)\n\t\t})\n\n\t\tself._response = null\n\t\txhr.onreadystatechange = function () {\n\t\t\tswitch (xhr.readyState) {\n\t\t\t\tcase rStates.LOADING:\n\t\t\t\tcase rStates.DONE:\n\t\t\t\t\tself._onXHRProgress()\n\t\t\t\t\tbreak\n\t\t\t}\n\t\t}\n\t\t// Necessary for streaming in Firefox, since xhr.response is ONLY defined\n\t\t// in onprogress, not in onreadystatechange with xhr.readyState = 3\n\t\tif (self._mode === 'moz-chunked-arraybuffer') {\n\t\t\txhr.onprogress = function () {\n\t\t\t\tself._onXHRProgress()\n\t\t\t}\n\t\t}\n\n\t\txhr.onerror = function () {\n\t\t\tif (self._destroyed)\n\t\t\t\treturn\n\t\t\tself.emit('error', new Error('XHR error'))\n\t\t}\n\n\t\ttry {\n\t\t\txhr.send(body)\n\t\t} catch (err) {\n\t\t\tprocess.nextTick(function () {\n\t\t\t\tself.emit('error', err)\n\t\t\t})\n\t\t\treturn\n\t\t}\n\t}\n}\n\n/**\n * Checks if xhr.status is readable and non-zero, indicating no error.\n * Even though the spec says it should be available in readyState 3,\n * accessing it throws an exception in IE8\n */\nfunction statusValid (xhr) {\n\ttry {\n\t\tvar status = xhr.status\n\t\treturn (status !== null && status !== 0)\n\t} catch (e) {\n\t\treturn false\n\t}\n}\n\nClientRequest.prototype._onXHRProgress = function () {\n\tvar self = this\n\n\tif (!statusValid(self._xhr) || self._destroyed)\n\t\treturn\n\n\tif (!self._response)\n\t\tself._connect()\n\n\tself._response._onXHRProgress()\n}\n\nClientRequest.prototype._connect = function () {\n\tvar self = this\n\n\tif (self._destroyed)\n\t\treturn\n\n\tself._response = new IncomingMessage(self._xhr, self._fetchResponse, self._mode)\n\tself.emit('response', self._response)\n}\n\nClientRequest.prototype._write = function (chunk, encoding, cb) {\n\tvar self = this\n\n\tself._body.push(chunk)\n\tcb()\n}\n\nClientRequest.prototype.abort = ClientRequest.prototype.destroy = function () {\n\tvar self = this\n\tself._destroyed = true\n\tif (self._response)\n\t\tself._response._destroyed = true\n\tif (self._xhr)\n\t\tself._xhr.abort()\n\t// Currently, there isn't a way to truly abort a fetch.\n\t// If you like bikeshedding, see https://github.com/whatwg/fetch/issues/27\n}\n\nClientRequest.prototype.end = function (data, encoding, cb) {\n\tvar self = this\n\tif (typeof data === 'function') {\n\t\tcb = data\n\t\tdata = undefined\n\t}\n\n\tstream.Writable.prototype.end.call(self, data, encoding, cb)\n}\n\nClientRequest.prototype.flushHeaders = function () {}\nClientRequest.prototype.setTimeout = function () {}\nClientRequest.prototype.setNoDelay = function () {}\nClientRequest.prototype.setSocketKeepAlive = function () {}\n\n// Taken from http://www.w3.org/TR/XMLHttpRequest/#the-setrequestheader%28%29-method\nvar unsafeHeaders = [\n\t'accept-charset',\n\t'accept-encoding',\n\t'access-control-request-headers',\n\t'access-control-request-method',\n\t'connection',\n\t'content-length',\n\t'cookie',\n\t'cookie2',\n\t'date',\n\t'dnt',\n\t'expect',\n\t'host',\n\t'keep-alive',\n\t'origin',\n\t'referer',\n\t'te',\n\t'trailer',\n\t'transfer-encoding',\n\t'upgrade',\n\t'user-agent',\n\t'via'\n]\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1).Buffer, (function() { return this; }()), __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/stream-http/lib/request.js\n ** module id = 94\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/stream-http/lib/request.js?"); /***/ }, /* 95 */ -/***/ function(module, exports, __webpack_require__) { +/***/ function(module, exports) { - eval("/* WEBPACK VAR INJECTION */(function(process, Buffer, global) {var capability = __webpack_require__(93)\nvar inherits = __webpack_require__(94)\nvar stream = __webpack_require__(96)\n\nvar rStates = exports.readyStates = {\n\tUNSENT: 0,\n\tOPENED: 1,\n\tHEADERS_RECEIVED: 2,\n\tLOADING: 3,\n\tDONE: 4\n}\n\nvar IncomingMessage = exports.IncomingMessage = function (xhr, response, mode) {\n\tvar self = this\n\tstream.Readable.call(self)\n\n\tself._mode = mode\n\tself.headers = {}\n\tself.rawHeaders = []\n\tself.trailers = {}\n\tself.rawTrailers = []\n\n\t// Fake the 'close' event, but only once 'end' fires\n\tself.on('end', function () {\n\t\t// The nextTick is necessary to prevent the 'request' module from causing an infinite loop\n\t\tprocess.nextTick(function () {\n\t\t\tself.emit('close')\n\t\t})\n\t})\n\n\tif (mode === 'fetch') {\n\t\tself._fetchResponse = response\n\n\t\tself.statusCode = response.status\n\t\tself.statusMessage = response.statusText\n\t\t// backwards compatible version of for ( of ):\n\t\t// for (var ,_i,_it = [Symbol.iterator](); = (_i = _it.next()).value,!_i.done;)\n\t\tfor (var header, _i, _it = response.headers[Symbol.iterator](); header = (_i = _it.next()).value, !_i.done;) {\n\t\t\tself.headers[header[0].toLowerCase()] = header[1]\n\t\t\tself.rawHeaders.push(header[0], header[1])\n\t\t}\n\n\t\t// TODO: this doesn't respect backpressure. Once WritableStream is available, this can be fixed\n\t\tvar reader = response.body.getReader()\n\t\tfunction read () {\n\t\t\treader.read().then(function (result) {\n\t\t\t\tif (self._destroyed)\n\t\t\t\t\treturn\n\t\t\t\tif (result.done) {\n\t\t\t\t\tself.push(null)\n\t\t\t\t\treturn\n\t\t\t\t}\n\t\t\t\tself.push(new Buffer(result.value))\n\t\t\t\tread()\n\t\t\t})\n\t\t}\n\t\tread()\n\n\t} else {\n\t\tself._xhr = xhr\n\t\tself._pos = 0\n\n\t\tself.statusCode = xhr.status\n\t\tself.statusMessage = xhr.statusText\n\t\tvar headers = xhr.getAllResponseHeaders().split(/\\r?\\n/)\n\t\theaders.forEach(function (header) {\n\t\t\tvar matches = header.match(/^([^:]+):\\s*(.*)/)\n\t\t\tif (matches) {\n\t\t\t\tvar key = matches[1].toLowerCase()\n\t\t\t\tif (self.headers[key] !== undefined)\n\t\t\t\t\tself.headers[key] += ', ' + matches[2]\n\t\t\t\telse\n\t\t\t\t\tself.headers[key] = matches[2]\n\t\t\t\tself.rawHeaders.push(matches[1], matches[2])\n\t\t\t}\n\t\t})\n\n\t\tself._charset = 'x-user-defined'\n\t\tif (!capability.overrideMimeType) {\n\t\t\tvar mimeType = self.rawHeaders['mime-type']\n\t\t\tif (mimeType) {\n\t\t\t\tvar charsetMatch = mimeType.match(/;\\s*charset=([^;])(;|$)/)\n\t\t\t\tif (charsetMatch) {\n\t\t\t\t\tself._charset = charsetMatch[1].toLowerCase()\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!self._charset)\n\t\t\t\tself._charset = 'utf-8' // best guess\n\t\t}\n\t}\n}\n\ninherits(IncomingMessage, stream.Readable)\n\nIncomingMessage.prototype._read = function () {}\n\nIncomingMessage.prototype._onXHRProgress = function () {\n\tvar self = this\n\n\tvar xhr = self._xhr\n\n\tvar response = null\n\tswitch (self._mode) {\n\t\tcase 'text:vbarray': // For IE9\n\t\t\tif (xhr.readyState !== rStates.DONE)\n\t\t\t\tbreak\n\t\t\ttry {\n\t\t\t\t// This fails in IE8\n\t\t\t\tresponse = new global.VBArray(xhr.responseBody).toArray()\n\t\t\t} catch (e) {}\n\t\t\tif (response !== null) {\n\t\t\t\tself.push(new Buffer(response))\n\t\t\t\tbreak\n\t\t\t}\n\t\t\t// Falls through in IE8\t\n\t\tcase 'text':\n\t\t\ttry { // This will fail when readyState = 3 in IE9. Switch mode and wait for readyState = 4\n\t\t\t\tresponse = xhr.responseText\n\t\t\t} catch (e) {\n\t\t\t\tself._mode = 'text:vbarray'\n\t\t\t\tbreak\n\t\t\t}\n\t\t\tif (response.length > self._pos) {\n\t\t\t\tvar newData = response.substr(self._pos)\n\t\t\t\tif (self._charset === 'x-user-defined') {\n\t\t\t\t\tvar buffer = new Buffer(newData.length)\n\t\t\t\t\tfor (var i = 0; i < newData.length; i++)\n\t\t\t\t\t\tbuffer[i] = newData.charCodeAt(i) & 0xff\n\n\t\t\t\t\tself.push(buffer)\n\t\t\t\t} else {\n\t\t\t\t\tself.push(newData, self._charset)\n\t\t\t\t}\n\t\t\t\tself._pos = response.length\n\t\t\t}\n\t\t\tbreak\n\t\tcase 'arraybuffer':\n\t\t\tif (xhr.readyState !== rStates.DONE)\n\t\t\t\tbreak\n\t\t\tresponse = xhr.response\n\t\t\tself.push(new Buffer(new Uint8Array(response)))\n\t\t\tbreak\n\t\tcase 'moz-chunked-arraybuffer': // take whole\n\t\t\tresponse = xhr.response\n\t\t\tif (xhr.readyState !== rStates.LOADING || !response)\n\t\t\t\tbreak\n\t\t\tself.push(new Buffer(new Uint8Array(response)))\n\t\t\tbreak\n\t\tcase 'ms-stream':\n\t\t\tresponse = xhr.response\n\t\t\tif (xhr.readyState !== rStates.LOADING)\n\t\t\t\tbreak\n\t\t\tvar reader = new global.MSStreamReader()\n\t\t\treader.onprogress = function () {\n\t\t\t\tif (reader.result.byteLength > self._pos) {\n\t\t\t\t\tself.push(new Buffer(new Uint8Array(reader.result.slice(self._pos))))\n\t\t\t\t\tself._pos = reader.result.byteLength\n\t\t\t\t}\n\t\t\t}\n\t\t\treader.onload = function () {\n\t\t\t\tself.push(null)\n\t\t\t}\n\t\t\t// reader.onerror = ??? // TODO: this\n\t\t\treader.readAsArrayBuffer(response)\n\t\t\tbreak\n\t}\n\n\t// The ms-stream case handles end separately in reader.onload()\n\tif (self._xhr.readyState === rStates.DONE && self._mode !== 'ms-stream') {\n\t\tself.push(null)\n\t}\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(83), __webpack_require__(1).Buffer, (function() { return this; }())))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/stream-http/lib/response.js\n ** module id = 95\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/stream-http/lib/response.js?"); + eval("/* WEBPACK VAR INJECTION */(function(global) {exports.fetch = isFunction(global.fetch) && isFunction(global.ReadableByteStream)\n\nexports.blobConstructor = false\ntry {\n\tnew Blob([new ArrayBuffer(1)])\n\texports.blobConstructor = true\n} catch (e) {}\n\nvar xhr = new global.XMLHttpRequest()\n// If location.host is empty, e.g. if this page/worker was loaded\n// from a Blob, then use example.com to avoid an error\nxhr.open('GET', global.location.host ? '/' : 'https://example.com')\n\nfunction checkTypeSupport (type) {\n\ttry {\n\t\txhr.responseType = type\n\t\treturn xhr.responseType === type\n\t} catch (e) {}\n\treturn false\n}\n\n// For some strange reason, Safari 7.0 reports typeof global.ArrayBuffer === 'object'.\n// Safari 7.1 appears to have fixed this bug.\nvar haveArrayBuffer = typeof global.ArrayBuffer !== 'undefined'\nvar haveSlice = haveArrayBuffer && isFunction(global.ArrayBuffer.prototype.slice)\n\nexports.arraybuffer = haveArrayBuffer && checkTypeSupport('arraybuffer')\n// These next two tests unavoidably show warnings in Chrome. Since fetch will always\n// be used if it's available, just return false for these to avoid the warnings.\nexports.msstream = !exports.fetch && haveSlice && checkTypeSupport('ms-stream')\nexports.mozchunkedarraybuffer = !exports.fetch && haveArrayBuffer &&\n\tcheckTypeSupport('moz-chunked-arraybuffer')\nexports.overrideMimeType = isFunction(xhr.overrideMimeType)\nexports.vbArray = isFunction(global.VBArray)\n\nfunction isFunction (value) {\n return typeof value === 'function'\n}\n\nxhr = null // Help gc\n\n/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/stream-http/lib/capability.js\n ** module id = 95\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/stream-http/lib/capability.js?"); /***/ }, /* 96 */ -/***/ function(module, exports, __webpack_require__) { +/***/ function(module, exports) { - eval("// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nmodule.exports = Stream;\n\nvar EE = __webpack_require__(84).EventEmitter;\nvar inherits = __webpack_require__(97);\n\ninherits(Stream, EE);\nStream.Readable = __webpack_require__(98);\nStream.Writable = __webpack_require__(109);\nStream.Duplex = __webpack_require__(110);\nStream.Transform = __webpack_require__(111);\nStream.PassThrough = __webpack_require__(112);\n\n// Backwards-compat with node 0.4.x\nStream.Stream = Stream;\n\n\n\n// old-style streams. Note that the pipe method (the only relevant\n// part of this class) is overridden in the Readable class.\n\nfunction Stream() {\n EE.call(this);\n}\n\nStream.prototype.pipe = function(dest, options) {\n var source = this;\n\n function ondata(chunk) {\n if (dest.writable) {\n if (false === dest.write(chunk) && source.pause) {\n source.pause();\n }\n }\n }\n\n source.on('data', ondata);\n\n function ondrain() {\n if (source.readable && source.resume) {\n source.resume();\n }\n }\n\n dest.on('drain', ondrain);\n\n // If the 'end' option is not supplied, dest.end() will be called when\n // source gets the 'end' or 'close' events. Only dest.end() once.\n if (!dest._isStdio && (!options || options.end !== false)) {\n source.on('end', onend);\n source.on('close', onclose);\n }\n\n var didOnEnd = false;\n function onend() {\n if (didOnEnd) return;\n didOnEnd = true;\n\n dest.end();\n }\n\n\n function onclose() {\n if (didOnEnd) return;\n didOnEnd = true;\n\n if (typeof dest.destroy === 'function') dest.destroy();\n }\n\n // don't leave dangling pipes when there are errors.\n function onerror(er) {\n cleanup();\n if (EE.listenerCount(this, 'error') === 0) {\n throw er; // Unhandled stream error in pipe.\n }\n }\n\n source.on('error', onerror);\n dest.on('error', onerror);\n\n // remove all the event listeners that were added.\n function cleanup() {\n source.removeListener('data', ondata);\n dest.removeListener('drain', ondrain);\n\n source.removeListener('end', onend);\n source.removeListener('close', onclose);\n\n source.removeListener('error', onerror);\n dest.removeListener('error', onerror);\n\n source.removeListener('end', cleanup);\n source.removeListener('close', cleanup);\n\n dest.removeListener('close', cleanup);\n }\n\n source.on('end', cleanup);\n source.on('close', cleanup);\n\n dest.on('close', cleanup);\n\n dest.emit('pipe', source);\n\n // Allow for unix-like usage: A.pipe(B).pipe(C)\n return dest;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** (webpack)/~/node-libs-browser/~/stream-browserify/index.js\n ** module id = 96\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///(webpack)/~/node-libs-browser/~/stream-browserify/index.js?"); + eval("if (typeof Object.create === 'function') {\n // implementation from standard node.js 'util' module\n module.exports = function inherits(ctor, superCtor) {\n ctor.super_ = superCtor\n ctor.prototype = Object.create(superCtor.prototype, {\n constructor: {\n value: ctor,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n };\n} else {\n // old school shim for old browsers\n module.exports = function inherits(ctor, superCtor) {\n ctor.super_ = superCtor\n var TempCtor = function () {}\n TempCtor.prototype = superCtor.prototype\n ctor.prototype = new TempCtor()\n ctor.prototype.constructor = ctor\n }\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/inherits/inherits_browser.js\n ** module id = 96\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/inherits/inherits_browser.js?"); /***/ }, /* 97 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("if (typeof Object.create === 'function') {\n // implementation from standard node.js 'util' module\n module.exports = function inherits(ctor, superCtor) {\n ctor.super_ = superCtor\n ctor.prototype = Object.create(superCtor.prototype, {\n constructor: {\n value: ctor,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n };\n} else {\n // old school shim for old browsers\n module.exports = function inherits(ctor, superCtor) {\n ctor.super_ = superCtor\n var TempCtor = function () {}\n TempCtor.prototype = superCtor.prototype\n ctor.prototype = new TempCtor()\n ctor.prototype.constructor = ctor\n }\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** (webpack)/~/node-libs-browser/~/stream-browserify/~/inherits/inherits_browser.js\n ** module id = 97\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///(webpack)/~/node-libs-browser/~/stream-browserify/~/inherits/inherits_browser.js?"); + eval("/* WEBPACK VAR INJECTION */(function(process, Buffer, global) {var capability = __webpack_require__(95)\nvar inherits = __webpack_require__(96)\nvar stream = __webpack_require__(98)\n\nvar rStates = exports.readyStates = {\n\tUNSENT: 0,\n\tOPENED: 1,\n\tHEADERS_RECEIVED: 2,\n\tLOADING: 3,\n\tDONE: 4\n}\n\nvar IncomingMessage = exports.IncomingMessage = function (xhr, response, mode) {\n\tvar self = this\n\tstream.Readable.call(self)\n\n\tself._mode = mode\n\tself.headers = {}\n\tself.rawHeaders = []\n\tself.trailers = {}\n\tself.rawTrailers = []\n\n\t// Fake the 'close' event, but only once 'end' fires\n\tself.on('end', function () {\n\t\t// The nextTick is necessary to prevent the 'request' module from causing an infinite loop\n\t\tprocess.nextTick(function () {\n\t\t\tself.emit('close')\n\t\t})\n\t})\n\n\tif (mode === 'fetch') {\n\t\tself._fetchResponse = response\n\n\t\tself.statusCode = response.status\n\t\tself.statusMessage = response.statusText\n\t\t// backwards compatible version of for ( of ):\n\t\t// for (var ,_i,_it = [Symbol.iterator](); = (_i = _it.next()).value,!_i.done;)\n\t\tfor (var header, _i, _it = response.headers[Symbol.iterator](); header = (_i = _it.next()).value, !_i.done;) {\n\t\t\tself.headers[header[0].toLowerCase()] = header[1]\n\t\t\tself.rawHeaders.push(header[0], header[1])\n\t\t}\n\n\t\t// TODO: this doesn't respect backpressure. Once WritableStream is available, this can be fixed\n\t\tvar reader = response.body.getReader()\n\t\tfunction read () {\n\t\t\treader.read().then(function (result) {\n\t\t\t\tif (self._destroyed)\n\t\t\t\t\treturn\n\t\t\t\tif (result.done) {\n\t\t\t\t\tself.push(null)\n\t\t\t\t\treturn\n\t\t\t\t}\n\t\t\t\tself.push(new Buffer(result.value))\n\t\t\t\tread()\n\t\t\t})\n\t\t}\n\t\tread()\n\n\t} else {\n\t\tself._xhr = xhr\n\t\tself._pos = 0\n\n\t\tself.statusCode = xhr.status\n\t\tself.statusMessage = xhr.statusText\n\t\tvar headers = xhr.getAllResponseHeaders().split(/\\r?\\n/)\n\t\theaders.forEach(function (header) {\n\t\t\tvar matches = header.match(/^([^:]+):\\s*(.*)/)\n\t\t\tif (matches) {\n\t\t\t\tvar key = matches[1].toLowerCase()\n\t\t\t\tif (self.headers[key] !== undefined)\n\t\t\t\t\tself.headers[key] += ', ' + matches[2]\n\t\t\t\telse\n\t\t\t\t\tself.headers[key] = matches[2]\n\t\t\t\tself.rawHeaders.push(matches[1], matches[2])\n\t\t\t}\n\t\t})\n\n\t\tself._charset = 'x-user-defined'\n\t\tif (!capability.overrideMimeType) {\n\t\t\tvar mimeType = self.rawHeaders['mime-type']\n\t\t\tif (mimeType) {\n\t\t\t\tvar charsetMatch = mimeType.match(/;\\s*charset=([^;])(;|$)/)\n\t\t\t\tif (charsetMatch) {\n\t\t\t\t\tself._charset = charsetMatch[1].toLowerCase()\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!self._charset)\n\t\t\t\tself._charset = 'utf-8' // best guess\n\t\t}\n\t}\n}\n\ninherits(IncomingMessage, stream.Readable)\n\nIncomingMessage.prototype._read = function () {}\n\nIncomingMessage.prototype._onXHRProgress = function () {\n\tvar self = this\n\n\tvar xhr = self._xhr\n\n\tvar response = null\n\tswitch (self._mode) {\n\t\tcase 'text:vbarray': // For IE9\n\t\t\tif (xhr.readyState !== rStates.DONE)\n\t\t\t\tbreak\n\t\t\ttry {\n\t\t\t\t// This fails in IE8\n\t\t\t\tresponse = new global.VBArray(xhr.responseBody).toArray()\n\t\t\t} catch (e) {}\n\t\t\tif (response !== null) {\n\t\t\t\tself.push(new Buffer(response))\n\t\t\t\tbreak\n\t\t\t}\n\t\t\t// Falls through in IE8\t\n\t\tcase 'text':\n\t\t\ttry { // This will fail when readyState = 3 in IE9. Switch mode and wait for readyState = 4\n\t\t\t\tresponse = xhr.responseText\n\t\t\t} catch (e) {\n\t\t\t\tself._mode = 'text:vbarray'\n\t\t\t\tbreak\n\t\t\t}\n\t\t\tif (response.length > self._pos) {\n\t\t\t\tvar newData = response.substr(self._pos)\n\t\t\t\tif (self._charset === 'x-user-defined') {\n\t\t\t\t\tvar buffer = new Buffer(newData.length)\n\t\t\t\t\tfor (var i = 0; i < newData.length; i++)\n\t\t\t\t\t\tbuffer[i] = newData.charCodeAt(i) & 0xff\n\n\t\t\t\t\tself.push(buffer)\n\t\t\t\t} else {\n\t\t\t\t\tself.push(newData, self._charset)\n\t\t\t\t}\n\t\t\t\tself._pos = response.length\n\t\t\t}\n\t\t\tbreak\n\t\tcase 'arraybuffer':\n\t\t\tif (xhr.readyState !== rStates.DONE)\n\t\t\t\tbreak\n\t\t\tresponse = xhr.response\n\t\t\tself.push(new Buffer(new Uint8Array(response)))\n\t\t\tbreak\n\t\tcase 'moz-chunked-arraybuffer': // take whole\n\t\t\tresponse = xhr.response\n\t\t\tif (xhr.readyState !== rStates.LOADING || !response)\n\t\t\t\tbreak\n\t\t\tself.push(new Buffer(new Uint8Array(response)))\n\t\t\tbreak\n\t\tcase 'ms-stream':\n\t\t\tresponse = xhr.response\n\t\t\tif (xhr.readyState !== rStates.LOADING)\n\t\t\t\tbreak\n\t\t\tvar reader = new global.MSStreamReader()\n\t\t\treader.onprogress = function () {\n\t\t\t\tif (reader.result.byteLength > self._pos) {\n\t\t\t\t\tself.push(new Buffer(new Uint8Array(reader.result.slice(self._pos))))\n\t\t\t\t\tself._pos = reader.result.byteLength\n\t\t\t\t}\n\t\t\t}\n\t\t\treader.onload = function () {\n\t\t\t\tself.push(null)\n\t\t\t}\n\t\t\t// reader.onerror = ??? // TODO: this\n\t\t\treader.readAsArrayBuffer(response)\n\t\t\tbreak\n\t}\n\n\t// The ms-stream case handles end separately in reader.onload()\n\tif (self._xhr.readyState === rStates.DONE && self._mode !== 'ms-stream') {\n\t\tself.push(null)\n\t}\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85), __webpack_require__(1).Buffer, (function() { return this; }())))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/stream-http/lib/response.js\n ** module id = 97\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/stream-http/lib/response.js?"); /***/ }, /* 98 */ /***/ function(module, exports, __webpack_require__) { - eval("exports = module.exports = __webpack_require__(99);\nexports.Stream = __webpack_require__(96);\nexports.Readable = exports;\nexports.Writable = __webpack_require__(105);\nexports.Duplex = __webpack_require__(104);\nexports.Transform = __webpack_require__(107);\nexports.PassThrough = __webpack_require__(108);\n\n\n/*****************\n ** WEBPACK FOOTER\n ** (webpack)/~/node-libs-browser/~/readable-stream/readable.js\n ** module id = 98\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///(webpack)/~/node-libs-browser/~/readable-stream/readable.js?"); + eval("// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nmodule.exports = Stream;\n\nvar EE = __webpack_require__(86).EventEmitter;\nvar inherits = __webpack_require__(96);\n\ninherits(Stream, EE);\nStream.Readable = __webpack_require__(99);\nStream.Writable = __webpack_require__(109);\nStream.Duplex = __webpack_require__(110);\nStream.Transform = __webpack_require__(111);\nStream.PassThrough = __webpack_require__(112);\n\n// Backwards-compat with node 0.4.x\nStream.Stream = Stream;\n\n\n\n// old-style streams. Note that the pipe method (the only relevant\n// part of this class) is overridden in the Readable class.\n\nfunction Stream() {\n EE.call(this);\n}\n\nStream.prototype.pipe = function(dest, options) {\n var source = this;\n\n function ondata(chunk) {\n if (dest.writable) {\n if (false === dest.write(chunk) && source.pause) {\n source.pause();\n }\n }\n }\n\n source.on('data', ondata);\n\n function ondrain() {\n if (source.readable && source.resume) {\n source.resume();\n }\n }\n\n dest.on('drain', ondrain);\n\n // If the 'end' option is not supplied, dest.end() will be called when\n // source gets the 'end' or 'close' events. Only dest.end() once.\n if (!dest._isStdio && (!options || options.end !== false)) {\n source.on('end', onend);\n source.on('close', onclose);\n }\n\n var didOnEnd = false;\n function onend() {\n if (didOnEnd) return;\n didOnEnd = true;\n\n dest.end();\n }\n\n\n function onclose() {\n if (didOnEnd) return;\n didOnEnd = true;\n\n if (typeof dest.destroy === 'function') dest.destroy();\n }\n\n // don't leave dangling pipes when there are errors.\n function onerror(er) {\n cleanup();\n if (EE.listenerCount(this, 'error') === 0) {\n throw er; // Unhandled stream error in pipe.\n }\n }\n\n source.on('error', onerror);\n dest.on('error', onerror);\n\n // remove all the event listeners that were added.\n function cleanup() {\n source.removeListener('data', ondata);\n dest.removeListener('drain', ondrain);\n\n source.removeListener('end', onend);\n source.removeListener('close', onclose);\n\n source.removeListener('error', onerror);\n dest.removeListener('error', onerror);\n\n source.removeListener('end', cleanup);\n source.removeListener('close', cleanup);\n\n dest.removeListener('close', cleanup);\n }\n\n source.on('end', cleanup);\n source.on('close', cleanup);\n\n dest.on('close', cleanup);\n\n dest.emit('pipe', source);\n\n // Allow for unix-like usage: A.pipe(B).pipe(C)\n return dest;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/stream-browserify/index.js\n ** module id = 98\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/stream-browserify/index.js?"); /***/ }, /* 99 */ /***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(process) {// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nmodule.exports = Readable;\n\n/**/\nvar isArray = __webpack_require__(100);\n/**/\n\n\n/**/\nvar Buffer = __webpack_require__(1).Buffer;\n/**/\n\nReadable.ReadableState = ReadableState;\n\nvar EE = __webpack_require__(84).EventEmitter;\n\n/**/\nif (!EE.listenerCount) EE.listenerCount = function(emitter, type) {\n return emitter.listeners(type).length;\n};\n/**/\n\nvar Stream = __webpack_require__(96);\n\n/**/\nvar util = __webpack_require__(101);\nutil.inherits = __webpack_require__(102);\n/**/\n\nvar StringDecoder;\n\n\n/**/\nvar debug = __webpack_require__(103);\nif (debug && debug.debuglog) {\n debug = debug.debuglog('stream');\n} else {\n debug = function () {};\n}\n/**/\n\n\nutil.inherits(Readable, Stream);\n\nfunction ReadableState(options, stream) {\n var Duplex = __webpack_require__(104);\n\n options = options || {};\n\n // the point at which it stops calling _read() to fill the buffer\n // Note: 0 is a valid value, means \"don't call _read preemptively ever\"\n var hwm = options.highWaterMark;\n var defaultHwm = options.objectMode ? 16 : 16 * 1024;\n this.highWaterMark = (hwm || hwm === 0) ? hwm : defaultHwm;\n\n // cast to ints.\n this.highWaterMark = ~~this.highWaterMark;\n\n this.buffer = [];\n this.length = 0;\n this.pipes = null;\n this.pipesCount = 0;\n this.flowing = null;\n this.ended = false;\n this.endEmitted = false;\n this.reading = false;\n\n // a flag to be able to tell if the onwrite cb is called immediately,\n // or on a later tick. We set this to true at first, because any\n // actions that shouldn't happen until \"later\" should generally also\n // not happen before the first write call.\n this.sync = true;\n\n // whenever we return null, then we set a flag to say\n // that we're awaiting a 'readable' event emission.\n this.needReadable = false;\n this.emittedReadable = false;\n this.readableListening = false;\n\n\n // object stream flag. Used to make read(n) ignore n and to\n // make all the buffer merging and length checks go away\n this.objectMode = !!options.objectMode;\n\n if (stream instanceof Duplex)\n this.objectMode = this.objectMode || !!options.readableObjectMode;\n\n // Crypto is kind of old and crusty. Historically, its default string\n // encoding is 'binary' so we have to make this configurable.\n // Everything else in the universe uses 'utf8', though.\n this.defaultEncoding = options.defaultEncoding || 'utf8';\n\n // when piping, we only care about 'readable' events that happen\n // after read()ing all the bytes and not getting any pushback.\n this.ranOut = false;\n\n // the number of writers that are awaiting a drain event in .pipe()s\n this.awaitDrain = 0;\n\n // if true, a maybeReadMore has been scheduled\n this.readingMore = false;\n\n this.decoder = null;\n this.encoding = null;\n if (options.encoding) {\n if (!StringDecoder)\n StringDecoder = __webpack_require__(106).StringDecoder;\n this.decoder = new StringDecoder(options.encoding);\n this.encoding = options.encoding;\n }\n}\n\nfunction Readable(options) {\n var Duplex = __webpack_require__(104);\n\n if (!(this instanceof Readable))\n return new Readable(options);\n\n this._readableState = new ReadableState(options, this);\n\n // legacy\n this.readable = true;\n\n Stream.call(this);\n}\n\n// Manually shove something into the read() buffer.\n// This returns true if the highWaterMark has not been hit yet,\n// similar to how Writable.write() returns true if you should\n// write() some more.\nReadable.prototype.push = function(chunk, encoding) {\n var state = this._readableState;\n\n if (util.isString(chunk) && !state.objectMode) {\n encoding = encoding || state.defaultEncoding;\n if (encoding !== state.encoding) {\n chunk = new Buffer(chunk, encoding);\n encoding = '';\n }\n }\n\n return readableAddChunk(this, state, chunk, encoding, false);\n};\n\n// Unshift should *always* be something directly out of read()\nReadable.prototype.unshift = function(chunk) {\n var state = this._readableState;\n return readableAddChunk(this, state, chunk, '', true);\n};\n\nfunction readableAddChunk(stream, state, chunk, encoding, addToFront) {\n var er = chunkInvalid(state, chunk);\n if (er) {\n stream.emit('error', er);\n } else if (util.isNullOrUndefined(chunk)) {\n state.reading = false;\n if (!state.ended)\n onEofChunk(stream, state);\n } else if (state.objectMode || chunk && chunk.length > 0) {\n if (state.ended && !addToFront) {\n var e = new Error('stream.push() after EOF');\n stream.emit('error', e);\n } else if (state.endEmitted && addToFront) {\n var e = new Error('stream.unshift() after end event');\n stream.emit('error', e);\n } else {\n if (state.decoder && !addToFront && !encoding)\n chunk = state.decoder.write(chunk);\n\n if (!addToFront)\n state.reading = false;\n\n // if we want the data now, just emit it.\n if (state.flowing && state.length === 0 && !state.sync) {\n stream.emit('data', chunk);\n stream.read(0);\n } else {\n // update the buffer info.\n state.length += state.objectMode ? 1 : chunk.length;\n if (addToFront)\n state.buffer.unshift(chunk);\n else\n state.buffer.push(chunk);\n\n if (state.needReadable)\n emitReadable(stream);\n }\n\n maybeReadMore(stream, state);\n }\n } else if (!addToFront) {\n state.reading = false;\n }\n\n return needMoreData(state);\n}\n\n\n\n// if it's past the high water mark, we can push in some more.\n// Also, if we have no data yet, we can stand some\n// more bytes. This is to work around cases where hwm=0,\n// such as the repl. Also, if the push() triggered a\n// readable event, and the user called read(largeNumber) such that\n// needReadable was set, then we ought to push more, so that another\n// 'readable' event will be triggered.\nfunction needMoreData(state) {\n return !state.ended &&\n (state.needReadable ||\n state.length < state.highWaterMark ||\n state.length === 0);\n}\n\n// backwards compatibility.\nReadable.prototype.setEncoding = function(enc) {\n if (!StringDecoder)\n StringDecoder = __webpack_require__(106).StringDecoder;\n this._readableState.decoder = new StringDecoder(enc);\n this._readableState.encoding = enc;\n return this;\n};\n\n// Don't raise the hwm > 128MB\nvar MAX_HWM = 0x800000;\nfunction roundUpToNextPowerOf2(n) {\n if (n >= MAX_HWM) {\n n = MAX_HWM;\n } else {\n // Get the next highest power of 2\n n--;\n for (var p = 1; p < 32; p <<= 1) n |= n >> p;\n n++;\n }\n return n;\n}\n\nfunction howMuchToRead(n, state) {\n if (state.length === 0 && state.ended)\n return 0;\n\n if (state.objectMode)\n return n === 0 ? 0 : 1;\n\n if (isNaN(n) || util.isNull(n)) {\n // only flow one buffer at a time\n if (state.flowing && state.buffer.length)\n return state.buffer[0].length;\n else\n return state.length;\n }\n\n if (n <= 0)\n return 0;\n\n // If we're asking for more than the target buffer level,\n // then raise the water mark. Bump up to the next highest\n // power of 2, to prevent increasing it excessively in tiny\n // amounts.\n if (n > state.highWaterMark)\n state.highWaterMark = roundUpToNextPowerOf2(n);\n\n // don't have that much. return null, unless we've ended.\n if (n > state.length) {\n if (!state.ended) {\n state.needReadable = true;\n return 0;\n } else\n return state.length;\n }\n\n return n;\n}\n\n// you can override either this method, or the async _read(n) below.\nReadable.prototype.read = function(n) {\n debug('read', n);\n var state = this._readableState;\n var nOrig = n;\n\n if (!util.isNumber(n) || n > 0)\n state.emittedReadable = false;\n\n // if we're doing read(0) to trigger a readable event, but we\n // already have a bunch of data in the buffer, then just trigger\n // the 'readable' event and move on.\n if (n === 0 &&\n state.needReadable &&\n (state.length >= state.highWaterMark || state.ended)) {\n debug('read: emitReadable', state.length, state.ended);\n if (state.length === 0 && state.ended)\n endReadable(this);\n else\n emitReadable(this);\n return null;\n }\n\n n = howMuchToRead(n, state);\n\n // if we've ended, and we're now clear, then finish it up.\n if (n === 0 && state.ended) {\n if (state.length === 0)\n endReadable(this);\n return null;\n }\n\n // All the actual chunk generation logic needs to be\n // *below* the call to _read. The reason is that in certain\n // synthetic stream cases, such as passthrough streams, _read\n // may be a completely synchronous operation which may change\n // the state of the read buffer, providing enough data when\n // before there was *not* enough.\n //\n // So, the steps are:\n // 1. Figure out what the state of things will be after we do\n // a read from the buffer.\n //\n // 2. If that resulting state will trigger a _read, then call _read.\n // Note that this may be asynchronous, or synchronous. Yes, it is\n // deeply ugly to write APIs this way, but that still doesn't mean\n // that the Readable class should behave improperly, as streams are\n // designed to be sync/async agnostic.\n // Take note if the _read call is sync or async (ie, if the read call\n // has returned yet), so that we know whether or not it's safe to emit\n // 'readable' etc.\n //\n // 3. Actually pull the requested chunks out of the buffer and return.\n\n // if we need a readable event, then we need to do some reading.\n var doRead = state.needReadable;\n debug('need readable', doRead);\n\n // if we currently have less than the highWaterMark, then also read some\n if (state.length === 0 || state.length - n < state.highWaterMark) {\n doRead = true;\n debug('length less than watermark', doRead);\n }\n\n // however, if we've ended, then there's no point, and if we're already\n // reading, then it's unnecessary.\n if (state.ended || state.reading) {\n doRead = false;\n debug('reading or ended', doRead);\n }\n\n if (doRead) {\n debug('do read');\n state.reading = true;\n state.sync = true;\n // if the length is currently zero, then we *need* a readable event.\n if (state.length === 0)\n state.needReadable = true;\n // call internal read method\n this._read(state.highWaterMark);\n state.sync = false;\n }\n\n // If _read pushed data synchronously, then `reading` will be false,\n // and we need to re-evaluate how much data we can return to the user.\n if (doRead && !state.reading)\n n = howMuchToRead(nOrig, state);\n\n var ret;\n if (n > 0)\n ret = fromList(n, state);\n else\n ret = null;\n\n if (util.isNull(ret)) {\n state.needReadable = true;\n n = 0;\n }\n\n state.length -= n;\n\n // If we have nothing in the buffer, then we want to know\n // as soon as we *do* get something into the buffer.\n if (state.length === 0 && !state.ended)\n state.needReadable = true;\n\n // If we tried to read() past the EOF, then emit end on the next tick.\n if (nOrig !== n && state.ended && state.length === 0)\n endReadable(this);\n\n if (!util.isNull(ret))\n this.emit('data', ret);\n\n return ret;\n};\n\nfunction chunkInvalid(state, chunk) {\n var er = null;\n if (!util.isBuffer(chunk) &&\n !util.isString(chunk) &&\n !util.isNullOrUndefined(chunk) &&\n !state.objectMode) {\n er = new TypeError('Invalid non-string/buffer chunk');\n }\n return er;\n}\n\n\nfunction onEofChunk(stream, state) {\n if (state.decoder && !state.ended) {\n var chunk = state.decoder.end();\n if (chunk && chunk.length) {\n state.buffer.push(chunk);\n state.length += state.objectMode ? 1 : chunk.length;\n }\n }\n state.ended = true;\n\n // emit 'readable' now to make sure it gets picked up.\n emitReadable(stream);\n}\n\n// Don't emit readable right away in sync mode, because this can trigger\n// another read() call => stack overflow. This way, it might trigger\n// a nextTick recursion warning, but that's not so bad.\nfunction emitReadable(stream) {\n var state = stream._readableState;\n state.needReadable = false;\n if (!state.emittedReadable) {\n debug('emitReadable', state.flowing);\n state.emittedReadable = true;\n if (state.sync)\n process.nextTick(function() {\n emitReadable_(stream);\n });\n else\n emitReadable_(stream);\n }\n}\n\nfunction emitReadable_(stream) {\n debug('emit readable');\n stream.emit('readable');\n flow(stream);\n}\n\n\n// at this point, the user has presumably seen the 'readable' event,\n// and called read() to consume some data. that may have triggered\n// in turn another _read(n) call, in which case reading = true if\n// it's in progress.\n// However, if we're not ended, or reading, and the length < hwm,\n// then go ahead and try to read some more preemptively.\nfunction maybeReadMore(stream, state) {\n if (!state.readingMore) {\n state.readingMore = true;\n process.nextTick(function() {\n maybeReadMore_(stream, state);\n });\n }\n}\n\nfunction maybeReadMore_(stream, state) {\n var len = state.length;\n while (!state.reading && !state.flowing && !state.ended &&\n state.length < state.highWaterMark) {\n debug('maybeReadMore read 0');\n stream.read(0);\n if (len === state.length)\n // didn't get any data, stop spinning.\n break;\n else\n len = state.length;\n }\n state.readingMore = false;\n}\n\n// abstract method. to be overridden in specific implementation classes.\n// call cb(er, data) where data is <= n in length.\n// for virtual (non-string, non-buffer) streams, \"length\" is somewhat\n// arbitrary, and perhaps not very meaningful.\nReadable.prototype._read = function(n) {\n this.emit('error', new Error('not implemented'));\n};\n\nReadable.prototype.pipe = function(dest, pipeOpts) {\n var src = this;\n var state = this._readableState;\n\n switch (state.pipesCount) {\n case 0:\n state.pipes = dest;\n break;\n case 1:\n state.pipes = [state.pipes, dest];\n break;\n default:\n state.pipes.push(dest);\n break;\n }\n state.pipesCount += 1;\n debug('pipe count=%d opts=%j', state.pipesCount, pipeOpts);\n\n var doEnd = (!pipeOpts || pipeOpts.end !== false) &&\n dest !== process.stdout &&\n dest !== process.stderr;\n\n var endFn = doEnd ? onend : cleanup;\n if (state.endEmitted)\n process.nextTick(endFn);\n else\n src.once('end', endFn);\n\n dest.on('unpipe', onunpipe);\n function onunpipe(readable) {\n debug('onunpipe');\n if (readable === src) {\n cleanup();\n }\n }\n\n function onend() {\n debug('onend');\n dest.end();\n }\n\n // when the dest drains, it reduces the awaitDrain counter\n // on the source. This would be more elegant with a .once()\n // handler in flow(), but adding and removing repeatedly is\n // too slow.\n var ondrain = pipeOnDrain(src);\n dest.on('drain', ondrain);\n\n function cleanup() {\n debug('cleanup');\n // cleanup event handlers once the pipe is broken\n dest.removeListener('close', onclose);\n dest.removeListener('finish', onfinish);\n dest.removeListener('drain', ondrain);\n dest.removeListener('error', onerror);\n dest.removeListener('unpipe', onunpipe);\n src.removeListener('end', onend);\n src.removeListener('end', cleanup);\n src.removeListener('data', ondata);\n\n // if the reader is waiting for a drain event from this\n // specific writer, then it would cause it to never start\n // flowing again.\n // So, if this is awaiting a drain, then we just call it now.\n // If we don't know, then assume that we are waiting for one.\n if (state.awaitDrain &&\n (!dest._writableState || dest._writableState.needDrain))\n ondrain();\n }\n\n src.on('data', ondata);\n function ondata(chunk) {\n debug('ondata');\n var ret = dest.write(chunk);\n if (false === ret) {\n debug('false write response, pause',\n src._readableState.awaitDrain);\n src._readableState.awaitDrain++;\n src.pause();\n }\n }\n\n // if the dest has an error, then stop piping into it.\n // however, don't suppress the throwing behavior for this.\n function onerror(er) {\n debug('onerror', er);\n unpipe();\n dest.removeListener('error', onerror);\n if (EE.listenerCount(dest, 'error') === 0)\n dest.emit('error', er);\n }\n // This is a brutally ugly hack to make sure that our error handler\n // is attached before any userland ones. NEVER DO THIS.\n if (!dest._events || !dest._events.error)\n dest.on('error', onerror);\n else if (isArray(dest._events.error))\n dest._events.error.unshift(onerror);\n else\n dest._events.error = [onerror, dest._events.error];\n\n\n\n // Both close and finish should trigger unpipe, but only once.\n function onclose() {\n dest.removeListener('finish', onfinish);\n unpipe();\n }\n dest.once('close', onclose);\n function onfinish() {\n debug('onfinish');\n dest.removeListener('close', onclose);\n unpipe();\n }\n dest.once('finish', onfinish);\n\n function unpipe() {\n debug('unpipe');\n src.unpipe(dest);\n }\n\n // tell the dest that it's being piped to\n dest.emit('pipe', src);\n\n // start the flow if it hasn't been started already.\n if (!state.flowing) {\n debug('pipe resume');\n src.resume();\n }\n\n return dest;\n};\n\nfunction pipeOnDrain(src) {\n return function() {\n var state = src._readableState;\n debug('pipeOnDrain', state.awaitDrain);\n if (state.awaitDrain)\n state.awaitDrain--;\n if (state.awaitDrain === 0 && EE.listenerCount(src, 'data')) {\n state.flowing = true;\n flow(src);\n }\n };\n}\n\n\nReadable.prototype.unpipe = function(dest) {\n var state = this._readableState;\n\n // if we're not piping anywhere, then do nothing.\n if (state.pipesCount === 0)\n return this;\n\n // just one destination. most common case.\n if (state.pipesCount === 1) {\n // passed in one, but it's not the right one.\n if (dest && dest !== state.pipes)\n return this;\n\n if (!dest)\n dest = state.pipes;\n\n // got a match.\n state.pipes = null;\n state.pipesCount = 0;\n state.flowing = false;\n if (dest)\n dest.emit('unpipe', this);\n return this;\n }\n\n // slow case. multiple pipe destinations.\n\n if (!dest) {\n // remove all.\n var dests = state.pipes;\n var len = state.pipesCount;\n state.pipes = null;\n state.pipesCount = 0;\n state.flowing = false;\n\n for (var i = 0; i < len; i++)\n dests[i].emit('unpipe', this);\n return this;\n }\n\n // try to find the right one.\n var i = indexOf(state.pipes, dest);\n if (i === -1)\n return this;\n\n state.pipes.splice(i, 1);\n state.pipesCount -= 1;\n if (state.pipesCount === 1)\n state.pipes = state.pipes[0];\n\n dest.emit('unpipe', this);\n\n return this;\n};\n\n// set up data events if they are asked for\n// Ensure readable listeners eventually get something\nReadable.prototype.on = function(ev, fn) {\n var res = Stream.prototype.on.call(this, ev, fn);\n\n // If listening to data, and it has not explicitly been paused,\n // then call resume to start the flow of data on the next tick.\n if (ev === 'data' && false !== this._readableState.flowing) {\n this.resume();\n }\n\n if (ev === 'readable' && this.readable) {\n var state = this._readableState;\n if (!state.readableListening) {\n state.readableListening = true;\n state.emittedReadable = false;\n state.needReadable = true;\n if (!state.reading) {\n var self = this;\n process.nextTick(function() {\n debug('readable nexttick read 0');\n self.read(0);\n });\n } else if (state.length) {\n emitReadable(this, state);\n }\n }\n }\n\n return res;\n};\nReadable.prototype.addListener = Readable.prototype.on;\n\n// pause() and resume() are remnants of the legacy readable stream API\n// If the user uses them, then switch into old mode.\nReadable.prototype.resume = function() {\n var state = this._readableState;\n if (!state.flowing) {\n debug('resume');\n state.flowing = true;\n if (!state.reading) {\n debug('resume read 0');\n this.read(0);\n }\n resume(this, state);\n }\n return this;\n};\n\nfunction resume(stream, state) {\n if (!state.resumeScheduled) {\n state.resumeScheduled = true;\n process.nextTick(function() {\n resume_(stream, state);\n });\n }\n}\n\nfunction resume_(stream, state) {\n state.resumeScheduled = false;\n stream.emit('resume');\n flow(stream);\n if (state.flowing && !state.reading)\n stream.read(0);\n}\n\nReadable.prototype.pause = function() {\n debug('call pause flowing=%j', this._readableState.flowing);\n if (false !== this._readableState.flowing) {\n debug('pause');\n this._readableState.flowing = false;\n this.emit('pause');\n }\n return this;\n};\n\nfunction flow(stream) {\n var state = stream._readableState;\n debug('flow', state.flowing);\n if (state.flowing) {\n do {\n var chunk = stream.read();\n } while (null !== chunk && state.flowing);\n }\n}\n\n// wrap an old-style stream as the async data source.\n// This is *not* part of the readable stream interface.\n// It is an ugly unfortunate mess of history.\nReadable.prototype.wrap = function(stream) {\n var state = this._readableState;\n var paused = false;\n\n var self = this;\n stream.on('end', function() {\n debug('wrapped end');\n if (state.decoder && !state.ended) {\n var chunk = state.decoder.end();\n if (chunk && chunk.length)\n self.push(chunk);\n }\n\n self.push(null);\n });\n\n stream.on('data', function(chunk) {\n debug('wrapped data');\n if (state.decoder)\n chunk = state.decoder.write(chunk);\n if (!chunk || !state.objectMode && !chunk.length)\n return;\n\n var ret = self.push(chunk);\n if (!ret) {\n paused = true;\n stream.pause();\n }\n });\n\n // proxy all the other methods.\n // important when wrapping filters and duplexes.\n for (var i in stream) {\n if (util.isFunction(stream[i]) && util.isUndefined(this[i])) {\n this[i] = function(method) { return function() {\n return stream[method].apply(stream, arguments);\n }}(i);\n }\n }\n\n // proxy certain important events.\n var events = ['error', 'close', 'destroy', 'pause', 'resume'];\n forEach(events, function(ev) {\n stream.on(ev, self.emit.bind(self, ev));\n });\n\n // when we try to consume some more bytes, simply unpause the\n // underlying stream.\n self._read = function(n) {\n debug('wrapped _read', n);\n if (paused) {\n paused = false;\n stream.resume();\n }\n };\n\n return self;\n};\n\n\n\n// exposed for testing purposes only.\nReadable._fromList = fromList;\n\n// Pluck off n bytes from an array of buffers.\n// Length is the combined lengths of all the buffers in the list.\nfunction fromList(n, state) {\n var list = state.buffer;\n var length = state.length;\n var stringMode = !!state.decoder;\n var objectMode = !!state.objectMode;\n var ret;\n\n // nothing in the list, definitely empty.\n if (list.length === 0)\n return null;\n\n if (length === 0)\n ret = null;\n else if (objectMode)\n ret = list.shift();\n else if (!n || n >= length) {\n // read it all, truncate the array.\n if (stringMode)\n ret = list.join('');\n else\n ret = Buffer.concat(list, length);\n list.length = 0;\n } else {\n // read just some of it.\n if (n < list[0].length) {\n // just take a part of the first list item.\n // slice is the same for buffers and strings.\n var buf = list[0];\n ret = buf.slice(0, n);\n list[0] = buf.slice(n);\n } else if (n === list[0].length) {\n // first list is a perfect match\n ret = list.shift();\n } else {\n // complex case.\n // we have enough to cover it, but it spans past the first buffer.\n if (stringMode)\n ret = '';\n else\n ret = new Buffer(n);\n\n var c = 0;\n for (var i = 0, l = list.length; i < l && c < n; i++) {\n var buf = list[0];\n var cpy = Math.min(n - c, buf.length);\n\n if (stringMode)\n ret += buf.slice(0, cpy);\n else\n buf.copy(ret, c, 0, cpy);\n\n if (cpy < buf.length)\n list[0] = buf.slice(cpy);\n else\n list.shift();\n\n c += cpy;\n }\n }\n }\n\n return ret;\n}\n\nfunction endReadable(stream) {\n var state = stream._readableState;\n\n // If we get here before consuming all the bytes, then that is a\n // bug in node. Should never happen.\n if (state.length > 0)\n throw new Error('endReadable called on non-empty stream');\n\n if (!state.endEmitted) {\n state.ended = true;\n process.nextTick(function() {\n // Check that we didn't get one last unshift.\n if (!state.endEmitted && state.length === 0) {\n state.endEmitted = true;\n stream.readable = false;\n stream.emit('end');\n }\n });\n }\n}\n\nfunction forEach (xs, f) {\n for (var i = 0, l = xs.length; i < l; i++) {\n f(xs[i], i);\n }\n}\n\nfunction indexOf (xs, x) {\n for (var i = 0, l = xs.length; i < l; i++) {\n if (xs[i] === x) return i;\n }\n return -1;\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(83)))\n\n/*****************\n ** WEBPACK FOOTER\n ** (webpack)/~/node-libs-browser/~/readable-stream/lib/_stream_readable.js\n ** module id = 99\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///(webpack)/~/node-libs-browser/~/readable-stream/lib/_stream_readable.js?"); + eval("exports = module.exports = __webpack_require__(100);\nexports.Stream = __webpack_require__(98);\nexports.Readable = exports;\nexports.Writable = __webpack_require__(105);\nexports.Duplex = __webpack_require__(104);\nexports.Transform = __webpack_require__(107);\nexports.PassThrough = __webpack_require__(108);\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/stream-browserify/~/readable-stream/readable.js\n ** module id = 99\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/stream-browserify/~/readable-stream/readable.js?"); /***/ }, /* 100 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("module.exports = Array.isArray || function (arr) {\n return Object.prototype.toString.call(arr) == '[object Array]';\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** (webpack)/~/node-libs-browser/~/readable-stream/~/isarray/index.js\n ** module id = 100\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///(webpack)/~/node-libs-browser/~/readable-stream/~/isarray/index.js?"); + eval("/* WEBPACK VAR INJECTION */(function(process) {// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nmodule.exports = Readable;\n\n/**/\nvar isArray = __webpack_require__(101);\n/**/\n\n\n/**/\nvar Buffer = __webpack_require__(1).Buffer;\n/**/\n\nReadable.ReadableState = ReadableState;\n\nvar EE = __webpack_require__(86).EventEmitter;\n\n/**/\nif (!EE.listenerCount) EE.listenerCount = function(emitter, type) {\n return emitter.listeners(type).length;\n};\n/**/\n\nvar Stream = __webpack_require__(98);\n\n/**/\nvar util = __webpack_require__(102);\nutil.inherits = __webpack_require__(96);\n/**/\n\nvar StringDecoder;\n\n\n/**/\nvar debug = __webpack_require__(103);\nif (debug && debug.debuglog) {\n debug = debug.debuglog('stream');\n} else {\n debug = function () {};\n}\n/**/\n\n\nutil.inherits(Readable, Stream);\n\nfunction ReadableState(options, stream) {\n var Duplex = __webpack_require__(104);\n\n options = options || {};\n\n // the point at which it stops calling _read() to fill the buffer\n // Note: 0 is a valid value, means \"don't call _read preemptively ever\"\n var hwm = options.highWaterMark;\n var defaultHwm = options.objectMode ? 16 : 16 * 1024;\n this.highWaterMark = (hwm || hwm === 0) ? hwm : defaultHwm;\n\n // cast to ints.\n this.highWaterMark = ~~this.highWaterMark;\n\n this.buffer = [];\n this.length = 0;\n this.pipes = null;\n this.pipesCount = 0;\n this.flowing = null;\n this.ended = false;\n this.endEmitted = false;\n this.reading = false;\n\n // a flag to be able to tell if the onwrite cb is called immediately,\n // or on a later tick. We set this to true at first, because any\n // actions that shouldn't happen until \"later\" should generally also\n // not happen before the first write call.\n this.sync = true;\n\n // whenever we return null, then we set a flag to say\n // that we're awaiting a 'readable' event emission.\n this.needReadable = false;\n this.emittedReadable = false;\n this.readableListening = false;\n\n\n // object stream flag. Used to make read(n) ignore n and to\n // make all the buffer merging and length checks go away\n this.objectMode = !!options.objectMode;\n\n if (stream instanceof Duplex)\n this.objectMode = this.objectMode || !!options.readableObjectMode;\n\n // Crypto is kind of old and crusty. Historically, its default string\n // encoding is 'binary' so we have to make this configurable.\n // Everything else in the universe uses 'utf8', though.\n this.defaultEncoding = options.defaultEncoding || 'utf8';\n\n // when piping, we only care about 'readable' events that happen\n // after read()ing all the bytes and not getting any pushback.\n this.ranOut = false;\n\n // the number of writers that are awaiting a drain event in .pipe()s\n this.awaitDrain = 0;\n\n // if true, a maybeReadMore has been scheduled\n this.readingMore = false;\n\n this.decoder = null;\n this.encoding = null;\n if (options.encoding) {\n if (!StringDecoder)\n StringDecoder = __webpack_require__(106).StringDecoder;\n this.decoder = new StringDecoder(options.encoding);\n this.encoding = options.encoding;\n }\n}\n\nfunction Readable(options) {\n var Duplex = __webpack_require__(104);\n\n if (!(this instanceof Readable))\n return new Readable(options);\n\n this._readableState = new ReadableState(options, this);\n\n // legacy\n this.readable = true;\n\n Stream.call(this);\n}\n\n// Manually shove something into the read() buffer.\n// This returns true if the highWaterMark has not been hit yet,\n// similar to how Writable.write() returns true if you should\n// write() some more.\nReadable.prototype.push = function(chunk, encoding) {\n var state = this._readableState;\n\n if (util.isString(chunk) && !state.objectMode) {\n encoding = encoding || state.defaultEncoding;\n if (encoding !== state.encoding) {\n chunk = new Buffer(chunk, encoding);\n encoding = '';\n }\n }\n\n return readableAddChunk(this, state, chunk, encoding, false);\n};\n\n// Unshift should *always* be something directly out of read()\nReadable.prototype.unshift = function(chunk) {\n var state = this._readableState;\n return readableAddChunk(this, state, chunk, '', true);\n};\n\nfunction readableAddChunk(stream, state, chunk, encoding, addToFront) {\n var er = chunkInvalid(state, chunk);\n if (er) {\n stream.emit('error', er);\n } else if (util.isNullOrUndefined(chunk)) {\n state.reading = false;\n if (!state.ended)\n onEofChunk(stream, state);\n } else if (state.objectMode || chunk && chunk.length > 0) {\n if (state.ended && !addToFront) {\n var e = new Error('stream.push() after EOF');\n stream.emit('error', e);\n } else if (state.endEmitted && addToFront) {\n var e = new Error('stream.unshift() after end event');\n stream.emit('error', e);\n } else {\n if (state.decoder && !addToFront && !encoding)\n chunk = state.decoder.write(chunk);\n\n if (!addToFront)\n state.reading = false;\n\n // if we want the data now, just emit it.\n if (state.flowing && state.length === 0 && !state.sync) {\n stream.emit('data', chunk);\n stream.read(0);\n } else {\n // update the buffer info.\n state.length += state.objectMode ? 1 : chunk.length;\n if (addToFront)\n state.buffer.unshift(chunk);\n else\n state.buffer.push(chunk);\n\n if (state.needReadable)\n emitReadable(stream);\n }\n\n maybeReadMore(stream, state);\n }\n } else if (!addToFront) {\n state.reading = false;\n }\n\n return needMoreData(state);\n}\n\n\n\n// if it's past the high water mark, we can push in some more.\n// Also, if we have no data yet, we can stand some\n// more bytes. This is to work around cases where hwm=0,\n// such as the repl. Also, if the push() triggered a\n// readable event, and the user called read(largeNumber) such that\n// needReadable was set, then we ought to push more, so that another\n// 'readable' event will be triggered.\nfunction needMoreData(state) {\n return !state.ended &&\n (state.needReadable ||\n state.length < state.highWaterMark ||\n state.length === 0);\n}\n\n// backwards compatibility.\nReadable.prototype.setEncoding = function(enc) {\n if (!StringDecoder)\n StringDecoder = __webpack_require__(106).StringDecoder;\n this._readableState.decoder = new StringDecoder(enc);\n this._readableState.encoding = enc;\n return this;\n};\n\n// Don't raise the hwm > 128MB\nvar MAX_HWM = 0x800000;\nfunction roundUpToNextPowerOf2(n) {\n if (n >= MAX_HWM) {\n n = MAX_HWM;\n } else {\n // Get the next highest power of 2\n n--;\n for (var p = 1; p < 32; p <<= 1) n |= n >> p;\n n++;\n }\n return n;\n}\n\nfunction howMuchToRead(n, state) {\n if (state.length === 0 && state.ended)\n return 0;\n\n if (state.objectMode)\n return n === 0 ? 0 : 1;\n\n if (isNaN(n) || util.isNull(n)) {\n // only flow one buffer at a time\n if (state.flowing && state.buffer.length)\n return state.buffer[0].length;\n else\n return state.length;\n }\n\n if (n <= 0)\n return 0;\n\n // If we're asking for more than the target buffer level,\n // then raise the water mark. Bump up to the next highest\n // power of 2, to prevent increasing it excessively in tiny\n // amounts.\n if (n > state.highWaterMark)\n state.highWaterMark = roundUpToNextPowerOf2(n);\n\n // don't have that much. return null, unless we've ended.\n if (n > state.length) {\n if (!state.ended) {\n state.needReadable = true;\n return 0;\n } else\n return state.length;\n }\n\n return n;\n}\n\n// you can override either this method, or the async _read(n) below.\nReadable.prototype.read = function(n) {\n debug('read', n);\n var state = this._readableState;\n var nOrig = n;\n\n if (!util.isNumber(n) || n > 0)\n state.emittedReadable = false;\n\n // if we're doing read(0) to trigger a readable event, but we\n // already have a bunch of data in the buffer, then just trigger\n // the 'readable' event and move on.\n if (n === 0 &&\n state.needReadable &&\n (state.length >= state.highWaterMark || state.ended)) {\n debug('read: emitReadable', state.length, state.ended);\n if (state.length === 0 && state.ended)\n endReadable(this);\n else\n emitReadable(this);\n return null;\n }\n\n n = howMuchToRead(n, state);\n\n // if we've ended, and we're now clear, then finish it up.\n if (n === 0 && state.ended) {\n if (state.length === 0)\n endReadable(this);\n return null;\n }\n\n // All the actual chunk generation logic needs to be\n // *below* the call to _read. The reason is that in certain\n // synthetic stream cases, such as passthrough streams, _read\n // may be a completely synchronous operation which may change\n // the state of the read buffer, providing enough data when\n // before there was *not* enough.\n //\n // So, the steps are:\n // 1. Figure out what the state of things will be after we do\n // a read from the buffer.\n //\n // 2. If that resulting state will trigger a _read, then call _read.\n // Note that this may be asynchronous, or synchronous. Yes, it is\n // deeply ugly to write APIs this way, but that still doesn't mean\n // that the Readable class should behave improperly, as streams are\n // designed to be sync/async agnostic.\n // Take note if the _read call is sync or async (ie, if the read call\n // has returned yet), so that we know whether or not it's safe to emit\n // 'readable' etc.\n //\n // 3. Actually pull the requested chunks out of the buffer and return.\n\n // if we need a readable event, then we need to do some reading.\n var doRead = state.needReadable;\n debug('need readable', doRead);\n\n // if we currently have less than the highWaterMark, then also read some\n if (state.length === 0 || state.length - n < state.highWaterMark) {\n doRead = true;\n debug('length less than watermark', doRead);\n }\n\n // however, if we've ended, then there's no point, and if we're already\n // reading, then it's unnecessary.\n if (state.ended || state.reading) {\n doRead = false;\n debug('reading or ended', doRead);\n }\n\n if (doRead) {\n debug('do read');\n state.reading = true;\n state.sync = true;\n // if the length is currently zero, then we *need* a readable event.\n if (state.length === 0)\n state.needReadable = true;\n // call internal read method\n this._read(state.highWaterMark);\n state.sync = false;\n }\n\n // If _read pushed data synchronously, then `reading` will be false,\n // and we need to re-evaluate how much data we can return to the user.\n if (doRead && !state.reading)\n n = howMuchToRead(nOrig, state);\n\n var ret;\n if (n > 0)\n ret = fromList(n, state);\n else\n ret = null;\n\n if (util.isNull(ret)) {\n state.needReadable = true;\n n = 0;\n }\n\n state.length -= n;\n\n // If we have nothing in the buffer, then we want to know\n // as soon as we *do* get something into the buffer.\n if (state.length === 0 && !state.ended)\n state.needReadable = true;\n\n // If we tried to read() past the EOF, then emit end on the next tick.\n if (nOrig !== n && state.ended && state.length === 0)\n endReadable(this);\n\n if (!util.isNull(ret))\n this.emit('data', ret);\n\n return ret;\n};\n\nfunction chunkInvalid(state, chunk) {\n var er = null;\n if (!util.isBuffer(chunk) &&\n !util.isString(chunk) &&\n !util.isNullOrUndefined(chunk) &&\n !state.objectMode) {\n er = new TypeError('Invalid non-string/buffer chunk');\n }\n return er;\n}\n\n\nfunction onEofChunk(stream, state) {\n if (state.decoder && !state.ended) {\n var chunk = state.decoder.end();\n if (chunk && chunk.length) {\n state.buffer.push(chunk);\n state.length += state.objectMode ? 1 : chunk.length;\n }\n }\n state.ended = true;\n\n // emit 'readable' now to make sure it gets picked up.\n emitReadable(stream);\n}\n\n// Don't emit readable right away in sync mode, because this can trigger\n// another read() call => stack overflow. This way, it might trigger\n// a nextTick recursion warning, but that's not so bad.\nfunction emitReadable(stream) {\n var state = stream._readableState;\n state.needReadable = false;\n if (!state.emittedReadable) {\n debug('emitReadable', state.flowing);\n state.emittedReadable = true;\n if (state.sync)\n process.nextTick(function() {\n emitReadable_(stream);\n });\n else\n emitReadable_(stream);\n }\n}\n\nfunction emitReadable_(stream) {\n debug('emit readable');\n stream.emit('readable');\n flow(stream);\n}\n\n\n// at this point, the user has presumably seen the 'readable' event,\n// and called read() to consume some data. that may have triggered\n// in turn another _read(n) call, in which case reading = true if\n// it's in progress.\n// However, if we're not ended, or reading, and the length < hwm,\n// then go ahead and try to read some more preemptively.\nfunction maybeReadMore(stream, state) {\n if (!state.readingMore) {\n state.readingMore = true;\n process.nextTick(function() {\n maybeReadMore_(stream, state);\n });\n }\n}\n\nfunction maybeReadMore_(stream, state) {\n var len = state.length;\n while (!state.reading && !state.flowing && !state.ended &&\n state.length < state.highWaterMark) {\n debug('maybeReadMore read 0');\n stream.read(0);\n if (len === state.length)\n // didn't get any data, stop spinning.\n break;\n else\n len = state.length;\n }\n state.readingMore = false;\n}\n\n// abstract method. to be overridden in specific implementation classes.\n// call cb(er, data) where data is <= n in length.\n// for virtual (non-string, non-buffer) streams, \"length\" is somewhat\n// arbitrary, and perhaps not very meaningful.\nReadable.prototype._read = function(n) {\n this.emit('error', new Error('not implemented'));\n};\n\nReadable.prototype.pipe = function(dest, pipeOpts) {\n var src = this;\n var state = this._readableState;\n\n switch (state.pipesCount) {\n case 0:\n state.pipes = dest;\n break;\n case 1:\n state.pipes = [state.pipes, dest];\n break;\n default:\n state.pipes.push(dest);\n break;\n }\n state.pipesCount += 1;\n debug('pipe count=%d opts=%j', state.pipesCount, pipeOpts);\n\n var doEnd = (!pipeOpts || pipeOpts.end !== false) &&\n dest !== process.stdout &&\n dest !== process.stderr;\n\n var endFn = doEnd ? onend : cleanup;\n if (state.endEmitted)\n process.nextTick(endFn);\n else\n src.once('end', endFn);\n\n dest.on('unpipe', onunpipe);\n function onunpipe(readable) {\n debug('onunpipe');\n if (readable === src) {\n cleanup();\n }\n }\n\n function onend() {\n debug('onend');\n dest.end();\n }\n\n // when the dest drains, it reduces the awaitDrain counter\n // on the source. This would be more elegant with a .once()\n // handler in flow(), but adding and removing repeatedly is\n // too slow.\n var ondrain = pipeOnDrain(src);\n dest.on('drain', ondrain);\n\n function cleanup() {\n debug('cleanup');\n // cleanup event handlers once the pipe is broken\n dest.removeListener('close', onclose);\n dest.removeListener('finish', onfinish);\n dest.removeListener('drain', ondrain);\n dest.removeListener('error', onerror);\n dest.removeListener('unpipe', onunpipe);\n src.removeListener('end', onend);\n src.removeListener('end', cleanup);\n src.removeListener('data', ondata);\n\n // if the reader is waiting for a drain event from this\n // specific writer, then it would cause it to never start\n // flowing again.\n // So, if this is awaiting a drain, then we just call it now.\n // If we don't know, then assume that we are waiting for one.\n if (state.awaitDrain &&\n (!dest._writableState || dest._writableState.needDrain))\n ondrain();\n }\n\n src.on('data', ondata);\n function ondata(chunk) {\n debug('ondata');\n var ret = dest.write(chunk);\n if (false === ret) {\n debug('false write response, pause',\n src._readableState.awaitDrain);\n src._readableState.awaitDrain++;\n src.pause();\n }\n }\n\n // if the dest has an error, then stop piping into it.\n // however, don't suppress the throwing behavior for this.\n function onerror(er) {\n debug('onerror', er);\n unpipe();\n dest.removeListener('error', onerror);\n if (EE.listenerCount(dest, 'error') === 0)\n dest.emit('error', er);\n }\n // This is a brutally ugly hack to make sure that our error handler\n // is attached before any userland ones. NEVER DO THIS.\n if (!dest._events || !dest._events.error)\n dest.on('error', onerror);\n else if (isArray(dest._events.error))\n dest._events.error.unshift(onerror);\n else\n dest._events.error = [onerror, dest._events.error];\n\n\n\n // Both close and finish should trigger unpipe, but only once.\n function onclose() {\n dest.removeListener('finish', onfinish);\n unpipe();\n }\n dest.once('close', onclose);\n function onfinish() {\n debug('onfinish');\n dest.removeListener('close', onclose);\n unpipe();\n }\n dest.once('finish', onfinish);\n\n function unpipe() {\n debug('unpipe');\n src.unpipe(dest);\n }\n\n // tell the dest that it's being piped to\n dest.emit('pipe', src);\n\n // start the flow if it hasn't been started already.\n if (!state.flowing) {\n debug('pipe resume');\n src.resume();\n }\n\n return dest;\n};\n\nfunction pipeOnDrain(src) {\n return function() {\n var state = src._readableState;\n debug('pipeOnDrain', state.awaitDrain);\n if (state.awaitDrain)\n state.awaitDrain--;\n if (state.awaitDrain === 0 && EE.listenerCount(src, 'data')) {\n state.flowing = true;\n flow(src);\n }\n };\n}\n\n\nReadable.prototype.unpipe = function(dest) {\n var state = this._readableState;\n\n // if we're not piping anywhere, then do nothing.\n if (state.pipesCount === 0)\n return this;\n\n // just one destination. most common case.\n if (state.pipesCount === 1) {\n // passed in one, but it's not the right one.\n if (dest && dest !== state.pipes)\n return this;\n\n if (!dest)\n dest = state.pipes;\n\n // got a match.\n state.pipes = null;\n state.pipesCount = 0;\n state.flowing = false;\n if (dest)\n dest.emit('unpipe', this);\n return this;\n }\n\n // slow case. multiple pipe destinations.\n\n if (!dest) {\n // remove all.\n var dests = state.pipes;\n var len = state.pipesCount;\n state.pipes = null;\n state.pipesCount = 0;\n state.flowing = false;\n\n for (var i = 0; i < len; i++)\n dests[i].emit('unpipe', this);\n return this;\n }\n\n // try to find the right one.\n var i = indexOf(state.pipes, dest);\n if (i === -1)\n return this;\n\n state.pipes.splice(i, 1);\n state.pipesCount -= 1;\n if (state.pipesCount === 1)\n state.pipes = state.pipes[0];\n\n dest.emit('unpipe', this);\n\n return this;\n};\n\n// set up data events if they are asked for\n// Ensure readable listeners eventually get something\nReadable.prototype.on = function(ev, fn) {\n var res = Stream.prototype.on.call(this, ev, fn);\n\n // If listening to data, and it has not explicitly been paused,\n // then call resume to start the flow of data on the next tick.\n if (ev === 'data' && false !== this._readableState.flowing) {\n this.resume();\n }\n\n if (ev === 'readable' && this.readable) {\n var state = this._readableState;\n if (!state.readableListening) {\n state.readableListening = true;\n state.emittedReadable = false;\n state.needReadable = true;\n if (!state.reading) {\n var self = this;\n process.nextTick(function() {\n debug('readable nexttick read 0');\n self.read(0);\n });\n } else if (state.length) {\n emitReadable(this, state);\n }\n }\n }\n\n return res;\n};\nReadable.prototype.addListener = Readable.prototype.on;\n\n// pause() and resume() are remnants of the legacy readable stream API\n// If the user uses them, then switch into old mode.\nReadable.prototype.resume = function() {\n var state = this._readableState;\n if (!state.flowing) {\n debug('resume');\n state.flowing = true;\n if (!state.reading) {\n debug('resume read 0');\n this.read(0);\n }\n resume(this, state);\n }\n return this;\n};\n\nfunction resume(stream, state) {\n if (!state.resumeScheduled) {\n state.resumeScheduled = true;\n process.nextTick(function() {\n resume_(stream, state);\n });\n }\n}\n\nfunction resume_(stream, state) {\n state.resumeScheduled = false;\n stream.emit('resume');\n flow(stream);\n if (state.flowing && !state.reading)\n stream.read(0);\n}\n\nReadable.prototype.pause = function() {\n debug('call pause flowing=%j', this._readableState.flowing);\n if (false !== this._readableState.flowing) {\n debug('pause');\n this._readableState.flowing = false;\n this.emit('pause');\n }\n return this;\n};\n\nfunction flow(stream) {\n var state = stream._readableState;\n debug('flow', state.flowing);\n if (state.flowing) {\n do {\n var chunk = stream.read();\n } while (null !== chunk && state.flowing);\n }\n}\n\n// wrap an old-style stream as the async data source.\n// This is *not* part of the readable stream interface.\n// It is an ugly unfortunate mess of history.\nReadable.prototype.wrap = function(stream) {\n var state = this._readableState;\n var paused = false;\n\n var self = this;\n stream.on('end', function() {\n debug('wrapped end');\n if (state.decoder && !state.ended) {\n var chunk = state.decoder.end();\n if (chunk && chunk.length)\n self.push(chunk);\n }\n\n self.push(null);\n });\n\n stream.on('data', function(chunk) {\n debug('wrapped data');\n if (state.decoder)\n chunk = state.decoder.write(chunk);\n if (!chunk || !state.objectMode && !chunk.length)\n return;\n\n var ret = self.push(chunk);\n if (!ret) {\n paused = true;\n stream.pause();\n }\n });\n\n // proxy all the other methods.\n // important when wrapping filters and duplexes.\n for (var i in stream) {\n if (util.isFunction(stream[i]) && util.isUndefined(this[i])) {\n this[i] = function(method) { return function() {\n return stream[method].apply(stream, arguments);\n }}(i);\n }\n }\n\n // proxy certain important events.\n var events = ['error', 'close', 'destroy', 'pause', 'resume'];\n forEach(events, function(ev) {\n stream.on(ev, self.emit.bind(self, ev));\n });\n\n // when we try to consume some more bytes, simply unpause the\n // underlying stream.\n self._read = function(n) {\n debug('wrapped _read', n);\n if (paused) {\n paused = false;\n stream.resume();\n }\n };\n\n return self;\n};\n\n\n\n// exposed for testing purposes only.\nReadable._fromList = fromList;\n\n// Pluck off n bytes from an array of buffers.\n// Length is the combined lengths of all the buffers in the list.\nfunction fromList(n, state) {\n var list = state.buffer;\n var length = state.length;\n var stringMode = !!state.decoder;\n var objectMode = !!state.objectMode;\n var ret;\n\n // nothing in the list, definitely empty.\n if (list.length === 0)\n return null;\n\n if (length === 0)\n ret = null;\n else if (objectMode)\n ret = list.shift();\n else if (!n || n >= length) {\n // read it all, truncate the array.\n if (stringMode)\n ret = list.join('');\n else\n ret = Buffer.concat(list, length);\n list.length = 0;\n } else {\n // read just some of it.\n if (n < list[0].length) {\n // just take a part of the first list item.\n // slice is the same for buffers and strings.\n var buf = list[0];\n ret = buf.slice(0, n);\n list[0] = buf.slice(n);\n } else if (n === list[0].length) {\n // first list is a perfect match\n ret = list.shift();\n } else {\n // complex case.\n // we have enough to cover it, but it spans past the first buffer.\n if (stringMode)\n ret = '';\n else\n ret = new Buffer(n);\n\n var c = 0;\n for (var i = 0, l = list.length; i < l && c < n; i++) {\n var buf = list[0];\n var cpy = Math.min(n - c, buf.length);\n\n if (stringMode)\n ret += buf.slice(0, cpy);\n else\n buf.copy(ret, c, 0, cpy);\n\n if (cpy < buf.length)\n list[0] = buf.slice(cpy);\n else\n list.shift();\n\n c += cpy;\n }\n }\n }\n\n return ret;\n}\n\nfunction endReadable(stream) {\n var state = stream._readableState;\n\n // If we get here before consuming all the bytes, then that is a\n // bug in node. Should never happen.\n if (state.length > 0)\n throw new Error('endReadable called on non-empty stream');\n\n if (!state.endEmitted) {\n state.ended = true;\n process.nextTick(function() {\n // Check that we didn't get one last unshift.\n if (!state.endEmitted && state.length === 0) {\n state.endEmitted = true;\n stream.readable = false;\n stream.emit('end');\n }\n });\n }\n}\n\nfunction forEach (xs, f) {\n for (var i = 0, l = xs.length; i < l; i++) {\n f(xs[i], i);\n }\n}\n\nfunction indexOf (xs, x) {\n for (var i = 0, l = xs.length; i < l; i++) {\n if (xs[i] === x) return i;\n }\n return -1;\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/stream-browserify/~/readable-stream/lib/_stream_readable.js\n ** module id = 100\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/stream-browserify/~/readable-stream/lib/_stream_readable.js?"); /***/ }, /* 101 */ -/***/ function(module, exports, __webpack_require__) { +/***/ function(module, exports) { - eval("/* WEBPACK VAR INJECTION */(function(Buffer) {// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// NOTE: These type checking functions intentionally don't use `instanceof`\n// because it is fragile and can be easily faked with `Object.create()`.\n\nfunction isArray(arg) {\n if (Array.isArray) {\n return Array.isArray(arg);\n }\n return objectToString(arg) === '[object Array]';\n}\nexports.isArray = isArray;\n\nfunction isBoolean(arg) {\n return typeof arg === 'boolean';\n}\nexports.isBoolean = isBoolean;\n\nfunction isNull(arg) {\n return arg === null;\n}\nexports.isNull = isNull;\n\nfunction isNullOrUndefined(arg) {\n return arg == null;\n}\nexports.isNullOrUndefined = isNullOrUndefined;\n\nfunction isNumber(arg) {\n return typeof arg === 'number';\n}\nexports.isNumber = isNumber;\n\nfunction isString(arg) {\n return typeof arg === 'string';\n}\nexports.isString = isString;\n\nfunction isSymbol(arg) {\n return typeof arg === 'symbol';\n}\nexports.isSymbol = isSymbol;\n\nfunction isUndefined(arg) {\n return arg === void 0;\n}\nexports.isUndefined = isUndefined;\n\nfunction isRegExp(re) {\n return objectToString(re) === '[object RegExp]';\n}\nexports.isRegExp = isRegExp;\n\nfunction isObject(arg) {\n return typeof arg === 'object' && arg !== null;\n}\nexports.isObject = isObject;\n\nfunction isDate(d) {\n return objectToString(d) === '[object Date]';\n}\nexports.isDate = isDate;\n\nfunction isError(e) {\n return (objectToString(e) === '[object Error]' || e instanceof Error);\n}\nexports.isError = isError;\n\nfunction isFunction(arg) {\n return typeof arg === 'function';\n}\nexports.isFunction = isFunction;\n\nfunction isPrimitive(arg) {\n return arg === null ||\n typeof arg === 'boolean' ||\n typeof arg === 'number' ||\n typeof arg === 'string' ||\n typeof arg === 'symbol' || // ES6 symbol\n typeof arg === 'undefined';\n}\nexports.isPrimitive = isPrimitive;\n\nexports.isBuffer = Buffer.isBuffer;\n\nfunction objectToString(o) {\n return Object.prototype.toString.call(o);\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1).Buffer))\n\n/*****************\n ** WEBPACK FOOTER\n ** (webpack)/~/node-libs-browser/~/readable-stream/~/core-util-is/lib/util.js\n ** module id = 101\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///(webpack)/~/node-libs-browser/~/readable-stream/~/core-util-is/lib/util.js?"); + eval("module.exports = Array.isArray || function (arr) {\n return Object.prototype.toString.call(arr) == '[object Array]';\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/isarray/index.js\n ** module id = 101\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/isarray/index.js?"); /***/ }, /* 102 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("if (typeof Object.create === 'function') {\n // implementation from standard node.js 'util' module\n module.exports = function inherits(ctor, superCtor) {\n ctor.super_ = superCtor\n ctor.prototype = Object.create(superCtor.prototype, {\n constructor: {\n value: ctor,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n };\n} else {\n // old school shim for old browsers\n module.exports = function inherits(ctor, superCtor) {\n ctor.super_ = superCtor\n var TempCtor = function () {}\n TempCtor.prototype = superCtor.prototype\n ctor.prototype = new TempCtor()\n ctor.prototype.constructor = ctor\n }\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** (webpack)/~/node-libs-browser/~/readable-stream/~/inherits/inherits_browser.js\n ** module id = 102\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///(webpack)/~/node-libs-browser/~/readable-stream/~/inherits/inherits_browser.js?"); + eval("/* WEBPACK VAR INJECTION */(function(Buffer) {// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// NOTE: These type checking functions intentionally don't use `instanceof`\n// because it is fragile and can be easily faked with `Object.create()`.\n\nfunction isArray(arg) {\n if (Array.isArray) {\n return Array.isArray(arg);\n }\n return objectToString(arg) === '[object Array]';\n}\nexports.isArray = isArray;\n\nfunction isBoolean(arg) {\n return typeof arg === 'boolean';\n}\nexports.isBoolean = isBoolean;\n\nfunction isNull(arg) {\n return arg === null;\n}\nexports.isNull = isNull;\n\nfunction isNullOrUndefined(arg) {\n return arg == null;\n}\nexports.isNullOrUndefined = isNullOrUndefined;\n\nfunction isNumber(arg) {\n return typeof arg === 'number';\n}\nexports.isNumber = isNumber;\n\nfunction isString(arg) {\n return typeof arg === 'string';\n}\nexports.isString = isString;\n\nfunction isSymbol(arg) {\n return typeof arg === 'symbol';\n}\nexports.isSymbol = isSymbol;\n\nfunction isUndefined(arg) {\n return arg === void 0;\n}\nexports.isUndefined = isUndefined;\n\nfunction isRegExp(re) {\n return objectToString(re) === '[object RegExp]';\n}\nexports.isRegExp = isRegExp;\n\nfunction isObject(arg) {\n return typeof arg === 'object' && arg !== null;\n}\nexports.isObject = isObject;\n\nfunction isDate(d) {\n return objectToString(d) === '[object Date]';\n}\nexports.isDate = isDate;\n\nfunction isError(e) {\n return (objectToString(e) === '[object Error]' || e instanceof Error);\n}\nexports.isError = isError;\n\nfunction isFunction(arg) {\n return typeof arg === 'function';\n}\nexports.isFunction = isFunction;\n\nfunction isPrimitive(arg) {\n return arg === null ||\n typeof arg === 'boolean' ||\n typeof arg === 'number' ||\n typeof arg === 'string' ||\n typeof arg === 'symbol' || // ES6 symbol\n typeof arg === 'undefined';\n}\nexports.isPrimitive = isPrimitive;\n\nexports.isBuffer = Buffer.isBuffer;\n\nfunction objectToString(o) {\n return Object.prototype.toString.call(o);\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1).Buffer))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-util-is/lib/util.js\n ** module id = 102\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-util-is/lib/util.js?"); /***/ }, /* 103 */ @@ -669,1855 +669,1381 @@ var ipfsAPI = /* 104 */ /***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(process) {// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// a duplex stream is just a stream that is both readable and writable.\n// Since JS doesn't have multiple prototypal inheritance, this class\n// prototypally inherits from Readable, and then parasitically from\n// Writable.\n\nmodule.exports = Duplex;\n\n/**/\nvar objectKeys = Object.keys || function (obj) {\n var keys = [];\n for (var key in obj) keys.push(key);\n return keys;\n}\n/**/\n\n\n/**/\nvar util = __webpack_require__(101);\nutil.inherits = __webpack_require__(102);\n/**/\n\nvar Readable = __webpack_require__(99);\nvar Writable = __webpack_require__(105);\n\nutil.inherits(Duplex, Readable);\n\nforEach(objectKeys(Writable.prototype), function(method) {\n if (!Duplex.prototype[method])\n Duplex.prototype[method] = Writable.prototype[method];\n});\n\nfunction Duplex(options) {\n if (!(this instanceof Duplex))\n return new Duplex(options);\n\n Readable.call(this, options);\n Writable.call(this, options);\n\n if (options && options.readable === false)\n this.readable = false;\n\n if (options && options.writable === false)\n this.writable = false;\n\n this.allowHalfOpen = true;\n if (options && options.allowHalfOpen === false)\n this.allowHalfOpen = false;\n\n this.once('end', onend);\n}\n\n// the no-half-open enforcer\nfunction onend() {\n // if we allow half-open state, or if the writable side ended,\n // then we're ok.\n if (this.allowHalfOpen || this._writableState.ended)\n return;\n\n // no more data can be written.\n // But allow more writes to happen in this tick.\n process.nextTick(this.end.bind(this));\n}\n\nfunction forEach (xs, f) {\n for (var i = 0, l = xs.length; i < l; i++) {\n f(xs[i], i);\n }\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(83)))\n\n/*****************\n ** WEBPACK FOOTER\n ** (webpack)/~/node-libs-browser/~/readable-stream/lib/_stream_duplex.js\n ** module id = 104\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///(webpack)/~/node-libs-browser/~/readable-stream/lib/_stream_duplex.js?"); + eval("/* WEBPACK VAR INJECTION */(function(process) {// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// a duplex stream is just a stream that is both readable and writable.\n// Since JS doesn't have multiple prototypal inheritance, this class\n// prototypally inherits from Readable, and then parasitically from\n// Writable.\n\nmodule.exports = Duplex;\n\n/**/\nvar objectKeys = Object.keys || function (obj) {\n var keys = [];\n for (var key in obj) keys.push(key);\n return keys;\n}\n/**/\n\n\n/**/\nvar util = __webpack_require__(102);\nutil.inherits = __webpack_require__(96);\n/**/\n\nvar Readable = __webpack_require__(100);\nvar Writable = __webpack_require__(105);\n\nutil.inherits(Duplex, Readable);\n\nforEach(objectKeys(Writable.prototype), function(method) {\n if (!Duplex.prototype[method])\n Duplex.prototype[method] = Writable.prototype[method];\n});\n\nfunction Duplex(options) {\n if (!(this instanceof Duplex))\n return new Duplex(options);\n\n Readable.call(this, options);\n Writable.call(this, options);\n\n if (options && options.readable === false)\n this.readable = false;\n\n if (options && options.writable === false)\n this.writable = false;\n\n this.allowHalfOpen = true;\n if (options && options.allowHalfOpen === false)\n this.allowHalfOpen = false;\n\n this.once('end', onend);\n}\n\n// the no-half-open enforcer\nfunction onend() {\n // if we allow half-open state, or if the writable side ended,\n // then we're ok.\n if (this.allowHalfOpen || this._writableState.ended)\n return;\n\n // no more data can be written.\n // But allow more writes to happen in this tick.\n process.nextTick(this.end.bind(this));\n}\n\nfunction forEach (xs, f) {\n for (var i = 0, l = xs.length; i < l; i++) {\n f(xs[i], i);\n }\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/stream-browserify/~/readable-stream/lib/_stream_duplex.js\n ** module id = 104\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/stream-browserify/~/readable-stream/lib/_stream_duplex.js?"); /***/ }, /* 105 */ /***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(process) {// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// A bit simpler than readable streams.\n// Implement an async ._write(chunk, cb), and it'll handle all\n// the drain event emission and buffering.\n\nmodule.exports = Writable;\n\n/**/\nvar Buffer = __webpack_require__(1).Buffer;\n/**/\n\nWritable.WritableState = WritableState;\n\n\n/**/\nvar util = __webpack_require__(101);\nutil.inherits = __webpack_require__(102);\n/**/\n\nvar Stream = __webpack_require__(96);\n\nutil.inherits(Writable, Stream);\n\nfunction WriteReq(chunk, encoding, cb) {\n this.chunk = chunk;\n this.encoding = encoding;\n this.callback = cb;\n}\n\nfunction WritableState(options, stream) {\n var Duplex = __webpack_require__(104);\n\n options = options || {};\n\n // the point at which write() starts returning false\n // Note: 0 is a valid value, means that we always return false if\n // the entire buffer is not flushed immediately on write()\n var hwm = options.highWaterMark;\n var defaultHwm = options.objectMode ? 16 : 16 * 1024;\n this.highWaterMark = (hwm || hwm === 0) ? hwm : defaultHwm;\n\n // object stream flag to indicate whether or not this stream\n // contains buffers or objects.\n this.objectMode = !!options.objectMode;\n\n if (stream instanceof Duplex)\n this.objectMode = this.objectMode || !!options.writableObjectMode;\n\n // cast to ints.\n this.highWaterMark = ~~this.highWaterMark;\n\n this.needDrain = false;\n // at the start of calling end()\n this.ending = false;\n // when end() has been called, and returned\n this.ended = false;\n // when 'finish' is emitted\n this.finished = false;\n\n // should we decode strings into buffers before passing to _write?\n // this is here so that some node-core streams can optimize string\n // handling at a lower level.\n var noDecode = options.decodeStrings === false;\n this.decodeStrings = !noDecode;\n\n // Crypto is kind of old and crusty. Historically, its default string\n // encoding is 'binary' so we have to make this configurable.\n // Everything else in the universe uses 'utf8', though.\n this.defaultEncoding = options.defaultEncoding || 'utf8';\n\n // not an actual buffer we keep track of, but a measurement\n // of how much we're waiting to get pushed to some underlying\n // socket or file.\n this.length = 0;\n\n // a flag to see when we're in the middle of a write.\n this.writing = false;\n\n // when true all writes will be buffered until .uncork() call\n this.corked = 0;\n\n // a flag to be able to tell if the onwrite cb is called immediately,\n // or on a later tick. We set this to true at first, because any\n // actions that shouldn't happen until \"later\" should generally also\n // not happen before the first write call.\n this.sync = true;\n\n // a flag to know if we're processing previously buffered items, which\n // may call the _write() callback in the same tick, so that we don't\n // end up in an overlapped onwrite situation.\n this.bufferProcessing = false;\n\n // the callback that's passed to _write(chunk,cb)\n this.onwrite = function(er) {\n onwrite(stream, er);\n };\n\n // the callback that the user supplies to write(chunk,encoding,cb)\n this.writecb = null;\n\n // the amount that is being written when _write is called.\n this.writelen = 0;\n\n this.buffer = [];\n\n // number of pending user-supplied write callbacks\n // this must be 0 before 'finish' can be emitted\n this.pendingcb = 0;\n\n // emit prefinish if the only thing we're waiting for is _write cbs\n // This is relevant for synchronous Transform streams\n this.prefinished = false;\n\n // True if the error was already emitted and should not be thrown again\n this.errorEmitted = false;\n}\n\nfunction Writable(options) {\n var Duplex = __webpack_require__(104);\n\n // Writable ctor is applied to Duplexes, though they're not\n // instanceof Writable, they're instanceof Readable.\n if (!(this instanceof Writable) && !(this instanceof Duplex))\n return new Writable(options);\n\n this._writableState = new WritableState(options, this);\n\n // legacy.\n this.writable = true;\n\n Stream.call(this);\n}\n\n// Otherwise people can pipe Writable streams, which is just wrong.\nWritable.prototype.pipe = function() {\n this.emit('error', new Error('Cannot pipe. Not readable.'));\n};\n\n\nfunction writeAfterEnd(stream, state, cb) {\n var er = new Error('write after end');\n // TODO: defer error events consistently everywhere, not just the cb\n stream.emit('error', er);\n process.nextTick(function() {\n cb(er);\n });\n}\n\n// If we get something that is not a buffer, string, null, or undefined,\n// and we're not in objectMode, then that's an error.\n// Otherwise stream chunks are all considered to be of length=1, and the\n// watermarks determine how many objects to keep in the buffer, rather than\n// how many bytes or characters.\nfunction validChunk(stream, state, chunk, cb) {\n var valid = true;\n if (!util.isBuffer(chunk) &&\n !util.isString(chunk) &&\n !util.isNullOrUndefined(chunk) &&\n !state.objectMode) {\n var er = new TypeError('Invalid non-string/buffer chunk');\n stream.emit('error', er);\n process.nextTick(function() {\n cb(er);\n });\n valid = false;\n }\n return valid;\n}\n\nWritable.prototype.write = function(chunk, encoding, cb) {\n var state = this._writableState;\n var ret = false;\n\n if (util.isFunction(encoding)) {\n cb = encoding;\n encoding = null;\n }\n\n if (util.isBuffer(chunk))\n encoding = 'buffer';\n else if (!encoding)\n encoding = state.defaultEncoding;\n\n if (!util.isFunction(cb))\n cb = function() {};\n\n if (state.ended)\n writeAfterEnd(this, state, cb);\n else if (validChunk(this, state, chunk, cb)) {\n state.pendingcb++;\n ret = writeOrBuffer(this, state, chunk, encoding, cb);\n }\n\n return ret;\n};\n\nWritable.prototype.cork = function() {\n var state = this._writableState;\n\n state.corked++;\n};\n\nWritable.prototype.uncork = function() {\n var state = this._writableState;\n\n if (state.corked) {\n state.corked--;\n\n if (!state.writing &&\n !state.corked &&\n !state.finished &&\n !state.bufferProcessing &&\n state.buffer.length)\n clearBuffer(this, state);\n }\n};\n\nfunction decodeChunk(state, chunk, encoding) {\n if (!state.objectMode &&\n state.decodeStrings !== false &&\n util.isString(chunk)) {\n chunk = new Buffer(chunk, encoding);\n }\n return chunk;\n}\n\n// if we're already writing something, then just put this\n// in the queue, and wait our turn. Otherwise, call _write\n// If we return false, then we need a drain event, so set that flag.\nfunction writeOrBuffer(stream, state, chunk, encoding, cb) {\n chunk = decodeChunk(state, chunk, encoding);\n if (util.isBuffer(chunk))\n encoding = 'buffer';\n var len = state.objectMode ? 1 : chunk.length;\n\n state.length += len;\n\n var ret = state.length < state.highWaterMark;\n // we must ensure that previous needDrain will not be reset to false.\n if (!ret)\n state.needDrain = true;\n\n if (state.writing || state.corked)\n state.buffer.push(new WriteReq(chunk, encoding, cb));\n else\n doWrite(stream, state, false, len, chunk, encoding, cb);\n\n return ret;\n}\n\nfunction doWrite(stream, state, writev, len, chunk, encoding, cb) {\n state.writelen = len;\n state.writecb = cb;\n state.writing = true;\n state.sync = true;\n if (writev)\n stream._writev(chunk, state.onwrite);\n else\n stream._write(chunk, encoding, state.onwrite);\n state.sync = false;\n}\n\nfunction onwriteError(stream, state, sync, er, cb) {\n if (sync)\n process.nextTick(function() {\n state.pendingcb--;\n cb(er);\n });\n else {\n state.pendingcb--;\n cb(er);\n }\n\n stream._writableState.errorEmitted = true;\n stream.emit('error', er);\n}\n\nfunction onwriteStateUpdate(state) {\n state.writing = false;\n state.writecb = null;\n state.length -= state.writelen;\n state.writelen = 0;\n}\n\nfunction onwrite(stream, er) {\n var state = stream._writableState;\n var sync = state.sync;\n var cb = state.writecb;\n\n onwriteStateUpdate(state);\n\n if (er)\n onwriteError(stream, state, sync, er, cb);\n else {\n // Check if we're actually ready to finish, but don't emit yet\n var finished = needFinish(stream, state);\n\n if (!finished &&\n !state.corked &&\n !state.bufferProcessing &&\n state.buffer.length) {\n clearBuffer(stream, state);\n }\n\n if (sync) {\n process.nextTick(function() {\n afterWrite(stream, state, finished, cb);\n });\n } else {\n afterWrite(stream, state, finished, cb);\n }\n }\n}\n\nfunction afterWrite(stream, state, finished, cb) {\n if (!finished)\n onwriteDrain(stream, state);\n state.pendingcb--;\n cb();\n finishMaybe(stream, state);\n}\n\n// Must force callback to be called on nextTick, so that we don't\n// emit 'drain' before the write() consumer gets the 'false' return\n// value, and has a chance to attach a 'drain' listener.\nfunction onwriteDrain(stream, state) {\n if (state.length === 0 && state.needDrain) {\n state.needDrain = false;\n stream.emit('drain');\n }\n}\n\n\n// if there's something in the buffer waiting, then process it\nfunction clearBuffer(stream, state) {\n state.bufferProcessing = true;\n\n if (stream._writev && state.buffer.length > 1) {\n // Fast case, write everything using _writev()\n var cbs = [];\n for (var c = 0; c < state.buffer.length; c++)\n cbs.push(state.buffer[c].callback);\n\n // count the one we are adding, as well.\n // TODO(isaacs) clean this up\n state.pendingcb++;\n doWrite(stream, state, true, state.length, state.buffer, '', function(err) {\n for (var i = 0; i < cbs.length; i++) {\n state.pendingcb--;\n cbs[i](err);\n }\n });\n\n // Clear buffer\n state.buffer = [];\n } else {\n // Slow case, write chunks one-by-one\n for (var c = 0; c < state.buffer.length; c++) {\n var entry = state.buffer[c];\n var chunk = entry.chunk;\n var encoding = entry.encoding;\n var cb = entry.callback;\n var len = state.objectMode ? 1 : chunk.length;\n\n doWrite(stream, state, false, len, chunk, encoding, cb);\n\n // if we didn't call the onwrite immediately, then\n // it means that we need to wait until it does.\n // also, that means that the chunk and cb are currently\n // being processed, so move the buffer counter past them.\n if (state.writing) {\n c++;\n break;\n }\n }\n\n if (c < state.buffer.length)\n state.buffer = state.buffer.slice(c);\n else\n state.buffer.length = 0;\n }\n\n state.bufferProcessing = false;\n}\n\nWritable.prototype._write = function(chunk, encoding, cb) {\n cb(new Error('not implemented'));\n\n};\n\nWritable.prototype._writev = null;\n\nWritable.prototype.end = function(chunk, encoding, cb) {\n var state = this._writableState;\n\n if (util.isFunction(chunk)) {\n cb = chunk;\n chunk = null;\n encoding = null;\n } else if (util.isFunction(encoding)) {\n cb = encoding;\n encoding = null;\n }\n\n if (!util.isNullOrUndefined(chunk))\n this.write(chunk, encoding);\n\n // .end() fully uncorks\n if (state.corked) {\n state.corked = 1;\n this.uncork();\n }\n\n // ignore unnecessary end() calls.\n if (!state.ending && !state.finished)\n endWritable(this, state, cb);\n};\n\n\nfunction needFinish(stream, state) {\n return (state.ending &&\n state.length === 0 &&\n !state.finished &&\n !state.writing);\n}\n\nfunction prefinish(stream, state) {\n if (!state.prefinished) {\n state.prefinished = true;\n stream.emit('prefinish');\n }\n}\n\nfunction finishMaybe(stream, state) {\n var need = needFinish(stream, state);\n if (need) {\n if (state.pendingcb === 0) {\n prefinish(stream, state);\n state.finished = true;\n stream.emit('finish');\n } else\n prefinish(stream, state);\n }\n return need;\n}\n\nfunction endWritable(stream, state, cb) {\n state.ending = true;\n finishMaybe(stream, state);\n if (cb) {\n if (state.finished)\n process.nextTick(cb);\n else\n stream.once('finish', cb);\n }\n state.ended = true;\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(83)))\n\n/*****************\n ** WEBPACK FOOTER\n ** (webpack)/~/node-libs-browser/~/readable-stream/lib/_stream_writable.js\n ** module id = 105\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///(webpack)/~/node-libs-browser/~/readable-stream/lib/_stream_writable.js?"); + eval("/* WEBPACK VAR INJECTION */(function(process) {// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// A bit simpler than readable streams.\n// Implement an async ._write(chunk, cb), and it'll handle all\n// the drain event emission and buffering.\n\nmodule.exports = Writable;\n\n/**/\nvar Buffer = __webpack_require__(1).Buffer;\n/**/\n\nWritable.WritableState = WritableState;\n\n\n/**/\nvar util = __webpack_require__(102);\nutil.inherits = __webpack_require__(96);\n/**/\n\nvar Stream = __webpack_require__(98);\n\nutil.inherits(Writable, Stream);\n\nfunction WriteReq(chunk, encoding, cb) {\n this.chunk = chunk;\n this.encoding = encoding;\n this.callback = cb;\n}\n\nfunction WritableState(options, stream) {\n var Duplex = __webpack_require__(104);\n\n options = options || {};\n\n // the point at which write() starts returning false\n // Note: 0 is a valid value, means that we always return false if\n // the entire buffer is not flushed immediately on write()\n var hwm = options.highWaterMark;\n var defaultHwm = options.objectMode ? 16 : 16 * 1024;\n this.highWaterMark = (hwm || hwm === 0) ? hwm : defaultHwm;\n\n // object stream flag to indicate whether or not this stream\n // contains buffers or objects.\n this.objectMode = !!options.objectMode;\n\n if (stream instanceof Duplex)\n this.objectMode = this.objectMode || !!options.writableObjectMode;\n\n // cast to ints.\n this.highWaterMark = ~~this.highWaterMark;\n\n this.needDrain = false;\n // at the start of calling end()\n this.ending = false;\n // when end() has been called, and returned\n this.ended = false;\n // when 'finish' is emitted\n this.finished = false;\n\n // should we decode strings into buffers before passing to _write?\n // this is here so that some node-core streams can optimize string\n // handling at a lower level.\n var noDecode = options.decodeStrings === false;\n this.decodeStrings = !noDecode;\n\n // Crypto is kind of old and crusty. Historically, its default string\n // encoding is 'binary' so we have to make this configurable.\n // Everything else in the universe uses 'utf8', though.\n this.defaultEncoding = options.defaultEncoding || 'utf8';\n\n // not an actual buffer we keep track of, but a measurement\n // of how much we're waiting to get pushed to some underlying\n // socket or file.\n this.length = 0;\n\n // a flag to see when we're in the middle of a write.\n this.writing = false;\n\n // when true all writes will be buffered until .uncork() call\n this.corked = 0;\n\n // a flag to be able to tell if the onwrite cb is called immediately,\n // or on a later tick. We set this to true at first, because any\n // actions that shouldn't happen until \"later\" should generally also\n // not happen before the first write call.\n this.sync = true;\n\n // a flag to know if we're processing previously buffered items, which\n // may call the _write() callback in the same tick, so that we don't\n // end up in an overlapped onwrite situation.\n this.bufferProcessing = false;\n\n // the callback that's passed to _write(chunk,cb)\n this.onwrite = function(er) {\n onwrite(stream, er);\n };\n\n // the callback that the user supplies to write(chunk,encoding,cb)\n this.writecb = null;\n\n // the amount that is being written when _write is called.\n this.writelen = 0;\n\n this.buffer = [];\n\n // number of pending user-supplied write callbacks\n // this must be 0 before 'finish' can be emitted\n this.pendingcb = 0;\n\n // emit prefinish if the only thing we're waiting for is _write cbs\n // This is relevant for synchronous Transform streams\n this.prefinished = false;\n\n // True if the error was already emitted and should not be thrown again\n this.errorEmitted = false;\n}\n\nfunction Writable(options) {\n var Duplex = __webpack_require__(104);\n\n // Writable ctor is applied to Duplexes, though they're not\n // instanceof Writable, they're instanceof Readable.\n if (!(this instanceof Writable) && !(this instanceof Duplex))\n return new Writable(options);\n\n this._writableState = new WritableState(options, this);\n\n // legacy.\n this.writable = true;\n\n Stream.call(this);\n}\n\n// Otherwise people can pipe Writable streams, which is just wrong.\nWritable.prototype.pipe = function() {\n this.emit('error', new Error('Cannot pipe. Not readable.'));\n};\n\n\nfunction writeAfterEnd(stream, state, cb) {\n var er = new Error('write after end');\n // TODO: defer error events consistently everywhere, not just the cb\n stream.emit('error', er);\n process.nextTick(function() {\n cb(er);\n });\n}\n\n// If we get something that is not a buffer, string, null, or undefined,\n// and we're not in objectMode, then that's an error.\n// Otherwise stream chunks are all considered to be of length=1, and the\n// watermarks determine how many objects to keep in the buffer, rather than\n// how many bytes or characters.\nfunction validChunk(stream, state, chunk, cb) {\n var valid = true;\n if (!util.isBuffer(chunk) &&\n !util.isString(chunk) &&\n !util.isNullOrUndefined(chunk) &&\n !state.objectMode) {\n var er = new TypeError('Invalid non-string/buffer chunk');\n stream.emit('error', er);\n process.nextTick(function() {\n cb(er);\n });\n valid = false;\n }\n return valid;\n}\n\nWritable.prototype.write = function(chunk, encoding, cb) {\n var state = this._writableState;\n var ret = false;\n\n if (util.isFunction(encoding)) {\n cb = encoding;\n encoding = null;\n }\n\n if (util.isBuffer(chunk))\n encoding = 'buffer';\n else if (!encoding)\n encoding = state.defaultEncoding;\n\n if (!util.isFunction(cb))\n cb = function() {};\n\n if (state.ended)\n writeAfterEnd(this, state, cb);\n else if (validChunk(this, state, chunk, cb)) {\n state.pendingcb++;\n ret = writeOrBuffer(this, state, chunk, encoding, cb);\n }\n\n return ret;\n};\n\nWritable.prototype.cork = function() {\n var state = this._writableState;\n\n state.corked++;\n};\n\nWritable.prototype.uncork = function() {\n var state = this._writableState;\n\n if (state.corked) {\n state.corked--;\n\n if (!state.writing &&\n !state.corked &&\n !state.finished &&\n !state.bufferProcessing &&\n state.buffer.length)\n clearBuffer(this, state);\n }\n};\n\nfunction decodeChunk(state, chunk, encoding) {\n if (!state.objectMode &&\n state.decodeStrings !== false &&\n util.isString(chunk)) {\n chunk = new Buffer(chunk, encoding);\n }\n return chunk;\n}\n\n// if we're already writing something, then just put this\n// in the queue, and wait our turn. Otherwise, call _write\n// If we return false, then we need a drain event, so set that flag.\nfunction writeOrBuffer(stream, state, chunk, encoding, cb) {\n chunk = decodeChunk(state, chunk, encoding);\n if (util.isBuffer(chunk))\n encoding = 'buffer';\n var len = state.objectMode ? 1 : chunk.length;\n\n state.length += len;\n\n var ret = state.length < state.highWaterMark;\n // we must ensure that previous needDrain will not be reset to false.\n if (!ret)\n state.needDrain = true;\n\n if (state.writing || state.corked)\n state.buffer.push(new WriteReq(chunk, encoding, cb));\n else\n doWrite(stream, state, false, len, chunk, encoding, cb);\n\n return ret;\n}\n\nfunction doWrite(stream, state, writev, len, chunk, encoding, cb) {\n state.writelen = len;\n state.writecb = cb;\n state.writing = true;\n state.sync = true;\n if (writev)\n stream._writev(chunk, state.onwrite);\n else\n stream._write(chunk, encoding, state.onwrite);\n state.sync = false;\n}\n\nfunction onwriteError(stream, state, sync, er, cb) {\n if (sync)\n process.nextTick(function() {\n state.pendingcb--;\n cb(er);\n });\n else {\n state.pendingcb--;\n cb(er);\n }\n\n stream._writableState.errorEmitted = true;\n stream.emit('error', er);\n}\n\nfunction onwriteStateUpdate(state) {\n state.writing = false;\n state.writecb = null;\n state.length -= state.writelen;\n state.writelen = 0;\n}\n\nfunction onwrite(stream, er) {\n var state = stream._writableState;\n var sync = state.sync;\n var cb = state.writecb;\n\n onwriteStateUpdate(state);\n\n if (er)\n onwriteError(stream, state, sync, er, cb);\n else {\n // Check if we're actually ready to finish, but don't emit yet\n var finished = needFinish(stream, state);\n\n if (!finished &&\n !state.corked &&\n !state.bufferProcessing &&\n state.buffer.length) {\n clearBuffer(stream, state);\n }\n\n if (sync) {\n process.nextTick(function() {\n afterWrite(stream, state, finished, cb);\n });\n } else {\n afterWrite(stream, state, finished, cb);\n }\n }\n}\n\nfunction afterWrite(stream, state, finished, cb) {\n if (!finished)\n onwriteDrain(stream, state);\n state.pendingcb--;\n cb();\n finishMaybe(stream, state);\n}\n\n// Must force callback to be called on nextTick, so that we don't\n// emit 'drain' before the write() consumer gets the 'false' return\n// value, and has a chance to attach a 'drain' listener.\nfunction onwriteDrain(stream, state) {\n if (state.length === 0 && state.needDrain) {\n state.needDrain = false;\n stream.emit('drain');\n }\n}\n\n\n// if there's something in the buffer waiting, then process it\nfunction clearBuffer(stream, state) {\n state.bufferProcessing = true;\n\n if (stream._writev && state.buffer.length > 1) {\n // Fast case, write everything using _writev()\n var cbs = [];\n for (var c = 0; c < state.buffer.length; c++)\n cbs.push(state.buffer[c].callback);\n\n // count the one we are adding, as well.\n // TODO(isaacs) clean this up\n state.pendingcb++;\n doWrite(stream, state, true, state.length, state.buffer, '', function(err) {\n for (var i = 0; i < cbs.length; i++) {\n state.pendingcb--;\n cbs[i](err);\n }\n });\n\n // Clear buffer\n state.buffer = [];\n } else {\n // Slow case, write chunks one-by-one\n for (var c = 0; c < state.buffer.length; c++) {\n var entry = state.buffer[c];\n var chunk = entry.chunk;\n var encoding = entry.encoding;\n var cb = entry.callback;\n var len = state.objectMode ? 1 : chunk.length;\n\n doWrite(stream, state, false, len, chunk, encoding, cb);\n\n // if we didn't call the onwrite immediately, then\n // it means that we need to wait until it does.\n // also, that means that the chunk and cb are currently\n // being processed, so move the buffer counter past them.\n if (state.writing) {\n c++;\n break;\n }\n }\n\n if (c < state.buffer.length)\n state.buffer = state.buffer.slice(c);\n else\n state.buffer.length = 0;\n }\n\n state.bufferProcessing = false;\n}\n\nWritable.prototype._write = function(chunk, encoding, cb) {\n cb(new Error('not implemented'));\n\n};\n\nWritable.prototype._writev = null;\n\nWritable.prototype.end = function(chunk, encoding, cb) {\n var state = this._writableState;\n\n if (util.isFunction(chunk)) {\n cb = chunk;\n chunk = null;\n encoding = null;\n } else if (util.isFunction(encoding)) {\n cb = encoding;\n encoding = null;\n }\n\n if (!util.isNullOrUndefined(chunk))\n this.write(chunk, encoding);\n\n // .end() fully uncorks\n if (state.corked) {\n state.corked = 1;\n this.uncork();\n }\n\n // ignore unnecessary end() calls.\n if (!state.ending && !state.finished)\n endWritable(this, state, cb);\n};\n\n\nfunction needFinish(stream, state) {\n return (state.ending &&\n state.length === 0 &&\n !state.finished &&\n !state.writing);\n}\n\nfunction prefinish(stream, state) {\n if (!state.prefinished) {\n state.prefinished = true;\n stream.emit('prefinish');\n }\n}\n\nfunction finishMaybe(stream, state) {\n var need = needFinish(stream, state);\n if (need) {\n if (state.pendingcb === 0) {\n prefinish(stream, state);\n state.finished = true;\n stream.emit('finish');\n } else\n prefinish(stream, state);\n }\n return need;\n}\n\nfunction endWritable(stream, state, cb) {\n state.ending = true;\n finishMaybe(stream, state);\n if (cb) {\n if (state.finished)\n process.nextTick(cb);\n else\n stream.once('finish', cb);\n }\n state.ended = true;\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/stream-browserify/~/readable-stream/lib/_stream_writable.js\n ** module id = 105\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/stream-browserify/~/readable-stream/lib/_stream_writable.js?"); /***/ }, /* 106 */ /***/ function(module, exports, __webpack_require__) { - eval("// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nvar Buffer = __webpack_require__(1).Buffer;\n\nvar isBufferEncoding = Buffer.isEncoding\n || function(encoding) {\n switch (encoding && encoding.toLowerCase()) {\n case 'hex': case 'utf8': case 'utf-8': case 'ascii': case 'binary': case 'base64': case 'ucs2': case 'ucs-2': case 'utf16le': case 'utf-16le': case 'raw': return true;\n default: return false;\n }\n }\n\n\nfunction assertEncoding(encoding) {\n if (encoding && !isBufferEncoding(encoding)) {\n throw new Error('Unknown encoding: ' + encoding);\n }\n}\n\n// StringDecoder provides an interface for efficiently splitting a series of\n// buffers into a series of JS strings without breaking apart multi-byte\n// characters. CESU-8 is handled as part of the UTF-8 encoding.\n//\n// @TODO Handling all encodings inside a single object makes it very difficult\n// to reason about this code, so it should be split up in the future.\n// @TODO There should be a utf8-strict encoding that rejects invalid UTF-8 code\n// points as used by CESU-8.\nvar StringDecoder = exports.StringDecoder = function(encoding) {\n this.encoding = (encoding || 'utf8').toLowerCase().replace(/[-_]/, '');\n assertEncoding(encoding);\n switch (this.encoding) {\n case 'utf8':\n // CESU-8 represents each of Surrogate Pair by 3-bytes\n this.surrogateSize = 3;\n break;\n case 'ucs2':\n case 'utf16le':\n // UTF-16 represents each of Surrogate Pair by 2-bytes\n this.surrogateSize = 2;\n this.detectIncompleteChar = utf16DetectIncompleteChar;\n break;\n case 'base64':\n // Base-64 stores 3 bytes in 4 chars, and pads the remainder.\n this.surrogateSize = 3;\n this.detectIncompleteChar = base64DetectIncompleteChar;\n break;\n default:\n this.write = passThroughWrite;\n return;\n }\n\n // Enough space to store all bytes of a single character. UTF-8 needs 4\n // bytes, but CESU-8 may require up to 6 (3 bytes per surrogate).\n this.charBuffer = new Buffer(6);\n // Number of bytes received for the current incomplete multi-byte character.\n this.charReceived = 0;\n // Number of bytes expected for the current incomplete multi-byte character.\n this.charLength = 0;\n};\n\n\n// write decodes the given buffer and returns it as JS string that is\n// guaranteed to not contain any partial multi-byte characters. Any partial\n// character found at the end of the buffer is buffered up, and will be\n// returned when calling write again with the remaining bytes.\n//\n// Note: Converting a Buffer containing an orphan surrogate to a String\n// currently works, but converting a String to a Buffer (via `new Buffer`, or\n// Buffer#write) will replace incomplete surrogates with the unicode\n// replacement character. See https://codereview.chromium.org/121173009/ .\nStringDecoder.prototype.write = function(buffer) {\n var charStr = '';\n // if our last write ended with an incomplete multibyte character\n while (this.charLength) {\n // determine how many remaining bytes this buffer has to offer for this char\n var available = (buffer.length >= this.charLength - this.charReceived) ?\n this.charLength - this.charReceived :\n buffer.length;\n\n // add the new bytes to the char buffer\n buffer.copy(this.charBuffer, this.charReceived, 0, available);\n this.charReceived += available;\n\n if (this.charReceived < this.charLength) {\n // still not enough chars in this buffer? wait for more ...\n return '';\n }\n\n // remove bytes belonging to the current character from the buffer\n buffer = buffer.slice(available, buffer.length);\n\n // get the character that was split\n charStr = this.charBuffer.slice(0, this.charLength).toString(this.encoding);\n\n // CESU-8: lead surrogate (D800-DBFF) is also the incomplete character\n var charCode = charStr.charCodeAt(charStr.length - 1);\n if (charCode >= 0xD800 && charCode <= 0xDBFF) {\n this.charLength += this.surrogateSize;\n charStr = '';\n continue;\n }\n this.charReceived = this.charLength = 0;\n\n // if there are no more bytes in this buffer, just emit our char\n if (buffer.length === 0) {\n return charStr;\n }\n break;\n }\n\n // determine and set charLength / charReceived\n this.detectIncompleteChar(buffer);\n\n var end = buffer.length;\n if (this.charLength) {\n // buffer the incomplete character bytes we got\n buffer.copy(this.charBuffer, 0, buffer.length - this.charReceived, end);\n end -= this.charReceived;\n }\n\n charStr += buffer.toString(this.encoding, 0, end);\n\n var end = charStr.length - 1;\n var charCode = charStr.charCodeAt(end);\n // CESU-8: lead surrogate (D800-DBFF) is also the incomplete character\n if (charCode >= 0xD800 && charCode <= 0xDBFF) {\n var size = this.surrogateSize;\n this.charLength += size;\n this.charReceived += size;\n this.charBuffer.copy(this.charBuffer, size, 0, size);\n buffer.copy(this.charBuffer, 0, 0, size);\n return charStr.substring(0, end);\n }\n\n // or just emit the charStr\n return charStr;\n};\n\n// detectIncompleteChar determines if there is an incomplete UTF-8 character at\n// the end of the given buffer. If so, it sets this.charLength to the byte\n// length that character, and sets this.charReceived to the number of bytes\n// that are available for this character.\nStringDecoder.prototype.detectIncompleteChar = function(buffer) {\n // determine how many bytes we have to check at the end of this buffer\n var i = (buffer.length >= 3) ? 3 : buffer.length;\n\n // Figure out if one of the last i bytes of our buffer announces an\n // incomplete char.\n for (; i > 0; i--) {\n var c = buffer[buffer.length - i];\n\n // See http://en.wikipedia.org/wiki/UTF-8#Description\n\n // 110XXXXX\n if (i == 1 && c >> 5 == 0x06) {\n this.charLength = 2;\n break;\n }\n\n // 1110XXXX\n if (i <= 2 && c >> 4 == 0x0E) {\n this.charLength = 3;\n break;\n }\n\n // 11110XXX\n if (i <= 3 && c >> 3 == 0x1E) {\n this.charLength = 4;\n break;\n }\n }\n this.charReceived = i;\n};\n\nStringDecoder.prototype.end = function(buffer) {\n var res = '';\n if (buffer && buffer.length)\n res = this.write(buffer);\n\n if (this.charReceived) {\n var cr = this.charReceived;\n var buf = this.charBuffer;\n var enc = this.encoding;\n res += buf.slice(0, cr).toString(enc);\n }\n\n return res;\n};\n\nfunction passThroughWrite(buffer) {\n return buffer.toString(this.encoding);\n}\n\nfunction utf16DetectIncompleteChar(buffer) {\n this.charReceived = buffer.length % 2;\n this.charLength = this.charReceived ? 2 : 0;\n}\n\nfunction base64DetectIncompleteChar(buffer) {\n this.charReceived = buffer.length % 3;\n this.charLength = this.charReceived ? 3 : 0;\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** (webpack)/~/node-libs-browser/~/string_decoder/index.js\n ** module id = 106\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///(webpack)/~/node-libs-browser/~/string_decoder/index.js?"); + eval("// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nvar Buffer = __webpack_require__(1).Buffer;\n\nvar isBufferEncoding = Buffer.isEncoding\n || function(encoding) {\n switch (encoding && encoding.toLowerCase()) {\n case 'hex': case 'utf8': case 'utf-8': case 'ascii': case 'binary': case 'base64': case 'ucs2': case 'ucs-2': case 'utf16le': case 'utf-16le': case 'raw': return true;\n default: return false;\n }\n }\n\n\nfunction assertEncoding(encoding) {\n if (encoding && !isBufferEncoding(encoding)) {\n throw new Error('Unknown encoding: ' + encoding);\n }\n}\n\n// StringDecoder provides an interface for efficiently splitting a series of\n// buffers into a series of JS strings without breaking apart multi-byte\n// characters. CESU-8 is handled as part of the UTF-8 encoding.\n//\n// @TODO Handling all encodings inside a single object makes it very difficult\n// to reason about this code, so it should be split up in the future.\n// @TODO There should be a utf8-strict encoding that rejects invalid UTF-8 code\n// points as used by CESU-8.\nvar StringDecoder = exports.StringDecoder = function(encoding) {\n this.encoding = (encoding || 'utf8').toLowerCase().replace(/[-_]/, '');\n assertEncoding(encoding);\n switch (this.encoding) {\n case 'utf8':\n // CESU-8 represents each of Surrogate Pair by 3-bytes\n this.surrogateSize = 3;\n break;\n case 'ucs2':\n case 'utf16le':\n // UTF-16 represents each of Surrogate Pair by 2-bytes\n this.surrogateSize = 2;\n this.detectIncompleteChar = utf16DetectIncompleteChar;\n break;\n case 'base64':\n // Base-64 stores 3 bytes in 4 chars, and pads the remainder.\n this.surrogateSize = 3;\n this.detectIncompleteChar = base64DetectIncompleteChar;\n break;\n default:\n this.write = passThroughWrite;\n return;\n }\n\n // Enough space to store all bytes of a single character. UTF-8 needs 4\n // bytes, but CESU-8 may require up to 6 (3 bytes per surrogate).\n this.charBuffer = new Buffer(6);\n // Number of bytes received for the current incomplete multi-byte character.\n this.charReceived = 0;\n // Number of bytes expected for the current incomplete multi-byte character.\n this.charLength = 0;\n};\n\n\n// write decodes the given buffer and returns it as JS string that is\n// guaranteed to not contain any partial multi-byte characters. Any partial\n// character found at the end of the buffer is buffered up, and will be\n// returned when calling write again with the remaining bytes.\n//\n// Note: Converting a Buffer containing an orphan surrogate to a String\n// currently works, but converting a String to a Buffer (via `new Buffer`, or\n// Buffer#write) will replace incomplete surrogates with the unicode\n// replacement character. See https://codereview.chromium.org/121173009/ .\nStringDecoder.prototype.write = function(buffer) {\n var charStr = '';\n // if our last write ended with an incomplete multibyte character\n while (this.charLength) {\n // determine how many remaining bytes this buffer has to offer for this char\n var available = (buffer.length >= this.charLength - this.charReceived) ?\n this.charLength - this.charReceived :\n buffer.length;\n\n // add the new bytes to the char buffer\n buffer.copy(this.charBuffer, this.charReceived, 0, available);\n this.charReceived += available;\n\n if (this.charReceived < this.charLength) {\n // still not enough chars in this buffer? wait for more ...\n return '';\n }\n\n // remove bytes belonging to the current character from the buffer\n buffer = buffer.slice(available, buffer.length);\n\n // get the character that was split\n charStr = this.charBuffer.slice(0, this.charLength).toString(this.encoding);\n\n // CESU-8: lead surrogate (D800-DBFF) is also the incomplete character\n var charCode = charStr.charCodeAt(charStr.length - 1);\n if (charCode >= 0xD800 && charCode <= 0xDBFF) {\n this.charLength += this.surrogateSize;\n charStr = '';\n continue;\n }\n this.charReceived = this.charLength = 0;\n\n // if there are no more bytes in this buffer, just emit our char\n if (buffer.length === 0) {\n return charStr;\n }\n break;\n }\n\n // determine and set charLength / charReceived\n this.detectIncompleteChar(buffer);\n\n var end = buffer.length;\n if (this.charLength) {\n // buffer the incomplete character bytes we got\n buffer.copy(this.charBuffer, 0, buffer.length - this.charReceived, end);\n end -= this.charReceived;\n }\n\n charStr += buffer.toString(this.encoding, 0, end);\n\n var end = charStr.length - 1;\n var charCode = charStr.charCodeAt(end);\n // CESU-8: lead surrogate (D800-DBFF) is also the incomplete character\n if (charCode >= 0xD800 && charCode <= 0xDBFF) {\n var size = this.surrogateSize;\n this.charLength += size;\n this.charReceived += size;\n this.charBuffer.copy(this.charBuffer, size, 0, size);\n buffer.copy(this.charBuffer, 0, 0, size);\n return charStr.substring(0, end);\n }\n\n // or just emit the charStr\n return charStr;\n};\n\n// detectIncompleteChar determines if there is an incomplete UTF-8 character at\n// the end of the given buffer. If so, it sets this.charLength to the byte\n// length that character, and sets this.charReceived to the number of bytes\n// that are available for this character.\nStringDecoder.prototype.detectIncompleteChar = function(buffer) {\n // determine how many bytes we have to check at the end of this buffer\n var i = (buffer.length >= 3) ? 3 : buffer.length;\n\n // Figure out if one of the last i bytes of our buffer announces an\n // incomplete char.\n for (; i > 0; i--) {\n var c = buffer[buffer.length - i];\n\n // See http://en.wikipedia.org/wiki/UTF-8#Description\n\n // 110XXXXX\n if (i == 1 && c >> 5 == 0x06) {\n this.charLength = 2;\n break;\n }\n\n // 1110XXXX\n if (i <= 2 && c >> 4 == 0x0E) {\n this.charLength = 3;\n break;\n }\n\n // 11110XXX\n if (i <= 3 && c >> 3 == 0x1E) {\n this.charLength = 4;\n break;\n }\n }\n this.charReceived = i;\n};\n\nStringDecoder.prototype.end = function(buffer) {\n var res = '';\n if (buffer && buffer.length)\n res = this.write(buffer);\n\n if (this.charReceived) {\n var cr = this.charReceived;\n var buf = this.charBuffer;\n var enc = this.encoding;\n res += buf.slice(0, cr).toString(enc);\n }\n\n return res;\n};\n\nfunction passThroughWrite(buffer) {\n return buffer.toString(this.encoding);\n}\n\nfunction utf16DetectIncompleteChar(buffer) {\n this.charReceived = buffer.length % 2;\n this.charLength = this.charReceived ? 2 : 0;\n}\n\nfunction base64DetectIncompleteChar(buffer) {\n this.charReceived = buffer.length % 3;\n this.charLength = this.charReceived ? 3 : 0;\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/string_decoder/index.js\n ** module id = 106\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/string_decoder/index.js?"); /***/ }, /* 107 */ /***/ function(module, exports, __webpack_require__) { - eval("// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n\n// a transform stream is a readable/writable stream where you do\n// something with the data. Sometimes it's called a \"filter\",\n// but that's not a great name for it, since that implies a thing where\n// some bits pass through, and others are simply ignored. (That would\n// be a valid example of a transform, of course.)\n//\n// While the output is causally related to the input, it's not a\n// necessarily symmetric or synchronous transformation. For example,\n// a zlib stream might take multiple plain-text writes(), and then\n// emit a single compressed chunk some time in the future.\n//\n// Here's how this works:\n//\n// The Transform stream has all the aspects of the readable and writable\n// stream classes. When you write(chunk), that calls _write(chunk,cb)\n// internally, and returns false if there's a lot of pending writes\n// buffered up. When you call read(), that calls _read(n) until\n// there's enough pending readable data buffered up.\n//\n// In a transform stream, the written data is placed in a buffer. When\n// _read(n) is called, it transforms the queued up data, calling the\n// buffered _write cb's as it consumes chunks. If consuming a single\n// written chunk would result in multiple output chunks, then the first\n// outputted bit calls the readcb, and subsequent chunks just go into\n// the read buffer, and will cause it to emit 'readable' if necessary.\n//\n// This way, back-pressure is actually determined by the reading side,\n// since _read has to be called to start processing a new chunk. However,\n// a pathological inflate type of transform can cause excessive buffering\n// here. For example, imagine a stream where every byte of input is\n// interpreted as an integer from 0-255, and then results in that many\n// bytes of output. Writing the 4 bytes {ff,ff,ff,ff} would result in\n// 1kb of data being output. In this case, you could write a very small\n// amount of input, and end up with a very large amount of output. In\n// such a pathological inflating mechanism, there'd be no way to tell\n// the system to stop doing the transform. A single 4MB write could\n// cause the system to run out of memory.\n//\n// However, even in such a pathological case, only a single written chunk\n// would be consumed, and then the rest would wait (un-transformed) until\n// the results of the previous transformed chunk were consumed.\n\nmodule.exports = Transform;\n\nvar Duplex = __webpack_require__(104);\n\n/**/\nvar util = __webpack_require__(101);\nutil.inherits = __webpack_require__(102);\n/**/\n\nutil.inherits(Transform, Duplex);\n\n\nfunction TransformState(options, stream) {\n this.afterTransform = function(er, data) {\n return afterTransform(stream, er, data);\n };\n\n this.needTransform = false;\n this.transforming = false;\n this.writecb = null;\n this.writechunk = null;\n}\n\nfunction afterTransform(stream, er, data) {\n var ts = stream._transformState;\n ts.transforming = false;\n\n var cb = ts.writecb;\n\n if (!cb)\n return stream.emit('error', new Error('no writecb in Transform class'));\n\n ts.writechunk = null;\n ts.writecb = null;\n\n if (!util.isNullOrUndefined(data))\n stream.push(data);\n\n if (cb)\n cb(er);\n\n var rs = stream._readableState;\n rs.reading = false;\n if (rs.needReadable || rs.length < rs.highWaterMark) {\n stream._read(rs.highWaterMark);\n }\n}\n\n\nfunction Transform(options) {\n if (!(this instanceof Transform))\n return new Transform(options);\n\n Duplex.call(this, options);\n\n this._transformState = new TransformState(options, this);\n\n // when the writable side finishes, then flush out anything remaining.\n var stream = this;\n\n // start out asking for a readable event once data is transformed.\n this._readableState.needReadable = true;\n\n // we have implemented the _read method, and done the other things\n // that Readable wants before the first _read call, so unset the\n // sync guard flag.\n this._readableState.sync = false;\n\n this.once('prefinish', function() {\n if (util.isFunction(this._flush))\n this._flush(function(er) {\n done(stream, er);\n });\n else\n done(stream);\n });\n}\n\nTransform.prototype.push = function(chunk, encoding) {\n this._transformState.needTransform = false;\n return Duplex.prototype.push.call(this, chunk, encoding);\n};\n\n// This is the part where you do stuff!\n// override this function in implementation classes.\n// 'chunk' is an input chunk.\n//\n// Call `push(newChunk)` to pass along transformed output\n// to the readable side. You may call 'push' zero or more times.\n//\n// Call `cb(err)` when you are done with this chunk. If you pass\n// an error, then that'll put the hurt on the whole operation. If you\n// never call cb(), then you'll never get another chunk.\nTransform.prototype._transform = function(chunk, encoding, cb) {\n throw new Error('not implemented');\n};\n\nTransform.prototype._write = function(chunk, encoding, cb) {\n var ts = this._transformState;\n ts.writecb = cb;\n ts.writechunk = chunk;\n ts.writeencoding = encoding;\n if (!ts.transforming) {\n var rs = this._readableState;\n if (ts.needTransform ||\n rs.needReadable ||\n rs.length < rs.highWaterMark)\n this._read(rs.highWaterMark);\n }\n};\n\n// Doesn't matter what the args are here.\n// _transform does all the work.\n// That we got here means that the readable side wants more data.\nTransform.prototype._read = function(n) {\n var ts = this._transformState;\n\n if (!util.isNull(ts.writechunk) && ts.writecb && !ts.transforming) {\n ts.transforming = true;\n this._transform(ts.writechunk, ts.writeencoding, ts.afterTransform);\n } else {\n // mark that we need a transform, so that any data that comes in\n // will get processed, now that we've asked for it.\n ts.needTransform = true;\n }\n};\n\n\nfunction done(stream, er) {\n if (er)\n return stream.emit('error', er);\n\n // if there's nothing in the write buffer, then that means\n // that nothing more will ever be provided\n var ws = stream._writableState;\n var ts = stream._transformState;\n\n if (ws.length)\n throw new Error('calling transform done when ws.length != 0');\n\n if (ts.transforming)\n throw new Error('calling transform done when still transforming');\n\n return stream.push(null);\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** (webpack)/~/node-libs-browser/~/readable-stream/lib/_stream_transform.js\n ** module id = 107\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///(webpack)/~/node-libs-browser/~/readable-stream/lib/_stream_transform.js?"); + eval("// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n\n// a transform stream is a readable/writable stream where you do\n// something with the data. Sometimes it's called a \"filter\",\n// but that's not a great name for it, since that implies a thing where\n// some bits pass through, and others are simply ignored. (That would\n// be a valid example of a transform, of course.)\n//\n// While the output is causally related to the input, it's not a\n// necessarily symmetric or synchronous transformation. For example,\n// a zlib stream might take multiple plain-text writes(), and then\n// emit a single compressed chunk some time in the future.\n//\n// Here's how this works:\n//\n// The Transform stream has all the aspects of the readable and writable\n// stream classes. When you write(chunk), that calls _write(chunk,cb)\n// internally, and returns false if there's a lot of pending writes\n// buffered up. When you call read(), that calls _read(n) until\n// there's enough pending readable data buffered up.\n//\n// In a transform stream, the written data is placed in a buffer. When\n// _read(n) is called, it transforms the queued up data, calling the\n// buffered _write cb's as it consumes chunks. If consuming a single\n// written chunk would result in multiple output chunks, then the first\n// outputted bit calls the readcb, and subsequent chunks just go into\n// the read buffer, and will cause it to emit 'readable' if necessary.\n//\n// This way, back-pressure is actually determined by the reading side,\n// since _read has to be called to start processing a new chunk. However,\n// a pathological inflate type of transform can cause excessive buffering\n// here. For example, imagine a stream where every byte of input is\n// interpreted as an integer from 0-255, and then results in that many\n// bytes of output. Writing the 4 bytes {ff,ff,ff,ff} would result in\n// 1kb of data being output. In this case, you could write a very small\n// amount of input, and end up with a very large amount of output. In\n// such a pathological inflating mechanism, there'd be no way to tell\n// the system to stop doing the transform. A single 4MB write could\n// cause the system to run out of memory.\n//\n// However, even in such a pathological case, only a single written chunk\n// would be consumed, and then the rest would wait (un-transformed) until\n// the results of the previous transformed chunk were consumed.\n\nmodule.exports = Transform;\n\nvar Duplex = __webpack_require__(104);\n\n/**/\nvar util = __webpack_require__(102);\nutil.inherits = __webpack_require__(96);\n/**/\n\nutil.inherits(Transform, Duplex);\n\n\nfunction TransformState(options, stream) {\n this.afterTransform = function(er, data) {\n return afterTransform(stream, er, data);\n };\n\n this.needTransform = false;\n this.transforming = false;\n this.writecb = null;\n this.writechunk = null;\n}\n\nfunction afterTransform(stream, er, data) {\n var ts = stream._transformState;\n ts.transforming = false;\n\n var cb = ts.writecb;\n\n if (!cb)\n return stream.emit('error', new Error('no writecb in Transform class'));\n\n ts.writechunk = null;\n ts.writecb = null;\n\n if (!util.isNullOrUndefined(data))\n stream.push(data);\n\n if (cb)\n cb(er);\n\n var rs = stream._readableState;\n rs.reading = false;\n if (rs.needReadable || rs.length < rs.highWaterMark) {\n stream._read(rs.highWaterMark);\n }\n}\n\n\nfunction Transform(options) {\n if (!(this instanceof Transform))\n return new Transform(options);\n\n Duplex.call(this, options);\n\n this._transformState = new TransformState(options, this);\n\n // when the writable side finishes, then flush out anything remaining.\n var stream = this;\n\n // start out asking for a readable event once data is transformed.\n this._readableState.needReadable = true;\n\n // we have implemented the _read method, and done the other things\n // that Readable wants before the first _read call, so unset the\n // sync guard flag.\n this._readableState.sync = false;\n\n this.once('prefinish', function() {\n if (util.isFunction(this._flush))\n this._flush(function(er) {\n done(stream, er);\n });\n else\n done(stream);\n });\n}\n\nTransform.prototype.push = function(chunk, encoding) {\n this._transformState.needTransform = false;\n return Duplex.prototype.push.call(this, chunk, encoding);\n};\n\n// This is the part where you do stuff!\n// override this function in implementation classes.\n// 'chunk' is an input chunk.\n//\n// Call `push(newChunk)` to pass along transformed output\n// to the readable side. You may call 'push' zero or more times.\n//\n// Call `cb(err)` when you are done with this chunk. If you pass\n// an error, then that'll put the hurt on the whole operation. If you\n// never call cb(), then you'll never get another chunk.\nTransform.prototype._transform = function(chunk, encoding, cb) {\n throw new Error('not implemented');\n};\n\nTransform.prototype._write = function(chunk, encoding, cb) {\n var ts = this._transformState;\n ts.writecb = cb;\n ts.writechunk = chunk;\n ts.writeencoding = encoding;\n if (!ts.transforming) {\n var rs = this._readableState;\n if (ts.needTransform ||\n rs.needReadable ||\n rs.length < rs.highWaterMark)\n this._read(rs.highWaterMark);\n }\n};\n\n// Doesn't matter what the args are here.\n// _transform does all the work.\n// That we got here means that the readable side wants more data.\nTransform.prototype._read = function(n) {\n var ts = this._transformState;\n\n if (!util.isNull(ts.writechunk) && ts.writecb && !ts.transforming) {\n ts.transforming = true;\n this._transform(ts.writechunk, ts.writeencoding, ts.afterTransform);\n } else {\n // mark that we need a transform, so that any data that comes in\n // will get processed, now that we've asked for it.\n ts.needTransform = true;\n }\n};\n\n\nfunction done(stream, er) {\n if (er)\n return stream.emit('error', er);\n\n // if there's nothing in the write buffer, then that means\n // that nothing more will ever be provided\n var ws = stream._writableState;\n var ts = stream._transformState;\n\n if (ws.length)\n throw new Error('calling transform done when ws.length != 0');\n\n if (ts.transforming)\n throw new Error('calling transform done when still transforming');\n\n return stream.push(null);\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/stream-browserify/~/readable-stream/lib/_stream_transform.js\n ** module id = 107\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/stream-browserify/~/readable-stream/lib/_stream_transform.js?"); /***/ }, /* 108 */ /***/ function(module, exports, __webpack_require__) { - eval("// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// a passthrough stream.\n// basically just the most minimal sort of Transform stream.\n// Every written chunk gets output as-is.\n\nmodule.exports = PassThrough;\n\nvar Transform = __webpack_require__(107);\n\n/**/\nvar util = __webpack_require__(101);\nutil.inherits = __webpack_require__(102);\n/**/\n\nutil.inherits(PassThrough, Transform);\n\nfunction PassThrough(options) {\n if (!(this instanceof PassThrough))\n return new PassThrough(options);\n\n Transform.call(this, options);\n}\n\nPassThrough.prototype._transform = function(chunk, encoding, cb) {\n cb(null, chunk);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** (webpack)/~/node-libs-browser/~/readable-stream/lib/_stream_passthrough.js\n ** module id = 108\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///(webpack)/~/node-libs-browser/~/readable-stream/lib/_stream_passthrough.js?"); + eval("// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// a passthrough stream.\n// basically just the most minimal sort of Transform stream.\n// Every written chunk gets output as-is.\n\nmodule.exports = PassThrough;\n\nvar Transform = __webpack_require__(107);\n\n/**/\nvar util = __webpack_require__(102);\nutil.inherits = __webpack_require__(96);\n/**/\n\nutil.inherits(PassThrough, Transform);\n\nfunction PassThrough(options) {\n if (!(this instanceof PassThrough))\n return new PassThrough(options);\n\n Transform.call(this, options);\n}\n\nPassThrough.prototype._transform = function(chunk, encoding, cb) {\n cb(null, chunk);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/stream-browserify/~/readable-stream/lib/_stream_passthrough.js\n ** module id = 108\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/stream-browserify/~/readable-stream/lib/_stream_passthrough.js?"); /***/ }, /* 109 */ /***/ function(module, exports, __webpack_require__) { - eval("module.exports = __webpack_require__(105)\n\n\n/*****************\n ** WEBPACK FOOTER\n ** (webpack)/~/node-libs-browser/~/readable-stream/writable.js\n ** module id = 109\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///(webpack)/~/node-libs-browser/~/readable-stream/writable.js?"); + eval("module.exports = __webpack_require__(105)\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/stream-browserify/~/readable-stream/writable.js\n ** module id = 109\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/stream-browserify/~/readable-stream/writable.js?"); /***/ }, /* 110 */ /***/ function(module, exports, __webpack_require__) { - eval("module.exports = __webpack_require__(104)\n\n\n/*****************\n ** WEBPACK FOOTER\n ** (webpack)/~/node-libs-browser/~/readable-stream/duplex.js\n ** module id = 110\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///(webpack)/~/node-libs-browser/~/readable-stream/duplex.js?"); + eval("module.exports = __webpack_require__(104)\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/stream-browserify/~/readable-stream/duplex.js\n ** module id = 110\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/stream-browserify/~/readable-stream/duplex.js?"); /***/ }, /* 111 */ /***/ function(module, exports, __webpack_require__) { - eval("module.exports = __webpack_require__(107)\n\n\n/*****************\n ** WEBPACK FOOTER\n ** (webpack)/~/node-libs-browser/~/readable-stream/transform.js\n ** module id = 111\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///(webpack)/~/node-libs-browser/~/readable-stream/transform.js?"); + eval("module.exports = __webpack_require__(107)\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/stream-browserify/~/readable-stream/transform.js\n ** module id = 111\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/stream-browserify/~/readable-stream/transform.js?"); /***/ }, /* 112 */ /***/ function(module, exports, __webpack_require__) { - eval("module.exports = __webpack_require__(108)\n\n\n/*****************\n ** WEBPACK FOOTER\n ** (webpack)/~/node-libs-browser/~/readable-stream/passthrough.js\n ** module id = 112\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///(webpack)/~/node-libs-browser/~/readable-stream/passthrough.js?"); + eval("module.exports = __webpack_require__(108)\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/stream-browserify/~/readable-stream/passthrough.js\n ** module id = 112\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/stream-browserify/~/readable-stream/passthrough.js?"); /***/ }, /* 113 */ /***/ function(module, exports, __webpack_require__) { - eval("var Buffer = __webpack_require__(1).Buffer\n\nmodule.exports = function (buf) {\n\t// If the buffer is backed by a Uint8Array, a faster version will work\n\tif (buf instanceof Uint8Array) {\n\t\t// If the buffer isn't a subarray, return the underlying ArrayBuffer\n\t\tif (buf.byteOffset === 0 && buf.byteLength === buf.buffer.byteLength) {\n\t\t\treturn buf.buffer\n\t\t} else if (typeof buf.buffer.slice === 'function') {\n\t\t\t// Otherwise we need to get a proper copy\n\t\t\treturn buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength)\n\t\t}\n\t}\n\n\tif (Buffer.isBuffer(buf)) {\n\t\t// This is the slow version that will work with any Buffer\n\t\t// implementation (even in old browsers)\n\t\tvar arrayCopy = new Uint8Array(buf.length)\n\t\tvar len = buf.length\n\t\tfor (var i = 0; i < len; i++) {\n\t\t\tarrayCopy[i] = buf[i]\n\t\t}\n\t\treturn arrayCopy.buffer\n\t} else {\n\t\tthrow new Error('Argument must be a Buffer')\n\t}\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/stream-http/~/to-arraybuffer/index.js\n ** module id = 113\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/stream-http/~/to-arraybuffer/index.js?"); + eval("var Buffer = __webpack_require__(1).Buffer\n\nmodule.exports = function (buf) {\n\t// If the buffer is backed by a Uint8Array, a faster version will work\n\tif (buf instanceof Uint8Array) {\n\t\t// If the buffer isn't a subarray, return the underlying ArrayBuffer\n\t\tif (buf.byteOffset === 0 && buf.byteLength === buf.buffer.byteLength) {\n\t\t\treturn buf.buffer\n\t\t} else if (typeof buf.buffer.slice === 'function') {\n\t\t\t// Otherwise we need to get a proper copy\n\t\t\treturn buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength)\n\t\t}\n\t}\n\n\tif (Buffer.isBuffer(buf)) {\n\t\t// This is the slow version that will work with any Buffer\n\t\t// implementation (even in old browsers)\n\t\tvar arrayCopy = new Uint8Array(buf.length)\n\t\tvar len = buf.length\n\t\tfor (var i = 0; i < len; i++) {\n\t\t\tarrayCopy[i] = buf[i]\n\t\t}\n\t\treturn arrayCopy.buffer\n\t} else {\n\t\tthrow new Error('Argument must be a Buffer')\n\t}\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/to-arraybuffer/index.js\n ** module id = 113\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/to-arraybuffer/index.js?"); /***/ }, /* 114 */ /***/ function(module, exports) { - eval("module.exports = extend\n\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\nfunction extend() {\n var target = {}\n\n for (var i = 0; i < arguments.length; i++) {\n var source = arguments[i]\n\n for (var key in source) {\n if (hasOwnProperty.call(source, key)) {\n target[key] = source[key]\n }\n }\n }\n\n return target\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/stream-http/~/xtend/immutable.js\n ** module id = 114\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/stream-http/~/xtend/immutable.js?"); + eval("module.exports = {\n \"100\": \"Continue\",\n \"101\": \"Switching Protocols\",\n \"102\": \"Processing\",\n \"200\": \"OK\",\n \"201\": \"Created\",\n \"202\": \"Accepted\",\n \"203\": \"Non-Authoritative Information\",\n \"204\": \"No Content\",\n \"205\": \"Reset Content\",\n \"206\": \"Partial Content\",\n \"207\": \"Multi-Status\",\n \"300\": \"Multiple Choices\",\n \"301\": \"Moved Permanently\",\n \"302\": \"Moved Temporarily\",\n \"303\": \"See Other\",\n \"304\": \"Not Modified\",\n \"305\": \"Use Proxy\",\n \"307\": \"Temporary Redirect\",\n \"308\": \"Permanent Redirect\",\n \"400\": \"Bad Request\",\n \"401\": \"Unauthorized\",\n \"402\": \"Payment Required\",\n \"403\": \"Forbidden\",\n \"404\": \"Not Found\",\n \"405\": \"Method Not Allowed\",\n \"406\": \"Not Acceptable\",\n \"407\": \"Proxy Authentication Required\",\n \"408\": \"Request Time-out\",\n \"409\": \"Conflict\",\n \"410\": \"Gone\",\n \"411\": \"Length Required\",\n \"412\": \"Precondition Failed\",\n \"413\": \"Request Entity Too Large\",\n \"414\": \"Request-URI Too Large\",\n \"415\": \"Unsupported Media Type\",\n \"416\": \"Requested Range Not Satisfiable\",\n \"417\": \"Expectation Failed\",\n \"418\": \"I'm a teapot\",\n \"422\": \"Unprocessable Entity\",\n \"423\": \"Locked\",\n \"424\": \"Failed Dependency\",\n \"425\": \"Unordered Collection\",\n \"426\": \"Upgrade Required\",\n \"428\": \"Precondition Required\",\n \"429\": \"Too Many Requests\",\n \"431\": \"Request Header Fields Too Large\",\n \"500\": \"Internal Server Error\",\n \"501\": \"Not Implemented\",\n \"502\": \"Bad Gateway\",\n \"503\": \"Service Unavailable\",\n \"504\": \"Gateway Time-out\",\n \"505\": \"HTTP Version Not Supported\",\n \"506\": \"Variant Also Negotiates\",\n \"507\": \"Insufficient Storage\",\n \"509\": \"Bandwidth Limit Exceeded\",\n \"510\": \"Not Extended\",\n \"511\": \"Network Authentication Required\"\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/builtin-status-codes/browser.js\n ** module id = 114\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/builtin-status-codes/browser.js?"); /***/ }, /* 115 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("module.exports = {\n \"100\": \"Continue\",\n \"101\": \"Switching Protocols\",\n \"102\": \"Processing\",\n \"200\": \"OK\",\n \"201\": \"Created\",\n \"202\": \"Accepted\",\n \"203\": \"Non-Authoritative Information\",\n \"204\": \"No Content\",\n \"205\": \"Reset Content\",\n \"206\": \"Partial Content\",\n \"207\": \"Multi-Status\",\n \"300\": \"Multiple Choices\",\n \"301\": \"Moved Permanently\",\n \"302\": \"Moved Temporarily\",\n \"303\": \"See Other\",\n \"304\": \"Not Modified\",\n \"305\": \"Use Proxy\",\n \"307\": \"Temporary Redirect\",\n \"308\": \"Permanent Redirect\",\n \"400\": \"Bad Request\",\n \"401\": \"Unauthorized\",\n \"402\": \"Payment Required\",\n \"403\": \"Forbidden\",\n \"404\": \"Not Found\",\n \"405\": \"Method Not Allowed\",\n \"406\": \"Not Acceptable\",\n \"407\": \"Proxy Authentication Required\",\n \"408\": \"Request Time-out\",\n \"409\": \"Conflict\",\n \"410\": \"Gone\",\n \"411\": \"Length Required\",\n \"412\": \"Precondition Failed\",\n \"413\": \"Request Entity Too Large\",\n \"414\": \"Request-URI Too Large\",\n \"415\": \"Unsupported Media Type\",\n \"416\": \"Requested Range Not Satisfiable\",\n \"417\": \"Expectation Failed\",\n \"418\": \"I'm a teapot\",\n \"422\": \"Unprocessable Entity\",\n \"423\": \"Locked\",\n \"424\": \"Failed Dependency\",\n \"425\": \"Unordered Collection\",\n \"426\": \"Upgrade Required\",\n \"428\": \"Precondition Required\",\n \"429\": \"Too Many Requests\",\n \"431\": \"Request Header Fields Too Large\",\n \"500\": \"Internal Server Error\",\n \"501\": \"Not Implemented\",\n \"502\": \"Bad Gateway\",\n \"503\": \"Service Unavailable\",\n \"504\": \"Gateway Time-out\",\n \"505\": \"HTTP Version Not Supported\",\n \"506\": \"Variant Also Negotiates\",\n \"507\": \"Insufficient Storage\",\n \"509\": \"Bandwidth Limit Exceeded\",\n \"510\": \"Not Extended\",\n \"511\": \"Network Authentication Required\"\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/stream-http/~/builtin-status-codes/browser.js\n ** module id = 115\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/stream-http/~/builtin-status-codes/browser.js?"); + eval("var http = __webpack_require__(93);\n\nvar https = module.exports;\n\nfor (var key in http) {\n if (http.hasOwnProperty(key)) https[key] = http[key];\n};\n\nhttps.request = function (params, cb) {\n if (!params) params = {};\n params.scheme = 'https';\n params.protocol = 'https:';\n return http.request.call(this, params, cb);\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/https-browserify/index.js\n ** module id = 115\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/https-browserify/index.js?"); /***/ }, /* 116 */ /***/ function(module, exports, __webpack_require__) { - eval("var http = __webpack_require__(91);\n\nvar https = module.exports;\n\nfor (var key in http) {\n if (http.hasOwnProperty(key)) https[key] = http[key];\n};\n\nhttps.request = function (params, cb) {\n if (!params) params = {};\n params.scheme = 'https';\n params.protocol = 'https:';\n return http.request.call(this, params, cb);\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/https-browserify/index.js\n ** module id = 116\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/https-browserify/index.js?"); + eval("/* WEBPACK VAR INJECTION */(function(Buffer, process) {'use strict';\n\n// Load modules\n\nvar _stringify = __webpack_require__(117);\n\nvar _stringify2 = _interopRequireDefault(_stringify);\n\nvar _keys = __webpack_require__(78);\n\nvar _keys2 = _interopRequireDefault(_keys);\n\nvar _defineProperty = __webpack_require__(119);\n\nvar _defineProperty2 = _interopRequireDefault(_defineProperty);\n\nvar _getOwnPropertyDescriptor = __webpack_require__(121);\n\nvar _getOwnPropertyDescriptor2 = _interopRequireDefault(_getOwnPropertyDescriptor);\n\nvar _getOwnPropertyNames = __webpack_require__(124);\n\nvar _getOwnPropertyNames2 = _interopRequireDefault(_getOwnPropertyNames);\n\nvar _create = __webpack_require__(127);\n\nvar _create2 = _interopRequireDefault(_create);\n\nvar _getPrototypeOf = __webpack_require__(129);\n\nvar _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);\n\nvar _typeof2 = __webpack_require__(20);\n\nvar _typeof3 = _interopRequireDefault(_typeof2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar Crypto = __webpack_require__(132);\nvar Path = __webpack_require__(149);\nvar Util = __webpack_require__(139);\nvar Escape = __webpack_require__(150);\n\n// Declare internals\n\nvar internals = {};\n\n// Clone object or array\n\nexports.clone = function (obj, seen) {\n\n if ((typeof obj === 'undefined' ? 'undefined' : (0, _typeof3.default)(obj)) !== 'object' || obj === null) {\n\n return obj;\n }\n\n seen = seen || { orig: [], copy: [] };\n\n var lookup = seen.orig.indexOf(obj);\n if (lookup !== -1) {\n return seen.copy[lookup];\n }\n\n var newObj = undefined;\n var cloneDeep = false;\n\n if (!Array.isArray(obj)) {\n if (Buffer.isBuffer(obj)) {\n newObj = new Buffer(obj);\n } else if (obj instanceof Date) {\n newObj = new Date(obj.getTime());\n } else if (obj instanceof RegExp) {\n newObj = new RegExp(obj);\n } else {\n var proto = (0, _getPrototypeOf2.default)(obj);\n if (proto && proto.isImmutable) {\n\n newObj = obj;\n } else {\n newObj = (0, _create2.default)(proto);\n cloneDeep = true;\n }\n }\n } else {\n newObj = [];\n cloneDeep = true;\n }\n\n seen.orig.push(obj);\n seen.copy.push(newObj);\n\n if (cloneDeep) {\n var keys = (0, _getOwnPropertyNames2.default)(obj);\n for (var i = 0; i < keys.length; ++i) {\n var key = keys[i];\n var descriptor = (0, _getOwnPropertyDescriptor2.default)(obj, key);\n if (descriptor && (descriptor.get || descriptor.set)) {\n\n (0, _defineProperty2.default)(newObj, key, descriptor);\n } else {\n newObj[key] = exports.clone(obj[key], seen);\n }\n }\n }\n\n return newObj;\n};\n\n// Merge all the properties of source into target, source wins in conflict, and by default null and undefined from source are applied\n\n/*eslint-disable */\nexports.merge = function (target, source, isNullOverride /* = true */, isMergeArrays /* = true */) {\n /*eslint-enable */\n\n exports.assert(target && (typeof target === 'undefined' ? 'undefined' : (0, _typeof3.default)(target)) === 'object', 'Invalid target value: must be an object');\n exports.assert(source === null || source === undefined || (typeof source === 'undefined' ? 'undefined' : (0, _typeof3.default)(source)) === 'object', 'Invalid source value: must be null, undefined, or an object');\n\n if (!source) {\n return target;\n }\n\n if (Array.isArray(source)) {\n exports.assert(Array.isArray(target), 'Cannot merge array onto an object');\n if (isMergeArrays === false) {\n // isMergeArrays defaults to true\n target.length = 0; // Must not change target assignment\n }\n\n for (var i = 0; i < source.length; ++i) {\n target.push(exports.clone(source[i]));\n }\n\n return target;\n }\n\n var keys = (0, _keys2.default)(source);\n for (var i = 0; i < keys.length; ++i) {\n var key = keys[i];\n var value = source[key];\n if (value && (typeof value === 'undefined' ? 'undefined' : (0, _typeof3.default)(value)) === 'object') {\n\n if (!target[key] || (0, _typeof3.default)(target[key]) !== 'object' || Array.isArray(target[key]) ^ Array.isArray(value) || value instanceof Date || Buffer.isBuffer(value) || value instanceof RegExp) {\n\n target[key] = exports.clone(value);\n } else {\n exports.merge(target[key], value, isNullOverride, isMergeArrays);\n }\n } else {\n if (value !== null && value !== undefined) {\n // Explicit to preserve empty strings\n\n target[key] = value;\n } else if (isNullOverride !== false) {\n // Defaults to true\n target[key] = value;\n }\n }\n }\n\n return target;\n};\n\n// Apply options to a copy of the defaults\n\nexports.applyToDefaults = function (defaults, options, isNullOverride) {\n\n exports.assert(defaults && (typeof defaults === 'undefined' ? 'undefined' : (0, _typeof3.default)(defaults)) === 'object', 'Invalid defaults value: must be an object');\n exports.assert(!options || options === true || (typeof options === 'undefined' ? 'undefined' : (0, _typeof3.default)(options)) === 'object', 'Invalid options value: must be true, falsy or an object');\n\n if (!options) {\n // If no options, return null\n return null;\n }\n\n var copy = exports.clone(defaults);\n\n if (options === true) {\n // If options is set to true, use defaults\n return copy;\n }\n\n return exports.merge(copy, options, isNullOverride === true, false);\n};\n\n// Clone an object except for the listed keys which are shallow copied\n\nexports.cloneWithShallow = function (source, keys) {\n\n if (!source || (typeof source === 'undefined' ? 'undefined' : (0, _typeof3.default)(source)) !== 'object') {\n\n return source;\n }\n\n var storage = internals.store(source, keys); // Move shallow copy items to storage\n var copy = exports.clone(source); // Deep copy the rest\n internals.restore(copy, source, storage); // Shallow copy the stored items and restore\n return copy;\n};\n\ninternals.store = function (source, keys) {\n\n var storage = {};\n for (var i = 0; i < keys.length; ++i) {\n var key = keys[i];\n var value = exports.reach(source, key);\n if (value !== undefined) {\n storage[key] = value;\n internals.reachSet(source, key, undefined);\n }\n }\n\n return storage;\n};\n\ninternals.restore = function (copy, source, storage) {\n\n var keys = (0, _keys2.default)(storage);\n for (var i = 0; i < keys.length; ++i) {\n var key = keys[i];\n internals.reachSet(copy, key, storage[key]);\n internals.reachSet(source, key, storage[key]);\n }\n};\n\ninternals.reachSet = function (obj, key, value) {\n\n var path = key.split('.');\n var ref = obj;\n for (var i = 0; i < path.length; ++i) {\n var segment = path[i];\n if (i + 1 === path.length) {\n ref[segment] = value;\n }\n\n ref = ref[segment];\n }\n};\n\n// Apply options to defaults except for the listed keys which are shallow copied from option without merging\n\nexports.applyToDefaultsWithShallow = function (defaults, options, keys) {\n\n exports.assert(defaults && (typeof defaults === 'undefined' ? 'undefined' : (0, _typeof3.default)(defaults)) === 'object', 'Invalid defaults value: must be an object');\n exports.assert(!options || options === true || (typeof options === 'undefined' ? 'undefined' : (0, _typeof3.default)(options)) === 'object', 'Invalid options value: must be true, falsy or an object');\n exports.assert(keys && Array.isArray(keys), 'Invalid keys');\n\n if (!options) {\n // If no options, return null\n return null;\n }\n\n var copy = exports.cloneWithShallow(defaults, keys);\n\n if (options === true) {\n // If options is set to true, use defaults\n return copy;\n }\n\n var storage = internals.store(options, keys); // Move shallow copy items to storage\n exports.merge(copy, options, false, false); // Deep copy the rest\n internals.restore(copy, options, storage); // Shallow copy the stored items and restore\n return copy;\n};\n\n// Deep object or array comparison\n\nexports.deepEqual = function (obj, ref, options, seen) {\n\n options = options || { prototype: true };\n\n var type = typeof obj === 'undefined' ? 'undefined' : (0, _typeof3.default)(obj);\n\n if (type !== (typeof ref === 'undefined' ? 'undefined' : (0, _typeof3.default)(ref))) {\n return false;\n }\n\n if (type !== 'object' || obj === null || ref === null) {\n\n if (obj === ref) {\n // Copied from Deep-eql, copyright(c) 2013 Jake Luer, jake@alogicalparadox.com, MIT Licensed, https://github.com/chaijs/deep-eql\n return obj !== 0 || 1 / obj === 1 / ref; // -0 / +0\n }\n\n return obj !== obj && ref !== ref; // NaN\n }\n\n seen = seen || [];\n if (seen.indexOf(obj) !== -1) {\n return true; // If previous comparison failed, it would have stopped execution\n }\n\n seen.push(obj);\n\n if (Array.isArray(obj)) {\n if (!Array.isArray(ref)) {\n return false;\n }\n\n if (!options.part && obj.length !== ref.length) {\n return false;\n }\n\n for (var i = 0; i < obj.length; ++i) {\n if (options.part) {\n var found = false;\n for (var j = 0; j < ref.length; ++j) {\n if (exports.deepEqual(obj[i], ref[j], options)) {\n found = true;\n break;\n }\n }\n\n return found;\n }\n\n if (!exports.deepEqual(obj[i], ref[i], options)) {\n return false;\n }\n }\n\n return true;\n }\n\n if (Buffer.isBuffer(obj)) {\n if (!Buffer.isBuffer(ref)) {\n return false;\n }\n\n if (obj.length !== ref.length) {\n return false;\n }\n\n for (var i = 0; i < obj.length; ++i) {\n if (obj[i] !== ref[i]) {\n return false;\n }\n }\n\n return true;\n }\n\n if (obj instanceof Date) {\n return ref instanceof Date && obj.getTime() === ref.getTime();\n }\n\n if (obj instanceof RegExp) {\n return ref instanceof RegExp && obj.toString() === ref.toString();\n }\n\n if (options.prototype) {\n if ((0, _getPrototypeOf2.default)(obj) !== (0, _getPrototypeOf2.default)(ref)) {\n return false;\n }\n }\n\n var keys = (0, _getOwnPropertyNames2.default)(obj);\n\n if (!options.part && keys.length !== (0, _getOwnPropertyNames2.default)(ref).length) {\n return false;\n }\n\n for (var i = 0; i < keys.length; ++i) {\n var key = keys[i];\n var descriptor = (0, _getOwnPropertyDescriptor2.default)(obj, key);\n if (descriptor.get) {\n if (!exports.deepEqual(descriptor, (0, _getOwnPropertyDescriptor2.default)(ref, key), options, seen)) {\n return false;\n }\n } else if (!exports.deepEqual(obj[key], ref[key], options, seen)) {\n return false;\n }\n }\n\n return true;\n};\n\n// Remove duplicate items from array\n\nexports.unique = function (array, key) {\n\n var index = {};\n var result = [];\n\n for (var i = 0; i < array.length; ++i) {\n var id = key ? array[i][key] : array[i];\n if (index[id] !== true) {\n\n result.push(array[i]);\n index[id] = true;\n }\n }\n\n return result;\n};\n\n// Convert array into object\n\nexports.mapToObject = function (array, key) {\n\n if (!array) {\n return null;\n }\n\n var obj = {};\n for (var i = 0; i < array.length; ++i) {\n if (key) {\n if (array[i][key]) {\n obj[array[i][key]] = true;\n }\n } else {\n obj[array[i]] = true;\n }\n }\n\n return obj;\n};\n\n// Find the common unique items in two arrays\n\nexports.intersect = function (array1, array2, justFirst) {\n\n if (!array1 || !array2) {\n return [];\n }\n\n var common = [];\n var hash = Array.isArray(array1) ? exports.mapToObject(array1) : array1;\n var found = {};\n for (var i = 0; i < array2.length; ++i) {\n if (hash[array2[i]] && !found[array2[i]]) {\n if (justFirst) {\n return array2[i];\n }\n\n common.push(array2[i]);\n found[array2[i]] = true;\n }\n }\n\n return justFirst ? null : common;\n};\n\n// Test if the reference contains the values\n\nexports.contain = function (ref, values, options) {\n\n /*\n string -> string(s)\n array -> item(s)\n object -> key(s)\n object -> object (key:value)\n */\n\n var valuePairs = null;\n if ((typeof ref === 'undefined' ? 'undefined' : (0, _typeof3.default)(ref)) === 'object' && (typeof values === 'undefined' ? 'undefined' : (0, _typeof3.default)(values)) === 'object' && !Array.isArray(ref) && !Array.isArray(values)) {\n\n valuePairs = values;\n values = (0, _keys2.default)(values);\n } else {\n values = [].concat(values);\n }\n\n options = options || {}; // deep, once, only, part\n\n exports.assert(arguments.length >= 2, 'Insufficient arguments');\n exports.assert(typeof ref === 'string' || (typeof ref === 'undefined' ? 'undefined' : (0, _typeof3.default)(ref)) === 'object', 'Reference must be string or an object');\n exports.assert(values.length, 'Values array cannot be empty');\n\n var compare = undefined;\n var compareFlags = undefined;\n if (options.deep) {\n compare = exports.deepEqual;\n\n var hasOnly = options.hasOwnProperty('only');\n var hasPart = options.hasOwnProperty('part');\n\n compareFlags = {\n prototype: hasOnly ? options.only : hasPart ? !options.part : false,\n part: hasOnly ? !options.only : hasPart ? options.part : true\n };\n } else {\n compare = function compare(a, b) {\n return a === b;\n };\n }\n\n var misses = false;\n var matches = new Array(values.length);\n for (var i = 0; i < matches.length; ++i) {\n matches[i] = 0;\n }\n\n if (typeof ref === 'string') {\n var pattern = '(';\n for (var i = 0; i < values.length; ++i) {\n var value = values[i];\n exports.assert(typeof value === 'string', 'Cannot compare string reference to non-string value');\n pattern += (i ? '|' : '') + exports.escapeRegex(value);\n }\n\n var regex = new RegExp(pattern + ')', 'g');\n var leftovers = ref.replace(regex, function ($0, $1) {\n\n var index = values.indexOf($1);\n ++matches[index];\n return ''; // Remove from string\n });\n\n misses = !!leftovers;\n } else if (Array.isArray(ref)) {\n for (var i = 0; i < ref.length; ++i) {\n var matched = false;\n for (var j = 0; j < values.length && matched === false; ++j) {\n matched = compare(values[j], ref[i], compareFlags) && j;\n }\n\n if (matched !== false) {\n ++matches[matched];\n } else {\n misses = true;\n }\n }\n } else {\n var keys = (0, _keys2.default)(ref);\n for (var i = 0; i < keys.length; ++i) {\n var key = keys[i];\n var pos = values.indexOf(key);\n if (pos !== -1) {\n if (valuePairs && !compare(valuePairs[key], ref[key], compareFlags)) {\n\n return false;\n }\n\n ++matches[pos];\n } else {\n misses = true;\n }\n }\n }\n\n var result = false;\n for (var i = 0; i < matches.length; ++i) {\n result = result || !!matches[i];\n if (options.once && matches[i] > 1 || !options.part && !matches[i]) {\n\n return false;\n }\n }\n\n if (options.only && misses) {\n\n return false;\n }\n\n return result;\n};\n\n// Flatten array\n\nexports.flatten = function (array, target) {\n\n var result = target || [];\n\n for (var i = 0; i < array.length; ++i) {\n if (Array.isArray(array[i])) {\n exports.flatten(array[i], result);\n } else {\n result.push(array[i]);\n }\n }\n\n return result;\n};\n\n// Convert an object key chain string ('a.b.c') to reference (object[a][b][c])\n\nexports.reach = function (obj, chain, options) {\n\n if (chain === false || chain === null || typeof chain === 'undefined') {\n\n return obj;\n }\n\n options = options || {};\n if (typeof options === 'string') {\n options = { separator: options };\n }\n\n var path = chain.split(options.separator || '.');\n var ref = obj;\n for (var i = 0; i < path.length; ++i) {\n var key = path[i];\n if (key[0] === '-' && Array.isArray(ref)) {\n key = key.slice(1, key.length);\n key = ref.length - key;\n }\n\n if (!ref || !(((typeof ref === 'undefined' ? 'undefined' : (0, _typeof3.default)(ref)) === 'object' || typeof ref === 'function') && key in ref) || (typeof ref === 'undefined' ? 'undefined' : (0, _typeof3.default)(ref)) !== 'object' && options.functions === false) {\n // Only object and function can have properties\n\n exports.assert(!options.strict || i + 1 === path.length, 'Missing segment', key, 'in reach path ', chain);\n exports.assert((typeof ref === 'undefined' ? 'undefined' : (0, _typeof3.default)(ref)) === 'object' || options.functions === true || typeof ref !== 'function', 'Invalid segment', key, 'in reach path ', chain);\n ref = options.default;\n break;\n }\n\n ref = ref[key];\n }\n\n return ref;\n};\n\nexports.reachTemplate = function (obj, template, options) {\n\n return template.replace(/{([^}]+)}/g, function ($0, chain) {\n\n var value = exports.reach(obj, chain, options);\n return value === undefined || value === null ? '' : value;\n });\n};\n\nexports.formatStack = function (stack) {\n\n var trace = [];\n for (var i = 0; i < stack.length; ++i) {\n var item = stack[i];\n trace.push([item.getFileName(), item.getLineNumber(), item.getColumnNumber(), item.getFunctionName(), item.isConstructor()]);\n }\n\n return trace;\n};\n\nexports.formatTrace = function (trace) {\n\n var display = [];\n\n for (var i = 0; i < trace.length; ++i) {\n var row = trace[i];\n display.push((row[4] ? 'new ' : '') + row[3] + ' (' + row[0] + ':' + row[1] + ':' + row[2] + ')');\n }\n\n return display;\n};\n\nexports.callStack = function (slice) {\n\n // http://code.google.com/p/v8/wiki/JavaScriptStackTraceApi\n\n var v8 = Error.prepareStackTrace;\n Error.prepareStackTrace = function (err, stack) {\n\n return stack;\n };\n\n var capture = {};\n Error.captureStackTrace(capture, this); // arguments.callee is not supported in strict mode so we use this and slice the trace of this off the result\n var stack = capture.stack;\n\n Error.prepareStackTrace = v8;\n\n var trace = exports.formatStack(stack);\n\n return trace.slice(1 + slice);\n};\n\nexports.displayStack = function (slice) {\n\n var trace = exports.callStack(slice === undefined ? 1 : slice + 1);\n\n return exports.formatTrace(trace);\n};\n\nexports.abortThrow = false;\n\nexports.abort = function (message, hideStack) {\n\n if (process.env.NODE_ENV === 'test' || exports.abortThrow === true) {\n throw new Error(message || 'Unknown error');\n }\n\n var stack = '';\n if (!hideStack) {\n stack = exports.displayStack(1).join('\\n\\t');\n }\n console.log('ABORT: ' + message + '\\n\\t' + stack);\n process.exit(1);\n};\n\nexports.assert = function (condition /*, msg1, msg2, msg3 */) {\n\n if (condition) {\n return;\n }\n\n if (arguments.length === 2 && arguments[1] instanceof Error) {\n throw arguments[1];\n }\n\n var msgs = [];\n for (var i = 1; i < arguments.length; ++i) {\n if (arguments[i] !== '') {\n msgs.push(arguments[i]); // Avoids Array.slice arguments leak, allowing for V8 optimizations\n }\n }\n\n msgs = msgs.map(function (msg) {\n\n return typeof msg === 'string' ? msg : msg instanceof Error ? msg.message : exports.stringify(msg);\n });\n\n throw new Error(msgs.join(' ') || 'Unknown error');\n};\n\nexports.Timer = function () {\n\n this.ts = 0;\n this.reset();\n};\n\nexports.Timer.prototype.reset = function () {\n\n this.ts = Date.now();\n};\n\nexports.Timer.prototype.elapsed = function () {\n\n return Date.now() - this.ts;\n};\n\nexports.Bench = function () {\n\n this.ts = 0;\n this.reset();\n};\n\nexports.Bench.prototype.reset = function () {\n\n this.ts = exports.Bench.now();\n};\n\nexports.Bench.prototype.elapsed = function () {\n\n return exports.Bench.now() - this.ts;\n};\n\nexports.Bench.now = function () {\n\n var ts = process.hrtime();\n return ts[0] * 1e3 + ts[1] / 1e6;\n};\n\n// Escape string for Regex construction\n\nexports.escapeRegex = function (string) {\n\n // Escape ^$.*+-?=!:|\\/()[]{},\n return string.replace(/[\\^\\$\\.\\*\\+\\-\\?\\=\\!\\:\\|\\\\\\/\\(\\)\\[\\]\\{\\}\\,]/g, '\\\\$&');\n};\n\n// Base64url (RFC 4648) encode\n\nexports.base64urlEncode = function (value, encoding) {\n\n var buf = Buffer.isBuffer(value) ? value : new Buffer(value, encoding || 'binary');\n return buf.toString('base64').replace(/\\+/g, '-').replace(/\\//g, '_').replace(/\\=/g, '');\n};\n\n// Base64url (RFC 4648) decode\n\nexports.base64urlDecode = function (value, encoding) {\n\n if (value && !/^[\\w\\-]*$/.test(value)) {\n\n return new Error('Invalid character');\n }\n\n try {\n var buf = new Buffer(value, 'base64');\n return encoding === 'buffer' ? buf : buf.toString(encoding || 'binary');\n } catch (err) {\n return err;\n }\n};\n\n// Escape attribute value for use in HTTP header\n\nexports.escapeHeaderAttribute = function (attribute) {\n\n // Allowed value characters: !#$%&'()*+,-./:;<=>?@[]^_`{|}~ and space, a-z, A-Z, 0-9, \\, \"\n\n exports.assert(/^[ \\w\\!#\\$%&'\\(\\)\\*\\+,\\-\\.\\/\\:;<\\=>\\?@\\[\\]\\^`\\{\\|\\}~\\\"\\\\]*$/.test(attribute), 'Bad attribute value (' + attribute + ')');\n\n return attribute.replace(/\\\\/g, '\\\\\\\\').replace(/\\\"/g, '\\\\\"'); // Escape quotes and slash\n};\n\nexports.escapeHtml = function (string) {\n\n return Escape.escapeHtml(string);\n};\n\nexports.escapeJavaScript = function (string) {\n\n return Escape.escapeJavaScript(string);\n};\n\nexports.nextTick = function (callback) {\n\n return function () {\n\n var args = arguments;\n process.nextTick(function () {\n\n callback.apply(null, args);\n });\n };\n};\n\nexports.once = function (method) {\n\n if (method._hoekOnce) {\n return method;\n }\n\n var once = false;\n var wrapped = function wrapped() {\n\n if (!once) {\n once = true;\n method.apply(null, arguments);\n }\n };\n\n wrapped._hoekOnce = true;\n\n return wrapped;\n};\n\nexports.isAbsolutePath = function (path, platform) {\n\n if (!path) {\n return false;\n }\n\n if (Path.isAbsolute) {\n // node >= 0.11\n return Path.isAbsolute(path);\n }\n\n platform = platform || process.platform;\n\n // Unix\n\n if (platform !== 'win32') {\n return path[0] === '/';\n }\n\n // Windows\n\n return !!/^(?:[a-zA-Z]:[\\\\\\/])|(?:[\\\\\\/]{2}[^\\\\\\/]+[\\\\\\/]+[^\\\\\\/])/.test(path); // C:\\ or \\\\something\\something\n};\n\nexports.isInteger = function (value) {\n\n return typeof value === 'number' && parseFloat(value) === parseInt(value, 10) && !isNaN(value);\n};\n\nexports.ignore = function () {};\n\nexports.inherits = Util.inherits;\n\nexports.format = Util.format;\n\nexports.transform = function (source, transform, options) {\n\n exports.assert(source === null || source === undefined || (typeof source === 'undefined' ? 'undefined' : (0, _typeof3.default)(source)) === 'object' || Array.isArray(source), 'Invalid source object: must be null, undefined, an object, or an array');\n\n if (Array.isArray(source)) {\n var results = [];\n for (var i = 0; i < source.length; ++i) {\n results.push(exports.transform(source[i], transform, options));\n }\n return results;\n }\n\n var result = {};\n var keys = (0, _keys2.default)(transform);\n\n for (var i = 0; i < keys.length; ++i) {\n var key = keys[i];\n var path = key.split('.');\n var sourcePath = transform[key];\n\n exports.assert(typeof sourcePath === 'string', 'All mappings must be \".\" delineated strings');\n\n var segment = undefined;\n var res = result;\n\n while (path.length > 1) {\n segment = path.shift();\n if (!res[segment]) {\n res[segment] = {};\n }\n res = res[segment];\n }\n segment = path.shift();\n res[segment] = exports.reach(source, sourcePath, options);\n }\n\n return result;\n};\n\nexports.uniqueFilename = function (path, extension) {\n\n if (extension) {\n extension = extension[0] !== '.' ? '.' + extension : extension;\n } else {\n extension = '';\n }\n\n path = Path.resolve(path);\n var name = [Date.now(), process.pid, Crypto.randomBytes(8).toString('hex')].join('-') + extension;\n return Path.join(path, name);\n};\n\nexports.stringify = function () {\n\n try {\n return _stringify2.default.apply(null, arguments);\n } catch (err) {\n return '[Cannot display object: ' + err.message + ']';\n }\n};\n\nexports.shallow = function (source) {\n\n var target = {};\n var keys = (0, _keys2.default)(source);\n for (var i = 0; i < keys.length; ++i) {\n var key = keys[i];\n target[key] = source[key];\n }\n\n return target;\n};\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1).Buffer, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/hoek/lib/index.js\n ** module id = 116\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/hoek/lib/index.js?"); /***/ }, /* 117 */ /***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(Buffer, process) {'use strict';\n\n// Load modules\n\nvar _stringify = __webpack_require__(118);\n\nvar _stringify2 = _interopRequireDefault(_stringify);\n\nvar _keys = __webpack_require__(76);\n\nvar _keys2 = _interopRequireDefault(_keys);\n\nvar _defineProperty = __webpack_require__(120);\n\nvar _defineProperty2 = _interopRequireDefault(_defineProperty);\n\nvar _getOwnPropertyDescriptor = __webpack_require__(122);\n\nvar _getOwnPropertyDescriptor2 = _interopRequireDefault(_getOwnPropertyDescriptor);\n\nvar _getOwnPropertyNames = __webpack_require__(125);\n\nvar _getOwnPropertyNames2 = _interopRequireDefault(_getOwnPropertyNames);\n\nvar _create = __webpack_require__(128);\n\nvar _create2 = _interopRequireDefault(_create);\n\nvar _getPrototypeOf = __webpack_require__(130);\n\nvar _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);\n\nvar _typeof2 = __webpack_require__(20);\n\nvar _typeof3 = _interopRequireDefault(_typeof2);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar Crypto = __webpack_require__(133);\nvar Path = __webpack_require__(151);\nvar Util = __webpack_require__(140);\nvar Escape = __webpack_require__(152);\n\n// Declare internals\n\nvar internals = {};\n\n// Clone object or array\n\nexports.clone = function (obj, seen) {\n\n if ((typeof obj === 'undefined' ? 'undefined' : (0, _typeof3.default)(obj)) !== 'object' || obj === null) {\n\n return obj;\n }\n\n seen = seen || { orig: [], copy: [] };\n\n var lookup = seen.orig.indexOf(obj);\n if (lookup !== -1) {\n return seen.copy[lookup];\n }\n\n var newObj = undefined;\n var cloneDeep = false;\n\n if (!Array.isArray(obj)) {\n if (Buffer.isBuffer(obj)) {\n newObj = new Buffer(obj);\n } else if (obj instanceof Date) {\n newObj = new Date(obj.getTime());\n } else if (obj instanceof RegExp) {\n newObj = new RegExp(obj);\n } else {\n var proto = (0, _getPrototypeOf2.default)(obj);\n if (proto && proto.isImmutable) {\n\n newObj = obj;\n } else {\n newObj = (0, _create2.default)(proto);\n cloneDeep = true;\n }\n }\n } else {\n newObj = [];\n cloneDeep = true;\n }\n\n seen.orig.push(obj);\n seen.copy.push(newObj);\n\n if (cloneDeep) {\n var keys = (0, _getOwnPropertyNames2.default)(obj);\n for (var i = 0; i < keys.length; ++i) {\n var key = keys[i];\n var descriptor = (0, _getOwnPropertyDescriptor2.default)(obj, key);\n if (descriptor && (descriptor.get || descriptor.set)) {\n\n (0, _defineProperty2.default)(newObj, key, descriptor);\n } else {\n newObj[key] = exports.clone(obj[key], seen);\n }\n }\n }\n\n return newObj;\n};\n\n// Merge all the properties of source into target, source wins in conflict, and by default null and undefined from source are applied\n\n/*eslint-disable */\nexports.merge = function (target, source, isNullOverride /* = true */, isMergeArrays /* = true */) {\n /*eslint-enable */\n\n exports.assert(target && (typeof target === 'undefined' ? 'undefined' : (0, _typeof3.default)(target)) === 'object', 'Invalid target value: must be an object');\n exports.assert(source === null || source === undefined || (typeof source === 'undefined' ? 'undefined' : (0, _typeof3.default)(source)) === 'object', 'Invalid source value: must be null, undefined, or an object');\n\n if (!source) {\n return target;\n }\n\n if (Array.isArray(source)) {\n exports.assert(Array.isArray(target), 'Cannot merge array onto an object');\n if (isMergeArrays === false) {\n // isMergeArrays defaults to true\n target.length = 0; // Must not change target assignment\n }\n\n for (var i = 0; i < source.length; ++i) {\n target.push(exports.clone(source[i]));\n }\n\n return target;\n }\n\n var keys = (0, _keys2.default)(source);\n for (var i = 0; i < keys.length; ++i) {\n var key = keys[i];\n var value = source[key];\n if (value && (typeof value === 'undefined' ? 'undefined' : (0, _typeof3.default)(value)) === 'object') {\n\n if (!target[key] || (0, _typeof3.default)(target[key]) !== 'object' || Array.isArray(target[key]) ^ Array.isArray(value) || value instanceof Date || Buffer.isBuffer(value) || value instanceof RegExp) {\n\n target[key] = exports.clone(value);\n } else {\n exports.merge(target[key], value, isNullOverride, isMergeArrays);\n }\n } else {\n if (value !== null && value !== undefined) {\n // Explicit to preserve empty strings\n\n target[key] = value;\n } else if (isNullOverride !== false) {\n // Defaults to true\n target[key] = value;\n }\n }\n }\n\n return target;\n};\n\n// Apply options to a copy of the defaults\n\nexports.applyToDefaults = function (defaults, options, isNullOverride) {\n\n exports.assert(defaults && (typeof defaults === 'undefined' ? 'undefined' : (0, _typeof3.default)(defaults)) === 'object', 'Invalid defaults value: must be an object');\n exports.assert(!options || options === true || (typeof options === 'undefined' ? 'undefined' : (0, _typeof3.default)(options)) === 'object', 'Invalid options value: must be true, falsy or an object');\n\n if (!options) {\n // If no options, return null\n return null;\n }\n\n var copy = exports.clone(defaults);\n\n if (options === true) {\n // If options is set to true, use defaults\n return copy;\n }\n\n return exports.merge(copy, options, isNullOverride === true, false);\n};\n\n// Clone an object except for the listed keys which are shallow copied\n\nexports.cloneWithShallow = function (source, keys) {\n\n if (!source || (typeof source === 'undefined' ? 'undefined' : (0, _typeof3.default)(source)) !== 'object') {\n\n return source;\n }\n\n var storage = internals.store(source, keys); // Move shallow copy items to storage\n var copy = exports.clone(source); // Deep copy the rest\n internals.restore(copy, source, storage); // Shallow copy the stored items and restore\n return copy;\n};\n\ninternals.store = function (source, keys) {\n\n var storage = {};\n for (var i = 0; i < keys.length; ++i) {\n var key = keys[i];\n var value = exports.reach(source, key);\n if (value !== undefined) {\n storage[key] = value;\n internals.reachSet(source, key, undefined);\n }\n }\n\n return storage;\n};\n\ninternals.restore = function (copy, source, storage) {\n\n var keys = (0, _keys2.default)(storage);\n for (var i = 0; i < keys.length; ++i) {\n var key = keys[i];\n internals.reachSet(copy, key, storage[key]);\n internals.reachSet(source, key, storage[key]);\n }\n};\n\ninternals.reachSet = function (obj, key, value) {\n\n var path = key.split('.');\n var ref = obj;\n for (var i = 0; i < path.length; ++i) {\n var segment = path[i];\n if (i + 1 === path.length) {\n ref[segment] = value;\n }\n\n ref = ref[segment];\n }\n};\n\n// Apply options to defaults except for the listed keys which are shallow copied from option without merging\n\nexports.applyToDefaultsWithShallow = function (defaults, options, keys) {\n\n exports.assert(defaults && (typeof defaults === 'undefined' ? 'undefined' : (0, _typeof3.default)(defaults)) === 'object', 'Invalid defaults value: must be an object');\n exports.assert(!options || options === true || (typeof options === 'undefined' ? 'undefined' : (0, _typeof3.default)(options)) === 'object', 'Invalid options value: must be true, falsy or an object');\n exports.assert(keys && Array.isArray(keys), 'Invalid keys');\n\n if (!options) {\n // If no options, return null\n return null;\n }\n\n var copy = exports.cloneWithShallow(defaults, keys);\n\n if (options === true) {\n // If options is set to true, use defaults\n return copy;\n }\n\n var storage = internals.store(options, keys); // Move shallow copy items to storage\n exports.merge(copy, options, false, false); // Deep copy the rest\n internals.restore(copy, options, storage); // Shallow copy the stored items and restore\n return copy;\n};\n\n// Deep object or array comparison\n\nexports.deepEqual = function (obj, ref, options, seen) {\n\n options = options || { prototype: true };\n\n var type = typeof obj === 'undefined' ? 'undefined' : (0, _typeof3.default)(obj);\n\n if (type !== (typeof ref === 'undefined' ? 'undefined' : (0, _typeof3.default)(ref))) {\n return false;\n }\n\n if (type !== 'object' || obj === null || ref === null) {\n\n if (obj === ref) {\n // Copied from Deep-eql, copyright(c) 2013 Jake Luer, jake@alogicalparadox.com, MIT Licensed, https://github.com/chaijs/deep-eql\n return obj !== 0 || 1 / obj === 1 / ref; // -0 / +0\n }\n\n return obj !== obj && ref !== ref; // NaN\n }\n\n seen = seen || [];\n if (seen.indexOf(obj) !== -1) {\n return true; // If previous comparison failed, it would have stopped execution\n }\n\n seen.push(obj);\n\n if (Array.isArray(obj)) {\n if (!Array.isArray(ref)) {\n return false;\n }\n\n if (!options.part && obj.length !== ref.length) {\n return false;\n }\n\n for (var i = 0; i < obj.length; ++i) {\n if (options.part) {\n var found = false;\n for (var j = 0; j < ref.length; ++j) {\n if (exports.deepEqual(obj[i], ref[j], options)) {\n found = true;\n break;\n }\n }\n\n return found;\n }\n\n if (!exports.deepEqual(obj[i], ref[i], options)) {\n return false;\n }\n }\n\n return true;\n }\n\n if (Buffer.isBuffer(obj)) {\n if (!Buffer.isBuffer(ref)) {\n return false;\n }\n\n if (obj.length !== ref.length) {\n return false;\n }\n\n for (var i = 0; i < obj.length; ++i) {\n if (obj[i] !== ref[i]) {\n return false;\n }\n }\n\n return true;\n }\n\n if (obj instanceof Date) {\n return ref instanceof Date && obj.getTime() === ref.getTime();\n }\n\n if (obj instanceof RegExp) {\n return ref instanceof RegExp && obj.toString() === ref.toString();\n }\n\n if (options.prototype) {\n if ((0, _getPrototypeOf2.default)(obj) !== (0, _getPrototypeOf2.default)(ref)) {\n return false;\n }\n }\n\n var keys = (0, _getOwnPropertyNames2.default)(obj);\n\n if (!options.part && keys.length !== (0, _getOwnPropertyNames2.default)(ref).length) {\n return false;\n }\n\n for (var i = 0; i < keys.length; ++i) {\n var key = keys[i];\n var descriptor = (0, _getOwnPropertyDescriptor2.default)(obj, key);\n if (descriptor.get) {\n if (!exports.deepEqual(descriptor, (0, _getOwnPropertyDescriptor2.default)(ref, key), options, seen)) {\n return false;\n }\n } else if (!exports.deepEqual(obj[key], ref[key], options, seen)) {\n return false;\n }\n }\n\n return true;\n};\n\n// Remove duplicate items from array\n\nexports.unique = function (array, key) {\n\n var index = {};\n var result = [];\n\n for (var i = 0; i < array.length; ++i) {\n var id = key ? array[i][key] : array[i];\n if (index[id] !== true) {\n\n result.push(array[i]);\n index[id] = true;\n }\n }\n\n return result;\n};\n\n// Convert array into object\n\nexports.mapToObject = function (array, key) {\n\n if (!array) {\n return null;\n }\n\n var obj = {};\n for (var i = 0; i < array.length; ++i) {\n if (key) {\n if (array[i][key]) {\n obj[array[i][key]] = true;\n }\n } else {\n obj[array[i]] = true;\n }\n }\n\n return obj;\n};\n\n// Find the common unique items in two arrays\n\nexports.intersect = function (array1, array2, justFirst) {\n\n if (!array1 || !array2) {\n return [];\n }\n\n var common = [];\n var hash = Array.isArray(array1) ? exports.mapToObject(array1) : array1;\n var found = {};\n for (var i = 0; i < array2.length; ++i) {\n if (hash[array2[i]] && !found[array2[i]]) {\n if (justFirst) {\n return array2[i];\n }\n\n common.push(array2[i]);\n found[array2[i]] = true;\n }\n }\n\n return justFirst ? null : common;\n};\n\n// Test if the reference contains the values\n\nexports.contain = function (ref, values, options) {\n\n /*\n string -> string(s)\n array -> item(s)\n object -> key(s)\n object -> object (key:value)\n */\n\n var valuePairs = null;\n if ((typeof ref === 'undefined' ? 'undefined' : (0, _typeof3.default)(ref)) === 'object' && (typeof values === 'undefined' ? 'undefined' : (0, _typeof3.default)(values)) === 'object' && !Array.isArray(ref) && !Array.isArray(values)) {\n\n valuePairs = values;\n values = (0, _keys2.default)(values);\n } else {\n values = [].concat(values);\n }\n\n options = options || {}; // deep, once, only, part\n\n exports.assert(arguments.length >= 2, 'Insufficient arguments');\n exports.assert(typeof ref === 'string' || (typeof ref === 'undefined' ? 'undefined' : (0, _typeof3.default)(ref)) === 'object', 'Reference must be string or an object');\n exports.assert(values.length, 'Values array cannot be empty');\n\n var compare = undefined;\n var compareFlags = undefined;\n if (options.deep) {\n compare = exports.deepEqual;\n\n var hasOnly = options.hasOwnProperty('only');\n var hasPart = options.hasOwnProperty('part');\n\n compareFlags = {\n prototype: hasOnly ? options.only : hasPart ? !options.part : false,\n part: hasOnly ? !options.only : hasPart ? options.part : true\n };\n } else {\n compare = function compare(a, b) {\n return a === b;\n };\n }\n\n var misses = false;\n var matches = new Array(values.length);\n for (var i = 0; i < matches.length; ++i) {\n matches[i] = 0;\n }\n\n if (typeof ref === 'string') {\n var pattern = '(';\n for (var i = 0; i < values.length; ++i) {\n var value = values[i];\n exports.assert(typeof value === 'string', 'Cannot compare string reference to non-string value');\n pattern += (i ? '|' : '') + exports.escapeRegex(value);\n }\n\n var regex = new RegExp(pattern + ')', 'g');\n var leftovers = ref.replace(regex, function ($0, $1) {\n\n var index = values.indexOf($1);\n ++matches[index];\n return ''; // Remove from string\n });\n\n misses = !!leftovers;\n } else if (Array.isArray(ref)) {\n for (var i = 0; i < ref.length; ++i) {\n var matched = false;\n for (var j = 0; j < values.length && matched === false; ++j) {\n matched = compare(values[j], ref[i], compareFlags) && j;\n }\n\n if (matched !== false) {\n ++matches[matched];\n } else {\n misses = true;\n }\n }\n } else {\n var keys = (0, _keys2.default)(ref);\n for (var i = 0; i < keys.length; ++i) {\n var key = keys[i];\n var pos = values.indexOf(key);\n if (pos !== -1) {\n if (valuePairs && !compare(valuePairs[key], ref[key], compareFlags)) {\n\n return false;\n }\n\n ++matches[pos];\n } else {\n misses = true;\n }\n }\n }\n\n var result = false;\n for (var i = 0; i < matches.length; ++i) {\n result = result || !!matches[i];\n if (options.once && matches[i] > 1 || !options.part && !matches[i]) {\n\n return false;\n }\n }\n\n if (options.only && misses) {\n\n return false;\n }\n\n return result;\n};\n\n// Flatten array\n\nexports.flatten = function (array, target) {\n\n var result = target || [];\n\n for (var i = 0; i < array.length; ++i) {\n if (Array.isArray(array[i])) {\n exports.flatten(array[i], result);\n } else {\n result.push(array[i]);\n }\n }\n\n return result;\n};\n\n// Convert an object key chain string ('a.b.c') to reference (object[a][b][c])\n\nexports.reach = function (obj, chain, options) {\n\n if (chain === false || chain === null || typeof chain === 'undefined') {\n\n return obj;\n }\n\n options = options || {};\n if (typeof options === 'string') {\n options = { separator: options };\n }\n\n var path = chain.split(options.separator || '.');\n var ref = obj;\n for (var i = 0; i < path.length; ++i) {\n var key = path[i];\n if (key[0] === '-' && Array.isArray(ref)) {\n key = key.slice(1, key.length);\n key = ref.length - key;\n }\n\n if (!ref || !(((typeof ref === 'undefined' ? 'undefined' : (0, _typeof3.default)(ref)) === 'object' || typeof ref === 'function') && key in ref) || (typeof ref === 'undefined' ? 'undefined' : (0, _typeof3.default)(ref)) !== 'object' && options.functions === false) {\n // Only object and function can have properties\n\n exports.assert(!options.strict || i + 1 === path.length, 'Missing segment', key, 'in reach path ', chain);\n exports.assert((typeof ref === 'undefined' ? 'undefined' : (0, _typeof3.default)(ref)) === 'object' || options.functions === true || typeof ref !== 'function', 'Invalid segment', key, 'in reach path ', chain);\n ref = options.default;\n break;\n }\n\n ref = ref[key];\n }\n\n return ref;\n};\n\nexports.reachTemplate = function (obj, template, options) {\n\n return template.replace(/{([^}]+)}/g, function ($0, chain) {\n\n var value = exports.reach(obj, chain, options);\n return value === undefined || value === null ? '' : value;\n });\n};\n\nexports.formatStack = function (stack) {\n\n var trace = [];\n for (var i = 0; i < stack.length; ++i) {\n var item = stack[i];\n trace.push([item.getFileName(), item.getLineNumber(), item.getColumnNumber(), item.getFunctionName(), item.isConstructor()]);\n }\n\n return trace;\n};\n\nexports.formatTrace = function (trace) {\n\n var display = [];\n\n for (var i = 0; i < trace.length; ++i) {\n var row = trace[i];\n display.push((row[4] ? 'new ' : '') + row[3] + ' (' + row[0] + ':' + row[1] + ':' + row[2] + ')');\n }\n\n return display;\n};\n\nexports.callStack = function (slice) {\n\n // http://code.google.com/p/v8/wiki/JavaScriptStackTraceApi\n\n var v8 = Error.prepareStackTrace;\n Error.prepareStackTrace = function (err, stack) {\n\n return stack;\n };\n\n var capture = {};\n Error.captureStackTrace(capture, this); // arguments.callee is not supported in strict mode so we use this and slice the trace of this off the result\n var stack = capture.stack;\n\n Error.prepareStackTrace = v8;\n\n var trace = exports.formatStack(stack);\n\n return trace.slice(1 + slice);\n};\n\nexports.displayStack = function (slice) {\n\n var trace = exports.callStack(slice === undefined ? 1 : slice + 1);\n\n return exports.formatTrace(trace);\n};\n\nexports.abortThrow = false;\n\nexports.abort = function (message, hideStack) {\n\n if (process.env.NODE_ENV === 'test' || exports.abortThrow === true) {\n throw new Error(message || 'Unknown error');\n }\n\n var stack = '';\n if (!hideStack) {\n stack = exports.displayStack(1).join('\\n\\t');\n }\n console.log('ABORT: ' + message + '\\n\\t' + stack);\n process.exit(1);\n};\n\nexports.assert = function (condition /*, msg1, msg2, msg3 */) {\n\n if (condition) {\n return;\n }\n\n if (arguments.length === 2 && arguments[1] instanceof Error) {\n throw arguments[1];\n }\n\n var msgs = [];\n for (var i = 1; i < arguments.length; ++i) {\n if (arguments[i] !== '') {\n msgs.push(arguments[i]); // Avoids Array.slice arguments leak, allowing for V8 optimizations\n }\n }\n\n msgs = msgs.map(function (msg) {\n\n return typeof msg === 'string' ? msg : msg instanceof Error ? msg.message : exports.stringify(msg);\n });\n\n throw new Error(msgs.join(' ') || 'Unknown error');\n};\n\nexports.Timer = function () {\n\n this.ts = 0;\n this.reset();\n};\n\nexports.Timer.prototype.reset = function () {\n\n this.ts = Date.now();\n};\n\nexports.Timer.prototype.elapsed = function () {\n\n return Date.now() - this.ts;\n};\n\nexports.Bench = function () {\n\n this.ts = 0;\n this.reset();\n};\n\nexports.Bench.prototype.reset = function () {\n\n this.ts = exports.Bench.now();\n};\n\nexports.Bench.prototype.elapsed = function () {\n\n return exports.Bench.now() - this.ts;\n};\n\nexports.Bench.now = function () {\n\n var ts = process.hrtime();\n return ts[0] * 1e3 + ts[1] / 1e6;\n};\n\n// Escape string for Regex construction\n\nexports.escapeRegex = function (string) {\n\n // Escape ^$.*+-?=!:|\\/()[]{},\n return string.replace(/[\\^\\$\\.\\*\\+\\-\\?\\=\\!\\:\\|\\\\\\/\\(\\)\\[\\]\\{\\}\\,]/g, '\\\\$&');\n};\n\n// Base64url (RFC 4648) encode\n\nexports.base64urlEncode = function (value, encoding) {\n\n var buf = Buffer.isBuffer(value) ? value : new Buffer(value, encoding || 'binary');\n return buf.toString('base64').replace(/\\+/g, '-').replace(/\\//g, '_').replace(/\\=/g, '');\n};\n\n// Base64url (RFC 4648) decode\n\nexports.base64urlDecode = function (value, encoding) {\n\n if (value && !/^[\\w\\-]*$/.test(value)) {\n\n return new Error('Invalid character');\n }\n\n try {\n var buf = new Buffer(value, 'base64');\n return encoding === 'buffer' ? buf : buf.toString(encoding || 'binary');\n } catch (err) {\n return err;\n }\n};\n\n// Escape attribute value for use in HTTP header\n\nexports.escapeHeaderAttribute = function (attribute) {\n\n // Allowed value characters: !#$%&'()*+,-./:;<=>?@[]^_`{|}~ and space, a-z, A-Z, 0-9, \\, \"\n\n exports.assert(/^[ \\w\\!#\\$%&'\\(\\)\\*\\+,\\-\\.\\/\\:;<\\=>\\?@\\[\\]\\^`\\{\\|\\}~\\\"\\\\]*$/.test(attribute), 'Bad attribute value (' + attribute + ')');\n\n return attribute.replace(/\\\\/g, '\\\\\\\\').replace(/\\\"/g, '\\\\\"'); // Escape quotes and slash\n};\n\nexports.escapeHtml = function (string) {\n\n return Escape.escapeHtml(string);\n};\n\nexports.escapeJavaScript = function (string) {\n\n return Escape.escapeJavaScript(string);\n};\n\nexports.nextTick = function (callback) {\n\n return function () {\n\n var args = arguments;\n process.nextTick(function () {\n\n callback.apply(null, args);\n });\n };\n};\n\nexports.once = function (method) {\n\n if (method._hoekOnce) {\n return method;\n }\n\n var once = false;\n var wrapped = function wrapped() {\n\n if (!once) {\n once = true;\n method.apply(null, arguments);\n }\n };\n\n wrapped._hoekOnce = true;\n\n return wrapped;\n};\n\nexports.isAbsolutePath = function (path, platform) {\n\n if (!path) {\n return false;\n }\n\n if (Path.isAbsolute) {\n // node >= 0.11\n return Path.isAbsolute(path);\n }\n\n platform = platform || process.platform;\n\n // Unix\n\n if (platform !== 'win32') {\n return path[0] === '/';\n }\n\n // Windows\n\n return !!/^(?:[a-zA-Z]:[\\\\\\/])|(?:[\\\\\\/]{2}[^\\\\\\/]+[\\\\\\/]+[^\\\\\\/])/.test(path); // C:\\ or \\\\something\\something\n};\n\nexports.isInteger = function (value) {\n\n return typeof value === 'number' && parseFloat(value) === parseInt(value, 10) && !isNaN(value);\n};\n\nexports.ignore = function () {};\n\nexports.inherits = Util.inherits;\n\nexports.format = Util.format;\n\nexports.transform = function (source, transform, options) {\n\n exports.assert(source === null || source === undefined || (typeof source === 'undefined' ? 'undefined' : (0, _typeof3.default)(source)) === 'object' || Array.isArray(source), 'Invalid source object: must be null, undefined, an object, or an array');\n\n if (Array.isArray(source)) {\n var results = [];\n for (var i = 0; i < source.length; ++i) {\n results.push(exports.transform(source[i], transform, options));\n }\n return results;\n }\n\n var result = {};\n var keys = (0, _keys2.default)(transform);\n\n for (var i = 0; i < keys.length; ++i) {\n var key = keys[i];\n var path = key.split('.');\n var sourcePath = transform[key];\n\n exports.assert(typeof sourcePath === 'string', 'All mappings must be \".\" delineated strings');\n\n var segment = undefined;\n var res = result;\n\n while (path.length > 1) {\n segment = path.shift();\n if (!res[segment]) {\n res[segment] = {};\n }\n res = res[segment];\n }\n segment = path.shift();\n res[segment] = exports.reach(source, sourcePath, options);\n }\n\n return result;\n};\n\nexports.uniqueFilename = function (path, extension) {\n\n if (extension) {\n extension = extension[0] !== '.' ? '.' + extension : extension;\n } else {\n extension = '';\n }\n\n path = Path.resolve(path);\n var name = [Date.now(), process.pid, Crypto.randomBytes(8).toString('hex')].join('-') + extension;\n return Path.join(path, name);\n};\n\nexports.stringify = function () {\n\n try {\n return _stringify2.default.apply(null, arguments);\n } catch (err) {\n return '[Cannot display object: ' + err.message + ']';\n }\n};\n\nexports.shallow = function (source) {\n\n var target = {};\n var keys = (0, _keys2.default)(source);\n for (var i = 0; i < keys.length; ++i) {\n var key = keys[i];\n target[key] = source[key];\n }\n\n return target;\n};\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1).Buffer, __webpack_require__(83)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/wreck/~/hoek/lib/index.js\n ** module id = 117\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/wreck/~/hoek/lib/index.js?"); + eval("module.exports = { \"default\": __webpack_require__(118), __esModule: true };\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/json/stringify.js\n ** module id = 117\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/babel-runtime/core-js/json/stringify.js?"); /***/ }, /* 118 */ /***/ function(module, exports, __webpack_require__) { - eval("module.exports = { \"default\": __webpack_require__(119), __esModule: true };\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/json/stringify.js\n ** module id = 118\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/babel-runtime/core-js/json/stringify.js?"); + eval("var core = __webpack_require__(10);\nmodule.exports = function stringify(it){ // eslint-disable-line no-unused-vars\n return (core.JSON && core.JSON.stringify || JSON.stringify).apply(JSON, arguments);\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/json/stringify.js\n ** module id = 118\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/fn/json/stringify.js?"); /***/ }, /* 119 */ /***/ function(module, exports, __webpack_require__) { - eval("var core = __webpack_require__(10);\nmodule.exports = function stringify(it){ // eslint-disable-line no-unused-vars\n return (core.JSON && core.JSON.stringify || JSON.stringify).apply(JSON, arguments);\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/~/core-js/library/fn/json/stringify.js\n ** module id = 119\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/babel-runtime/~/core-js/library/fn/json/stringify.js?"); + eval("module.exports = { \"default\": __webpack_require__(120), __esModule: true };\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/object/define-property.js\n ** module id = 119\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/babel-runtime/core-js/object/define-property.js?"); /***/ }, /* 120 */ /***/ function(module, exports, __webpack_require__) { - eval("module.exports = { \"default\": __webpack_require__(121), __esModule: true };\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/object/define-property.js\n ** module id = 120\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/babel-runtime/core-js/object/define-property.js?"); + eval("var $ = __webpack_require__(14);\nmodule.exports = function defineProperty(it, key, desc){\n return $.setDesc(it, key, desc);\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/object/define-property.js\n ** module id = 120\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/fn/object/define-property.js?"); /***/ }, /* 121 */ /***/ function(module, exports, __webpack_require__) { - eval("var $ = __webpack_require__(14);\nmodule.exports = function defineProperty(it, key, desc){\n return $.setDesc(it, key, desc);\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/~/core-js/library/fn/object/define-property.js\n ** module id = 121\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/babel-runtime/~/core-js/library/fn/object/define-property.js?"); + eval("module.exports = { \"default\": __webpack_require__(122), __esModule: true };\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/object/get-own-property-descriptor.js\n ** module id = 121\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/babel-runtime/core-js/object/get-own-property-descriptor.js?"); /***/ }, /* 122 */ /***/ function(module, exports, __webpack_require__) { - eval("module.exports = { \"default\": __webpack_require__(123), __esModule: true };\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/object/get-own-property-descriptor.js\n ** module id = 122\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/babel-runtime/core-js/object/get-own-property-descriptor.js?"); + eval("var $ = __webpack_require__(14);\n__webpack_require__(123);\nmodule.exports = function getOwnPropertyDescriptor(it, key){\n return $.getDesc(it, key);\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/object/get-own-property-descriptor.js\n ** module id = 122\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/fn/object/get-own-property-descriptor.js?"); /***/ }, /* 123 */ /***/ function(module, exports, __webpack_require__) { - eval("var $ = __webpack_require__(14);\n__webpack_require__(124);\nmodule.exports = function getOwnPropertyDescriptor(it, key){\n return $.getDesc(it, key);\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/~/core-js/library/fn/object/get-own-property-descriptor.js\n ** module id = 123\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/babel-runtime/~/core-js/library/fn/object/get-own-property-descriptor.js?"); + eval("// 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)\nvar toIObject = __webpack_require__(43);\n\n__webpack_require__(81)('getOwnPropertyDescriptor', function($getOwnPropertyDescriptor){\n return function getOwnPropertyDescriptor(it, key){\n return $getOwnPropertyDescriptor(toIObject(it), key);\n };\n});\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/es6.object.get-own-property-descriptor.js\n ** module id = 123\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/modules/es6.object.get-own-property-descriptor.js?"); /***/ }, /* 124 */ /***/ function(module, exports, __webpack_require__) { - eval("// 19.1.2.6 Object.getOwnPropertyDescriptor(O, P)\nvar toIObject = __webpack_require__(34);\n\n__webpack_require__(79)('getOwnPropertyDescriptor', function($getOwnPropertyDescriptor){\n return function getOwnPropertyDescriptor(it, key){\n return $getOwnPropertyDescriptor(toIObject(it), key);\n };\n});\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/~/core-js/library/modules/es6.object.get-own-property-descriptor.js\n ** module id = 124\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/babel-runtime/~/core-js/library/modules/es6.object.get-own-property-descriptor.js?"); + eval("module.exports = { \"default\": __webpack_require__(125), __esModule: true };\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/object/get-own-property-names.js\n ** module id = 124\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/babel-runtime/core-js/object/get-own-property-names.js?"); /***/ }, /* 125 */ /***/ function(module, exports, __webpack_require__) { - eval("module.exports = { \"default\": __webpack_require__(126), __esModule: true };\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/object/get-own-property-names.js\n ** module id = 125\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/babel-runtime/core-js/object/get-own-property-names.js?"); + eval("var $ = __webpack_require__(14);\n__webpack_require__(126);\nmodule.exports = function getOwnPropertyNames(it){\n return $.getNames(it);\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/object/get-own-property-names.js\n ** module id = 125\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/fn/object/get-own-property-names.js?"); /***/ }, /* 126 */ /***/ function(module, exports, __webpack_require__) { - eval("var $ = __webpack_require__(14);\n__webpack_require__(127);\nmodule.exports = function getOwnPropertyNames(it){\n return $.getNames(it);\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/~/core-js/library/fn/object/get-own-property-names.js\n ** module id = 126\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/babel-runtime/~/core-js/library/fn/object/get-own-property-names.js?"); + eval("// 19.1.2.7 Object.getOwnPropertyNames(O)\n__webpack_require__(81)('getOwnPropertyNames', function(){\n return __webpack_require__(48).get;\n});\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/es6.object.get-own-property-names.js\n ** module id = 126\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/modules/es6.object.get-own-property-names.js?"); /***/ }, /* 127 */ /***/ function(module, exports, __webpack_require__) { - eval("// 19.1.2.7 Object.getOwnPropertyNames(O)\n__webpack_require__(79)('getOwnPropertyNames', function(){\n return __webpack_require__(35).get;\n});\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/~/core-js/library/modules/es6.object.get-own-property-names.js\n ** module id = 127\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/babel-runtime/~/core-js/library/modules/es6.object.get-own-property-names.js?"); + eval("module.exports = { \"default\": __webpack_require__(128), __esModule: true };\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/object/create.js\n ** module id = 127\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/babel-runtime/core-js/object/create.js?"); /***/ }, /* 128 */ /***/ function(module, exports, __webpack_require__) { - eval("module.exports = { \"default\": __webpack_require__(129), __esModule: true };\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/object/create.js\n ** module id = 128\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/babel-runtime/core-js/object/create.js?"); + eval("var $ = __webpack_require__(14);\nmodule.exports = function create(P, D){\n return $.create(P, D);\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/object/create.js\n ** module id = 128\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/fn/object/create.js?"); /***/ }, /* 129 */ /***/ function(module, exports, __webpack_require__) { - eval("var $ = __webpack_require__(14);\nmodule.exports = function create(P, D){\n return $.create(P, D);\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/~/core-js/library/fn/object/create.js\n ** module id = 129\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/babel-runtime/~/core-js/library/fn/object/create.js?"); + eval("module.exports = { \"default\": __webpack_require__(130), __esModule: true };\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/object/get-prototype-of.js\n ** module id = 129\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/babel-runtime/core-js/object/get-prototype-of.js?"); /***/ }, /* 130 */ /***/ function(module, exports, __webpack_require__) { - eval("module.exports = { \"default\": __webpack_require__(131), __esModule: true };\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/object/get-prototype-of.js\n ** module id = 130\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/babel-runtime/core-js/object/get-prototype-of.js?"); + eval("__webpack_require__(131);\nmodule.exports = __webpack_require__(10).Object.getPrototypeOf;\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/object/get-prototype-of.js\n ** module id = 130\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/fn/object/get-prototype-of.js?"); /***/ }, /* 131 */ /***/ function(module, exports, __webpack_require__) { - eval("__webpack_require__(132);\nmodule.exports = __webpack_require__(10).Object.getPrototypeOf;\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/~/core-js/library/fn/object/get-prototype-of.js\n ** module id = 131\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/babel-runtime/~/core-js/library/fn/object/get-prototype-of.js?"); + eval("// 19.1.2.9 Object.getPrototypeOf(O)\nvar toObject = __webpack_require__(15);\n\n__webpack_require__(81)('getPrototypeOf', function($getPrototypeOf){\n return function getPrototypeOf(it){\n return $getPrototypeOf(toObject(it));\n };\n});\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/es6.object.get-prototype-of.js\n ** module id = 131\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/modules/es6.object.get-prototype-of.js?"); /***/ }, /* 132 */ /***/ function(module, exports, __webpack_require__) { - eval("// 19.1.2.9 Object.getPrototypeOf(O)\nvar toObject = __webpack_require__(15);\n\n__webpack_require__(79)('getPrototypeOf', function($getPrototypeOf){\n return function getPrototypeOf(it){\n return $getPrototypeOf(toObject(it));\n };\n});\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/~/core-js/library/modules/es6.object.get-prototype-of.js\n ** module id = 132\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/babel-runtime/~/core-js/library/modules/es6.object.get-prototype-of.js?"); + eval("/* WEBPACK VAR INJECTION */(function(Buffer) {var rng = __webpack_require__(133)\n\nfunction error () {\n var m = [].slice.call(arguments).join(' ')\n throw new Error([\n m,\n 'we accept pull requests',\n 'http://github.com/dominictarr/crypto-browserify'\n ].join('\\n'))\n}\n\nexports.createHash = __webpack_require__(135)\n\nexports.createHmac = __webpack_require__(146)\n\nexports.randomBytes = function(size, callback) {\n if (callback && callback.call) {\n try {\n callback.call(this, undefined, new Buffer(rng(size)))\n } catch (err) { callback(err) }\n } else {\n return new Buffer(rng(size))\n }\n}\n\nfunction each(a, f) {\n for(var i in a)\n f(a[i], i)\n}\n\nexports.getHashes = function () {\n return ['sha1', 'sha256', 'sha512', 'md5', 'rmd160']\n}\n\nvar p = __webpack_require__(147)(exports)\nexports.pbkdf2 = p.pbkdf2\nexports.pbkdf2Sync = p.pbkdf2Sync\n\n\n// the least I can do is make error messages for the rest of the node.js/crypto api.\neach(['createCredentials'\n, 'createCipher'\n, 'createCipheriv'\n, 'createDecipher'\n, 'createDecipheriv'\n, 'createSign'\n, 'createVerify'\n, 'createDiffieHellman'\n], function (name) {\n exports[name] = function () {\n error('sorry,', name, 'is not implemented yet')\n }\n})\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1).Buffer))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/crypto-browserify/index.js\n ** module id = 132\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/crypto-browserify/index.js?"); /***/ }, /* 133 */ /***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(Buffer) {var rng = __webpack_require__(134)\n\nfunction error () {\n var m = [].slice.call(arguments).join(' ')\n throw new Error([\n m,\n 'we accept pull requests',\n 'http://github.com/dominictarr/crypto-browserify'\n ].join('\\n'))\n}\n\nexports.createHash = __webpack_require__(136)\n\nexports.createHmac = __webpack_require__(148)\n\nexports.randomBytes = function(size, callback) {\n if (callback && callback.call) {\n try {\n callback.call(this, undefined, new Buffer(rng(size)))\n } catch (err) { callback(err) }\n } else {\n return new Buffer(rng(size))\n }\n}\n\nfunction each(a, f) {\n for(var i in a)\n f(a[i], i)\n}\n\nexports.getHashes = function () {\n return ['sha1', 'sha256', 'sha512', 'md5', 'rmd160']\n}\n\nvar p = __webpack_require__(149)(exports)\nexports.pbkdf2 = p.pbkdf2\nexports.pbkdf2Sync = p.pbkdf2Sync\n\n\n// the least I can do is make error messages for the rest of the node.js/crypto api.\neach(['createCredentials'\n, 'createCipher'\n, 'createCipheriv'\n, 'createDecipher'\n, 'createDecipheriv'\n, 'createSign'\n, 'createVerify'\n, 'createDiffieHellman'\n], function (name) {\n exports[name] = function () {\n error('sorry,', name, 'is not implemented yet')\n }\n})\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1).Buffer))\n\n/*****************\n ** WEBPACK FOOTER\n ** (webpack)/~/node-libs-browser/~/crypto-browserify/index.js\n ** module id = 133\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///(webpack)/~/node-libs-browser/~/crypto-browserify/index.js?"); + eval("/* WEBPACK VAR INJECTION */(function(global, Buffer) {(function() {\n var g = ('undefined' === typeof window ? global : window) || {}\n _crypto = (\n g.crypto || g.msCrypto || __webpack_require__(134)\n )\n module.exports = function(size) {\n // Modern Browsers\n if(_crypto.getRandomValues) {\n var bytes = new Buffer(size); //in browserify, this is an extended Uint8Array\n /* This will not work in older browsers.\n * See https://developer.mozilla.org/en-US/docs/Web/API/window.crypto.getRandomValues\n */\n \n _crypto.getRandomValues(bytes);\n return bytes;\n }\n else if (_crypto.randomBytes) {\n return _crypto.randomBytes(size)\n }\n else\n throw new Error(\n 'secure random number generation not supported by this browser\\n'+\n 'use chrome, FireFox or Internet Explorer 11'\n )\n }\n}())\n\n/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()), __webpack_require__(1).Buffer))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/crypto-browserify/rng.js\n ** module id = 133\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/crypto-browserify/rng.js?"); /***/ }, /* 134 */ -/***/ function(module, exports, __webpack_require__) { +/***/ function(module, exports) { - eval("/* WEBPACK VAR INJECTION */(function(global, Buffer) {(function() {\n var g = ('undefined' === typeof window ? global : window) || {}\n _crypto = (\n g.crypto || g.msCrypto || __webpack_require__(135)\n )\n module.exports = function(size) {\n // Modern Browsers\n if(_crypto.getRandomValues) {\n var bytes = new Buffer(size); //in browserify, this is an extended Uint8Array\n /* This will not work in older browsers.\n * See https://developer.mozilla.org/en-US/docs/Web/API/window.crypto.getRandomValues\n */\n \n _crypto.getRandomValues(bytes);\n return bytes;\n }\n else if (_crypto.randomBytes) {\n return _crypto.randomBytes(size)\n }\n else\n throw new Error(\n 'secure random number generation not supported by this browser\\n'+\n 'use chrome, FireFox or Internet Explorer 11'\n )\n }\n}())\n\n/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()), __webpack_require__(1).Buffer))\n\n/*****************\n ** WEBPACK FOOTER\n ** (webpack)/~/node-libs-browser/~/crypto-browserify/rng.js\n ** module id = 134\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///(webpack)/~/node-libs-browser/~/crypto-browserify/rng.js?"); + eval("/* (ignored) */\n\n/*****************\n ** WEBPACK FOOTER\n ** crypto (ignored)\n ** module id = 134\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///crypto_(ignored)?"); /***/ }, /* 135 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("/* (ignored) */\n\n/*****************\n ** WEBPACK FOOTER\n ** crypto (ignored)\n ** module id = 135\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///crypto_(ignored)?"); + eval("/* WEBPACK VAR INJECTION */(function(Buffer) {var createHash = __webpack_require__(136)\n\nvar md5 = toConstructor(__webpack_require__(143))\nvar rmd160 = toConstructor(__webpack_require__(145))\n\nfunction toConstructor (fn) {\n return function () {\n var buffers = []\n var m= {\n update: function (data, enc) {\n if(!Buffer.isBuffer(data)) data = new Buffer(data, enc)\n buffers.push(data)\n return this\n },\n digest: function (enc) {\n var buf = Buffer.concat(buffers)\n var r = fn(buf)\n buffers = null\n return enc ? r.toString(enc) : r\n }\n }\n return m\n }\n}\n\nmodule.exports = function (alg) {\n if('md5' === alg) return new md5()\n if('rmd160' === alg) return new rmd160()\n return createHash(alg)\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1).Buffer))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/crypto-browserify/create-hash.js\n ** module id = 135\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/crypto-browserify/create-hash.js?"); /***/ }, /* 136 */ /***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(Buffer) {var createHash = __webpack_require__(137)\n\nvar md5 = toConstructor(__webpack_require__(145))\nvar rmd160 = toConstructor(__webpack_require__(147))\n\nfunction toConstructor (fn) {\n return function () {\n var buffers = []\n var m= {\n update: function (data, enc) {\n if(!Buffer.isBuffer(data)) data = new Buffer(data, enc)\n buffers.push(data)\n return this\n },\n digest: function (enc) {\n var buf = Buffer.concat(buffers)\n var r = fn(buf)\n buffers = null\n return enc ? r.toString(enc) : r\n }\n }\n return m\n }\n}\n\nmodule.exports = function (alg) {\n if('md5' === alg) return new md5()\n if('rmd160' === alg) return new rmd160()\n return createHash(alg)\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1).Buffer))\n\n/*****************\n ** WEBPACK FOOTER\n ** (webpack)/~/node-libs-browser/~/crypto-browserify/create-hash.js\n ** module id = 136\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///(webpack)/~/node-libs-browser/~/crypto-browserify/create-hash.js?"); + eval("var exports = module.exports = function (alg) {\n var Alg = exports[alg]\n if(!Alg) throw new Error(alg + ' is not supported (we accept pull requests)')\n return new Alg()\n}\n\nvar Buffer = __webpack_require__(1).Buffer\nvar Hash = __webpack_require__(137)(Buffer)\n\nexports.sha1 = __webpack_require__(138)(Buffer, Hash)\nexports.sha256 = __webpack_require__(141)(Buffer, Hash)\nexports.sha512 = __webpack_require__(142)(Buffer, Hash)\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/sha.js/index.js\n ** module id = 136\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/sha.js/index.js?"); /***/ }, /* 137 */ -/***/ function(module, exports, __webpack_require__) { +/***/ function(module, exports) { - eval("var exports = module.exports = function (alg) {\n var Alg = exports[alg]\n if(!Alg) throw new Error(alg + ' is not supported (we accept pull requests)')\n return new Alg()\n}\n\nvar Buffer = __webpack_require__(1).Buffer\nvar Hash = __webpack_require__(138)(Buffer)\n\nexports.sha1 = __webpack_require__(139)(Buffer, Hash)\nexports.sha256 = __webpack_require__(143)(Buffer, Hash)\nexports.sha512 = __webpack_require__(144)(Buffer, Hash)\n\n\n/*****************\n ** WEBPACK FOOTER\n ** (webpack)/~/node-libs-browser/~/crypto-browserify/~/sha.js/index.js\n ** module id = 137\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///(webpack)/~/node-libs-browser/~/crypto-browserify/~/sha.js/index.js?"); + eval("module.exports = function (Buffer) {\n\n //prototype class for hash functions\n function Hash (blockSize, finalSize) {\n this._block = new Buffer(blockSize) //new Uint32Array(blockSize/4)\n this._finalSize = finalSize\n this._blockSize = blockSize\n this._len = 0\n this._s = 0\n }\n\n Hash.prototype.init = function () {\n this._s = 0\n this._len = 0\n }\n\n Hash.prototype.update = function (data, enc) {\n if (\"string\" === typeof data) {\n enc = enc || \"utf8\"\n data = new Buffer(data, enc)\n }\n\n var l = this._len += data.length\n var s = this._s = (this._s || 0)\n var f = 0\n var buffer = this._block\n\n while (s < l) {\n var t = Math.min(data.length, f + this._blockSize - (s % this._blockSize))\n var ch = (t - f)\n\n for (var i = 0; i < ch; i++) {\n buffer[(s % this._blockSize) + i] = data[i + f]\n }\n\n s += ch\n f += ch\n\n if ((s % this._blockSize) === 0) {\n this._update(buffer)\n }\n }\n this._s = s\n\n return this\n }\n\n Hash.prototype.digest = function (enc) {\n // Suppose the length of the message M, in bits, is l\n var l = this._len * 8\n\n // Append the bit 1 to the end of the message\n this._block[this._len % this._blockSize] = 0x80\n\n // and then k zero bits, where k is the smallest non-negative solution to the equation (l + 1 + k) === finalSize mod blockSize\n this._block.fill(0, this._len % this._blockSize + 1)\n\n if (l % (this._blockSize * 8) >= this._finalSize * 8) {\n this._update(this._block)\n this._block.fill(0)\n }\n\n // to this append the block which is equal to the number l written in binary\n // TODO: handle case where l is > Math.pow(2, 29)\n this._block.writeInt32BE(l, this._blockSize - 4)\n\n var hash = this._update(this._block) || this._hash()\n\n return enc ? hash.toString(enc) : hash\n }\n\n Hash.prototype._update = function () {\n throw new Error('_update must be implemented by subclass')\n }\n\n return Hash\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/sha.js/hash.js\n ** module id = 137\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/sha.js/hash.js?"); /***/ }, /* 138 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("module.exports = function (Buffer) {\n\n //prototype class for hash functions\n function Hash (blockSize, finalSize) {\n this._block = new Buffer(blockSize) //new Uint32Array(blockSize/4)\n this._finalSize = finalSize\n this._blockSize = blockSize\n this._len = 0\n this._s = 0\n }\n\n Hash.prototype.init = function () {\n this._s = 0\n this._len = 0\n }\n\n Hash.prototype.update = function (data, enc) {\n if (\"string\" === typeof data) {\n enc = enc || \"utf8\"\n data = new Buffer(data, enc)\n }\n\n var l = this._len += data.length\n var s = this._s = (this._s || 0)\n var f = 0\n var buffer = this._block\n\n while (s < l) {\n var t = Math.min(data.length, f + this._blockSize - (s % this._blockSize))\n var ch = (t - f)\n\n for (var i = 0; i < ch; i++) {\n buffer[(s % this._blockSize) + i] = data[i + f]\n }\n\n s += ch\n f += ch\n\n if ((s % this._blockSize) === 0) {\n this._update(buffer)\n }\n }\n this._s = s\n\n return this\n }\n\n Hash.prototype.digest = function (enc) {\n // Suppose the length of the message M, in bits, is l\n var l = this._len * 8\n\n // Append the bit 1 to the end of the message\n this._block[this._len % this._blockSize] = 0x80\n\n // and then k zero bits, where k is the smallest non-negative solution to the equation (l + 1 + k) === finalSize mod blockSize\n this._block.fill(0, this._len % this._blockSize + 1)\n\n if (l % (this._blockSize * 8) >= this._finalSize * 8) {\n this._update(this._block)\n this._block.fill(0)\n }\n\n // to this append the block which is equal to the number l written in binary\n // TODO: handle case where l is > Math.pow(2, 29)\n this._block.writeInt32BE(l, this._blockSize - 4)\n\n var hash = this._update(this._block) || this._hash()\n\n return enc ? hash.toString(enc) : hash\n }\n\n Hash.prototype._update = function () {\n throw new Error('_update must be implemented by subclass')\n }\n\n return Hash\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** (webpack)/~/node-libs-browser/~/crypto-browserify/~/sha.js/hash.js\n ** module id = 138\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///(webpack)/~/node-libs-browser/~/crypto-browserify/~/sha.js/hash.js?"); + eval("/*\n * A JavaScript implementation of the Secure Hash Algorithm, SHA-1, as defined\n * in FIPS PUB 180-1\n * Version 2.1a Copyright Paul Johnston 2000 - 2002.\n * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet\n * Distributed under the BSD License\n * See http://pajhome.org.uk/crypt/md5 for details.\n */\n\nvar inherits = __webpack_require__(139).inherits\n\nmodule.exports = function (Buffer, Hash) {\n\n var A = 0|0\n var B = 4|0\n var C = 8|0\n var D = 12|0\n var E = 16|0\n\n var W = new (typeof Int32Array === 'undefined' ? Array : Int32Array)(80)\n\n var POOL = []\n\n function Sha1 () {\n if(POOL.length)\n return POOL.pop().init()\n\n if(!(this instanceof Sha1)) return new Sha1()\n this._w = W\n Hash.call(this, 16*4, 14*4)\n\n this._h = null\n this.init()\n }\n\n inherits(Sha1, Hash)\n\n Sha1.prototype.init = function () {\n this._a = 0x67452301\n this._b = 0xefcdab89\n this._c = 0x98badcfe\n this._d = 0x10325476\n this._e = 0xc3d2e1f0\n\n Hash.prototype.init.call(this)\n return this\n }\n\n Sha1.prototype._POOL = POOL\n Sha1.prototype._update = function (X) {\n\n var a, b, c, d, e, _a, _b, _c, _d, _e\n\n a = _a = this._a\n b = _b = this._b\n c = _c = this._c\n d = _d = this._d\n e = _e = this._e\n\n var w = this._w\n\n for(var j = 0; j < 80; j++) {\n var W = w[j] = j < 16 ? X.readInt32BE(j*4)\n : rol(w[j - 3] ^ w[j - 8] ^ w[j - 14] ^ w[j - 16], 1)\n\n var t = add(\n add(rol(a, 5), sha1_ft(j, b, c, d)),\n add(add(e, W), sha1_kt(j))\n )\n\n e = d\n d = c\n c = rol(b, 30)\n b = a\n a = t\n }\n\n this._a = add(a, _a)\n this._b = add(b, _b)\n this._c = add(c, _c)\n this._d = add(d, _d)\n this._e = add(e, _e)\n }\n\n Sha1.prototype._hash = function () {\n if(POOL.length < 100) POOL.push(this)\n var H = new Buffer(20)\n //console.log(this._a|0, this._b|0, this._c|0, this._d|0, this._e|0)\n H.writeInt32BE(this._a|0, A)\n H.writeInt32BE(this._b|0, B)\n H.writeInt32BE(this._c|0, C)\n H.writeInt32BE(this._d|0, D)\n H.writeInt32BE(this._e|0, E)\n return H\n }\n\n /*\n * Perform the appropriate triplet combination function for the current\n * iteration\n */\n function sha1_ft(t, b, c, d) {\n if(t < 20) return (b & c) | ((~b) & d);\n if(t < 40) return b ^ c ^ d;\n if(t < 60) return (b & c) | (b & d) | (c & d);\n return b ^ c ^ d;\n }\n\n /*\n * Determine the appropriate additive constant for the current iteration\n */\n function sha1_kt(t) {\n return (t < 20) ? 1518500249 : (t < 40) ? 1859775393 :\n (t < 60) ? -1894007588 : -899497514;\n }\n\n /*\n * Add integers, wrapping at 2^32. This uses 16-bit operations internally\n * to work around bugs in some JS interpreters.\n * //dominictarr: this is 10 years old, so maybe this can be dropped?)\n *\n */\n function add(x, y) {\n return (x + y ) | 0\n //lets see how this goes on testling.\n // var lsw = (x & 0xFFFF) + (y & 0xFFFF);\n // var msw = (x >> 16) + (y >> 16) + (lsw >> 16);\n // return (msw << 16) | (lsw & 0xFFFF);\n }\n\n /*\n * Bitwise rotate a 32-bit number to the left.\n */\n function rol(num, cnt) {\n return (num << cnt) | (num >>> (32 - cnt));\n }\n\n return Sha1\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/sha.js/sha1.js\n ** module id = 138\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/sha.js/sha1.js?"); /***/ }, /* 139 */ /***/ function(module, exports, __webpack_require__) { - eval("/*\n * A JavaScript implementation of the Secure Hash Algorithm, SHA-1, as defined\n * in FIPS PUB 180-1\n * Version 2.1a Copyright Paul Johnston 2000 - 2002.\n * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet\n * Distributed under the BSD License\n * See http://pajhome.org.uk/crypt/md5 for details.\n */\n\nvar inherits = __webpack_require__(140).inherits\n\nmodule.exports = function (Buffer, Hash) {\n\n var A = 0|0\n var B = 4|0\n var C = 8|0\n var D = 12|0\n var E = 16|0\n\n var W = new (typeof Int32Array === 'undefined' ? Array : Int32Array)(80)\n\n var POOL = []\n\n function Sha1 () {\n if(POOL.length)\n return POOL.pop().init()\n\n if(!(this instanceof Sha1)) return new Sha1()\n this._w = W\n Hash.call(this, 16*4, 14*4)\n\n this._h = null\n this.init()\n }\n\n inherits(Sha1, Hash)\n\n Sha1.prototype.init = function () {\n this._a = 0x67452301\n this._b = 0xefcdab89\n this._c = 0x98badcfe\n this._d = 0x10325476\n this._e = 0xc3d2e1f0\n\n Hash.prototype.init.call(this)\n return this\n }\n\n Sha1.prototype._POOL = POOL\n Sha1.prototype._update = function (X) {\n\n var a, b, c, d, e, _a, _b, _c, _d, _e\n\n a = _a = this._a\n b = _b = this._b\n c = _c = this._c\n d = _d = this._d\n e = _e = this._e\n\n var w = this._w\n\n for(var j = 0; j < 80; j++) {\n var W = w[j] = j < 16 ? X.readInt32BE(j*4)\n : rol(w[j - 3] ^ w[j - 8] ^ w[j - 14] ^ w[j - 16], 1)\n\n var t = add(\n add(rol(a, 5), sha1_ft(j, b, c, d)),\n add(add(e, W), sha1_kt(j))\n )\n\n e = d\n d = c\n c = rol(b, 30)\n b = a\n a = t\n }\n\n this._a = add(a, _a)\n this._b = add(b, _b)\n this._c = add(c, _c)\n this._d = add(d, _d)\n this._e = add(e, _e)\n }\n\n Sha1.prototype._hash = function () {\n if(POOL.length < 100) POOL.push(this)\n var H = new Buffer(20)\n //console.log(this._a|0, this._b|0, this._c|0, this._d|0, this._e|0)\n H.writeInt32BE(this._a|0, A)\n H.writeInt32BE(this._b|0, B)\n H.writeInt32BE(this._c|0, C)\n H.writeInt32BE(this._d|0, D)\n H.writeInt32BE(this._e|0, E)\n return H\n }\n\n /*\n * Perform the appropriate triplet combination function for the current\n * iteration\n */\n function sha1_ft(t, b, c, d) {\n if(t < 20) return (b & c) | ((~b) & d);\n if(t < 40) return b ^ c ^ d;\n if(t < 60) return (b & c) | (b & d) | (c & d);\n return b ^ c ^ d;\n }\n\n /*\n * Determine the appropriate additive constant for the current iteration\n */\n function sha1_kt(t) {\n return (t < 20) ? 1518500249 : (t < 40) ? 1859775393 :\n (t < 60) ? -1894007588 : -899497514;\n }\n\n /*\n * Add integers, wrapping at 2^32. This uses 16-bit operations internally\n * to work around bugs in some JS interpreters.\n * //dominictarr: this is 10 years old, so maybe this can be dropped?)\n *\n */\n function add(x, y) {\n return (x + y ) | 0\n //lets see how this goes on testling.\n // var lsw = (x & 0xFFFF) + (y & 0xFFFF);\n // var msw = (x >> 16) + (y >> 16) + (lsw >> 16);\n // return (msw << 16) | (lsw & 0xFFFF);\n }\n\n /*\n * Bitwise rotate a 32-bit number to the left.\n */\n function rol(num, cnt) {\n return (num << cnt) | (num >>> (32 - cnt));\n }\n\n return Sha1\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** (webpack)/~/node-libs-browser/~/crypto-browserify/~/sha.js/sha1.js\n ** module id = 139\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///(webpack)/~/node-libs-browser/~/crypto-browserify/~/sha.js/sha1.js?"); + eval("/* WEBPACK VAR INJECTION */(function(global, process) {// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nvar formatRegExp = /%[sdj%]/g;\nexports.format = function(f) {\n if (!isString(f)) {\n var objects = [];\n for (var i = 0; i < arguments.length; i++) {\n objects.push(inspect(arguments[i]));\n }\n return objects.join(' ');\n }\n\n var i = 1;\n var args = arguments;\n var len = args.length;\n var str = String(f).replace(formatRegExp, function(x) {\n if (x === '%%') return '%';\n if (i >= len) return x;\n switch (x) {\n case '%s': return String(args[i++]);\n case '%d': return Number(args[i++]);\n case '%j':\n try {\n return JSON.stringify(args[i++]);\n } catch (_) {\n return '[Circular]';\n }\n default:\n return x;\n }\n });\n for (var x = args[i]; i < len; x = args[++i]) {\n if (isNull(x) || !isObject(x)) {\n str += ' ' + x;\n } else {\n str += ' ' + inspect(x);\n }\n }\n return str;\n};\n\n\n// Mark that a method should not be used.\n// Returns a modified function which warns once by default.\n// If --no-deprecation is set, then it is a no-op.\nexports.deprecate = function(fn, msg) {\n // Allow for deprecating things in the process of starting up.\n if (isUndefined(global.process)) {\n return function() {\n return exports.deprecate(fn, msg).apply(this, arguments);\n };\n }\n\n if (process.noDeprecation === true) {\n return fn;\n }\n\n var warned = false;\n function deprecated() {\n if (!warned) {\n if (process.throwDeprecation) {\n throw new Error(msg);\n } else if (process.traceDeprecation) {\n console.trace(msg);\n } else {\n console.error(msg);\n }\n warned = true;\n }\n return fn.apply(this, arguments);\n }\n\n return deprecated;\n};\n\n\nvar debugs = {};\nvar debugEnviron;\nexports.debuglog = function(set) {\n if (isUndefined(debugEnviron))\n debugEnviron = process.env.NODE_DEBUG || '';\n set = set.toUpperCase();\n if (!debugs[set]) {\n if (new RegExp('\\\\b' + set + '\\\\b', 'i').test(debugEnviron)) {\n var pid = process.pid;\n debugs[set] = function() {\n var msg = exports.format.apply(exports, arguments);\n console.error('%s %d: %s', set, pid, msg);\n };\n } else {\n debugs[set] = function() {};\n }\n }\n return debugs[set];\n};\n\n\n/**\n * Echos the value of a value. Trys to print the value out\n * in the best way possible given the different types.\n *\n * @param {Object} obj The object to print out.\n * @param {Object} opts Optional options object that alters the output.\n */\n/* legacy: obj, showHidden, depth, colors*/\nfunction inspect(obj, opts) {\n // default options\n var ctx = {\n seen: [],\n stylize: stylizeNoColor\n };\n // legacy...\n if (arguments.length >= 3) ctx.depth = arguments[2];\n if (arguments.length >= 4) ctx.colors = arguments[3];\n if (isBoolean(opts)) {\n // legacy...\n ctx.showHidden = opts;\n } else if (opts) {\n // got an \"options\" object\n exports._extend(ctx, opts);\n }\n // set default options\n if (isUndefined(ctx.showHidden)) ctx.showHidden = false;\n if (isUndefined(ctx.depth)) ctx.depth = 2;\n if (isUndefined(ctx.colors)) ctx.colors = false;\n if (isUndefined(ctx.customInspect)) ctx.customInspect = true;\n if (ctx.colors) ctx.stylize = stylizeWithColor;\n return formatValue(ctx, obj, ctx.depth);\n}\nexports.inspect = inspect;\n\n\n// http://en.wikipedia.org/wiki/ANSI_escape_code#graphics\ninspect.colors = {\n 'bold' : [1, 22],\n 'italic' : [3, 23],\n 'underline' : [4, 24],\n 'inverse' : [7, 27],\n 'white' : [37, 39],\n 'grey' : [90, 39],\n 'black' : [30, 39],\n 'blue' : [34, 39],\n 'cyan' : [36, 39],\n 'green' : [32, 39],\n 'magenta' : [35, 39],\n 'red' : [31, 39],\n 'yellow' : [33, 39]\n};\n\n// Don't use 'blue' not visible on cmd.exe\ninspect.styles = {\n 'special': 'cyan',\n 'number': 'yellow',\n 'boolean': 'yellow',\n 'undefined': 'grey',\n 'null': 'bold',\n 'string': 'green',\n 'date': 'magenta',\n // \"name\": intentionally not styling\n 'regexp': 'red'\n};\n\n\nfunction stylizeWithColor(str, styleType) {\n var style = inspect.styles[styleType];\n\n if (style) {\n return '\\u001b[' + inspect.colors[style][0] + 'm' + str +\n '\\u001b[' + inspect.colors[style][1] + 'm';\n } else {\n return str;\n }\n}\n\n\nfunction stylizeNoColor(str, styleType) {\n return str;\n}\n\n\nfunction arrayToHash(array) {\n var hash = {};\n\n array.forEach(function(val, idx) {\n hash[val] = true;\n });\n\n return hash;\n}\n\n\nfunction formatValue(ctx, value, recurseTimes) {\n // Provide a hook for user-specified inspect functions.\n // Check that value is an object with an inspect function on it\n if (ctx.customInspect &&\n value &&\n isFunction(value.inspect) &&\n // Filter out the util module, it's inspect function is special\n value.inspect !== exports.inspect &&\n // Also filter out any prototype objects using the circular check.\n !(value.constructor && value.constructor.prototype === value)) {\n var ret = value.inspect(recurseTimes, ctx);\n if (!isString(ret)) {\n ret = formatValue(ctx, ret, recurseTimes);\n }\n return ret;\n }\n\n // Primitive types cannot have properties\n var primitive = formatPrimitive(ctx, value);\n if (primitive) {\n return primitive;\n }\n\n // Look up the keys of the object.\n var keys = Object.keys(value);\n var visibleKeys = arrayToHash(keys);\n\n if (ctx.showHidden) {\n keys = Object.getOwnPropertyNames(value);\n }\n\n // IE doesn't make error fields non-enumerable\n // http://msdn.microsoft.com/en-us/library/ie/dww52sbt(v=vs.94).aspx\n if (isError(value)\n && (keys.indexOf('message') >= 0 || keys.indexOf('description') >= 0)) {\n return formatError(value);\n }\n\n // Some type of object without properties can be shortcutted.\n if (keys.length === 0) {\n if (isFunction(value)) {\n var name = value.name ? ': ' + value.name : '';\n return ctx.stylize('[Function' + name + ']', 'special');\n }\n if (isRegExp(value)) {\n return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');\n }\n if (isDate(value)) {\n return ctx.stylize(Date.prototype.toString.call(value), 'date');\n }\n if (isError(value)) {\n return formatError(value);\n }\n }\n\n var base = '', array = false, braces = ['{', '}'];\n\n // Make Array say that they are Array\n if (isArray(value)) {\n array = true;\n braces = ['[', ']'];\n }\n\n // Make functions say that they are functions\n if (isFunction(value)) {\n var n = value.name ? ': ' + value.name : '';\n base = ' [Function' + n + ']';\n }\n\n // Make RegExps say that they are RegExps\n if (isRegExp(value)) {\n base = ' ' + RegExp.prototype.toString.call(value);\n }\n\n // Make dates with properties first say the date\n if (isDate(value)) {\n base = ' ' + Date.prototype.toUTCString.call(value);\n }\n\n // Make error with message first say the error\n if (isError(value)) {\n base = ' ' + formatError(value);\n }\n\n if (keys.length === 0 && (!array || value.length == 0)) {\n return braces[0] + base + braces[1];\n }\n\n if (recurseTimes < 0) {\n if (isRegExp(value)) {\n return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');\n } else {\n return ctx.stylize('[Object]', 'special');\n }\n }\n\n ctx.seen.push(value);\n\n var output;\n if (array) {\n output = formatArray(ctx, value, recurseTimes, visibleKeys, keys);\n } else {\n output = keys.map(function(key) {\n return formatProperty(ctx, value, recurseTimes, visibleKeys, key, array);\n });\n }\n\n ctx.seen.pop();\n\n return reduceToSingleString(output, base, braces);\n}\n\n\nfunction formatPrimitive(ctx, value) {\n if (isUndefined(value))\n return ctx.stylize('undefined', 'undefined');\n if (isString(value)) {\n var simple = '\\'' + JSON.stringify(value).replace(/^\"|\"$/g, '')\n .replace(/'/g, \"\\\\'\")\n .replace(/\\\\\"/g, '\"') + '\\'';\n return ctx.stylize(simple, 'string');\n }\n if (isNumber(value))\n return ctx.stylize('' + value, 'number');\n if (isBoolean(value))\n return ctx.stylize('' + value, 'boolean');\n // For some reason typeof null is \"object\", so special case here.\n if (isNull(value))\n return ctx.stylize('null', 'null');\n}\n\n\nfunction formatError(value) {\n return '[' + Error.prototype.toString.call(value) + ']';\n}\n\n\nfunction formatArray(ctx, value, recurseTimes, visibleKeys, keys) {\n var output = [];\n for (var i = 0, l = value.length; i < l; ++i) {\n if (hasOwnProperty(value, String(i))) {\n output.push(formatProperty(ctx, value, recurseTimes, visibleKeys,\n String(i), true));\n } else {\n output.push('');\n }\n }\n keys.forEach(function(key) {\n if (!key.match(/^\\d+$/)) {\n output.push(formatProperty(ctx, value, recurseTimes, visibleKeys,\n key, true));\n }\n });\n return output;\n}\n\n\nfunction formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) {\n var name, str, desc;\n desc = Object.getOwnPropertyDescriptor(value, key) || { value: value[key] };\n if (desc.get) {\n if (desc.set) {\n str = ctx.stylize('[Getter/Setter]', 'special');\n } else {\n str = ctx.stylize('[Getter]', 'special');\n }\n } else {\n if (desc.set) {\n str = ctx.stylize('[Setter]', 'special');\n }\n }\n if (!hasOwnProperty(visibleKeys, key)) {\n name = '[' + key + ']';\n }\n if (!str) {\n if (ctx.seen.indexOf(desc.value) < 0) {\n if (isNull(recurseTimes)) {\n str = formatValue(ctx, desc.value, null);\n } else {\n str = formatValue(ctx, desc.value, recurseTimes - 1);\n }\n if (str.indexOf('\\n') > -1) {\n if (array) {\n str = str.split('\\n').map(function(line) {\n return ' ' + line;\n }).join('\\n').substr(2);\n } else {\n str = '\\n' + str.split('\\n').map(function(line) {\n return ' ' + line;\n }).join('\\n');\n }\n }\n } else {\n str = ctx.stylize('[Circular]', 'special');\n }\n }\n if (isUndefined(name)) {\n if (array && key.match(/^\\d+$/)) {\n return str;\n }\n name = JSON.stringify('' + key);\n if (name.match(/^\"([a-zA-Z_][a-zA-Z_0-9]*)\"$/)) {\n name = name.substr(1, name.length - 2);\n name = ctx.stylize(name, 'name');\n } else {\n name = name.replace(/'/g, \"\\\\'\")\n .replace(/\\\\\"/g, '\"')\n .replace(/(^\"|\"$)/g, \"'\");\n name = ctx.stylize(name, 'string');\n }\n }\n\n return name + ': ' + str;\n}\n\n\nfunction reduceToSingleString(output, base, braces) {\n var numLinesEst = 0;\n var length = output.reduce(function(prev, cur) {\n numLinesEst++;\n if (cur.indexOf('\\n') >= 0) numLinesEst++;\n return prev + cur.replace(/\\u001b\\[\\d\\d?m/g, '').length + 1;\n }, 0);\n\n if (length > 60) {\n return braces[0] +\n (base === '' ? '' : base + '\\n ') +\n ' ' +\n output.join(',\\n ') +\n ' ' +\n braces[1];\n }\n\n return braces[0] + base + ' ' + output.join(', ') + ' ' + braces[1];\n}\n\n\n// NOTE: These type checking functions intentionally don't use `instanceof`\n// because it is fragile and can be easily faked with `Object.create()`.\nfunction isArray(ar) {\n return Array.isArray(ar);\n}\nexports.isArray = isArray;\n\nfunction isBoolean(arg) {\n return typeof arg === 'boolean';\n}\nexports.isBoolean = isBoolean;\n\nfunction isNull(arg) {\n return arg === null;\n}\nexports.isNull = isNull;\n\nfunction isNullOrUndefined(arg) {\n return arg == null;\n}\nexports.isNullOrUndefined = isNullOrUndefined;\n\nfunction isNumber(arg) {\n return typeof arg === 'number';\n}\nexports.isNumber = isNumber;\n\nfunction isString(arg) {\n return typeof arg === 'string';\n}\nexports.isString = isString;\n\nfunction isSymbol(arg) {\n return typeof arg === 'symbol';\n}\nexports.isSymbol = isSymbol;\n\nfunction isUndefined(arg) {\n return arg === void 0;\n}\nexports.isUndefined = isUndefined;\n\nfunction isRegExp(re) {\n return isObject(re) && objectToString(re) === '[object RegExp]';\n}\nexports.isRegExp = isRegExp;\n\nfunction isObject(arg) {\n return typeof arg === 'object' && arg !== null;\n}\nexports.isObject = isObject;\n\nfunction isDate(d) {\n return isObject(d) && objectToString(d) === '[object Date]';\n}\nexports.isDate = isDate;\n\nfunction isError(e) {\n return isObject(e) &&\n (objectToString(e) === '[object Error]' || e instanceof Error);\n}\nexports.isError = isError;\n\nfunction isFunction(arg) {\n return typeof arg === 'function';\n}\nexports.isFunction = isFunction;\n\nfunction isPrimitive(arg) {\n return arg === null ||\n typeof arg === 'boolean' ||\n typeof arg === 'number' ||\n typeof arg === 'string' ||\n typeof arg === 'symbol' || // ES6 symbol\n typeof arg === 'undefined';\n}\nexports.isPrimitive = isPrimitive;\n\nexports.isBuffer = __webpack_require__(140);\n\nfunction objectToString(o) {\n return Object.prototype.toString.call(o);\n}\n\n\nfunction pad(n) {\n return n < 10 ? '0' + n.toString(10) : n.toString(10);\n}\n\n\nvar months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep',\n 'Oct', 'Nov', 'Dec'];\n\n// 26 Feb 16:19:34\nfunction timestamp() {\n var d = new Date();\n var time = [pad(d.getHours()),\n pad(d.getMinutes()),\n pad(d.getSeconds())].join(':');\n return [d.getDate(), months[d.getMonth()], time].join(' ');\n}\n\n\n// log is just a thin wrapper to console.log that prepends a timestamp\nexports.log = function() {\n console.log('%s - %s', timestamp(), exports.format.apply(exports, arguments));\n};\n\n\n/**\n * Inherit the prototype methods from one constructor into another.\n *\n * The Function.prototype.inherits from lang.js rewritten as a standalone\n * function (not on Function.prototype). NOTE: If this file is to be loaded\n * during bootstrapping this function needs to be rewritten using some native\n * functions as prototype setup using normal JavaScript does not work as\n * expected during bootstrapping (see mirror.js in r114903).\n *\n * @param {function} ctor Constructor function which needs to inherit the\n * prototype.\n * @param {function} superCtor Constructor function to inherit prototype from.\n */\nexports.inherits = __webpack_require__(96);\n\nexports._extend = function(origin, add) {\n // Don't do anything if add isn't an object\n if (!add || !isObject(add)) return origin;\n\n var keys = Object.keys(add);\n var i = keys.length;\n while (i--) {\n origin[keys[i]] = add[keys[i]];\n }\n return origin;\n};\n\nfunction hasOwnProperty(obj, prop) {\n return Object.prototype.hasOwnProperty.call(obj, prop);\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()), __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/util/util.js\n ** module id = 139\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/util/util.js?"); /***/ }, /* 140 */ -/***/ function(module, exports, __webpack_require__) { +/***/ function(module, exports) { - eval("/* WEBPACK VAR INJECTION */(function(global, process) {// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nvar formatRegExp = /%[sdj%]/g;\nexports.format = function(f) {\n if (!isString(f)) {\n var objects = [];\n for (var i = 0; i < arguments.length; i++) {\n objects.push(inspect(arguments[i]));\n }\n return objects.join(' ');\n }\n\n var i = 1;\n var args = arguments;\n var len = args.length;\n var str = String(f).replace(formatRegExp, function(x) {\n if (x === '%%') return '%';\n if (i >= len) return x;\n switch (x) {\n case '%s': return String(args[i++]);\n case '%d': return Number(args[i++]);\n case '%j':\n try {\n return JSON.stringify(args[i++]);\n } catch (_) {\n return '[Circular]';\n }\n default:\n return x;\n }\n });\n for (var x = args[i]; i < len; x = args[++i]) {\n if (isNull(x) || !isObject(x)) {\n str += ' ' + x;\n } else {\n str += ' ' + inspect(x);\n }\n }\n return str;\n};\n\n\n// Mark that a method should not be used.\n// Returns a modified function which warns once by default.\n// If --no-deprecation is set, then it is a no-op.\nexports.deprecate = function(fn, msg) {\n // Allow for deprecating things in the process of starting up.\n if (isUndefined(global.process)) {\n return function() {\n return exports.deprecate(fn, msg).apply(this, arguments);\n };\n }\n\n if (process.noDeprecation === true) {\n return fn;\n }\n\n var warned = false;\n function deprecated() {\n if (!warned) {\n if (process.throwDeprecation) {\n throw new Error(msg);\n } else if (process.traceDeprecation) {\n console.trace(msg);\n } else {\n console.error(msg);\n }\n warned = true;\n }\n return fn.apply(this, arguments);\n }\n\n return deprecated;\n};\n\n\nvar debugs = {};\nvar debugEnviron;\nexports.debuglog = function(set) {\n if (isUndefined(debugEnviron))\n debugEnviron = process.env.NODE_DEBUG || '';\n set = set.toUpperCase();\n if (!debugs[set]) {\n if (new RegExp('\\\\b' + set + '\\\\b', 'i').test(debugEnviron)) {\n var pid = process.pid;\n debugs[set] = function() {\n var msg = exports.format.apply(exports, arguments);\n console.error('%s %d: %s', set, pid, msg);\n };\n } else {\n debugs[set] = function() {};\n }\n }\n return debugs[set];\n};\n\n\n/**\n * Echos the value of a value. Trys to print the value out\n * in the best way possible given the different types.\n *\n * @param {Object} obj The object to print out.\n * @param {Object} opts Optional options object that alters the output.\n */\n/* legacy: obj, showHidden, depth, colors*/\nfunction inspect(obj, opts) {\n // default options\n var ctx = {\n seen: [],\n stylize: stylizeNoColor\n };\n // legacy...\n if (arguments.length >= 3) ctx.depth = arguments[2];\n if (arguments.length >= 4) ctx.colors = arguments[3];\n if (isBoolean(opts)) {\n // legacy...\n ctx.showHidden = opts;\n } else if (opts) {\n // got an \"options\" object\n exports._extend(ctx, opts);\n }\n // set default options\n if (isUndefined(ctx.showHidden)) ctx.showHidden = false;\n if (isUndefined(ctx.depth)) ctx.depth = 2;\n if (isUndefined(ctx.colors)) ctx.colors = false;\n if (isUndefined(ctx.customInspect)) ctx.customInspect = true;\n if (ctx.colors) ctx.stylize = stylizeWithColor;\n return formatValue(ctx, obj, ctx.depth);\n}\nexports.inspect = inspect;\n\n\n// http://en.wikipedia.org/wiki/ANSI_escape_code#graphics\ninspect.colors = {\n 'bold' : [1, 22],\n 'italic' : [3, 23],\n 'underline' : [4, 24],\n 'inverse' : [7, 27],\n 'white' : [37, 39],\n 'grey' : [90, 39],\n 'black' : [30, 39],\n 'blue' : [34, 39],\n 'cyan' : [36, 39],\n 'green' : [32, 39],\n 'magenta' : [35, 39],\n 'red' : [31, 39],\n 'yellow' : [33, 39]\n};\n\n// Don't use 'blue' not visible on cmd.exe\ninspect.styles = {\n 'special': 'cyan',\n 'number': 'yellow',\n 'boolean': 'yellow',\n 'undefined': 'grey',\n 'null': 'bold',\n 'string': 'green',\n 'date': 'magenta',\n // \"name\": intentionally not styling\n 'regexp': 'red'\n};\n\n\nfunction stylizeWithColor(str, styleType) {\n var style = inspect.styles[styleType];\n\n if (style) {\n return '\\u001b[' + inspect.colors[style][0] + 'm' + str +\n '\\u001b[' + inspect.colors[style][1] + 'm';\n } else {\n return str;\n }\n}\n\n\nfunction stylizeNoColor(str, styleType) {\n return str;\n}\n\n\nfunction arrayToHash(array) {\n var hash = {};\n\n array.forEach(function(val, idx) {\n hash[val] = true;\n });\n\n return hash;\n}\n\n\nfunction formatValue(ctx, value, recurseTimes) {\n // Provide a hook for user-specified inspect functions.\n // Check that value is an object with an inspect function on it\n if (ctx.customInspect &&\n value &&\n isFunction(value.inspect) &&\n // Filter out the util module, it's inspect function is special\n value.inspect !== exports.inspect &&\n // Also filter out any prototype objects using the circular check.\n !(value.constructor && value.constructor.prototype === value)) {\n var ret = value.inspect(recurseTimes, ctx);\n if (!isString(ret)) {\n ret = formatValue(ctx, ret, recurseTimes);\n }\n return ret;\n }\n\n // Primitive types cannot have properties\n var primitive = formatPrimitive(ctx, value);\n if (primitive) {\n return primitive;\n }\n\n // Look up the keys of the object.\n var keys = Object.keys(value);\n var visibleKeys = arrayToHash(keys);\n\n if (ctx.showHidden) {\n keys = Object.getOwnPropertyNames(value);\n }\n\n // IE doesn't make error fields non-enumerable\n // http://msdn.microsoft.com/en-us/library/ie/dww52sbt(v=vs.94).aspx\n if (isError(value)\n && (keys.indexOf('message') >= 0 || keys.indexOf('description') >= 0)) {\n return formatError(value);\n }\n\n // Some type of object without properties can be shortcutted.\n if (keys.length === 0) {\n if (isFunction(value)) {\n var name = value.name ? ': ' + value.name : '';\n return ctx.stylize('[Function' + name + ']', 'special');\n }\n if (isRegExp(value)) {\n return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');\n }\n if (isDate(value)) {\n return ctx.stylize(Date.prototype.toString.call(value), 'date');\n }\n if (isError(value)) {\n return formatError(value);\n }\n }\n\n var base = '', array = false, braces = ['{', '}'];\n\n // Make Array say that they are Array\n if (isArray(value)) {\n array = true;\n braces = ['[', ']'];\n }\n\n // Make functions say that they are functions\n if (isFunction(value)) {\n var n = value.name ? ': ' + value.name : '';\n base = ' [Function' + n + ']';\n }\n\n // Make RegExps say that they are RegExps\n if (isRegExp(value)) {\n base = ' ' + RegExp.prototype.toString.call(value);\n }\n\n // Make dates with properties first say the date\n if (isDate(value)) {\n base = ' ' + Date.prototype.toUTCString.call(value);\n }\n\n // Make error with message first say the error\n if (isError(value)) {\n base = ' ' + formatError(value);\n }\n\n if (keys.length === 0 && (!array || value.length == 0)) {\n return braces[0] + base + braces[1];\n }\n\n if (recurseTimes < 0) {\n if (isRegExp(value)) {\n return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');\n } else {\n return ctx.stylize('[Object]', 'special');\n }\n }\n\n ctx.seen.push(value);\n\n var output;\n if (array) {\n output = formatArray(ctx, value, recurseTimes, visibleKeys, keys);\n } else {\n output = keys.map(function(key) {\n return formatProperty(ctx, value, recurseTimes, visibleKeys, key, array);\n });\n }\n\n ctx.seen.pop();\n\n return reduceToSingleString(output, base, braces);\n}\n\n\nfunction formatPrimitive(ctx, value) {\n if (isUndefined(value))\n return ctx.stylize('undefined', 'undefined');\n if (isString(value)) {\n var simple = '\\'' + JSON.stringify(value).replace(/^\"|\"$/g, '')\n .replace(/'/g, \"\\\\'\")\n .replace(/\\\\\"/g, '\"') + '\\'';\n return ctx.stylize(simple, 'string');\n }\n if (isNumber(value))\n return ctx.stylize('' + value, 'number');\n if (isBoolean(value))\n return ctx.stylize('' + value, 'boolean');\n // For some reason typeof null is \"object\", so special case here.\n if (isNull(value))\n return ctx.stylize('null', 'null');\n}\n\n\nfunction formatError(value) {\n return '[' + Error.prototype.toString.call(value) + ']';\n}\n\n\nfunction formatArray(ctx, value, recurseTimes, visibleKeys, keys) {\n var output = [];\n for (var i = 0, l = value.length; i < l; ++i) {\n if (hasOwnProperty(value, String(i))) {\n output.push(formatProperty(ctx, value, recurseTimes, visibleKeys,\n String(i), true));\n } else {\n output.push('');\n }\n }\n keys.forEach(function(key) {\n if (!key.match(/^\\d+$/)) {\n output.push(formatProperty(ctx, value, recurseTimes, visibleKeys,\n key, true));\n }\n });\n return output;\n}\n\n\nfunction formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) {\n var name, str, desc;\n desc = Object.getOwnPropertyDescriptor(value, key) || { value: value[key] };\n if (desc.get) {\n if (desc.set) {\n str = ctx.stylize('[Getter/Setter]', 'special');\n } else {\n str = ctx.stylize('[Getter]', 'special');\n }\n } else {\n if (desc.set) {\n str = ctx.stylize('[Setter]', 'special');\n }\n }\n if (!hasOwnProperty(visibleKeys, key)) {\n name = '[' + key + ']';\n }\n if (!str) {\n if (ctx.seen.indexOf(desc.value) < 0) {\n if (isNull(recurseTimes)) {\n str = formatValue(ctx, desc.value, null);\n } else {\n str = formatValue(ctx, desc.value, recurseTimes - 1);\n }\n if (str.indexOf('\\n') > -1) {\n if (array) {\n str = str.split('\\n').map(function(line) {\n return ' ' + line;\n }).join('\\n').substr(2);\n } else {\n str = '\\n' + str.split('\\n').map(function(line) {\n return ' ' + line;\n }).join('\\n');\n }\n }\n } else {\n str = ctx.stylize('[Circular]', 'special');\n }\n }\n if (isUndefined(name)) {\n if (array && key.match(/^\\d+$/)) {\n return str;\n }\n name = JSON.stringify('' + key);\n if (name.match(/^\"([a-zA-Z_][a-zA-Z_0-9]*)\"$/)) {\n name = name.substr(1, name.length - 2);\n name = ctx.stylize(name, 'name');\n } else {\n name = name.replace(/'/g, \"\\\\'\")\n .replace(/\\\\\"/g, '\"')\n .replace(/(^\"|\"$)/g, \"'\");\n name = ctx.stylize(name, 'string');\n }\n }\n\n return name + ': ' + str;\n}\n\n\nfunction reduceToSingleString(output, base, braces) {\n var numLinesEst = 0;\n var length = output.reduce(function(prev, cur) {\n numLinesEst++;\n if (cur.indexOf('\\n') >= 0) numLinesEst++;\n return prev + cur.replace(/\\u001b\\[\\d\\d?m/g, '').length + 1;\n }, 0);\n\n if (length > 60) {\n return braces[0] +\n (base === '' ? '' : base + '\\n ') +\n ' ' +\n output.join(',\\n ') +\n ' ' +\n braces[1];\n }\n\n return braces[0] + base + ' ' + output.join(', ') + ' ' + braces[1];\n}\n\n\n// NOTE: These type checking functions intentionally don't use `instanceof`\n// because it is fragile and can be easily faked with `Object.create()`.\nfunction isArray(ar) {\n return Array.isArray(ar);\n}\nexports.isArray = isArray;\n\nfunction isBoolean(arg) {\n return typeof arg === 'boolean';\n}\nexports.isBoolean = isBoolean;\n\nfunction isNull(arg) {\n return arg === null;\n}\nexports.isNull = isNull;\n\nfunction isNullOrUndefined(arg) {\n return arg == null;\n}\nexports.isNullOrUndefined = isNullOrUndefined;\n\nfunction isNumber(arg) {\n return typeof arg === 'number';\n}\nexports.isNumber = isNumber;\n\nfunction isString(arg) {\n return typeof arg === 'string';\n}\nexports.isString = isString;\n\nfunction isSymbol(arg) {\n return typeof arg === 'symbol';\n}\nexports.isSymbol = isSymbol;\n\nfunction isUndefined(arg) {\n return arg === void 0;\n}\nexports.isUndefined = isUndefined;\n\nfunction isRegExp(re) {\n return isObject(re) && objectToString(re) === '[object RegExp]';\n}\nexports.isRegExp = isRegExp;\n\nfunction isObject(arg) {\n return typeof arg === 'object' && arg !== null;\n}\nexports.isObject = isObject;\n\nfunction isDate(d) {\n return isObject(d) && objectToString(d) === '[object Date]';\n}\nexports.isDate = isDate;\n\nfunction isError(e) {\n return isObject(e) &&\n (objectToString(e) === '[object Error]' || e instanceof Error);\n}\nexports.isError = isError;\n\nfunction isFunction(arg) {\n return typeof arg === 'function';\n}\nexports.isFunction = isFunction;\n\nfunction isPrimitive(arg) {\n return arg === null ||\n typeof arg === 'boolean' ||\n typeof arg === 'number' ||\n typeof arg === 'string' ||\n typeof arg === 'symbol' || // ES6 symbol\n typeof arg === 'undefined';\n}\nexports.isPrimitive = isPrimitive;\n\nexports.isBuffer = __webpack_require__(141);\n\nfunction objectToString(o) {\n return Object.prototype.toString.call(o);\n}\n\n\nfunction pad(n) {\n return n < 10 ? '0' + n.toString(10) : n.toString(10);\n}\n\n\nvar months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep',\n 'Oct', 'Nov', 'Dec'];\n\n// 26 Feb 16:19:34\nfunction timestamp() {\n var d = new Date();\n var time = [pad(d.getHours()),\n pad(d.getMinutes()),\n pad(d.getSeconds())].join(':');\n return [d.getDate(), months[d.getMonth()], time].join(' ');\n}\n\n\n// log is just a thin wrapper to console.log that prepends a timestamp\nexports.log = function() {\n console.log('%s - %s', timestamp(), exports.format.apply(exports, arguments));\n};\n\n\n/**\n * Inherit the prototype methods from one constructor into another.\n *\n * The Function.prototype.inherits from lang.js rewritten as a standalone\n * function (not on Function.prototype). NOTE: If this file is to be loaded\n * during bootstrapping this function needs to be rewritten using some native\n * functions as prototype setup using normal JavaScript does not work as\n * expected during bootstrapping (see mirror.js in r114903).\n *\n * @param {function} ctor Constructor function which needs to inherit the\n * prototype.\n * @param {function} superCtor Constructor function to inherit prototype from.\n */\nexports.inherits = __webpack_require__(142);\n\nexports._extend = function(origin, add) {\n // Don't do anything if add isn't an object\n if (!add || !isObject(add)) return origin;\n\n var keys = Object.keys(add);\n var i = keys.length;\n while (i--) {\n origin[keys[i]] = add[keys[i]];\n }\n return origin;\n};\n\nfunction hasOwnProperty(obj, prop) {\n return Object.prototype.hasOwnProperty.call(obj, prop);\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()), __webpack_require__(83)))\n\n/*****************\n ** WEBPACK FOOTER\n ** (webpack)/~/node-libs-browser/~/util/util.js\n ** module id = 140\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///(webpack)/~/node-libs-browser/~/util/util.js?"); + eval("module.exports = function isBuffer(arg) {\n return arg && typeof arg === 'object'\n && typeof arg.copy === 'function'\n && typeof arg.fill === 'function'\n && typeof arg.readUInt8 === 'function';\n}\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/util/support/isBufferBrowser.js\n ** module id = 140\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/util/support/isBufferBrowser.js?"); /***/ }, /* 141 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("module.exports = function isBuffer(arg) {\n return arg && typeof arg === 'object'\n && typeof arg.copy === 'function'\n && typeof arg.fill === 'function'\n && typeof arg.readUInt8 === 'function';\n}\n\n/*****************\n ** WEBPACK FOOTER\n ** (webpack)/~/node-libs-browser/~/util/support/isBufferBrowser.js\n ** module id = 141\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///(webpack)/~/node-libs-browser/~/util/support/isBufferBrowser.js?"); + eval("\n/**\n * A JavaScript implementation of the Secure Hash Algorithm, SHA-256, as defined\n * in FIPS 180-2\n * Version 2.2-beta Copyright Angel Marin, Paul Johnston 2000 - 2009.\n * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet\n *\n */\n\nvar inherits = __webpack_require__(139).inherits\n\nmodule.exports = function (Buffer, Hash) {\n\n var K = [\n 0x428A2F98, 0x71374491, 0xB5C0FBCF, 0xE9B5DBA5,\n 0x3956C25B, 0x59F111F1, 0x923F82A4, 0xAB1C5ED5,\n 0xD807AA98, 0x12835B01, 0x243185BE, 0x550C7DC3,\n 0x72BE5D74, 0x80DEB1FE, 0x9BDC06A7, 0xC19BF174,\n 0xE49B69C1, 0xEFBE4786, 0x0FC19DC6, 0x240CA1CC,\n 0x2DE92C6F, 0x4A7484AA, 0x5CB0A9DC, 0x76F988DA,\n 0x983E5152, 0xA831C66D, 0xB00327C8, 0xBF597FC7,\n 0xC6E00BF3, 0xD5A79147, 0x06CA6351, 0x14292967,\n 0x27B70A85, 0x2E1B2138, 0x4D2C6DFC, 0x53380D13,\n 0x650A7354, 0x766A0ABB, 0x81C2C92E, 0x92722C85,\n 0xA2BFE8A1, 0xA81A664B, 0xC24B8B70, 0xC76C51A3,\n 0xD192E819, 0xD6990624, 0xF40E3585, 0x106AA070,\n 0x19A4C116, 0x1E376C08, 0x2748774C, 0x34B0BCB5,\n 0x391C0CB3, 0x4ED8AA4A, 0x5B9CCA4F, 0x682E6FF3,\n 0x748F82EE, 0x78A5636F, 0x84C87814, 0x8CC70208,\n 0x90BEFFFA, 0xA4506CEB, 0xBEF9A3F7, 0xC67178F2\n ]\n\n var W = new Array(64)\n\n function Sha256() {\n this.init()\n\n this._w = W //new Array(64)\n\n Hash.call(this, 16*4, 14*4)\n }\n\n inherits(Sha256, Hash)\n\n Sha256.prototype.init = function () {\n\n this._a = 0x6a09e667|0\n this._b = 0xbb67ae85|0\n this._c = 0x3c6ef372|0\n this._d = 0xa54ff53a|0\n this._e = 0x510e527f|0\n this._f = 0x9b05688c|0\n this._g = 0x1f83d9ab|0\n this._h = 0x5be0cd19|0\n\n this._len = this._s = 0\n\n return this\n }\n\n function S (X, n) {\n return (X >>> n) | (X << (32 - n));\n }\n\n function R (X, n) {\n return (X >>> n);\n }\n\n function Ch (x, y, z) {\n return ((x & y) ^ ((~x) & z));\n }\n\n function Maj (x, y, z) {\n return ((x & y) ^ (x & z) ^ (y & z));\n }\n\n function Sigma0256 (x) {\n return (S(x, 2) ^ S(x, 13) ^ S(x, 22));\n }\n\n function Sigma1256 (x) {\n return (S(x, 6) ^ S(x, 11) ^ S(x, 25));\n }\n\n function Gamma0256 (x) {\n return (S(x, 7) ^ S(x, 18) ^ R(x, 3));\n }\n\n function Gamma1256 (x) {\n return (S(x, 17) ^ S(x, 19) ^ R(x, 10));\n }\n\n Sha256.prototype._update = function(M) {\n\n var W = this._w\n var a, b, c, d, e, f, g, h\n var T1, T2\n\n a = this._a | 0\n b = this._b | 0\n c = this._c | 0\n d = this._d | 0\n e = this._e | 0\n f = this._f | 0\n g = this._g | 0\n h = this._h | 0\n\n for (var j = 0; j < 64; j++) {\n var w = W[j] = j < 16\n ? M.readInt32BE(j * 4)\n : Gamma1256(W[j - 2]) + W[j - 7] + Gamma0256(W[j - 15]) + W[j - 16]\n\n T1 = h + Sigma1256(e) + Ch(e, f, g) + K[j] + w\n\n T2 = Sigma0256(a) + Maj(a, b, c);\n h = g; g = f; f = e; e = d + T1; d = c; c = b; b = a; a = T1 + T2;\n }\n\n this._a = (a + this._a) | 0\n this._b = (b + this._b) | 0\n this._c = (c + this._c) | 0\n this._d = (d + this._d) | 0\n this._e = (e + this._e) | 0\n this._f = (f + this._f) | 0\n this._g = (g + this._g) | 0\n this._h = (h + this._h) | 0\n\n };\n\n Sha256.prototype._hash = function () {\n var H = new Buffer(32)\n\n H.writeInt32BE(this._a, 0)\n H.writeInt32BE(this._b, 4)\n H.writeInt32BE(this._c, 8)\n H.writeInt32BE(this._d, 12)\n H.writeInt32BE(this._e, 16)\n H.writeInt32BE(this._f, 20)\n H.writeInt32BE(this._g, 24)\n H.writeInt32BE(this._h, 28)\n\n return H\n }\n\n return Sha256\n\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/sha.js/sha256.js\n ** module id = 141\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/sha.js/sha256.js?"); /***/ }, /* 142 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("if (typeof Object.create === 'function') {\n // implementation from standard node.js 'util' module\n module.exports = function inherits(ctor, superCtor) {\n ctor.super_ = superCtor\n ctor.prototype = Object.create(superCtor.prototype, {\n constructor: {\n value: ctor,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n };\n} else {\n // old school shim for old browsers\n module.exports = function inherits(ctor, superCtor) {\n ctor.super_ = superCtor\n var TempCtor = function () {}\n TempCtor.prototype = superCtor.prototype\n ctor.prototype = new TempCtor()\n ctor.prototype.constructor = ctor\n }\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** (webpack)/~/node-libs-browser/~/util/~/inherits/inherits_browser.js\n ** module id = 142\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///(webpack)/~/node-libs-browser/~/util/~/inherits/inherits_browser.js?"); + eval("var inherits = __webpack_require__(139).inherits\n\nmodule.exports = function (Buffer, Hash) {\n var K = [\n 0x428a2f98, 0xd728ae22, 0x71374491, 0x23ef65cd,\n 0xb5c0fbcf, 0xec4d3b2f, 0xe9b5dba5, 0x8189dbbc,\n 0x3956c25b, 0xf348b538, 0x59f111f1, 0xb605d019,\n 0x923f82a4, 0xaf194f9b, 0xab1c5ed5, 0xda6d8118,\n 0xd807aa98, 0xa3030242, 0x12835b01, 0x45706fbe,\n 0x243185be, 0x4ee4b28c, 0x550c7dc3, 0xd5ffb4e2,\n 0x72be5d74, 0xf27b896f, 0x80deb1fe, 0x3b1696b1,\n 0x9bdc06a7, 0x25c71235, 0xc19bf174, 0xcf692694,\n 0xe49b69c1, 0x9ef14ad2, 0xefbe4786, 0x384f25e3,\n 0x0fc19dc6, 0x8b8cd5b5, 0x240ca1cc, 0x77ac9c65,\n 0x2de92c6f, 0x592b0275, 0x4a7484aa, 0x6ea6e483,\n 0x5cb0a9dc, 0xbd41fbd4, 0x76f988da, 0x831153b5,\n 0x983e5152, 0xee66dfab, 0xa831c66d, 0x2db43210,\n 0xb00327c8, 0x98fb213f, 0xbf597fc7, 0xbeef0ee4,\n 0xc6e00bf3, 0x3da88fc2, 0xd5a79147, 0x930aa725,\n 0x06ca6351, 0xe003826f, 0x14292967, 0x0a0e6e70,\n 0x27b70a85, 0x46d22ffc, 0x2e1b2138, 0x5c26c926,\n 0x4d2c6dfc, 0x5ac42aed, 0x53380d13, 0x9d95b3df,\n 0x650a7354, 0x8baf63de, 0x766a0abb, 0x3c77b2a8,\n 0x81c2c92e, 0x47edaee6, 0x92722c85, 0x1482353b,\n 0xa2bfe8a1, 0x4cf10364, 0xa81a664b, 0xbc423001,\n 0xc24b8b70, 0xd0f89791, 0xc76c51a3, 0x0654be30,\n 0xd192e819, 0xd6ef5218, 0xd6990624, 0x5565a910,\n 0xf40e3585, 0x5771202a, 0x106aa070, 0x32bbd1b8,\n 0x19a4c116, 0xb8d2d0c8, 0x1e376c08, 0x5141ab53,\n 0x2748774c, 0xdf8eeb99, 0x34b0bcb5, 0xe19b48a8,\n 0x391c0cb3, 0xc5c95a63, 0x4ed8aa4a, 0xe3418acb,\n 0x5b9cca4f, 0x7763e373, 0x682e6ff3, 0xd6b2b8a3,\n 0x748f82ee, 0x5defb2fc, 0x78a5636f, 0x43172f60,\n 0x84c87814, 0xa1f0ab72, 0x8cc70208, 0x1a6439ec,\n 0x90befffa, 0x23631e28, 0xa4506ceb, 0xde82bde9,\n 0xbef9a3f7, 0xb2c67915, 0xc67178f2, 0xe372532b,\n 0xca273ece, 0xea26619c, 0xd186b8c7, 0x21c0c207,\n 0xeada7dd6, 0xcde0eb1e, 0xf57d4f7f, 0xee6ed178,\n 0x06f067aa, 0x72176fba, 0x0a637dc5, 0xa2c898a6,\n 0x113f9804, 0xbef90dae, 0x1b710b35, 0x131c471b,\n 0x28db77f5, 0x23047d84, 0x32caab7b, 0x40c72493,\n 0x3c9ebe0a, 0x15c9bebc, 0x431d67c4, 0x9c100d4c,\n 0x4cc5d4be, 0xcb3e42b6, 0x597f299c, 0xfc657e2a,\n 0x5fcb6fab, 0x3ad6faec, 0x6c44198c, 0x4a475817\n ]\n\n var W = new Array(160)\n\n function Sha512() {\n this.init()\n this._w = W\n\n Hash.call(this, 128, 112)\n }\n\n inherits(Sha512, Hash)\n\n Sha512.prototype.init = function () {\n\n this._a = 0x6a09e667|0\n this._b = 0xbb67ae85|0\n this._c = 0x3c6ef372|0\n this._d = 0xa54ff53a|0\n this._e = 0x510e527f|0\n this._f = 0x9b05688c|0\n this._g = 0x1f83d9ab|0\n this._h = 0x5be0cd19|0\n\n this._al = 0xf3bcc908|0\n this._bl = 0x84caa73b|0\n this._cl = 0xfe94f82b|0\n this._dl = 0x5f1d36f1|0\n this._el = 0xade682d1|0\n this._fl = 0x2b3e6c1f|0\n this._gl = 0xfb41bd6b|0\n this._hl = 0x137e2179|0\n\n this._len = this._s = 0\n\n return this\n }\n\n function S (X, Xl, n) {\n return (X >>> n) | (Xl << (32 - n))\n }\n\n function Ch (x, y, z) {\n return ((x & y) ^ ((~x) & z));\n }\n\n function Maj (x, y, z) {\n return ((x & y) ^ (x & z) ^ (y & z));\n }\n\n Sha512.prototype._update = function(M) {\n\n var W = this._w\n var a, b, c, d, e, f, g, h\n var al, bl, cl, dl, el, fl, gl, hl\n\n a = this._a | 0\n b = this._b | 0\n c = this._c | 0\n d = this._d | 0\n e = this._e | 0\n f = this._f | 0\n g = this._g | 0\n h = this._h | 0\n\n al = this._al | 0\n bl = this._bl | 0\n cl = this._cl | 0\n dl = this._dl | 0\n el = this._el | 0\n fl = this._fl | 0\n gl = this._gl | 0\n hl = this._hl | 0\n\n for (var i = 0; i < 80; i++) {\n var j = i * 2\n\n var Wi, Wil\n\n if (i < 16) {\n Wi = W[j] = M.readInt32BE(j * 4)\n Wil = W[j + 1] = M.readInt32BE(j * 4 + 4)\n\n } else {\n var x = W[j - 15*2]\n var xl = W[j - 15*2 + 1]\n var gamma0 = S(x, xl, 1) ^ S(x, xl, 8) ^ (x >>> 7)\n var gamma0l = S(xl, x, 1) ^ S(xl, x, 8) ^ S(xl, x, 7)\n\n x = W[j - 2*2]\n xl = W[j - 2*2 + 1]\n var gamma1 = S(x, xl, 19) ^ S(xl, x, 29) ^ (x >>> 6)\n var gamma1l = S(xl, x, 19) ^ S(x, xl, 29) ^ S(xl, x, 6)\n\n // W[i] = gamma0 + W[i - 7] + gamma1 + W[i - 16]\n var Wi7 = W[j - 7*2]\n var Wi7l = W[j - 7*2 + 1]\n\n var Wi16 = W[j - 16*2]\n var Wi16l = W[j - 16*2 + 1]\n\n Wil = gamma0l + Wi7l\n Wi = gamma0 + Wi7 + ((Wil >>> 0) < (gamma0l >>> 0) ? 1 : 0)\n Wil = Wil + gamma1l\n Wi = Wi + gamma1 + ((Wil >>> 0) < (gamma1l >>> 0) ? 1 : 0)\n Wil = Wil + Wi16l\n Wi = Wi + Wi16 + ((Wil >>> 0) < (Wi16l >>> 0) ? 1 : 0)\n\n W[j] = Wi\n W[j + 1] = Wil\n }\n\n var maj = Maj(a, b, c)\n var majl = Maj(al, bl, cl)\n\n var sigma0h = S(a, al, 28) ^ S(al, a, 2) ^ S(al, a, 7)\n var sigma0l = S(al, a, 28) ^ S(a, al, 2) ^ S(a, al, 7)\n var sigma1h = S(e, el, 14) ^ S(e, el, 18) ^ S(el, e, 9)\n var sigma1l = S(el, e, 14) ^ S(el, e, 18) ^ S(e, el, 9)\n\n // t1 = h + sigma1 + ch + K[i] + W[i]\n var Ki = K[j]\n var Kil = K[j + 1]\n\n var ch = Ch(e, f, g)\n var chl = Ch(el, fl, gl)\n\n var t1l = hl + sigma1l\n var t1 = h + sigma1h + ((t1l >>> 0) < (hl >>> 0) ? 1 : 0)\n t1l = t1l + chl\n t1 = t1 + ch + ((t1l >>> 0) < (chl >>> 0) ? 1 : 0)\n t1l = t1l + Kil\n t1 = t1 + Ki + ((t1l >>> 0) < (Kil >>> 0) ? 1 : 0)\n t1l = t1l + Wil\n t1 = t1 + Wi + ((t1l >>> 0) < (Wil >>> 0) ? 1 : 0)\n\n // t2 = sigma0 + maj\n var t2l = sigma0l + majl\n var t2 = sigma0h + maj + ((t2l >>> 0) < (sigma0l >>> 0) ? 1 : 0)\n\n h = g\n hl = gl\n g = f\n gl = fl\n f = e\n fl = el\n el = (dl + t1l) | 0\n e = (d + t1 + ((el >>> 0) < (dl >>> 0) ? 1 : 0)) | 0\n d = c\n dl = cl\n c = b\n cl = bl\n b = a\n bl = al\n al = (t1l + t2l) | 0\n a = (t1 + t2 + ((al >>> 0) < (t1l >>> 0) ? 1 : 0)) | 0\n }\n\n this._al = (this._al + al) | 0\n this._bl = (this._bl + bl) | 0\n this._cl = (this._cl + cl) | 0\n this._dl = (this._dl + dl) | 0\n this._el = (this._el + el) | 0\n this._fl = (this._fl + fl) | 0\n this._gl = (this._gl + gl) | 0\n this._hl = (this._hl + hl) | 0\n\n this._a = (this._a + a + ((this._al >>> 0) < (al >>> 0) ? 1 : 0)) | 0\n this._b = (this._b + b + ((this._bl >>> 0) < (bl >>> 0) ? 1 : 0)) | 0\n this._c = (this._c + c + ((this._cl >>> 0) < (cl >>> 0) ? 1 : 0)) | 0\n this._d = (this._d + d + ((this._dl >>> 0) < (dl >>> 0) ? 1 : 0)) | 0\n this._e = (this._e + e + ((this._el >>> 0) < (el >>> 0) ? 1 : 0)) | 0\n this._f = (this._f + f + ((this._fl >>> 0) < (fl >>> 0) ? 1 : 0)) | 0\n this._g = (this._g + g + ((this._gl >>> 0) < (gl >>> 0) ? 1 : 0)) | 0\n this._h = (this._h + h + ((this._hl >>> 0) < (hl >>> 0) ? 1 : 0)) | 0\n }\n\n Sha512.prototype._hash = function () {\n var H = new Buffer(64)\n\n function writeInt64BE(h, l, offset) {\n H.writeInt32BE(h, offset)\n H.writeInt32BE(l, offset + 4)\n }\n\n writeInt64BE(this._a, this._al, 0)\n writeInt64BE(this._b, this._bl, 8)\n writeInt64BE(this._c, this._cl, 16)\n writeInt64BE(this._d, this._dl, 24)\n writeInt64BE(this._e, this._el, 32)\n writeInt64BE(this._f, this._fl, 40)\n writeInt64BE(this._g, this._gl, 48)\n writeInt64BE(this._h, this._hl, 56)\n\n return H\n }\n\n return Sha512\n\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/sha.js/sha512.js\n ** module id = 142\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/sha.js/sha512.js?"); /***/ }, /* 143 */ /***/ function(module, exports, __webpack_require__) { - eval("\n/**\n * A JavaScript implementation of the Secure Hash Algorithm, SHA-256, as defined\n * in FIPS 180-2\n * Version 2.2-beta Copyright Angel Marin, Paul Johnston 2000 - 2009.\n * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet\n *\n */\n\nvar inherits = __webpack_require__(140).inherits\n\nmodule.exports = function (Buffer, Hash) {\n\n var K = [\n 0x428A2F98, 0x71374491, 0xB5C0FBCF, 0xE9B5DBA5,\n 0x3956C25B, 0x59F111F1, 0x923F82A4, 0xAB1C5ED5,\n 0xD807AA98, 0x12835B01, 0x243185BE, 0x550C7DC3,\n 0x72BE5D74, 0x80DEB1FE, 0x9BDC06A7, 0xC19BF174,\n 0xE49B69C1, 0xEFBE4786, 0x0FC19DC6, 0x240CA1CC,\n 0x2DE92C6F, 0x4A7484AA, 0x5CB0A9DC, 0x76F988DA,\n 0x983E5152, 0xA831C66D, 0xB00327C8, 0xBF597FC7,\n 0xC6E00BF3, 0xD5A79147, 0x06CA6351, 0x14292967,\n 0x27B70A85, 0x2E1B2138, 0x4D2C6DFC, 0x53380D13,\n 0x650A7354, 0x766A0ABB, 0x81C2C92E, 0x92722C85,\n 0xA2BFE8A1, 0xA81A664B, 0xC24B8B70, 0xC76C51A3,\n 0xD192E819, 0xD6990624, 0xF40E3585, 0x106AA070,\n 0x19A4C116, 0x1E376C08, 0x2748774C, 0x34B0BCB5,\n 0x391C0CB3, 0x4ED8AA4A, 0x5B9CCA4F, 0x682E6FF3,\n 0x748F82EE, 0x78A5636F, 0x84C87814, 0x8CC70208,\n 0x90BEFFFA, 0xA4506CEB, 0xBEF9A3F7, 0xC67178F2\n ]\n\n var W = new Array(64)\n\n function Sha256() {\n this.init()\n\n this._w = W //new Array(64)\n\n Hash.call(this, 16*4, 14*4)\n }\n\n inherits(Sha256, Hash)\n\n Sha256.prototype.init = function () {\n\n this._a = 0x6a09e667|0\n this._b = 0xbb67ae85|0\n this._c = 0x3c6ef372|0\n this._d = 0xa54ff53a|0\n this._e = 0x510e527f|0\n this._f = 0x9b05688c|0\n this._g = 0x1f83d9ab|0\n this._h = 0x5be0cd19|0\n\n this._len = this._s = 0\n\n return this\n }\n\n function S (X, n) {\n return (X >>> n) | (X << (32 - n));\n }\n\n function R (X, n) {\n return (X >>> n);\n }\n\n function Ch (x, y, z) {\n return ((x & y) ^ ((~x) & z));\n }\n\n function Maj (x, y, z) {\n return ((x & y) ^ (x & z) ^ (y & z));\n }\n\n function Sigma0256 (x) {\n return (S(x, 2) ^ S(x, 13) ^ S(x, 22));\n }\n\n function Sigma1256 (x) {\n return (S(x, 6) ^ S(x, 11) ^ S(x, 25));\n }\n\n function Gamma0256 (x) {\n return (S(x, 7) ^ S(x, 18) ^ R(x, 3));\n }\n\n function Gamma1256 (x) {\n return (S(x, 17) ^ S(x, 19) ^ R(x, 10));\n }\n\n Sha256.prototype._update = function(M) {\n\n var W = this._w\n var a, b, c, d, e, f, g, h\n var T1, T2\n\n a = this._a | 0\n b = this._b | 0\n c = this._c | 0\n d = this._d | 0\n e = this._e | 0\n f = this._f | 0\n g = this._g | 0\n h = this._h | 0\n\n for (var j = 0; j < 64; j++) {\n var w = W[j] = j < 16\n ? M.readInt32BE(j * 4)\n : Gamma1256(W[j - 2]) + W[j - 7] + Gamma0256(W[j - 15]) + W[j - 16]\n\n T1 = h + Sigma1256(e) + Ch(e, f, g) + K[j] + w\n\n T2 = Sigma0256(a) + Maj(a, b, c);\n h = g; g = f; f = e; e = d + T1; d = c; c = b; b = a; a = T1 + T2;\n }\n\n this._a = (a + this._a) | 0\n this._b = (b + this._b) | 0\n this._c = (c + this._c) | 0\n this._d = (d + this._d) | 0\n this._e = (e + this._e) | 0\n this._f = (f + this._f) | 0\n this._g = (g + this._g) | 0\n this._h = (h + this._h) | 0\n\n };\n\n Sha256.prototype._hash = function () {\n var H = new Buffer(32)\n\n H.writeInt32BE(this._a, 0)\n H.writeInt32BE(this._b, 4)\n H.writeInt32BE(this._c, 8)\n H.writeInt32BE(this._d, 12)\n H.writeInt32BE(this._e, 16)\n H.writeInt32BE(this._f, 20)\n H.writeInt32BE(this._g, 24)\n H.writeInt32BE(this._h, 28)\n\n return H\n }\n\n return Sha256\n\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** (webpack)/~/node-libs-browser/~/crypto-browserify/~/sha.js/sha256.js\n ** module id = 143\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///(webpack)/~/node-libs-browser/~/crypto-browserify/~/sha.js/sha256.js?"); + eval("/*\n * A JavaScript implementation of the RSA Data Security, Inc. MD5 Message\n * Digest Algorithm, as defined in RFC 1321.\n * Version 2.1 Copyright (C) Paul Johnston 1999 - 2002.\n * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet\n * Distributed under the BSD License\n * See http://pajhome.org.uk/crypt/md5 for more info.\n */\n\nvar helpers = __webpack_require__(144);\n\n/*\n * Calculate the MD5 of an array of little-endian words, and a bit length\n */\nfunction core_md5(x, len)\n{\n /* append padding */\n x[len >> 5] |= 0x80 << ((len) % 32);\n x[(((len + 64) >>> 9) << 4) + 14] = len;\n\n var a = 1732584193;\n var b = -271733879;\n var c = -1732584194;\n var d = 271733878;\n\n for(var i = 0; i < x.length; i += 16)\n {\n var olda = a;\n var oldb = b;\n var oldc = c;\n var oldd = d;\n\n a = md5_ff(a, b, c, d, x[i+ 0], 7 , -680876936);\n d = md5_ff(d, a, b, c, x[i+ 1], 12, -389564586);\n c = md5_ff(c, d, a, b, x[i+ 2], 17, 606105819);\n b = md5_ff(b, c, d, a, x[i+ 3], 22, -1044525330);\n a = md5_ff(a, b, c, d, x[i+ 4], 7 , -176418897);\n d = md5_ff(d, a, b, c, x[i+ 5], 12, 1200080426);\n c = md5_ff(c, d, a, b, x[i+ 6], 17, -1473231341);\n b = md5_ff(b, c, d, a, x[i+ 7], 22, -45705983);\n a = md5_ff(a, b, c, d, x[i+ 8], 7 , 1770035416);\n d = md5_ff(d, a, b, c, x[i+ 9], 12, -1958414417);\n c = md5_ff(c, d, a, b, x[i+10], 17, -42063);\n b = md5_ff(b, c, d, a, x[i+11], 22, -1990404162);\n a = md5_ff(a, b, c, d, x[i+12], 7 , 1804603682);\n d = md5_ff(d, a, b, c, x[i+13], 12, -40341101);\n c = md5_ff(c, d, a, b, x[i+14], 17, -1502002290);\n b = md5_ff(b, c, d, a, x[i+15], 22, 1236535329);\n\n a = md5_gg(a, b, c, d, x[i+ 1], 5 , -165796510);\n d = md5_gg(d, a, b, c, x[i+ 6], 9 , -1069501632);\n c = md5_gg(c, d, a, b, x[i+11], 14, 643717713);\n b = md5_gg(b, c, d, a, x[i+ 0], 20, -373897302);\n a = md5_gg(a, b, c, d, x[i+ 5], 5 , -701558691);\n d = md5_gg(d, a, b, c, x[i+10], 9 , 38016083);\n c = md5_gg(c, d, a, b, x[i+15], 14, -660478335);\n b = md5_gg(b, c, d, a, x[i+ 4], 20, -405537848);\n a = md5_gg(a, b, c, d, x[i+ 9], 5 , 568446438);\n d = md5_gg(d, a, b, c, x[i+14], 9 , -1019803690);\n c = md5_gg(c, d, a, b, x[i+ 3], 14, -187363961);\n b = md5_gg(b, c, d, a, x[i+ 8], 20, 1163531501);\n a = md5_gg(a, b, c, d, x[i+13], 5 , -1444681467);\n d = md5_gg(d, a, b, c, x[i+ 2], 9 , -51403784);\n c = md5_gg(c, d, a, b, x[i+ 7], 14, 1735328473);\n b = md5_gg(b, c, d, a, x[i+12], 20, -1926607734);\n\n a = md5_hh(a, b, c, d, x[i+ 5], 4 , -378558);\n d = md5_hh(d, a, b, c, x[i+ 8], 11, -2022574463);\n c = md5_hh(c, d, a, b, x[i+11], 16, 1839030562);\n b = md5_hh(b, c, d, a, x[i+14], 23, -35309556);\n a = md5_hh(a, b, c, d, x[i+ 1], 4 , -1530992060);\n d = md5_hh(d, a, b, c, x[i+ 4], 11, 1272893353);\n c = md5_hh(c, d, a, b, x[i+ 7], 16, -155497632);\n b = md5_hh(b, c, d, a, x[i+10], 23, -1094730640);\n a = md5_hh(a, b, c, d, x[i+13], 4 , 681279174);\n d = md5_hh(d, a, b, c, x[i+ 0], 11, -358537222);\n c = md5_hh(c, d, a, b, x[i+ 3], 16, -722521979);\n b = md5_hh(b, c, d, a, x[i+ 6], 23, 76029189);\n a = md5_hh(a, b, c, d, x[i+ 9], 4 , -640364487);\n d = md5_hh(d, a, b, c, x[i+12], 11, -421815835);\n c = md5_hh(c, d, a, b, x[i+15], 16, 530742520);\n b = md5_hh(b, c, d, a, x[i+ 2], 23, -995338651);\n\n a = md5_ii(a, b, c, d, x[i+ 0], 6 , -198630844);\n d = md5_ii(d, a, b, c, x[i+ 7], 10, 1126891415);\n c = md5_ii(c, d, a, b, x[i+14], 15, -1416354905);\n b = md5_ii(b, c, d, a, x[i+ 5], 21, -57434055);\n a = md5_ii(a, b, c, d, x[i+12], 6 , 1700485571);\n d = md5_ii(d, a, b, c, x[i+ 3], 10, -1894986606);\n c = md5_ii(c, d, a, b, x[i+10], 15, -1051523);\n b = md5_ii(b, c, d, a, x[i+ 1], 21, -2054922799);\n a = md5_ii(a, b, c, d, x[i+ 8], 6 , 1873313359);\n d = md5_ii(d, a, b, c, x[i+15], 10, -30611744);\n c = md5_ii(c, d, a, b, x[i+ 6], 15, -1560198380);\n b = md5_ii(b, c, d, a, x[i+13], 21, 1309151649);\n a = md5_ii(a, b, c, d, x[i+ 4], 6 , -145523070);\n d = md5_ii(d, a, b, c, x[i+11], 10, -1120210379);\n c = md5_ii(c, d, a, b, x[i+ 2], 15, 718787259);\n b = md5_ii(b, c, d, a, x[i+ 9], 21, -343485551);\n\n a = safe_add(a, olda);\n b = safe_add(b, oldb);\n c = safe_add(c, oldc);\n d = safe_add(d, oldd);\n }\n return Array(a, b, c, d);\n\n}\n\n/*\n * These functions implement the four basic operations the algorithm uses.\n */\nfunction md5_cmn(q, a, b, x, s, t)\n{\n return safe_add(bit_rol(safe_add(safe_add(a, q), safe_add(x, t)), s),b);\n}\nfunction md5_ff(a, b, c, d, x, s, t)\n{\n return md5_cmn((b & c) | ((~b) & d), a, b, x, s, t);\n}\nfunction md5_gg(a, b, c, d, x, s, t)\n{\n return md5_cmn((b & d) | (c & (~d)), a, b, x, s, t);\n}\nfunction md5_hh(a, b, c, d, x, s, t)\n{\n return md5_cmn(b ^ c ^ d, a, b, x, s, t);\n}\nfunction md5_ii(a, b, c, d, x, s, t)\n{\n return md5_cmn(c ^ (b | (~d)), a, b, x, s, t);\n}\n\n/*\n * Add integers, wrapping at 2^32. This uses 16-bit operations internally\n * to work around bugs in some JS interpreters.\n */\nfunction safe_add(x, y)\n{\n var lsw = (x & 0xFFFF) + (y & 0xFFFF);\n var msw = (x >> 16) + (y >> 16) + (lsw >> 16);\n return (msw << 16) | (lsw & 0xFFFF);\n}\n\n/*\n * Bitwise rotate a 32-bit number to the left.\n */\nfunction bit_rol(num, cnt)\n{\n return (num << cnt) | (num >>> (32 - cnt));\n}\n\nmodule.exports = function md5(buf) {\n return helpers.hash(buf, core_md5, 16);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/crypto-browserify/md5.js\n ** module id = 143\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/crypto-browserify/md5.js?"); /***/ }, /* 144 */ /***/ function(module, exports, __webpack_require__) { - eval("var inherits = __webpack_require__(140).inherits\n\nmodule.exports = function (Buffer, Hash) {\n var K = [\n 0x428a2f98, 0xd728ae22, 0x71374491, 0x23ef65cd,\n 0xb5c0fbcf, 0xec4d3b2f, 0xe9b5dba5, 0x8189dbbc,\n 0x3956c25b, 0xf348b538, 0x59f111f1, 0xb605d019,\n 0x923f82a4, 0xaf194f9b, 0xab1c5ed5, 0xda6d8118,\n 0xd807aa98, 0xa3030242, 0x12835b01, 0x45706fbe,\n 0x243185be, 0x4ee4b28c, 0x550c7dc3, 0xd5ffb4e2,\n 0x72be5d74, 0xf27b896f, 0x80deb1fe, 0x3b1696b1,\n 0x9bdc06a7, 0x25c71235, 0xc19bf174, 0xcf692694,\n 0xe49b69c1, 0x9ef14ad2, 0xefbe4786, 0x384f25e3,\n 0x0fc19dc6, 0x8b8cd5b5, 0x240ca1cc, 0x77ac9c65,\n 0x2de92c6f, 0x592b0275, 0x4a7484aa, 0x6ea6e483,\n 0x5cb0a9dc, 0xbd41fbd4, 0x76f988da, 0x831153b5,\n 0x983e5152, 0xee66dfab, 0xa831c66d, 0x2db43210,\n 0xb00327c8, 0x98fb213f, 0xbf597fc7, 0xbeef0ee4,\n 0xc6e00bf3, 0x3da88fc2, 0xd5a79147, 0x930aa725,\n 0x06ca6351, 0xe003826f, 0x14292967, 0x0a0e6e70,\n 0x27b70a85, 0x46d22ffc, 0x2e1b2138, 0x5c26c926,\n 0x4d2c6dfc, 0x5ac42aed, 0x53380d13, 0x9d95b3df,\n 0x650a7354, 0x8baf63de, 0x766a0abb, 0x3c77b2a8,\n 0x81c2c92e, 0x47edaee6, 0x92722c85, 0x1482353b,\n 0xa2bfe8a1, 0x4cf10364, 0xa81a664b, 0xbc423001,\n 0xc24b8b70, 0xd0f89791, 0xc76c51a3, 0x0654be30,\n 0xd192e819, 0xd6ef5218, 0xd6990624, 0x5565a910,\n 0xf40e3585, 0x5771202a, 0x106aa070, 0x32bbd1b8,\n 0x19a4c116, 0xb8d2d0c8, 0x1e376c08, 0x5141ab53,\n 0x2748774c, 0xdf8eeb99, 0x34b0bcb5, 0xe19b48a8,\n 0x391c0cb3, 0xc5c95a63, 0x4ed8aa4a, 0xe3418acb,\n 0x5b9cca4f, 0x7763e373, 0x682e6ff3, 0xd6b2b8a3,\n 0x748f82ee, 0x5defb2fc, 0x78a5636f, 0x43172f60,\n 0x84c87814, 0xa1f0ab72, 0x8cc70208, 0x1a6439ec,\n 0x90befffa, 0x23631e28, 0xa4506ceb, 0xde82bde9,\n 0xbef9a3f7, 0xb2c67915, 0xc67178f2, 0xe372532b,\n 0xca273ece, 0xea26619c, 0xd186b8c7, 0x21c0c207,\n 0xeada7dd6, 0xcde0eb1e, 0xf57d4f7f, 0xee6ed178,\n 0x06f067aa, 0x72176fba, 0x0a637dc5, 0xa2c898a6,\n 0x113f9804, 0xbef90dae, 0x1b710b35, 0x131c471b,\n 0x28db77f5, 0x23047d84, 0x32caab7b, 0x40c72493,\n 0x3c9ebe0a, 0x15c9bebc, 0x431d67c4, 0x9c100d4c,\n 0x4cc5d4be, 0xcb3e42b6, 0x597f299c, 0xfc657e2a,\n 0x5fcb6fab, 0x3ad6faec, 0x6c44198c, 0x4a475817\n ]\n\n var W = new Array(160)\n\n function Sha512() {\n this.init()\n this._w = W\n\n Hash.call(this, 128, 112)\n }\n\n inherits(Sha512, Hash)\n\n Sha512.prototype.init = function () {\n\n this._a = 0x6a09e667|0\n this._b = 0xbb67ae85|0\n this._c = 0x3c6ef372|0\n this._d = 0xa54ff53a|0\n this._e = 0x510e527f|0\n this._f = 0x9b05688c|0\n this._g = 0x1f83d9ab|0\n this._h = 0x5be0cd19|0\n\n this._al = 0xf3bcc908|0\n this._bl = 0x84caa73b|0\n this._cl = 0xfe94f82b|0\n this._dl = 0x5f1d36f1|0\n this._el = 0xade682d1|0\n this._fl = 0x2b3e6c1f|0\n this._gl = 0xfb41bd6b|0\n this._hl = 0x137e2179|0\n\n this._len = this._s = 0\n\n return this\n }\n\n function S (X, Xl, n) {\n return (X >>> n) | (Xl << (32 - n))\n }\n\n function Ch (x, y, z) {\n return ((x & y) ^ ((~x) & z));\n }\n\n function Maj (x, y, z) {\n return ((x & y) ^ (x & z) ^ (y & z));\n }\n\n Sha512.prototype._update = function(M) {\n\n var W = this._w\n var a, b, c, d, e, f, g, h\n var al, bl, cl, dl, el, fl, gl, hl\n\n a = this._a | 0\n b = this._b | 0\n c = this._c | 0\n d = this._d | 0\n e = this._e | 0\n f = this._f | 0\n g = this._g | 0\n h = this._h | 0\n\n al = this._al | 0\n bl = this._bl | 0\n cl = this._cl | 0\n dl = this._dl | 0\n el = this._el | 0\n fl = this._fl | 0\n gl = this._gl | 0\n hl = this._hl | 0\n\n for (var i = 0; i < 80; i++) {\n var j = i * 2\n\n var Wi, Wil\n\n if (i < 16) {\n Wi = W[j] = M.readInt32BE(j * 4)\n Wil = W[j + 1] = M.readInt32BE(j * 4 + 4)\n\n } else {\n var x = W[j - 15*2]\n var xl = W[j - 15*2 + 1]\n var gamma0 = S(x, xl, 1) ^ S(x, xl, 8) ^ (x >>> 7)\n var gamma0l = S(xl, x, 1) ^ S(xl, x, 8) ^ S(xl, x, 7)\n\n x = W[j - 2*2]\n xl = W[j - 2*2 + 1]\n var gamma1 = S(x, xl, 19) ^ S(xl, x, 29) ^ (x >>> 6)\n var gamma1l = S(xl, x, 19) ^ S(x, xl, 29) ^ S(xl, x, 6)\n\n // W[i] = gamma0 + W[i - 7] + gamma1 + W[i - 16]\n var Wi7 = W[j - 7*2]\n var Wi7l = W[j - 7*2 + 1]\n\n var Wi16 = W[j - 16*2]\n var Wi16l = W[j - 16*2 + 1]\n\n Wil = gamma0l + Wi7l\n Wi = gamma0 + Wi7 + ((Wil >>> 0) < (gamma0l >>> 0) ? 1 : 0)\n Wil = Wil + gamma1l\n Wi = Wi + gamma1 + ((Wil >>> 0) < (gamma1l >>> 0) ? 1 : 0)\n Wil = Wil + Wi16l\n Wi = Wi + Wi16 + ((Wil >>> 0) < (Wi16l >>> 0) ? 1 : 0)\n\n W[j] = Wi\n W[j + 1] = Wil\n }\n\n var maj = Maj(a, b, c)\n var majl = Maj(al, bl, cl)\n\n var sigma0h = S(a, al, 28) ^ S(al, a, 2) ^ S(al, a, 7)\n var sigma0l = S(al, a, 28) ^ S(a, al, 2) ^ S(a, al, 7)\n var sigma1h = S(e, el, 14) ^ S(e, el, 18) ^ S(el, e, 9)\n var sigma1l = S(el, e, 14) ^ S(el, e, 18) ^ S(e, el, 9)\n\n // t1 = h + sigma1 + ch + K[i] + W[i]\n var Ki = K[j]\n var Kil = K[j + 1]\n\n var ch = Ch(e, f, g)\n var chl = Ch(el, fl, gl)\n\n var t1l = hl + sigma1l\n var t1 = h + sigma1h + ((t1l >>> 0) < (hl >>> 0) ? 1 : 0)\n t1l = t1l + chl\n t1 = t1 + ch + ((t1l >>> 0) < (chl >>> 0) ? 1 : 0)\n t1l = t1l + Kil\n t1 = t1 + Ki + ((t1l >>> 0) < (Kil >>> 0) ? 1 : 0)\n t1l = t1l + Wil\n t1 = t1 + Wi + ((t1l >>> 0) < (Wil >>> 0) ? 1 : 0)\n\n // t2 = sigma0 + maj\n var t2l = sigma0l + majl\n var t2 = sigma0h + maj + ((t2l >>> 0) < (sigma0l >>> 0) ? 1 : 0)\n\n h = g\n hl = gl\n g = f\n gl = fl\n f = e\n fl = el\n el = (dl + t1l) | 0\n e = (d + t1 + ((el >>> 0) < (dl >>> 0) ? 1 : 0)) | 0\n d = c\n dl = cl\n c = b\n cl = bl\n b = a\n bl = al\n al = (t1l + t2l) | 0\n a = (t1 + t2 + ((al >>> 0) < (t1l >>> 0) ? 1 : 0)) | 0\n }\n\n this._al = (this._al + al) | 0\n this._bl = (this._bl + bl) | 0\n this._cl = (this._cl + cl) | 0\n this._dl = (this._dl + dl) | 0\n this._el = (this._el + el) | 0\n this._fl = (this._fl + fl) | 0\n this._gl = (this._gl + gl) | 0\n this._hl = (this._hl + hl) | 0\n\n this._a = (this._a + a + ((this._al >>> 0) < (al >>> 0) ? 1 : 0)) | 0\n this._b = (this._b + b + ((this._bl >>> 0) < (bl >>> 0) ? 1 : 0)) | 0\n this._c = (this._c + c + ((this._cl >>> 0) < (cl >>> 0) ? 1 : 0)) | 0\n this._d = (this._d + d + ((this._dl >>> 0) < (dl >>> 0) ? 1 : 0)) | 0\n this._e = (this._e + e + ((this._el >>> 0) < (el >>> 0) ? 1 : 0)) | 0\n this._f = (this._f + f + ((this._fl >>> 0) < (fl >>> 0) ? 1 : 0)) | 0\n this._g = (this._g + g + ((this._gl >>> 0) < (gl >>> 0) ? 1 : 0)) | 0\n this._h = (this._h + h + ((this._hl >>> 0) < (hl >>> 0) ? 1 : 0)) | 0\n }\n\n Sha512.prototype._hash = function () {\n var H = new Buffer(64)\n\n function writeInt64BE(h, l, offset) {\n H.writeInt32BE(h, offset)\n H.writeInt32BE(l, offset + 4)\n }\n\n writeInt64BE(this._a, this._al, 0)\n writeInt64BE(this._b, this._bl, 8)\n writeInt64BE(this._c, this._cl, 16)\n writeInt64BE(this._d, this._dl, 24)\n writeInt64BE(this._e, this._el, 32)\n writeInt64BE(this._f, this._fl, 40)\n writeInt64BE(this._g, this._gl, 48)\n writeInt64BE(this._h, this._hl, 56)\n\n return H\n }\n\n return Sha512\n\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** (webpack)/~/node-libs-browser/~/crypto-browserify/~/sha.js/sha512.js\n ** module id = 144\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///(webpack)/~/node-libs-browser/~/crypto-browserify/~/sha.js/sha512.js?"); + eval("/* WEBPACK VAR INJECTION */(function(Buffer) {var intSize = 4;\nvar zeroBuffer = new Buffer(intSize); zeroBuffer.fill(0);\nvar chrsz = 8;\n\nfunction toArray(buf, bigEndian) {\n if ((buf.length % intSize) !== 0) {\n var len = buf.length + (intSize - (buf.length % intSize));\n buf = Buffer.concat([buf, zeroBuffer], len);\n }\n\n var arr = [];\n var fn = bigEndian ? buf.readInt32BE : buf.readInt32LE;\n for (var i = 0; i < buf.length; i += intSize) {\n arr.push(fn.call(buf, i));\n }\n return arr;\n}\n\nfunction toBuffer(arr, size, bigEndian) {\n var buf = new Buffer(size);\n var fn = bigEndian ? buf.writeInt32BE : buf.writeInt32LE;\n for (var i = 0; i < arr.length; i++) {\n fn.call(buf, arr[i], i * 4, true);\n }\n return buf;\n}\n\nfunction hash(buf, fn, hashSize, bigEndian) {\n if (!Buffer.isBuffer(buf)) buf = new Buffer(buf);\n var arr = fn(toArray(buf, bigEndian), buf.length * chrsz);\n return toBuffer(arr, hashSize, bigEndian);\n}\n\nmodule.exports = { hash: hash };\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1).Buffer))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/crypto-browserify/helpers.js\n ** module id = 144\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/crypto-browserify/helpers.js?"); /***/ }, /* 145 */ /***/ function(module, exports, __webpack_require__) { - eval("/*\n * A JavaScript implementation of the RSA Data Security, Inc. MD5 Message\n * Digest Algorithm, as defined in RFC 1321.\n * Version 2.1 Copyright (C) Paul Johnston 1999 - 2002.\n * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet\n * Distributed under the BSD License\n * See http://pajhome.org.uk/crypt/md5 for more info.\n */\n\nvar helpers = __webpack_require__(146);\n\n/*\n * Calculate the MD5 of an array of little-endian words, and a bit length\n */\nfunction core_md5(x, len)\n{\n /* append padding */\n x[len >> 5] |= 0x80 << ((len) % 32);\n x[(((len + 64) >>> 9) << 4) + 14] = len;\n\n var a = 1732584193;\n var b = -271733879;\n var c = -1732584194;\n var d = 271733878;\n\n for(var i = 0; i < x.length; i += 16)\n {\n var olda = a;\n var oldb = b;\n var oldc = c;\n var oldd = d;\n\n a = md5_ff(a, b, c, d, x[i+ 0], 7 , -680876936);\n d = md5_ff(d, a, b, c, x[i+ 1], 12, -389564586);\n c = md5_ff(c, d, a, b, x[i+ 2], 17, 606105819);\n b = md5_ff(b, c, d, a, x[i+ 3], 22, -1044525330);\n a = md5_ff(a, b, c, d, x[i+ 4], 7 , -176418897);\n d = md5_ff(d, a, b, c, x[i+ 5], 12, 1200080426);\n c = md5_ff(c, d, a, b, x[i+ 6], 17, -1473231341);\n b = md5_ff(b, c, d, a, x[i+ 7], 22, -45705983);\n a = md5_ff(a, b, c, d, x[i+ 8], 7 , 1770035416);\n d = md5_ff(d, a, b, c, x[i+ 9], 12, -1958414417);\n c = md5_ff(c, d, a, b, x[i+10], 17, -42063);\n b = md5_ff(b, c, d, a, x[i+11], 22, -1990404162);\n a = md5_ff(a, b, c, d, x[i+12], 7 , 1804603682);\n d = md5_ff(d, a, b, c, x[i+13], 12, -40341101);\n c = md5_ff(c, d, a, b, x[i+14], 17, -1502002290);\n b = md5_ff(b, c, d, a, x[i+15], 22, 1236535329);\n\n a = md5_gg(a, b, c, d, x[i+ 1], 5 , -165796510);\n d = md5_gg(d, a, b, c, x[i+ 6], 9 , -1069501632);\n c = md5_gg(c, d, a, b, x[i+11], 14, 643717713);\n b = md5_gg(b, c, d, a, x[i+ 0], 20, -373897302);\n a = md5_gg(a, b, c, d, x[i+ 5], 5 , -701558691);\n d = md5_gg(d, a, b, c, x[i+10], 9 , 38016083);\n c = md5_gg(c, d, a, b, x[i+15], 14, -660478335);\n b = md5_gg(b, c, d, a, x[i+ 4], 20, -405537848);\n a = md5_gg(a, b, c, d, x[i+ 9], 5 , 568446438);\n d = md5_gg(d, a, b, c, x[i+14], 9 , -1019803690);\n c = md5_gg(c, d, a, b, x[i+ 3], 14, -187363961);\n b = md5_gg(b, c, d, a, x[i+ 8], 20, 1163531501);\n a = md5_gg(a, b, c, d, x[i+13], 5 , -1444681467);\n d = md5_gg(d, a, b, c, x[i+ 2], 9 , -51403784);\n c = md5_gg(c, d, a, b, x[i+ 7], 14, 1735328473);\n b = md5_gg(b, c, d, a, x[i+12], 20, -1926607734);\n\n a = md5_hh(a, b, c, d, x[i+ 5], 4 , -378558);\n d = md5_hh(d, a, b, c, x[i+ 8], 11, -2022574463);\n c = md5_hh(c, d, a, b, x[i+11], 16, 1839030562);\n b = md5_hh(b, c, d, a, x[i+14], 23, -35309556);\n a = md5_hh(a, b, c, d, x[i+ 1], 4 , -1530992060);\n d = md5_hh(d, a, b, c, x[i+ 4], 11, 1272893353);\n c = md5_hh(c, d, a, b, x[i+ 7], 16, -155497632);\n b = md5_hh(b, c, d, a, x[i+10], 23, -1094730640);\n a = md5_hh(a, b, c, d, x[i+13], 4 , 681279174);\n d = md5_hh(d, a, b, c, x[i+ 0], 11, -358537222);\n c = md5_hh(c, d, a, b, x[i+ 3], 16, -722521979);\n b = md5_hh(b, c, d, a, x[i+ 6], 23, 76029189);\n a = md5_hh(a, b, c, d, x[i+ 9], 4 , -640364487);\n d = md5_hh(d, a, b, c, x[i+12], 11, -421815835);\n c = md5_hh(c, d, a, b, x[i+15], 16, 530742520);\n b = md5_hh(b, c, d, a, x[i+ 2], 23, -995338651);\n\n a = md5_ii(a, b, c, d, x[i+ 0], 6 , -198630844);\n d = md5_ii(d, a, b, c, x[i+ 7], 10, 1126891415);\n c = md5_ii(c, d, a, b, x[i+14], 15, -1416354905);\n b = md5_ii(b, c, d, a, x[i+ 5], 21, -57434055);\n a = md5_ii(a, b, c, d, x[i+12], 6 , 1700485571);\n d = md5_ii(d, a, b, c, x[i+ 3], 10, -1894986606);\n c = md5_ii(c, d, a, b, x[i+10], 15, -1051523);\n b = md5_ii(b, c, d, a, x[i+ 1], 21, -2054922799);\n a = md5_ii(a, b, c, d, x[i+ 8], 6 , 1873313359);\n d = md5_ii(d, a, b, c, x[i+15], 10, -30611744);\n c = md5_ii(c, d, a, b, x[i+ 6], 15, -1560198380);\n b = md5_ii(b, c, d, a, x[i+13], 21, 1309151649);\n a = md5_ii(a, b, c, d, x[i+ 4], 6 , -145523070);\n d = md5_ii(d, a, b, c, x[i+11], 10, -1120210379);\n c = md5_ii(c, d, a, b, x[i+ 2], 15, 718787259);\n b = md5_ii(b, c, d, a, x[i+ 9], 21, -343485551);\n\n a = safe_add(a, olda);\n b = safe_add(b, oldb);\n c = safe_add(c, oldc);\n d = safe_add(d, oldd);\n }\n return Array(a, b, c, d);\n\n}\n\n/*\n * These functions implement the four basic operations the algorithm uses.\n */\nfunction md5_cmn(q, a, b, x, s, t)\n{\n return safe_add(bit_rol(safe_add(safe_add(a, q), safe_add(x, t)), s),b);\n}\nfunction md5_ff(a, b, c, d, x, s, t)\n{\n return md5_cmn((b & c) | ((~b) & d), a, b, x, s, t);\n}\nfunction md5_gg(a, b, c, d, x, s, t)\n{\n return md5_cmn((b & d) | (c & (~d)), a, b, x, s, t);\n}\nfunction md5_hh(a, b, c, d, x, s, t)\n{\n return md5_cmn(b ^ c ^ d, a, b, x, s, t);\n}\nfunction md5_ii(a, b, c, d, x, s, t)\n{\n return md5_cmn(c ^ (b | (~d)), a, b, x, s, t);\n}\n\n/*\n * Add integers, wrapping at 2^32. This uses 16-bit operations internally\n * to work around bugs in some JS interpreters.\n */\nfunction safe_add(x, y)\n{\n var lsw = (x & 0xFFFF) + (y & 0xFFFF);\n var msw = (x >> 16) + (y >> 16) + (lsw >> 16);\n return (msw << 16) | (lsw & 0xFFFF);\n}\n\n/*\n * Bitwise rotate a 32-bit number to the left.\n */\nfunction bit_rol(num, cnt)\n{\n return (num << cnt) | (num >>> (32 - cnt));\n}\n\nmodule.exports = function md5(buf) {\n return helpers.hash(buf, core_md5, 16);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** (webpack)/~/node-libs-browser/~/crypto-browserify/md5.js\n ** module id = 145\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///(webpack)/~/node-libs-browser/~/crypto-browserify/md5.js?"); + eval("/* WEBPACK VAR INJECTION */(function(Buffer) {\nmodule.exports = ripemd160\n\n\n\n/*\nCryptoJS v3.1.2\ncode.google.com/p/crypto-js\n(c) 2009-2013 by Jeff Mott. All rights reserved.\ncode.google.com/p/crypto-js/wiki/License\n*/\n/** @preserve\n(c) 2012 by Cédric Mesnil. All rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:\n\n - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.\n - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.\n\nTHIS 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.\n*/\n\n// Constants table\nvar zl = [\n 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,\n 7, 4, 13, 1, 10, 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8,\n 3, 10, 14, 4, 9, 15, 8, 1, 2, 7, 0, 6, 13, 11, 5, 12,\n 1, 9, 11, 10, 0, 8, 12, 4, 13, 3, 7, 15, 14, 5, 6, 2,\n 4, 0, 5, 9, 7, 12, 2, 10, 14, 1, 3, 8, 11, 6, 15, 13];\nvar zr = [\n 5, 14, 7, 0, 9, 2, 11, 4, 13, 6, 15, 8, 1, 10, 3, 12,\n 6, 11, 3, 7, 0, 13, 5, 10, 14, 15, 8, 12, 4, 9, 1, 2,\n 15, 5, 1, 3, 7, 14, 6, 9, 11, 8, 12, 2, 10, 0, 4, 13,\n 8, 6, 4, 1, 3, 11, 15, 0, 5, 12, 2, 13, 9, 7, 10, 14,\n 12, 15, 10, 4, 1, 5, 8, 7, 6, 2, 13, 14, 0, 3, 9, 11];\nvar sl = [\n 11, 14, 15, 12, 5, 8, 7, 9, 11, 13, 14, 15, 6, 7, 9, 8,\n 7, 6, 8, 13, 11, 9, 7, 15, 7, 12, 15, 9, 11, 7, 13, 12,\n 11, 13, 6, 7, 14, 9, 13, 15, 14, 8, 13, 6, 5, 12, 7, 5,\n 11, 12, 14, 15, 14, 15, 9, 8, 9, 14, 5, 6, 8, 6, 5, 12,\n 9, 15, 5, 11, 6, 8, 13, 12, 5, 12, 13, 14, 11, 8, 5, 6 ];\nvar sr = [\n 8, 9, 9, 11, 13, 15, 15, 5, 7, 7, 8, 11, 14, 14, 12, 6,\n 9, 13, 15, 7, 12, 8, 9, 11, 7, 7, 12, 7, 6, 15, 13, 11,\n 9, 7, 15, 11, 8, 6, 6, 14, 12, 13, 5, 14, 13, 13, 7, 5,\n 15, 5, 8, 11, 14, 14, 6, 14, 6, 9, 12, 9, 12, 5, 15, 8,\n 8, 5, 12, 9, 12, 5, 14, 6, 8, 13, 6, 5, 15, 13, 11, 11 ];\n\nvar hl = [ 0x00000000, 0x5A827999, 0x6ED9EBA1, 0x8F1BBCDC, 0xA953FD4E];\nvar hr = [ 0x50A28BE6, 0x5C4DD124, 0x6D703EF3, 0x7A6D76E9, 0x00000000];\n\nvar bytesToWords = function (bytes) {\n var words = [];\n for (var i = 0, b = 0; i < bytes.length; i++, b += 8) {\n words[b >>> 5] |= bytes[i] << (24 - b % 32);\n }\n return words;\n};\n\nvar wordsToBytes = function (words) {\n var bytes = [];\n for (var b = 0; b < words.length * 32; b += 8) {\n bytes.push((words[b >>> 5] >>> (24 - b % 32)) & 0xFF);\n }\n return bytes;\n};\n\nvar processBlock = function (H, M, offset) {\n\n // Swap endian\n for (var i = 0; i < 16; i++) {\n var offset_i = offset + i;\n var M_offset_i = M[offset_i];\n\n // Swap\n M[offset_i] = (\n (((M_offset_i << 8) | (M_offset_i >>> 24)) & 0x00ff00ff) |\n (((M_offset_i << 24) | (M_offset_i >>> 8)) & 0xff00ff00)\n );\n }\n\n // Working variables\n var al, bl, cl, dl, el;\n var ar, br, cr, dr, er;\n\n ar = al = H[0];\n br = bl = H[1];\n cr = cl = H[2];\n dr = dl = H[3];\n er = el = H[4];\n // Computation\n var t;\n for (var i = 0; i < 80; i += 1) {\n t = (al + M[offset+zl[i]])|0;\n if (i<16){\n t += f1(bl,cl,dl) + hl[0];\n } else if (i<32) {\n t += f2(bl,cl,dl) + hl[1];\n } else if (i<48) {\n t += f3(bl,cl,dl) + hl[2];\n } else if (i<64) {\n t += f4(bl,cl,dl) + hl[3];\n } else {// if (i<80) {\n t += f5(bl,cl,dl) + hl[4];\n }\n t = t|0;\n t = rotl(t,sl[i]);\n t = (t+el)|0;\n al = el;\n el = dl;\n dl = rotl(cl, 10);\n cl = bl;\n bl = t;\n\n t = (ar + M[offset+zr[i]])|0;\n if (i<16){\n t += f5(br,cr,dr) + hr[0];\n } else if (i<32) {\n t += f4(br,cr,dr) + hr[1];\n } else if (i<48) {\n t += f3(br,cr,dr) + hr[2];\n } else if (i<64) {\n t += f2(br,cr,dr) + hr[3];\n } else {// if (i<80) {\n t += f1(br,cr,dr) + hr[4];\n }\n t = t|0;\n t = rotl(t,sr[i]) ;\n t = (t+er)|0;\n ar = er;\n er = dr;\n dr = rotl(cr, 10);\n cr = br;\n br = t;\n }\n // Intermediate hash value\n t = (H[1] + cl + dr)|0;\n H[1] = (H[2] + dl + er)|0;\n H[2] = (H[3] + el + ar)|0;\n H[3] = (H[4] + al + br)|0;\n H[4] = (H[0] + bl + cr)|0;\n H[0] = t;\n};\n\nfunction f1(x, y, z) {\n return ((x) ^ (y) ^ (z));\n}\n\nfunction f2(x, y, z) {\n return (((x)&(y)) | ((~x)&(z)));\n}\n\nfunction f3(x, y, z) {\n return (((x) | (~(y))) ^ (z));\n}\n\nfunction f4(x, y, z) {\n return (((x) & (z)) | ((y)&(~(z))));\n}\n\nfunction f5(x, y, z) {\n return ((x) ^ ((y) |(~(z))));\n}\n\nfunction rotl(x,n) {\n return (x<>>(32-n));\n}\n\nfunction ripemd160(message) {\n var H = [0x67452301, 0xEFCDAB89, 0x98BADCFE, 0x10325476, 0xC3D2E1F0];\n\n if (typeof message == 'string')\n message = new Buffer(message, 'utf8');\n\n var m = bytesToWords(message);\n\n var nBitsLeft = message.length * 8;\n var nBitsTotal = message.length * 8;\n\n // Add padding\n m[nBitsLeft >>> 5] |= 0x80 << (24 - nBitsLeft % 32);\n m[(((nBitsLeft + 64) >>> 9) << 4) + 14] = (\n (((nBitsTotal << 8) | (nBitsTotal >>> 24)) & 0x00ff00ff) |\n (((nBitsTotal << 24) | (nBitsTotal >>> 8)) & 0xff00ff00)\n );\n\n for (var i=0 ; i>> 24)) & 0x00ff00ff) |\n (((H_i << 24) | (H_i >>> 8)) & 0xff00ff00);\n }\n\n var digestbytes = wordsToBytes(H);\n return new Buffer(digestbytes);\n}\n\n\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1).Buffer))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/ripemd160/lib/ripemd160.js\n ** module id = 145\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/ripemd160/lib/ripemd160.js?"); /***/ }, /* 146 */ /***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(Buffer) {var intSize = 4;\nvar zeroBuffer = new Buffer(intSize); zeroBuffer.fill(0);\nvar chrsz = 8;\n\nfunction toArray(buf, bigEndian) {\n if ((buf.length % intSize) !== 0) {\n var len = buf.length + (intSize - (buf.length % intSize));\n buf = Buffer.concat([buf, zeroBuffer], len);\n }\n\n var arr = [];\n var fn = bigEndian ? buf.readInt32BE : buf.readInt32LE;\n for (var i = 0; i < buf.length; i += intSize) {\n arr.push(fn.call(buf, i));\n }\n return arr;\n}\n\nfunction toBuffer(arr, size, bigEndian) {\n var buf = new Buffer(size);\n var fn = bigEndian ? buf.writeInt32BE : buf.writeInt32LE;\n for (var i = 0; i < arr.length; i++) {\n fn.call(buf, arr[i], i * 4, true);\n }\n return buf;\n}\n\nfunction hash(buf, fn, hashSize, bigEndian) {\n if (!Buffer.isBuffer(buf)) buf = new Buffer(buf);\n var arr = fn(toArray(buf, bigEndian), buf.length * chrsz);\n return toBuffer(arr, hashSize, bigEndian);\n}\n\nmodule.exports = { hash: hash };\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1).Buffer))\n\n/*****************\n ** WEBPACK FOOTER\n ** (webpack)/~/node-libs-browser/~/crypto-browserify/helpers.js\n ** module id = 146\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///(webpack)/~/node-libs-browser/~/crypto-browserify/helpers.js?"); + eval("/* WEBPACK VAR INJECTION */(function(Buffer) {var createHash = __webpack_require__(135)\n\nvar zeroBuffer = new Buffer(128)\nzeroBuffer.fill(0)\n\nmodule.exports = Hmac\n\nfunction Hmac (alg, key) {\n if(!(this instanceof Hmac)) return new Hmac(alg, key)\n this._opad = opad\n this._alg = alg\n\n var blocksize = (alg === 'sha512') ? 128 : 64\n\n key = this._key = !Buffer.isBuffer(key) ? new Buffer(key) : key\n\n if(key.length > blocksize) {\n key = createHash(alg).update(key).digest()\n } else if(key.length < blocksize) {\n key = Buffer.concat([key, zeroBuffer], blocksize)\n }\n\n var ipad = this._ipad = new Buffer(blocksize)\n var opad = this._opad = new Buffer(blocksize)\n\n for(var i = 0; i < blocksize; i++) {\n ipad[i] = key[i] ^ 0x36\n opad[i] = key[i] ^ 0x5C\n }\n\n this._hash = createHash(alg).update(ipad)\n}\n\nHmac.prototype.update = function (data, enc) {\n this._hash.update(data, enc)\n return this\n}\n\nHmac.prototype.digest = function (enc) {\n var h = this._hash.digest()\n return createHash(this._alg).update(this._opad).update(h).digest(enc)\n}\n\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1).Buffer))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/crypto-browserify/create-hmac.js\n ** module id = 146\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/crypto-browserify/create-hmac.js?"); /***/ }, /* 147 */ /***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(Buffer) {\nmodule.exports = ripemd160\n\n\n\n/*\nCryptoJS v3.1.2\ncode.google.com/p/crypto-js\n(c) 2009-2013 by Jeff Mott. All rights reserved.\ncode.google.com/p/crypto-js/wiki/License\n*/\n/** @preserve\n(c) 2012 by Cédric Mesnil. All rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:\n\n - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.\n - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.\n\nTHIS 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.\n*/\n\n// Constants table\nvar zl = [\n 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,\n 7, 4, 13, 1, 10, 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8,\n 3, 10, 14, 4, 9, 15, 8, 1, 2, 7, 0, 6, 13, 11, 5, 12,\n 1, 9, 11, 10, 0, 8, 12, 4, 13, 3, 7, 15, 14, 5, 6, 2,\n 4, 0, 5, 9, 7, 12, 2, 10, 14, 1, 3, 8, 11, 6, 15, 13];\nvar zr = [\n 5, 14, 7, 0, 9, 2, 11, 4, 13, 6, 15, 8, 1, 10, 3, 12,\n 6, 11, 3, 7, 0, 13, 5, 10, 14, 15, 8, 12, 4, 9, 1, 2,\n 15, 5, 1, 3, 7, 14, 6, 9, 11, 8, 12, 2, 10, 0, 4, 13,\n 8, 6, 4, 1, 3, 11, 15, 0, 5, 12, 2, 13, 9, 7, 10, 14,\n 12, 15, 10, 4, 1, 5, 8, 7, 6, 2, 13, 14, 0, 3, 9, 11];\nvar sl = [\n 11, 14, 15, 12, 5, 8, 7, 9, 11, 13, 14, 15, 6, 7, 9, 8,\n 7, 6, 8, 13, 11, 9, 7, 15, 7, 12, 15, 9, 11, 7, 13, 12,\n 11, 13, 6, 7, 14, 9, 13, 15, 14, 8, 13, 6, 5, 12, 7, 5,\n 11, 12, 14, 15, 14, 15, 9, 8, 9, 14, 5, 6, 8, 6, 5, 12,\n 9, 15, 5, 11, 6, 8, 13, 12, 5, 12, 13, 14, 11, 8, 5, 6 ];\nvar sr = [\n 8, 9, 9, 11, 13, 15, 15, 5, 7, 7, 8, 11, 14, 14, 12, 6,\n 9, 13, 15, 7, 12, 8, 9, 11, 7, 7, 12, 7, 6, 15, 13, 11,\n 9, 7, 15, 11, 8, 6, 6, 14, 12, 13, 5, 14, 13, 13, 7, 5,\n 15, 5, 8, 11, 14, 14, 6, 14, 6, 9, 12, 9, 12, 5, 15, 8,\n 8, 5, 12, 9, 12, 5, 14, 6, 8, 13, 6, 5, 15, 13, 11, 11 ];\n\nvar hl = [ 0x00000000, 0x5A827999, 0x6ED9EBA1, 0x8F1BBCDC, 0xA953FD4E];\nvar hr = [ 0x50A28BE6, 0x5C4DD124, 0x6D703EF3, 0x7A6D76E9, 0x00000000];\n\nvar bytesToWords = function (bytes) {\n var words = [];\n for (var i = 0, b = 0; i < bytes.length; i++, b += 8) {\n words[b >>> 5] |= bytes[i] << (24 - b % 32);\n }\n return words;\n};\n\nvar wordsToBytes = function (words) {\n var bytes = [];\n for (var b = 0; b < words.length * 32; b += 8) {\n bytes.push((words[b >>> 5] >>> (24 - b % 32)) & 0xFF);\n }\n return bytes;\n};\n\nvar processBlock = function (H, M, offset) {\n\n // Swap endian\n for (var i = 0; i < 16; i++) {\n var offset_i = offset + i;\n var M_offset_i = M[offset_i];\n\n // Swap\n M[offset_i] = (\n (((M_offset_i << 8) | (M_offset_i >>> 24)) & 0x00ff00ff) |\n (((M_offset_i << 24) | (M_offset_i >>> 8)) & 0xff00ff00)\n );\n }\n\n // Working variables\n var al, bl, cl, dl, el;\n var ar, br, cr, dr, er;\n\n ar = al = H[0];\n br = bl = H[1];\n cr = cl = H[2];\n dr = dl = H[3];\n er = el = H[4];\n // Computation\n var t;\n for (var i = 0; i < 80; i += 1) {\n t = (al + M[offset+zl[i]])|0;\n if (i<16){\n t += f1(bl,cl,dl) + hl[0];\n } else if (i<32) {\n t += f2(bl,cl,dl) + hl[1];\n } else if (i<48) {\n t += f3(bl,cl,dl) + hl[2];\n } else if (i<64) {\n t += f4(bl,cl,dl) + hl[3];\n } else {// if (i<80) {\n t += f5(bl,cl,dl) + hl[4];\n }\n t = t|0;\n t = rotl(t,sl[i]);\n t = (t+el)|0;\n al = el;\n el = dl;\n dl = rotl(cl, 10);\n cl = bl;\n bl = t;\n\n t = (ar + M[offset+zr[i]])|0;\n if (i<16){\n t += f5(br,cr,dr) + hr[0];\n } else if (i<32) {\n t += f4(br,cr,dr) + hr[1];\n } else if (i<48) {\n t += f3(br,cr,dr) + hr[2];\n } else if (i<64) {\n t += f2(br,cr,dr) + hr[3];\n } else {// if (i<80) {\n t += f1(br,cr,dr) + hr[4];\n }\n t = t|0;\n t = rotl(t,sr[i]) ;\n t = (t+er)|0;\n ar = er;\n er = dr;\n dr = rotl(cr, 10);\n cr = br;\n br = t;\n }\n // Intermediate hash value\n t = (H[1] + cl + dr)|0;\n H[1] = (H[2] + dl + er)|0;\n H[2] = (H[3] + el + ar)|0;\n H[3] = (H[4] + al + br)|0;\n H[4] = (H[0] + bl + cr)|0;\n H[0] = t;\n};\n\nfunction f1(x, y, z) {\n return ((x) ^ (y) ^ (z));\n}\n\nfunction f2(x, y, z) {\n return (((x)&(y)) | ((~x)&(z)));\n}\n\nfunction f3(x, y, z) {\n return (((x) | (~(y))) ^ (z));\n}\n\nfunction f4(x, y, z) {\n return (((x) & (z)) | ((y)&(~(z))));\n}\n\nfunction f5(x, y, z) {\n return ((x) ^ ((y) |(~(z))));\n}\n\nfunction rotl(x,n) {\n return (x<>>(32-n));\n}\n\nfunction ripemd160(message) {\n var H = [0x67452301, 0xEFCDAB89, 0x98BADCFE, 0x10325476, 0xC3D2E1F0];\n\n if (typeof message == 'string')\n message = new Buffer(message, 'utf8');\n\n var m = bytesToWords(message);\n\n var nBitsLeft = message.length * 8;\n var nBitsTotal = message.length * 8;\n\n // Add padding\n m[nBitsLeft >>> 5] |= 0x80 << (24 - nBitsLeft % 32);\n m[(((nBitsLeft + 64) >>> 9) << 4) + 14] = (\n (((nBitsTotal << 8) | (nBitsTotal >>> 24)) & 0x00ff00ff) |\n (((nBitsTotal << 24) | (nBitsTotal >>> 8)) & 0xff00ff00)\n );\n\n for (var i=0 ; i>> 24)) & 0x00ff00ff) |\n (((H_i << 24) | (H_i >>> 8)) & 0xff00ff00);\n }\n\n var digestbytes = wordsToBytes(H);\n return new Buffer(digestbytes);\n}\n\n\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1).Buffer))\n\n/*****************\n ** WEBPACK FOOTER\n ** (webpack)/~/node-libs-browser/~/crypto-browserify/~/ripemd160/lib/ripemd160.js\n ** module id = 147\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///(webpack)/~/node-libs-browser/~/crypto-browserify/~/ripemd160/lib/ripemd160.js?"); + eval("var pbkdf2Export = __webpack_require__(148)\n\nmodule.exports = function (crypto, exports) {\n exports = exports || {}\n\n var exported = pbkdf2Export(crypto)\n\n exports.pbkdf2 = exported.pbkdf2\n exports.pbkdf2Sync = exported.pbkdf2Sync\n\n return exports\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/crypto-browserify/pbkdf2.js\n ** module id = 147\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/crypto-browserify/pbkdf2.js?"); /***/ }, /* 148 */ /***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(Buffer) {var createHash = __webpack_require__(136)\n\nvar zeroBuffer = new Buffer(128)\nzeroBuffer.fill(0)\n\nmodule.exports = Hmac\n\nfunction Hmac (alg, key) {\n if(!(this instanceof Hmac)) return new Hmac(alg, key)\n this._opad = opad\n this._alg = alg\n\n var blocksize = (alg === 'sha512') ? 128 : 64\n\n key = this._key = !Buffer.isBuffer(key) ? new Buffer(key) : key\n\n if(key.length > blocksize) {\n key = createHash(alg).update(key).digest()\n } else if(key.length < blocksize) {\n key = Buffer.concat([key, zeroBuffer], blocksize)\n }\n\n var ipad = this._ipad = new Buffer(blocksize)\n var opad = this._opad = new Buffer(blocksize)\n\n for(var i = 0; i < blocksize; i++) {\n ipad[i] = key[i] ^ 0x36\n opad[i] = key[i] ^ 0x5C\n }\n\n this._hash = createHash(alg).update(ipad)\n}\n\nHmac.prototype.update = function (data, enc) {\n this._hash.update(data, enc)\n return this\n}\n\nHmac.prototype.digest = function (enc) {\n var h = this._hash.digest()\n return createHash(this._alg).update(this._opad).update(h).digest(enc)\n}\n\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1).Buffer))\n\n/*****************\n ** WEBPACK FOOTER\n ** (webpack)/~/node-libs-browser/~/crypto-browserify/create-hmac.js\n ** module id = 148\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///(webpack)/~/node-libs-browser/~/crypto-browserify/create-hmac.js?"); + eval("/* WEBPACK VAR INJECTION */(function(Buffer) {module.exports = function(crypto) {\n function pbkdf2(password, salt, iterations, keylen, digest, callback) {\n if ('function' === typeof digest) {\n callback = digest\n digest = undefined\n }\n\n if ('function' !== typeof callback)\n throw new Error('No callback provided to pbkdf2')\n\n setTimeout(function() {\n var result\n\n try {\n result = pbkdf2Sync(password, salt, iterations, keylen, digest)\n } catch (e) {\n return callback(e)\n }\n\n callback(undefined, result)\n })\n }\n\n function pbkdf2Sync(password, salt, iterations, keylen, digest) {\n if ('number' !== typeof iterations)\n throw new TypeError('Iterations not a number')\n\n if (iterations < 0)\n throw new TypeError('Bad iterations')\n\n if ('number' !== typeof keylen)\n throw new TypeError('Key length not a number')\n\n if (keylen < 0)\n throw new TypeError('Bad key length')\n\n digest = digest || 'sha1'\n\n if (!Buffer.isBuffer(password)) password = new Buffer(password)\n if (!Buffer.isBuffer(salt)) salt = new Buffer(salt)\n\n var hLen, l = 1, r, T\n var DK = new Buffer(keylen)\n var block1 = new Buffer(salt.length + 4)\n salt.copy(block1, 0, 0, salt.length)\n\n for (var i = 1; i <= l; i++) {\n block1.writeUInt32BE(i, salt.length)\n\n var U = crypto.createHmac(digest, password).update(block1).digest()\n\n if (!hLen) {\n hLen = U.length\n T = new Buffer(hLen)\n l = Math.ceil(keylen / hLen)\n r = keylen - (l - 1) * hLen\n\n if (keylen > (Math.pow(2, 32) - 1) * hLen)\n throw new TypeError('keylen exceeds maximum length')\n }\n\n U.copy(T, 0, 0, hLen)\n\n for (var j = 1; j < iterations; j++) {\n U = crypto.createHmac(digest, password).update(U).digest()\n\n for (var k = 0; k < hLen; k++) {\n T[k] ^= U[k]\n }\n }\n\n var destPos = (i - 1) * hLen\n var len = (i == l ? r : hLen)\n T.copy(DK, destPos, 0, len)\n }\n\n return DK\n }\n\n return {\n pbkdf2: pbkdf2,\n pbkdf2Sync: pbkdf2Sync\n }\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1).Buffer))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/pbkdf2-compat/pbkdf2.js\n ** module id = 148\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/pbkdf2-compat/pbkdf2.js?"); /***/ }, /* 149 */ /***/ function(module, exports, __webpack_require__) { - eval("var pbkdf2Export = __webpack_require__(150)\n\nmodule.exports = function (crypto, exports) {\n exports = exports || {}\n\n var exported = pbkdf2Export(crypto)\n\n exports.pbkdf2 = exported.pbkdf2\n exports.pbkdf2Sync = exported.pbkdf2Sync\n\n return exports\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** (webpack)/~/node-libs-browser/~/crypto-browserify/pbkdf2.js\n ** module id = 149\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///(webpack)/~/node-libs-browser/~/crypto-browserify/pbkdf2.js?"); + eval("/* WEBPACK VAR INJECTION */(function(process) {// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// resolves . and .. elements in a path array with directory names there\n// must be no slashes, empty elements, or device names (c:\\) in the array\n// (so also no leading and trailing slashes - it does not distinguish\n// relative and absolute paths)\nfunction normalizeArray(parts, allowAboveRoot) {\n // if the path tries to go above the root, `up` ends up > 0\n var up = 0;\n for (var i = parts.length - 1; i >= 0; i--) {\n var last = parts[i];\n if (last === '.') {\n parts.splice(i, 1);\n } else if (last === '..') {\n parts.splice(i, 1);\n up++;\n } else if (up) {\n parts.splice(i, 1);\n up--;\n }\n }\n\n // if the path is allowed to go above the root, restore leading ..s\n if (allowAboveRoot) {\n for (; up--; up) {\n parts.unshift('..');\n }\n }\n\n return parts;\n}\n\n// Split a filename into [root, dir, basename, ext], unix version\n// 'root' is just a slash, or nothing.\nvar splitPathRe =\n /^(\\/?|)([\\s\\S]*?)((?:\\.{1,2}|[^\\/]+?|)(\\.[^.\\/]*|))(?:[\\/]*)$/;\nvar splitPath = function(filename) {\n return splitPathRe.exec(filename).slice(1);\n};\n\n// path.resolve([from ...], to)\n// posix version\nexports.resolve = function() {\n var resolvedPath = '',\n resolvedAbsolute = false;\n\n for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {\n var path = (i >= 0) ? arguments[i] : process.cwd();\n\n // Skip empty and invalid entries\n if (typeof path !== 'string') {\n throw new TypeError('Arguments to path.resolve must be strings');\n } else if (!path) {\n continue;\n }\n\n resolvedPath = path + '/' + resolvedPath;\n resolvedAbsolute = path.charAt(0) === '/';\n }\n\n // At this point the path should be resolved to a full absolute path, but\n // handle relative paths to be safe (might happen when process.cwd() fails)\n\n // Normalize the path\n resolvedPath = normalizeArray(filter(resolvedPath.split('/'), function(p) {\n return !!p;\n }), !resolvedAbsolute).join('/');\n\n return ((resolvedAbsolute ? '/' : '') + resolvedPath) || '.';\n};\n\n// path.normalize(path)\n// posix version\nexports.normalize = function(path) {\n var isAbsolute = exports.isAbsolute(path),\n trailingSlash = substr(path, -1) === '/';\n\n // Normalize the path\n path = normalizeArray(filter(path.split('/'), function(p) {\n return !!p;\n }), !isAbsolute).join('/');\n\n if (!path && !isAbsolute) {\n path = '.';\n }\n if (path && trailingSlash) {\n path += '/';\n }\n\n return (isAbsolute ? '/' : '') + path;\n};\n\n// posix version\nexports.isAbsolute = function(path) {\n return path.charAt(0) === '/';\n};\n\n// posix version\nexports.join = function() {\n var paths = Array.prototype.slice.call(arguments, 0);\n return exports.normalize(filter(paths, function(p, index) {\n if (typeof p !== 'string') {\n throw new TypeError('Arguments to path.join must be strings');\n }\n return p;\n }).join('/'));\n};\n\n\n// path.relative(from, to)\n// posix version\nexports.relative = function(from, to) {\n from = exports.resolve(from).substr(1);\n to = exports.resolve(to).substr(1);\n\n function trim(arr) {\n var start = 0;\n for (; start < arr.length; start++) {\n if (arr[start] !== '') break;\n }\n\n var end = arr.length - 1;\n for (; end >= 0; end--) {\n if (arr[end] !== '') break;\n }\n\n if (start > end) return [];\n return arr.slice(start, end - start + 1);\n }\n\n var fromParts = trim(from.split('/'));\n var toParts = trim(to.split('/'));\n\n var length = Math.min(fromParts.length, toParts.length);\n var samePartsLength = length;\n for (var i = 0; i < length; i++) {\n if (fromParts[i] !== toParts[i]) {\n samePartsLength = i;\n break;\n }\n }\n\n var outputParts = [];\n for (var i = samePartsLength; i < fromParts.length; i++) {\n outputParts.push('..');\n }\n\n outputParts = outputParts.concat(toParts.slice(samePartsLength));\n\n return outputParts.join('/');\n};\n\nexports.sep = '/';\nexports.delimiter = ':';\n\nexports.dirname = function(path) {\n var result = splitPath(path),\n root = result[0],\n dir = result[1];\n\n if (!root && !dir) {\n // No dirname whatsoever\n return '.';\n }\n\n if (dir) {\n // It has a dirname, strip trailing slash\n dir = dir.substr(0, dir.length - 1);\n }\n\n return root + dir;\n};\n\n\nexports.basename = function(path, ext) {\n var f = splitPath(path)[2];\n // TODO: make this comparison case-insensitive on windows?\n if (ext && f.substr(-1 * ext.length) === ext) {\n f = f.substr(0, f.length - ext.length);\n }\n return f;\n};\n\n\nexports.extname = function(path) {\n return splitPath(path)[3];\n};\n\nfunction filter (xs, f) {\n if (xs.filter) return xs.filter(f);\n var res = [];\n for (var i = 0; i < xs.length; i++) {\n if (f(xs[i], i, xs)) res.push(xs[i]);\n }\n return res;\n}\n\n// String.prototype.substr - negative index don't work in IE8\nvar substr = 'ab'.substr(-1) === 'b'\n ? function (str, start, len) { return str.substr(start, len) }\n : function (str, start, len) {\n if (start < 0) start = str.length + start;\n return str.substr(start, len);\n }\n;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/path-browserify/index.js\n ** module id = 149\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/path-browserify/index.js?"); /***/ }, /* 150 */ /***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(Buffer) {module.exports = function(crypto) {\n function pbkdf2(password, salt, iterations, keylen, digest, callback) {\n if ('function' === typeof digest) {\n callback = digest\n digest = undefined\n }\n\n if ('function' !== typeof callback)\n throw new Error('No callback provided to pbkdf2')\n\n setTimeout(function() {\n var result\n\n try {\n result = pbkdf2Sync(password, salt, iterations, keylen, digest)\n } catch (e) {\n return callback(e)\n }\n\n callback(undefined, result)\n })\n }\n\n function pbkdf2Sync(password, salt, iterations, keylen, digest) {\n if ('number' !== typeof iterations)\n throw new TypeError('Iterations not a number')\n\n if (iterations < 0)\n throw new TypeError('Bad iterations')\n\n if ('number' !== typeof keylen)\n throw new TypeError('Key length not a number')\n\n if (keylen < 0)\n throw new TypeError('Bad key length')\n\n digest = digest || 'sha1'\n\n if (!Buffer.isBuffer(password)) password = new Buffer(password)\n if (!Buffer.isBuffer(salt)) salt = new Buffer(salt)\n\n var hLen, l = 1, r, T\n var DK = new Buffer(keylen)\n var block1 = new Buffer(salt.length + 4)\n salt.copy(block1, 0, 0, salt.length)\n\n for (var i = 1; i <= l; i++) {\n block1.writeUInt32BE(i, salt.length)\n\n var U = crypto.createHmac(digest, password).update(block1).digest()\n\n if (!hLen) {\n hLen = U.length\n T = new Buffer(hLen)\n l = Math.ceil(keylen / hLen)\n r = keylen - (l - 1) * hLen\n\n if (keylen > (Math.pow(2, 32) - 1) * hLen)\n throw new TypeError('keylen exceeds maximum length')\n }\n\n U.copy(T, 0, 0, hLen)\n\n for (var j = 1; j < iterations; j++) {\n U = crypto.createHmac(digest, password).update(U).digest()\n\n for (var k = 0; k < hLen; k++) {\n T[k] ^= U[k]\n }\n }\n\n var destPos = (i - 1) * hLen\n var len = (i == l ? r : hLen)\n T.copy(DK, destPos, 0, len)\n }\n\n return DK\n }\n\n return {\n pbkdf2: pbkdf2,\n pbkdf2Sync: pbkdf2Sync\n }\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1).Buffer))\n\n/*****************\n ** WEBPACK FOOTER\n ** (webpack)/~/node-libs-browser/~/crypto-browserify/~/pbkdf2-compat/pbkdf2.js\n ** module id = 150\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///(webpack)/~/node-libs-browser/~/crypto-browserify/~/pbkdf2-compat/pbkdf2.js?"); + eval("/* WEBPACK VAR INJECTION */(function(Buffer) {'use strict';\n\n// Declare internals\n\nvar internals = {};\n\nexports.escapeJavaScript = function (input) {\n\n if (!input) {\n return '';\n }\n\n var escaped = '';\n\n for (var i = 0; i < input.length; ++i) {\n\n var charCode = input.charCodeAt(i);\n\n if (internals.isSafe(charCode)) {\n escaped += input[i];\n } else {\n escaped += internals.escapeJavaScriptChar(charCode);\n }\n }\n\n return escaped;\n};\n\nexports.escapeHtml = function (input) {\n\n if (!input) {\n return '';\n }\n\n var escaped = '';\n\n for (var i = 0; i < input.length; ++i) {\n\n var charCode = input.charCodeAt(i);\n\n if (internals.isSafe(charCode)) {\n escaped += input[i];\n } else {\n escaped += internals.escapeHtmlChar(charCode);\n }\n }\n\n return escaped;\n};\n\ninternals.escapeJavaScriptChar = function (charCode) {\n\n if (charCode >= 256) {\n return '\\\\u' + internals.padLeft('' + charCode, 4);\n }\n\n var hexValue = new Buffer(String.fromCharCode(charCode), 'ascii').toString('hex');\n return '\\\\x' + internals.padLeft(hexValue, 2);\n};\n\ninternals.escapeHtmlChar = function (charCode) {\n\n var namedEscape = internals.namedHtml[charCode];\n if (typeof namedEscape !== 'undefined') {\n return namedEscape;\n }\n\n if (charCode >= 256) {\n return '&#' + charCode + ';';\n }\n\n var hexValue = new Buffer(String.fromCharCode(charCode), 'ascii').toString('hex');\n return '&#x' + internals.padLeft(hexValue, 2) + ';';\n};\n\ninternals.padLeft = function (str, len) {\n\n while (str.length < len) {\n str = '0' + str;\n }\n\n return str;\n};\n\ninternals.isSafe = function (charCode) {\n\n return typeof internals.safeCharCodes[charCode] !== 'undefined';\n};\n\ninternals.namedHtml = {\n '38': '&',\n '60': '<',\n '62': '>',\n '34': '"',\n '160': ' ',\n '162': '¢',\n '163': '£',\n '164': '¤',\n '169': '©',\n '174': '®'\n};\n\ninternals.safeCharCodes = function () {\n\n var safe = {};\n\n for (var i = 32; i < 123; ++i) {\n\n if (i >= 97 || // a-z\n i >= 65 && i <= 90 || // A-Z\n i >= 48 && i <= 57 || // 0-9\n i === 32 || // space\n i === 46 || // .\n i === 44 || // ,\n i === 45 || // -\n i === 58 || // :\n i === 95) {\n // _\n\n safe[i] = null;\n }\n }\n\n return safe;\n}();\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1).Buffer))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/hoek/lib/escape.js\n ** module id = 150\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/hoek/lib/escape.js?"); /***/ }, /* 151 */ /***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(process) {// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// resolves . and .. elements in a path array with directory names there\n// must be no slashes, empty elements, or device names (c:\\) in the array\n// (so also no leading and trailing slashes - it does not distinguish\n// relative and absolute paths)\nfunction normalizeArray(parts, allowAboveRoot) {\n // if the path tries to go above the root, `up` ends up > 0\n var up = 0;\n for (var i = parts.length - 1; i >= 0; i--) {\n var last = parts[i];\n if (last === '.') {\n parts.splice(i, 1);\n } else if (last === '..') {\n parts.splice(i, 1);\n up++;\n } else if (up) {\n parts.splice(i, 1);\n up--;\n }\n }\n\n // if the path is allowed to go above the root, restore leading ..s\n if (allowAboveRoot) {\n for (; up--; up) {\n parts.unshift('..');\n }\n }\n\n return parts;\n}\n\n// Split a filename into [root, dir, basename, ext], unix version\n// 'root' is just a slash, or nothing.\nvar splitPathRe =\n /^(\\/?|)([\\s\\S]*?)((?:\\.{1,2}|[^\\/]+?|)(\\.[^.\\/]*|))(?:[\\/]*)$/;\nvar splitPath = function(filename) {\n return splitPathRe.exec(filename).slice(1);\n};\n\n// path.resolve([from ...], to)\n// posix version\nexports.resolve = function() {\n var resolvedPath = '',\n resolvedAbsolute = false;\n\n for (var i = arguments.length - 1; i >= -1 && !resolvedAbsolute; i--) {\n var path = (i >= 0) ? arguments[i] : process.cwd();\n\n // Skip empty and invalid entries\n if (typeof path !== 'string') {\n throw new TypeError('Arguments to path.resolve must be strings');\n } else if (!path) {\n continue;\n }\n\n resolvedPath = path + '/' + resolvedPath;\n resolvedAbsolute = path.charAt(0) === '/';\n }\n\n // At this point the path should be resolved to a full absolute path, but\n // handle relative paths to be safe (might happen when process.cwd() fails)\n\n // Normalize the path\n resolvedPath = normalizeArray(filter(resolvedPath.split('/'), function(p) {\n return !!p;\n }), !resolvedAbsolute).join('/');\n\n return ((resolvedAbsolute ? '/' : '') + resolvedPath) || '.';\n};\n\n// path.normalize(path)\n// posix version\nexports.normalize = function(path) {\n var isAbsolute = exports.isAbsolute(path),\n trailingSlash = substr(path, -1) === '/';\n\n // Normalize the path\n path = normalizeArray(filter(path.split('/'), function(p) {\n return !!p;\n }), !isAbsolute).join('/');\n\n if (!path && !isAbsolute) {\n path = '.';\n }\n if (path && trailingSlash) {\n path += '/';\n }\n\n return (isAbsolute ? '/' : '') + path;\n};\n\n// posix version\nexports.isAbsolute = function(path) {\n return path.charAt(0) === '/';\n};\n\n// posix version\nexports.join = function() {\n var paths = Array.prototype.slice.call(arguments, 0);\n return exports.normalize(filter(paths, function(p, index) {\n if (typeof p !== 'string') {\n throw new TypeError('Arguments to path.join must be strings');\n }\n return p;\n }).join('/'));\n};\n\n\n// path.relative(from, to)\n// posix version\nexports.relative = function(from, to) {\n from = exports.resolve(from).substr(1);\n to = exports.resolve(to).substr(1);\n\n function trim(arr) {\n var start = 0;\n for (; start < arr.length; start++) {\n if (arr[start] !== '') break;\n }\n\n var end = arr.length - 1;\n for (; end >= 0; end--) {\n if (arr[end] !== '') break;\n }\n\n if (start > end) return [];\n return arr.slice(start, end - start + 1);\n }\n\n var fromParts = trim(from.split('/'));\n var toParts = trim(to.split('/'));\n\n var length = Math.min(fromParts.length, toParts.length);\n var samePartsLength = length;\n for (var i = 0; i < length; i++) {\n if (fromParts[i] !== toParts[i]) {\n samePartsLength = i;\n break;\n }\n }\n\n var outputParts = [];\n for (var i = samePartsLength; i < fromParts.length; i++) {\n outputParts.push('..');\n }\n\n outputParts = outputParts.concat(toParts.slice(samePartsLength));\n\n return outputParts.join('/');\n};\n\nexports.sep = '/';\nexports.delimiter = ':';\n\nexports.dirname = function(path) {\n var result = splitPath(path),\n root = result[0],\n dir = result[1];\n\n if (!root && !dir) {\n // No dirname whatsoever\n return '.';\n }\n\n if (dir) {\n // It has a dirname, strip trailing slash\n dir = dir.substr(0, dir.length - 1);\n }\n\n return root + dir;\n};\n\n\nexports.basename = function(path, ext) {\n var f = splitPath(path)[2];\n // TODO: make this comparison case-insensitive on windows?\n if (ext && f.substr(-1 * ext.length) === ext) {\n f = f.substr(0, f.length - ext.length);\n }\n return f;\n};\n\n\nexports.extname = function(path) {\n return splitPath(path)[3];\n};\n\nfunction filter (xs, f) {\n if (xs.filter) return xs.filter(f);\n var res = [];\n for (var i = 0; i < xs.length; i++) {\n if (f(xs[i], i, xs)) res.push(xs[i]);\n }\n return res;\n}\n\n// String.prototype.substr - negative index don't work in IE8\nvar substr = 'ab'.substr(-1) === 'b'\n ? function (str, start, len) { return str.substr(start, len) }\n : function (str, start, len) {\n if (start < 0) start = str.length + start;\n return str.substr(start, len);\n }\n;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(83)))\n\n/*****************\n ** WEBPACK FOOTER\n ** (webpack)/~/node-libs-browser/~/path-browserify/index.js\n ** module id = 151\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///(webpack)/~/node-libs-browser/~/path-browserify/index.js?"); + eval("'use strict';\n\n// Load modules\n\nvar _keys = __webpack_require__(78);\n\nvar _keys2 = _interopRequireDefault(_keys);\n\nvar _setPrototypeOf = __webpack_require__(152);\n\nvar _setPrototypeOf2 = _interopRequireDefault(_setPrototypeOf);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar Hoek = __webpack_require__(116);\n\n// Declare internals\n\nvar internals = {\n STATUS_CODES: (0, _setPrototypeOf2.default)({\n '100': 'Continue',\n '101': 'Switching Protocols',\n '102': 'Processing',\n '200': 'OK',\n '201': 'Created',\n '202': 'Accepted',\n '203': 'Non-Authoritative Information',\n '204': 'No Content',\n '205': 'Reset Content',\n '206': 'Partial Content',\n '207': 'Multi-Status',\n '300': 'Multiple Choices',\n '301': 'Moved Permanently',\n '302': 'Moved Temporarily',\n '303': 'See Other',\n '304': 'Not Modified',\n '305': 'Use Proxy',\n '307': 'Temporary Redirect',\n '400': 'Bad Request',\n '401': 'Unauthorized',\n '402': 'Payment Required',\n '403': 'Forbidden',\n '404': 'Not Found',\n '405': 'Method Not Allowed',\n '406': 'Not Acceptable',\n '407': 'Proxy Authentication Required',\n '408': 'Request Time-out',\n '409': 'Conflict',\n '410': 'Gone',\n '411': 'Length Required',\n '412': 'Precondition Failed',\n '413': 'Request Entity Too Large',\n '414': 'Request-URI Too Large',\n '415': 'Unsupported Media Type',\n '416': 'Requested Range Not Satisfiable',\n '417': 'Expectation Failed',\n '418': 'I\\'m a teapot',\n '422': 'Unprocessable Entity',\n '423': 'Locked',\n '424': 'Failed Dependency',\n '425': 'Unordered Collection',\n '426': 'Upgrade Required',\n '428': 'Precondition Required',\n '429': 'Too Many Requests',\n '431': 'Request Header Fields Too Large',\n '451': 'Unavailable For Legal Reasons',\n '500': 'Internal Server Error',\n '501': 'Not Implemented',\n '502': 'Bad Gateway',\n '503': 'Service Unavailable',\n '504': 'Gateway Time-out',\n '505': 'HTTP Version Not Supported',\n '506': 'Variant Also Negotiates',\n '507': 'Insufficient Storage',\n '509': 'Bandwidth Limit Exceeded',\n '510': 'Not Extended',\n '511': 'Network Authentication Required'\n }, null)\n};\n\nexports.wrap = function (error, statusCode, message) {\n\n Hoek.assert(error instanceof Error, 'Cannot wrap non-Error object');\n return error.isBoom ? error : internals.initialize(error, statusCode || 500, message);\n};\n\nexports.create = function (statusCode, message, data) {\n\n return internals.create(statusCode, message, data, exports.create);\n};\n\ninternals.create = function (statusCode, message, data, ctor) {\n\n var error = new Error(message ? message : undefined); // Avoids settings null message\n Error.captureStackTrace(error, ctor); // Filter the stack to our external API\n error.data = data || null;\n internals.initialize(error, statusCode);\n return error;\n};\n\ninternals.initialize = function (error, statusCode, message) {\n\n var numberCode = parseInt(statusCode, 10);\n Hoek.assert(!isNaN(numberCode) && numberCode >= 400, 'First argument must be a number (400+):', statusCode);\n\n error.isBoom = true;\n error.isServer = numberCode >= 500;\n\n if (!error.hasOwnProperty('data')) {\n error.data = null;\n }\n\n error.output = {\n statusCode: numberCode,\n payload: {},\n headers: {}\n };\n\n error.reformat = internals.reformat;\n error.reformat();\n\n if (!message && !error.message) {\n\n message = error.output.payload.error;\n }\n\n if (message) {\n error.message = message + (error.message ? ': ' + error.message : '');\n }\n\n return error;\n};\n\ninternals.reformat = function () {\n\n this.output.payload.statusCode = this.output.statusCode;\n this.output.payload.error = internals.STATUS_CODES[this.output.statusCode] || 'Unknown';\n\n if (this.output.statusCode === 500) {\n this.output.payload.message = 'An internal server error occurred'; // Hide actual error from user\n } else if (this.message) {\n this.output.payload.message = this.message;\n }\n};\n\n// 4xx Client Errors\n\nexports.badRequest = function (message, data) {\n\n return internals.create(400, message, data, exports.badRequest);\n};\n\nexports.unauthorized = function (message, scheme, attributes) {\n // Or function (message, wwwAuthenticate[])\n\n var err = internals.create(401, message, undefined, exports.unauthorized);\n\n if (!scheme) {\n return err;\n }\n\n var wwwAuthenticate = '';\n\n if (typeof scheme === 'string') {\n\n // function (message, scheme, attributes)\n\n wwwAuthenticate = scheme;\n\n if (attributes || message) {\n err.output.payload.attributes = {};\n }\n\n if (attributes) {\n var names = (0, _keys2.default)(attributes);\n for (var i = 0; i < names.length; ++i) {\n var name = names[i];\n if (i) {\n wwwAuthenticate = wwwAuthenticate + ',';\n }\n\n var value = attributes[name];\n if (value === null || value === undefined) {\n // Value can be zero\n\n value = '';\n }\n wwwAuthenticate = wwwAuthenticate + ' ' + name + '=\"' + Hoek.escapeHeaderAttribute(value.toString()) + '\"';\n err.output.payload.attributes[name] = value;\n }\n }\n\n if (message) {\n if (attributes) {\n wwwAuthenticate = wwwAuthenticate + ',';\n }\n wwwAuthenticate = wwwAuthenticate + ' error=\"' + Hoek.escapeHeaderAttribute(message) + '\"';\n err.output.payload.attributes.error = message;\n } else {\n err.isMissing = true;\n }\n } else {\n\n // function (message, wwwAuthenticate[])\n\n var wwwArray = scheme;\n for (var i = 0; i < wwwArray.length; ++i) {\n if (i) {\n wwwAuthenticate = wwwAuthenticate + ', ';\n }\n\n wwwAuthenticate = wwwAuthenticate + wwwArray[i];\n }\n }\n\n err.output.headers['WWW-Authenticate'] = wwwAuthenticate;\n\n return err;\n};\n\nexports.forbidden = function (message, data) {\n\n return internals.create(403, message, data, exports.forbidden);\n};\n\nexports.notFound = function (message, data) {\n\n return internals.create(404, message, data, exports.notFound);\n};\n\nexports.methodNotAllowed = function (message, data) {\n\n return internals.create(405, message, data, exports.methodNotAllowed);\n};\n\nexports.notAcceptable = function (message, data) {\n\n return internals.create(406, message, data, exports.notAcceptable);\n};\n\nexports.proxyAuthRequired = function (message, data) {\n\n return internals.create(407, message, data, exports.proxyAuthRequired);\n};\n\nexports.clientTimeout = function (message, data) {\n\n return internals.create(408, message, data, exports.clientTimeout);\n};\n\nexports.conflict = function (message, data) {\n\n return internals.create(409, message, data, exports.conflict);\n};\n\nexports.resourceGone = function (message, data) {\n\n return internals.create(410, message, data, exports.resourceGone);\n};\n\nexports.lengthRequired = function (message, data) {\n\n return internals.create(411, message, data, exports.lengthRequired);\n};\n\nexports.preconditionFailed = function (message, data) {\n\n return internals.create(412, message, data, exports.preconditionFailed);\n};\n\nexports.entityTooLarge = function (message, data) {\n\n return internals.create(413, message, data, exports.entityTooLarge);\n};\n\nexports.uriTooLong = function (message, data) {\n\n return internals.create(414, message, data, exports.uriTooLong);\n};\n\nexports.unsupportedMediaType = function (message, data) {\n\n return internals.create(415, message, data, exports.unsupportedMediaType);\n};\n\nexports.rangeNotSatisfiable = function (message, data) {\n\n return internals.create(416, message, data, exports.rangeNotSatisfiable);\n};\n\nexports.expectationFailed = function (message, data) {\n\n return internals.create(417, message, data, exports.expectationFailed);\n};\n\nexports.badData = function (message, data) {\n\n return internals.create(422, message, data, exports.badData);\n};\n\nexports.preconditionRequired = function (message, data) {\n\n return internals.create(428, message, data, exports.preconditionRequired);\n};\n\nexports.tooManyRequests = function (message, data) {\n\n return internals.create(429, message, data, exports.tooManyRequests);\n};\n\nexports.illegal = function (message, data) {\n\n return internals.create(451, message, data, exports.illegal);\n};\n\n// 5xx Server Errors\n\nexports.internal = function (message, data, statusCode) {\n\n return internals.serverError(message, data, statusCode, exports.internal);\n};\n\ninternals.serverError = function (message, data, statusCode, ctor) {\n\n var error = undefined;\n if (data instanceof Error) {\n error = exports.wrap(data, statusCode, message);\n } else {\n error = internals.create(statusCode || 500, message, undefined, ctor);\n error.data = data;\n }\n\n return error;\n};\n\nexports.notImplemented = function (message, data) {\n\n return internals.serverError(message, data, 501, exports.notImplemented);\n};\n\nexports.badGateway = function (message, data) {\n\n return internals.serverError(message, data, 502, exports.badGateway);\n};\n\nexports.serverTimeout = function (message, data) {\n\n return internals.serverError(message, data, 503, exports.serverTimeout);\n};\n\nexports.gatewayTimeout = function (message, data) {\n\n return internals.serverError(message, data, 504, exports.gatewayTimeout);\n};\n\nexports.badImplementation = function (message, data) {\n\n var err = internals.serverError(message, data, 500, exports.badImplementation);\n err.isDeveloperError = true;\n return err;\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/boom/lib/index.js\n ** module id = 151\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/boom/lib/index.js?"); /***/ }, /* 152 */ /***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(Buffer) {'use strict';\n\n// Declare internals\n\nvar internals = {};\n\nexports.escapeJavaScript = function (input) {\n\n if (!input) {\n return '';\n }\n\n var escaped = '';\n\n for (var i = 0; i < input.length; ++i) {\n\n var charCode = input.charCodeAt(i);\n\n if (internals.isSafe(charCode)) {\n escaped += input[i];\n } else {\n escaped += internals.escapeJavaScriptChar(charCode);\n }\n }\n\n return escaped;\n};\n\nexports.escapeHtml = function (input) {\n\n if (!input) {\n return '';\n }\n\n var escaped = '';\n\n for (var i = 0; i < input.length; ++i) {\n\n var charCode = input.charCodeAt(i);\n\n if (internals.isSafe(charCode)) {\n escaped += input[i];\n } else {\n escaped += internals.escapeHtmlChar(charCode);\n }\n }\n\n return escaped;\n};\n\ninternals.escapeJavaScriptChar = function (charCode) {\n\n if (charCode >= 256) {\n return '\\\\u' + internals.padLeft('' + charCode, 4);\n }\n\n var hexValue = new Buffer(String.fromCharCode(charCode), 'ascii').toString('hex');\n return '\\\\x' + internals.padLeft(hexValue, 2);\n};\n\ninternals.escapeHtmlChar = function (charCode) {\n\n var namedEscape = internals.namedHtml[charCode];\n if (typeof namedEscape !== 'undefined') {\n return namedEscape;\n }\n\n if (charCode >= 256) {\n return '&#' + charCode + ';';\n }\n\n var hexValue = new Buffer(String.fromCharCode(charCode), 'ascii').toString('hex');\n return '&#x' + internals.padLeft(hexValue, 2) + ';';\n};\n\ninternals.padLeft = function (str, len) {\n\n while (str.length < len) {\n str = '0' + str;\n }\n\n return str;\n};\n\ninternals.isSafe = function (charCode) {\n\n return typeof internals.safeCharCodes[charCode] !== 'undefined';\n};\n\ninternals.namedHtml = {\n '38': '&',\n '60': '<',\n '62': '>',\n '34': '"',\n '160': ' ',\n '162': '¢',\n '163': '£',\n '164': '¤',\n '169': '©',\n '174': '®'\n};\n\ninternals.safeCharCodes = function () {\n\n var safe = {};\n\n for (var i = 32; i < 123; ++i) {\n\n if (i >= 97 || // a-z\n i >= 65 && i <= 90 || // A-Z\n i >= 48 && i <= 57 || // 0-9\n i === 32 || // space\n i === 46 || // .\n i === 44 || // ,\n i === 45 || // -\n i === 58 || // :\n i === 95) {\n // _\n\n safe[i] = null;\n }\n }\n\n return safe;\n}();\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1).Buffer))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/wreck/~/hoek/lib/escape.js\n ** module id = 152\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/wreck/~/hoek/lib/escape.js?"); + eval("module.exports = { \"default\": __webpack_require__(153), __esModule: true };\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/object/set-prototype-of.js\n ** module id = 152\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/babel-runtime/core-js/object/set-prototype-of.js?"); /***/ }, /* 153 */ /***/ function(module, exports, __webpack_require__) { - eval("'use strict';\n\n// Load modules\n\nvar _keys = __webpack_require__(76);\n\nvar _keys2 = _interopRequireDefault(_keys);\n\nvar _setPrototypeOf = __webpack_require__(154);\n\nvar _setPrototypeOf2 = _interopRequireDefault(_setPrototypeOf);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar Hoek = __webpack_require__(117);\n\n// Declare internals\n\nvar internals = {\n STATUS_CODES: (0, _setPrototypeOf2.default)({\n '100': 'Continue',\n '101': 'Switching Protocols',\n '102': 'Processing',\n '200': 'OK',\n '201': 'Created',\n '202': 'Accepted',\n '203': 'Non-Authoritative Information',\n '204': 'No Content',\n '205': 'Reset Content',\n '206': 'Partial Content',\n '207': 'Multi-Status',\n '300': 'Multiple Choices',\n '301': 'Moved Permanently',\n '302': 'Moved Temporarily',\n '303': 'See Other',\n '304': 'Not Modified',\n '305': 'Use Proxy',\n '307': 'Temporary Redirect',\n '400': 'Bad Request',\n '401': 'Unauthorized',\n '402': 'Payment Required',\n '403': 'Forbidden',\n '404': 'Not Found',\n '405': 'Method Not Allowed',\n '406': 'Not Acceptable',\n '407': 'Proxy Authentication Required',\n '408': 'Request Time-out',\n '409': 'Conflict',\n '410': 'Gone',\n '411': 'Length Required',\n '412': 'Precondition Failed',\n '413': 'Request Entity Too Large',\n '414': 'Request-URI Too Large',\n '415': 'Unsupported Media Type',\n '416': 'Requested Range Not Satisfiable',\n '417': 'Expectation Failed',\n '418': 'I\\'m a teapot',\n '422': 'Unprocessable Entity',\n '423': 'Locked',\n '424': 'Failed Dependency',\n '425': 'Unordered Collection',\n '426': 'Upgrade Required',\n '428': 'Precondition Required',\n '429': 'Too Many Requests',\n '431': 'Request Header Fields Too Large',\n '451': 'Unavailable For Legal Reasons',\n '500': 'Internal Server Error',\n '501': 'Not Implemented',\n '502': 'Bad Gateway',\n '503': 'Service Unavailable',\n '504': 'Gateway Time-out',\n '505': 'HTTP Version Not Supported',\n '506': 'Variant Also Negotiates',\n '507': 'Insufficient Storage',\n '509': 'Bandwidth Limit Exceeded',\n '510': 'Not Extended',\n '511': 'Network Authentication Required'\n }, null)\n};\n\nexports.wrap = function (error, statusCode, message) {\n\n Hoek.assert(error instanceof Error, 'Cannot wrap non-Error object');\n return error.isBoom ? error : internals.initialize(error, statusCode || 500, message);\n};\n\nexports.create = function (statusCode, message, data) {\n\n return internals.create(statusCode, message, data, exports.create);\n};\n\ninternals.create = function (statusCode, message, data, ctor) {\n\n var error = new Error(message ? message : undefined); // Avoids settings null message\n Error.captureStackTrace(error, ctor); // Filter the stack to our external API\n error.data = data || null;\n internals.initialize(error, statusCode);\n return error;\n};\n\ninternals.initialize = function (error, statusCode, message) {\n\n var numberCode = parseInt(statusCode, 10);\n Hoek.assert(!isNaN(numberCode) && numberCode >= 400, 'First argument must be a number (400+):', statusCode);\n\n error.isBoom = true;\n error.isServer = numberCode >= 500;\n\n if (!error.hasOwnProperty('data')) {\n error.data = null;\n }\n\n error.output = {\n statusCode: numberCode,\n payload: {},\n headers: {}\n };\n\n error.reformat = internals.reformat;\n error.reformat();\n\n if (!message && !error.message) {\n\n message = error.output.payload.error;\n }\n\n if (message) {\n error.message = message + (error.message ? ': ' + error.message : '');\n }\n\n return error;\n};\n\ninternals.reformat = function () {\n\n this.output.payload.statusCode = this.output.statusCode;\n this.output.payload.error = internals.STATUS_CODES[this.output.statusCode] || 'Unknown';\n\n if (this.output.statusCode === 500) {\n this.output.payload.message = 'An internal server error occurred'; // Hide actual error from user\n } else if (this.message) {\n this.output.payload.message = this.message;\n }\n};\n\n// 4xx Client Errors\n\nexports.badRequest = function (message, data) {\n\n return internals.create(400, message, data, exports.badRequest);\n};\n\nexports.unauthorized = function (message, scheme, attributes) {\n // Or function (message, wwwAuthenticate[])\n\n var err = internals.create(401, message, undefined, exports.unauthorized);\n\n if (!scheme) {\n return err;\n }\n\n var wwwAuthenticate = '';\n\n if (typeof scheme === 'string') {\n\n // function (message, scheme, attributes)\n\n wwwAuthenticate = scheme;\n\n if (attributes || message) {\n err.output.payload.attributes = {};\n }\n\n if (attributes) {\n var names = (0, _keys2.default)(attributes);\n for (var i = 0; i < names.length; ++i) {\n var name = names[i];\n if (i) {\n wwwAuthenticate = wwwAuthenticate + ',';\n }\n\n var value = attributes[name];\n if (value === null || value === undefined) {\n // Value can be zero\n\n value = '';\n }\n wwwAuthenticate = wwwAuthenticate + ' ' + name + '=\"' + Hoek.escapeHeaderAttribute(value.toString()) + '\"';\n err.output.payload.attributes[name] = value;\n }\n }\n\n if (message) {\n if (attributes) {\n wwwAuthenticate = wwwAuthenticate + ',';\n }\n wwwAuthenticate = wwwAuthenticate + ' error=\"' + Hoek.escapeHeaderAttribute(message) + '\"';\n err.output.payload.attributes.error = message;\n } else {\n err.isMissing = true;\n }\n } else {\n\n // function (message, wwwAuthenticate[])\n\n var wwwArray = scheme;\n for (var i = 0; i < wwwArray.length; ++i) {\n if (i) {\n wwwAuthenticate = wwwAuthenticate + ', ';\n }\n\n wwwAuthenticate = wwwAuthenticate + wwwArray[i];\n }\n }\n\n err.output.headers['WWW-Authenticate'] = wwwAuthenticate;\n\n return err;\n};\n\nexports.forbidden = function (message, data) {\n\n return internals.create(403, message, data, exports.forbidden);\n};\n\nexports.notFound = function (message, data) {\n\n return internals.create(404, message, data, exports.notFound);\n};\n\nexports.methodNotAllowed = function (message, data) {\n\n return internals.create(405, message, data, exports.methodNotAllowed);\n};\n\nexports.notAcceptable = function (message, data) {\n\n return internals.create(406, message, data, exports.notAcceptable);\n};\n\nexports.proxyAuthRequired = function (message, data) {\n\n return internals.create(407, message, data, exports.proxyAuthRequired);\n};\n\nexports.clientTimeout = function (message, data) {\n\n return internals.create(408, message, data, exports.clientTimeout);\n};\n\nexports.conflict = function (message, data) {\n\n return internals.create(409, message, data, exports.conflict);\n};\n\nexports.resourceGone = function (message, data) {\n\n return internals.create(410, message, data, exports.resourceGone);\n};\n\nexports.lengthRequired = function (message, data) {\n\n return internals.create(411, message, data, exports.lengthRequired);\n};\n\nexports.preconditionFailed = function (message, data) {\n\n return internals.create(412, message, data, exports.preconditionFailed);\n};\n\nexports.entityTooLarge = function (message, data) {\n\n return internals.create(413, message, data, exports.entityTooLarge);\n};\n\nexports.uriTooLong = function (message, data) {\n\n return internals.create(414, message, data, exports.uriTooLong);\n};\n\nexports.unsupportedMediaType = function (message, data) {\n\n return internals.create(415, message, data, exports.unsupportedMediaType);\n};\n\nexports.rangeNotSatisfiable = function (message, data) {\n\n return internals.create(416, message, data, exports.rangeNotSatisfiable);\n};\n\nexports.expectationFailed = function (message, data) {\n\n return internals.create(417, message, data, exports.expectationFailed);\n};\n\nexports.badData = function (message, data) {\n\n return internals.create(422, message, data, exports.badData);\n};\n\nexports.preconditionRequired = function (message, data) {\n\n return internals.create(428, message, data, exports.preconditionRequired);\n};\n\nexports.tooManyRequests = function (message, data) {\n\n return internals.create(429, message, data, exports.tooManyRequests);\n};\n\nexports.illegal = function (message, data) {\n\n return internals.create(451, message, data, exports.illegal);\n};\n\n// 5xx Server Errors\n\nexports.internal = function (message, data, statusCode) {\n\n return internals.serverError(message, data, statusCode, exports.internal);\n};\n\ninternals.serverError = function (message, data, statusCode, ctor) {\n\n var error = undefined;\n if (data instanceof Error) {\n error = exports.wrap(data, statusCode, message);\n } else {\n error = internals.create(statusCode || 500, message, undefined, ctor);\n error.data = data;\n }\n\n return error;\n};\n\nexports.notImplemented = function (message, data) {\n\n return internals.serverError(message, data, 501, exports.notImplemented);\n};\n\nexports.badGateway = function (message, data) {\n\n return internals.serverError(message, data, 502, exports.badGateway);\n};\n\nexports.serverTimeout = function (message, data) {\n\n return internals.serverError(message, data, 503, exports.serverTimeout);\n};\n\nexports.gatewayTimeout = function (message, data) {\n\n return internals.serverError(message, data, 504, exports.gatewayTimeout);\n};\n\nexports.badImplementation = function (message, data) {\n\n var err = internals.serverError(message, data, 500, exports.badImplementation);\n err.isDeveloperError = true;\n return err;\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/wreck/~/boom/lib/index.js\n ** module id = 153\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/wreck/~/boom/lib/index.js?"); + eval("__webpack_require__(154);\nmodule.exports = __webpack_require__(10).Object.setPrototypeOf;\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/object/set-prototype-of.js\n ** module id = 153\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/fn/object/set-prototype-of.js?"); /***/ }, /* 154 */ /***/ function(module, exports, __webpack_require__) { - eval("module.exports = { \"default\": __webpack_require__(155), __esModule: true };\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/object/set-prototype-of.js\n ** module id = 154\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/babel-runtime/core-js/object/set-prototype-of.js?"); + eval("// 19.1.3.19 Object.setPrototypeOf(O, proto)\nvar $export = __webpack_require__(8);\n$export($export.S, 'Object', {setPrototypeOf: __webpack_require__(155).set});\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/es6.object.set-prototype-of.js\n ** module id = 154\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/modules/es6.object.set-prototype-of.js?"); /***/ }, /* 155 */ /***/ function(module, exports, __webpack_require__) { - eval("__webpack_require__(156);\nmodule.exports = __webpack_require__(10).Object.setPrototypeOf;\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/~/core-js/library/fn/object/set-prototype-of.js\n ** module id = 155\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/babel-runtime/~/core-js/library/fn/object/set-prototype-of.js?"); + eval("// Works with __proto__ only. Old v8 can't work with null proto objects.\n/* eslint-disable no-proto */\nvar getDesc = __webpack_require__(14).getDesc\n , isObject = __webpack_require__(52)\n , anObject = __webpack_require__(51);\nvar check = function(O, proto){\n anObject(O);\n if(!isObject(proto) && proto !== null)throw TypeError(proto + \": can't set as prototype!\");\n};\nmodule.exports = {\n set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line\n function(test, buggy, set){\n try {\n set = __webpack_require__(11)(Function.call, getDesc(Object.prototype, '__proto__').set, 2);\n set(test, []);\n buggy = !(test instanceof Array);\n } catch(e){ buggy = true; }\n return function setPrototypeOf(O, proto){\n check(O, proto);\n if(buggy)O.__proto__ = proto;\n else set(O, proto);\n return O;\n };\n }({}, false) : undefined),\n check: check\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.set-proto.js\n ** module id = 155\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/modules/$.set-proto.js?"); /***/ }, /* 156 */ /***/ function(module, exports, __webpack_require__) { - eval("// 19.1.3.19 Object.setPrototypeOf(O, proto)\nvar $export = __webpack_require__(8);\n$export($export.S, 'Object', {setPrototypeOf: __webpack_require__(157).set});\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/~/core-js/library/modules/es6.object.set-prototype-of.js\n ** module id = 156\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/babel-runtime/~/core-js/library/modules/es6.object.set-prototype-of.js?"); + eval("/* WEBPACK VAR INJECTION */(function(Buffer) {'use strict';\n\n// Load modules\n\nvar Hoek = __webpack_require__(116);\nvar Stream = __webpack_require__(98);\n\n// Declare internals\n\nvar internals = {};\n\nmodule.exports = internals.Payload = function (payload, encoding) {\n\n Stream.Readable.call(this);\n\n var data = [].concat(payload || '');\n var size = 0;\n for (var i = 0; i < data.length; ++i) {\n var chunk = data[i];\n size = size + chunk.length;\n data[i] = Buffer.isBuffer(chunk) ? chunk : new Buffer(chunk);\n }\n\n this._data = Buffer.concat(data, size);\n this._position = 0;\n this._encoding = encoding || 'utf8';\n};\n\nHoek.inherits(internals.Payload, Stream.Readable);\n\ninternals.Payload.prototype._read = function (size) {\n\n var chunk = this._data.slice(this._position, this._position + size);\n this.push(chunk, this._encoding);\n this._position = this._position + chunk.length;\n\n if (this._position >= this._data.length) {\n this.push(null);\n }\n};\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1).Buffer))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/wreck/lib/payload.js\n ** module id = 156\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/wreck/lib/payload.js?"); /***/ }, /* 157 */ /***/ function(module, exports, __webpack_require__) { - eval("// Works with __proto__ only. Old v8 can't work with null proto objects.\n/* eslint-disable no-proto */\nvar getDesc = __webpack_require__(14).getDesc\n , isObject = __webpack_require__(39)\n , anObject = __webpack_require__(38);\nvar check = function(O, proto){\n anObject(O);\n if(!isObject(proto) && proto !== null)throw TypeError(proto + \": can't set as prototype!\");\n};\nmodule.exports = {\n set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line\n function(test, buggy, set){\n try {\n set = __webpack_require__(11)(Function.call, getDesc(Object.prototype, '__proto__').set, 2);\n set(test, []);\n buggy = !(test instanceof Array);\n } catch(e){ buggy = true; }\n return function setPrototypeOf(O, proto){\n check(O, proto);\n if(buggy)O.__proto__ = proto;\n else set(O, proto);\n return O;\n };\n }({}, false) : undefined),\n check: check\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/~/core-js/library/modules/$.set-proto.js\n ** module id = 157\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/babel-runtime/~/core-js/library/modules/$.set-proto.js?"); + eval("/* WEBPACK VAR INJECTION */(function(Buffer) {'use strict';\n\n// Load modules\n\nvar Boom = __webpack_require__(151);\nvar Hoek = __webpack_require__(116);\nvar Stream = __webpack_require__(98);\n\n// Declare internals\n\nvar internals = {};\n\nmodule.exports = internals.Recorder = function (options) {\n\n Stream.Writable.call(this);\n\n this.settings = options; // No need to clone since called internally with new object\n this.buffers = [];\n this.length = 0;\n};\n\nHoek.inherits(internals.Recorder, Stream.Writable);\n\ninternals.Recorder.prototype._write = function (chunk, encoding, next) {\n\n if (this.settings.maxBytes && this.length + chunk.length > this.settings.maxBytes) {\n\n return this.emit('error', Boom.badRequest('Payload content length greater than maximum allowed: ' + this.settings.maxBytes));\n }\n\n this.length = this.length + chunk.length;\n this.buffers.push(chunk);\n next();\n};\n\ninternals.Recorder.prototype.collect = function () {\n\n var buffer = this.buffers.length === 0 ? new Buffer(0) : this.buffers.length === 1 ? this.buffers[0] : Buffer.concat(this.buffers, this.length);\n return buffer;\n};\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1).Buffer))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/wreck/lib/recorder.js\n ** module id = 157\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/wreck/lib/recorder.js?"); /***/ }, /* 158 */ /***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(Buffer) {'use strict';\n\n// Load modules\n\nvar Hoek = __webpack_require__(117);\nvar Stream = __webpack_require__(96);\n\n// Declare internals\n\nvar internals = {};\n\nmodule.exports = internals.Payload = function (payload, encoding) {\n\n Stream.Readable.call(this);\n\n var data = [].concat(payload || '');\n var size = 0;\n for (var i = 0; i < data.length; ++i) {\n var chunk = data[i];\n size = size + chunk.length;\n data[i] = Buffer.isBuffer(chunk) ? chunk : new Buffer(chunk);\n }\n\n this._data = Buffer.concat(data, size);\n this._position = 0;\n this._encoding = encoding || 'utf8';\n};\n\nHoek.inherits(internals.Payload, Stream.Readable);\n\ninternals.Payload.prototype._read = function (size) {\n\n var chunk = this._data.slice(this._position, this._position + size);\n this.push(chunk, this._encoding);\n this._position = this._position + chunk.length;\n\n if (this._position >= this._data.length) {\n this.push(null);\n }\n};\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1).Buffer))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/wreck/lib/payload.js\n ** module id = 158\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/wreck/lib/payload.js?"); + eval("'use strict';\n\n// Load modules\n\nvar Hoek = __webpack_require__(116);\nvar Stream = __webpack_require__(98);\nvar Payload = __webpack_require__(156);\n\n// Declare internals\n\nvar internals = {};\n\nmodule.exports = internals.Tap = function () {\n\n Stream.Transform.call(this);\n this.buffers = [];\n};\n\nHoek.inherits(internals.Tap, Stream.Transform);\n\ninternals.Tap.prototype._transform = function (chunk, encoding, next) {\n\n this.buffers.push(chunk);\n next(null, chunk);\n};\n\ninternals.Tap.prototype.collect = function () {\n\n return new Payload(this.buffers);\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/wreck/lib/tap.js\n ** module id = 158\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/wreck/lib/tap.js?"); /***/ }, /* 159 */ /***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(Buffer) {'use strict';\n\n// Load modules\n\nvar Boom = __webpack_require__(153);\nvar Hoek = __webpack_require__(117);\nvar Stream = __webpack_require__(96);\n\n// Declare internals\n\nvar internals = {};\n\nmodule.exports = internals.Recorder = function (options) {\n\n Stream.Writable.call(this);\n\n this.settings = options; // No need to clone since called internally with new object\n this.buffers = [];\n this.length = 0;\n};\n\nHoek.inherits(internals.Recorder, Stream.Writable);\n\ninternals.Recorder.prototype._write = function (chunk, encoding, next) {\n\n if (this.settings.maxBytes && this.length + chunk.length > this.settings.maxBytes) {\n\n return this.emit('error', Boom.badRequest('Payload content length greater than maximum allowed: ' + this.settings.maxBytes));\n }\n\n this.length = this.length + chunk.length;\n this.buffers.push(chunk);\n next();\n};\n\ninternals.Recorder.prototype.collect = function () {\n\n var buffer = this.buffers.length === 0 ? new Buffer(0) : this.buffers.length === 1 ? this.buffers[0] : Buffer.concat(this.buffers, this.length);\n return buffer;\n};\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1).Buffer))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/wreck/lib/recorder.js\n ** module id = 159\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/wreck/lib/recorder.js?"); + eval("'use strict';\n\nvar argCommand = __webpack_require__(160).argCommand;\n\nmodule.exports = function (send) {\n return {\n get: argCommand(send, 'block/get'),\n stat: argCommand(send, 'block/stat'),\n put: function put(file, cb) {\n if (Array.isArray(file)) {\n return cb(null, new Error('block.put() only accepts 1 file'));\n }\n return send('block/put', null, null, file, cb);\n }\n };\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/api/block.js\n ** module id = 159\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./src/api/block.js?"); /***/ }, /* 160 */ -/***/ function(module, exports, __webpack_require__) { +/***/ function(module, exports) { - eval("'use strict';\n\n// Load modules\n\nvar Hoek = __webpack_require__(117);\nvar Stream = __webpack_require__(96);\nvar Payload = __webpack_require__(158);\n\n// Declare internals\n\nvar internals = {};\n\nmodule.exports = internals.Tap = function () {\n\n Stream.Transform.call(this);\n this.buffers = [];\n};\n\nHoek.inherits(internals.Tap, Stream.Transform);\n\ninternals.Tap.prototype._transform = function (chunk, encoding, next) {\n\n this.buffers.push(chunk);\n next(null, chunk);\n};\n\ninternals.Tap.prototype.collect = function () {\n\n return new Payload(this.buffers);\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/wreck/lib/tap.js\n ** module id = 160\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/wreck/lib/tap.js?"); + eval("'use strict';\n\nexports.command = function command(send, name) {\n return function (opts, cb) {\n if (typeof opts === 'function') {\n cb = opts;\n opts = {};\n }\n return send(name, null, opts, null, cb);\n };\n};\n\nexports.argCommand = function argCommand(send, name) {\n return function (arg, opts, cb) {\n if (typeof opts === 'function') {\n cb = opts;\n opts = {};\n }\n return send(name, arg, opts, null, cb);\n };\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/cmd-helpers.js\n ** module id = 160\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./src/cmd-helpers.js?"); /***/ }, /* 161 */ /***/ function(module, exports, __webpack_require__) { - eval("'use strict';\n\nvar argCommand = __webpack_require__(162).argCommand;\n\nmodule.exports = function (send) {\n return {\n get: argCommand(send, 'block/get'),\n stat: argCommand(send, 'block/stat'),\n put: function put(file, cb) {\n if (Array.isArray(file)) {\n return cb(null, new Error('block.put() only accepts 1 file'));\n }\n return send('block/put', null, null, file, cb);\n }\n };\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/api/block.js\n ** module id = 161\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./src/api/block.js?"); + eval("'use strict';\n\nvar argCommand = __webpack_require__(160).argCommand;\n\nmodule.exports = function (send) {\n return argCommand(send, 'cat');\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/api/cat.js\n ** module id = 161\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./src/api/cat.js?"); /***/ }, /* 162 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("'use strict';\n\nexports.command = function command(send, name) {\n return function (opts, cb) {\n if (typeof opts === 'function') {\n cb = opts;\n opts = {};\n }\n return send(name, null, opts, null, cb);\n };\n};\n\nexports.argCommand = function argCommand(send, name) {\n return function (arg, opts, cb) {\n if (typeof opts === 'function') {\n cb = opts;\n opts = {};\n }\n return send(name, arg, opts, null, cb);\n };\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/cmd-helpers.js\n ** module id = 162\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./src/cmd-helpers.js?"); + eval("'use strict';\n\nvar command = __webpack_require__(160).command;\n\nmodule.exports = function (send) {\n return command(send, 'commands');\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/api/commands.js\n ** module id = 162\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./src/api/commands.js?"); /***/ }, /* 163 */ /***/ function(module, exports, __webpack_require__) { - eval("'use strict';\n\nvar argCommand = __webpack_require__(162).argCommand;\n\nmodule.exports = function (send) {\n return argCommand(send, 'cat');\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/api/cat.js\n ** module id = 163\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./src/api/cat.js?"); + eval("'use strict';\n\nvar argCommand = __webpack_require__(160).argCommand;\n\nmodule.exports = function (send) {\n return {\n get: argCommand(send, 'config'),\n set: function set(key, value, opts, cb) {\n if (typeof opts === 'function') {\n cb = opts;\n opts = {};\n }\n return send('config', [key, value], opts, null, cb);\n },\n show: function show(cb) {\n return send('config/show', null, null, null, true, cb);\n },\n replace: function replace(file, cb) {\n return send('config/replace', null, null, file, cb);\n }\n };\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/api/config.js\n ** module id = 163\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./src/api/config.js?"); /***/ }, /* 164 */ /***/ function(module, exports, __webpack_require__) { - eval("'use strict';\n\nvar command = __webpack_require__(162).command;\n\nmodule.exports = function (send) {\n return command(send, 'commands');\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/api/commands.js\n ** module id = 164\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./src/api/commands.js?"); + eval("'use strict';\n\nvar _typeof2 = __webpack_require__(20);\n\nvar _typeof3 = _interopRequireDefault(_typeof2);\n\nvar _promise = __webpack_require__(165);\n\nvar _promise2 = _interopRequireDefault(_promise);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar argCommand = __webpack_require__(160).argCommand;\n\nmodule.exports = function (send) {\n return {\n findprovs: argCommand(send, 'dht/findprovs'),\n get: function get(key, opts, cb) {\n if (typeof opts === 'function' && !cb) {\n cb = opts;\n opts = null;\n }\n\n var handleResult = function handleResult(done, err, res) {\n if (err) return done(err);\n if (!res) return done(new Error('empty response'));\n if (res.length === 0) return done(new Error('no value returned for key'));\n\n // Inconsistent return values in the browser vs node\n if (Array.isArray(res)) {\n res = res[0];\n }\n\n if (res.Type === 5) {\n done(null, res.Extra);\n } else {\n var error = new Error('key was not found (type 6)');\n done(error);\n }\n };\n\n if (typeof cb !== 'function' && typeof _promise2.default !== 'undefined') {\n var _ret = function () {\n var done = function done(err, res) {\n if (err) throw err;\n return res;\n };\n\n return {\n v: send('dht/get', key, opts).then(function (res) {\n return handleResult(done, null, res);\n }, function (err) {\n return handleResult(done, err);\n })\n };\n }();\n\n if ((typeof _ret === 'undefined' ? 'undefined' : (0, _typeof3.default)(_ret)) === \"object\") return _ret.v;\n }\n\n return send('dht/get', key, opts, null, handleResult.bind(null, cb));\n },\n put: function put(key, value, opts, cb) {\n if (typeof opts === 'function' && !cb) {\n cb = opts;\n opts = null;\n }\n\n return send('dht/put', [key, value], opts, null, cb);\n }\n };\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/api/dht.js\n ** module id = 164\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./src/api/dht.js?"); /***/ }, /* 165 */ /***/ function(module, exports, __webpack_require__) { - eval("'use strict';\n\nvar argCommand = __webpack_require__(162).argCommand;\n\nmodule.exports = function (send) {\n return {\n get: argCommand(send, 'config'),\n set: function set(key, value, opts, cb) {\n if (typeof opts === 'function') {\n cb = opts;\n opts = {};\n }\n return send('config', [key, value], opts, null, cb);\n },\n show: function show(cb) {\n return send('config/show', null, null, null, true, cb);\n },\n replace: function replace(file, cb) {\n return send('config/replace', null, null, file, cb);\n }\n };\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/api/config.js\n ** module id = 165\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./src/api/config.js?"); + eval("module.exports = { \"default\": __webpack_require__(166), __esModule: true };\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/babel-runtime/core-js/promise.js\n ** module id = 165\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/babel-runtime/core-js/promise.js?"); /***/ }, /* 166 */ /***/ function(module, exports, __webpack_require__) { - eval("'use strict';\n\nvar argCommand = __webpack_require__(162).argCommand;\n\nmodule.exports = function (send) {\n return {\n findprovs: argCommand(send, 'dht/findprovs'),\n get: function get(key, opts, cb) {\n if (typeof opts === 'function' && !cb) {\n cb = opts;\n opts = null;\n }\n\n return send('dht/get', key, opts, null, function (err, res) {\n if (err) return cb(err);\n if (!res) return cb(new Error('empty response'));\n if (res.length === 0) return cb(new Error('no value returned for key'));\n\n // Inconsistent return values in the browser vs node\n if (Array.isArray(res)) {\n res = res[0];\n }\n\n if (res.Type === 5) {\n cb(null, res.Extra);\n } else {\n var error = new Error('key was not found (type 6)');\n cb(error);\n }\n });\n },\n put: function put(key, value, opts, cb) {\n if (typeof opts === 'function' && !cb) {\n cb = opts;\n opts = null;\n }\n\n return send('dht/put', [key, value], opts, null, cb);\n }\n };\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/api/dht.js\n ** module id = 166\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./src/api/dht.js?"); + eval("__webpack_require__(53);\n__webpack_require__(23);\n__webpack_require__(39);\n__webpack_require__(167);\nmodule.exports = __webpack_require__(10).Promise;\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/fn/promise.js\n ** module id = 166\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/fn/promise.js?"); /***/ }, /* 167 */ /***/ function(module, exports, __webpack_require__) { - eval("'use strict';\n\nvar command = __webpack_require__(162).command;\n\nmodule.exports = function (send) {\n return {\n net: command(send, 'diag/net'),\n sys: command(send, 'diag/sys')\n };\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/api/diag.js\n ** module id = 167\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./src/api/diag.js?"); + eval("'use strict';\nvar $ = __webpack_require__(14)\n , LIBRARY = __webpack_require__(27)\n , global = __webpack_require__(9)\n , ctx = __webpack_require__(11)\n , classof = __webpack_require__(168)\n , $export = __webpack_require__(8)\n , isObject = __webpack_require__(52)\n , anObject = __webpack_require__(51)\n , aFunction = __webpack_require__(12)\n , strictNew = __webpack_require__(169)\n , forOf = __webpack_require__(170)\n , setProto = __webpack_require__(155).set\n , same = __webpack_require__(175)\n , SPECIES = __webpack_require__(36)('species')\n , speciesConstructor = __webpack_require__(176)\n , asap = __webpack_require__(177)\n , PROMISE = 'Promise'\n , process = global.process\n , isNode = classof(process) == 'process'\n , P = global[PROMISE]\n , Wrapper;\n\nvar testResolve = function(sub){\n var test = new P(function(){});\n if(sub)test.constructor = Object;\n return P.resolve(test) === test;\n};\n\nvar USE_NATIVE = function(){\n var works = false;\n function P2(x){\n var self = new P(x);\n setProto(self, P2.prototype);\n return self;\n }\n try {\n works = P && P.resolve && testResolve();\n setProto(P2, P);\n P2.prototype = $.create(P.prototype, {constructor: {value: P2}});\n // actual Firefox has broken subclass support, test that\n if(!(P2.resolve(5).then(function(){}) instanceof P2)){\n works = false;\n }\n // actual V8 bug, https://code.google.com/p/v8/issues/detail?id=4162\n if(works && __webpack_require__(31)){\n var thenableThenGotten = false;\n P.resolve($.setDesc({}, 'then', {\n get: function(){ thenableThenGotten = true; }\n }));\n works = thenableThenGotten;\n }\n } catch(e){ works = false; }\n return works;\n}();\n\n// helpers\nvar sameConstructor = function(a, b){\n // library wrapper special case\n if(LIBRARY && a === P && b === Wrapper)return true;\n return same(a, b);\n};\nvar getConstructor = function(C){\n var S = anObject(C)[SPECIES];\n return S != undefined ? S : C;\n};\nvar isThenable = function(it){\n var then;\n return isObject(it) && typeof (then = it.then) == 'function' ? then : false;\n};\nvar PromiseCapability = function(C){\n var resolve, reject;\n this.promise = new C(function($$resolve, $$reject){\n if(resolve !== undefined || reject !== undefined)throw TypeError('Bad Promise constructor');\n resolve = $$resolve;\n reject = $$reject;\n });\n this.resolve = aFunction(resolve),\n this.reject = aFunction(reject)\n};\nvar perform = function(exec){\n try {\n exec();\n } catch(e){\n return {error: e};\n }\n};\nvar notify = function(record, isReject){\n if(record.n)return;\n record.n = true;\n var chain = record.c;\n asap(function(){\n var value = record.v\n , ok = record.s == 1\n , i = 0;\n var run = function(reaction){\n var handler = ok ? reaction.ok : reaction.fail\n , resolve = reaction.resolve\n , reject = reaction.reject\n , result, then;\n try {\n if(handler){\n if(!ok)record.h = true;\n result = handler === true ? value : handler(value);\n if(result === reaction.promise){\n reject(TypeError('Promise-chain cycle'));\n } else if(then = isThenable(result)){\n then.call(result, resolve, reject);\n } else resolve(result);\n } else reject(value);\n } catch(e){\n reject(e);\n }\n };\n while(chain.length > i)run(chain[i++]); // variable length - can't use forEach\n chain.length = 0;\n record.n = false;\n if(isReject)setTimeout(function(){\n var promise = record.p\n , handler, console;\n if(isUnhandled(promise)){\n if(isNode){\n process.emit('unhandledRejection', value, promise);\n } else if(handler = global.onunhandledrejection){\n handler({promise: promise, reason: value});\n } else if((console = global.console) && console.error){\n console.error('Unhandled promise rejection', value);\n }\n } record.a = undefined;\n }, 1);\n });\n};\nvar isUnhandled = function(promise){\n var record = promise._d\n , chain = record.a || record.c\n , i = 0\n , reaction;\n if(record.h)return false;\n while(chain.length > i){\n reaction = chain[i++];\n if(reaction.fail || !isUnhandled(reaction.promise))return false;\n } return true;\n};\nvar $reject = function(value){\n var record = this;\n if(record.d)return;\n record.d = true;\n record = record.r || record; // unwrap\n record.v = value;\n record.s = 2;\n record.a = record.c.slice();\n notify(record, true);\n};\nvar $resolve = function(value){\n var record = this\n , then;\n if(record.d)return;\n record.d = true;\n record = record.r || record; // unwrap\n try {\n if(record.p === value)throw TypeError(\"Promise can't be resolved itself\");\n if(then = isThenable(value)){\n asap(function(){\n var wrapper = {r: record, d: false}; // wrap\n try {\n then.call(value, ctx($resolve, wrapper, 1), ctx($reject, wrapper, 1));\n } catch(e){\n $reject.call(wrapper, e);\n }\n });\n } else {\n record.v = value;\n record.s = 1;\n notify(record, false);\n }\n } catch(e){\n $reject.call({r: record, d: false}, e); // wrap\n }\n};\n\n// constructor polyfill\nif(!USE_NATIVE){\n // 25.4.3.1 Promise(executor)\n P = function Promise(executor){\n aFunction(executor);\n var record = this._d = {\n p: strictNew(this, P, PROMISE), // <- promise\n c: [], // <- awaiting reactions\n a: undefined, // <- checked in isUnhandled reactions\n s: 0, // <- state\n d: false, // <- done\n v: undefined, // <- value\n h: false, // <- handled rejection\n n: false // <- notify\n };\n try {\n executor(ctx($resolve, record, 1), ctx($reject, record, 1));\n } catch(err){\n $reject.call(record, err);\n }\n };\n __webpack_require__(182)(P.prototype, {\n // 25.4.5.3 Promise.prototype.then(onFulfilled, onRejected)\n then: function then(onFulfilled, onRejected){\n var reaction = new PromiseCapability(speciesConstructor(this, P))\n , promise = reaction.promise\n , record = this._d;\n reaction.ok = typeof onFulfilled == 'function' ? onFulfilled : true;\n reaction.fail = typeof onRejected == 'function' && onRejected;\n record.c.push(reaction);\n if(record.a)record.a.push(reaction);\n if(record.s)notify(record, false);\n return promise;\n },\n // 25.4.5.1 Promise.prototype.catch(onRejected)\n 'catch': function(onRejected){\n return this.then(undefined, onRejected);\n }\n });\n}\n\n$export($export.G + $export.W + $export.F * !USE_NATIVE, {Promise: P});\n__webpack_require__(35)(P, PROMISE);\n__webpack_require__(183)(PROMISE);\nWrapper = __webpack_require__(10)[PROMISE];\n\n// statics\n$export($export.S + $export.F * !USE_NATIVE, PROMISE, {\n // 25.4.4.5 Promise.reject(r)\n reject: function reject(r){\n var capability = new PromiseCapability(this)\n , $$reject = capability.reject;\n $$reject(r);\n return capability.promise;\n }\n});\n$export($export.S + $export.F * (!USE_NATIVE || testResolve(true)), PROMISE, {\n // 25.4.4.6 Promise.resolve(x)\n resolve: function resolve(x){\n // instanceof instead of internal slot check because we should fix it without replacement native Promise core\n if(x instanceof P && sameConstructor(x.constructor, this))return x;\n var capability = new PromiseCapability(this)\n , $$resolve = capability.resolve;\n $$resolve(x);\n return capability.promise;\n }\n});\n$export($export.S + $export.F * !(USE_NATIVE && __webpack_require__(184)(function(iter){\n P.all(iter)['catch'](function(){});\n})), PROMISE, {\n // 25.4.4.1 Promise.all(iterable)\n all: function all(iterable){\n var C = getConstructor(this)\n , capability = new PromiseCapability(C)\n , resolve = capability.resolve\n , reject = capability.reject\n , values = [];\n var abrupt = perform(function(){\n forOf(iterable, false, values.push, values);\n var remaining = values.length\n , results = Array(remaining);\n if(remaining)$.each.call(values, function(promise, index){\n var alreadyCalled = false;\n C.resolve(promise).then(function(value){\n if(alreadyCalled)return;\n alreadyCalled = true;\n results[index] = value;\n --remaining || resolve(results);\n }, reject);\n });\n else resolve(results);\n });\n if(abrupt)reject(abrupt.error);\n return capability.promise;\n },\n // 25.4.4.4 Promise.race(iterable)\n race: function race(iterable){\n var C = getConstructor(this)\n , capability = new PromiseCapability(C)\n , reject = capability.reject;\n var abrupt = perform(function(){\n forOf(iterable, false, function(promise){\n C.resolve(promise).then(capability.resolve, reject);\n });\n });\n if(abrupt)reject(abrupt.error);\n return capability.promise;\n }\n});\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/es6.promise.js\n ** module id = 167\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/modules/es6.promise.js?"); /***/ }, /* 168 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("'use strict';\n\nmodule.exports = function (send) {\n return function id(id, cb) {\n if (typeof id === 'function') {\n cb = id;\n id = null;\n }\n return send('id', id, null, null, cb);\n };\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/api/id.js\n ** module id = 168\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./src/api/id.js?"); + eval("// getting tag from 19.1.3.6 Object.prototype.toString()\nvar cof = __webpack_require__(18)\n , TAG = __webpack_require__(36)('toStringTag')\n // ES3 wrong here\n , ARG = cof(function(){ return arguments; }()) == 'Arguments';\n\nmodule.exports = function(it){\n var O, T, B;\n return it === undefined ? 'Undefined' : it === null ? 'Null'\n // @@toStringTag case\n : typeof (T = (O = Object(it))[TAG]) == 'string' ? T\n // builtinTag case\n : ARG ? cof(O)\n // ES3 arguments fallback\n : (B = cof(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : B;\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.classof.js\n ** module id = 168\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/modules/$.classof.js?"); /***/ }, /* 169 */ -/***/ function(module, exports, __webpack_require__) { +/***/ function(module, exports) { - eval("'use strict';\n\nvar ndjson = __webpack_require__(170);\n\nmodule.exports = function (send) {\n return {\n tail: function tail(cb) {\n return send('log/tail', null, {}, null, false, function (err, res) {\n if (err) return cb(err);\n cb(null, res.pipe(ndjson.parse()));\n });\n }\n };\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/api/log.js\n ** module id = 169\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./src/api/log.js?"); + eval("module.exports = function(it, Constructor, name){\n if(!(it instanceof Constructor))throw TypeError(name + \": use the 'new' operator!\");\n return it;\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.strict-new.js\n ** module id = 169\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/modules/$.strict-new.js?"); /***/ }, /* 170 */ /***/ function(module, exports, __webpack_require__) { - eval("var through = __webpack_require__(171)\nvar split = __webpack_require__(182)\nvar EOL = __webpack_require__(72).EOL\n\nmodule.exports = parse\nmodule.exports.serialize = module.exports.stringify = serialize\nmodule.exports.parse = parse\n\nfunction parse (opts) {\n opts = opts || {}\n opts.strict = opts.strict !== false\n\n function parseRow (row) {\n try {\n if (row) return JSON.parse(row)\n } catch (e) {\n if (opts.strict) {\n this.emit('error', new Error('Could not parse row ' + row.slice(0, 50) + '...'))\n }\n }\n }\n\n return split(parseRow)\n}\n\nfunction serialize (opts) {\n return through.obj(opts, function(obj, enc, cb) {\n cb(null, JSON.stringify(obj) + EOL)\n })\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/ndjson/index.js\n ** module id = 170\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/ndjson/index.js?"); + eval("var ctx = __webpack_require__(11)\n , call = __webpack_require__(171)\n , isArrayIter = __webpack_require__(172)\n , anObject = __webpack_require__(51)\n , toLength = __webpack_require__(173)\n , getIterFn = __webpack_require__(174);\nmodule.exports = function(iterable, entries, fn, that){\n var iterFn = getIterFn(iterable)\n , f = ctx(fn, that, entries ? 2 : 1)\n , index = 0\n , length, step, iterator;\n if(typeof iterFn != 'function')throw TypeError(iterable + ' is not iterable!');\n // fast case for arrays with default iterator\n if(isArrayIter(iterFn))for(length = toLength(iterable.length); length > index; index++){\n entries ? f(anObject(step = iterable[index])[0], step[1]) : f(iterable[index]);\n } else for(iterator = iterFn.call(iterable); !(step = iterator.next()).done; ){\n call(iterator, f, step.value, entries);\n }\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.for-of.js\n ** module id = 170\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/modules/$.for-of.js?"); /***/ }, /* 171 */ /***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(process) {var Transform = __webpack_require__(172)\n , inherits = __webpack_require__(140).inherits\n , xtend = __webpack_require__(181)\n\nfunction DestroyableTransform(opts) {\n Transform.call(this, opts)\n this._destroyed = false\n}\n\ninherits(DestroyableTransform, Transform)\n\nDestroyableTransform.prototype.destroy = function(err) {\n if (this._destroyed) return\n this._destroyed = true\n \n var self = this\n process.nextTick(function() {\n if (err)\n self.emit('error', err)\n self.emit('close')\n })\n}\n\n// a noop _transform function\nfunction noop (chunk, enc, callback) {\n callback(null, chunk)\n}\n\n\n// create a new export function, used by both the main export and\n// the .ctor export, contains common logic for dealing with arguments\nfunction through2 (construct) {\n return function (options, transform, flush) {\n if (typeof options == 'function') {\n flush = transform\n transform = options\n options = {}\n }\n\n if (typeof transform != 'function')\n transform = noop\n\n if (typeof flush != 'function')\n flush = null\n\n return construct(options, transform, flush)\n }\n}\n\n\n// main export, just make me a transform stream!\nmodule.exports = through2(function (options, transform, flush) {\n var t2 = new DestroyableTransform(options)\n\n t2._transform = transform\n\n if (flush)\n t2._flush = flush\n\n return t2\n})\n\n\n// make me a reusable prototype that I can `new`, or implicitly `new`\n// with a constructor call\nmodule.exports.ctor = through2(function (options, transform, flush) {\n function Through2 (override) {\n if (!(this instanceof Through2))\n return new Through2(override)\n\n this.options = xtend(options, override)\n\n DestroyableTransform.call(this, this.options)\n }\n\n inherits(Through2, DestroyableTransform)\n\n Through2.prototype._transform = transform\n\n if (flush)\n Through2.prototype._flush = flush\n\n return Through2\n})\n\n\nmodule.exports.obj = through2(function (options, transform, flush) {\n var t2 = new DestroyableTransform(xtend({ objectMode: true, highWaterMark: 16 }, options))\n\n t2._transform = transform\n\n if (flush)\n t2._flush = flush\n\n return t2\n})\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(83)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/ndjson/~/through2/through2.js\n ** module id = 171\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/ndjson/~/through2/through2.js?"); + eval("// call something on iterator step with safe closing on error\nvar anObject = __webpack_require__(51);\nmodule.exports = function(iterator, fn, value, entries){\n try {\n return entries ? fn(anObject(value)[0], value[1]) : fn(value);\n // 7.4.6 IteratorClose(iterator, completion)\n } catch(e){\n var ret = iterator['return'];\n if(ret !== undefined)anObject(ret.call(iterator));\n throw e;\n }\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.iter-call.js\n ** module id = 171\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/modules/$.iter-call.js?"); /***/ }, /* 172 */ /***/ function(module, exports, __webpack_require__) { - eval("module.exports = __webpack_require__(173)\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/ndjson/~/through2/~/readable-stream/transform.js\n ** module id = 172\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/ndjson/~/through2/~/readable-stream/transform.js?"); + eval("// check on default Array iterator\nvar Iterators = __webpack_require__(33)\n , ITERATOR = __webpack_require__(36)('iterator')\n , ArrayProto = Array.prototype;\n\nmodule.exports = function(it){\n return it !== undefined && (Iterators.Array === it || ArrayProto[ITERATOR] === it);\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.is-array-iter.js\n ** module id = 172\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/modules/$.is-array-iter.js?"); /***/ }, /* 173 */ /***/ function(module, exports, __webpack_require__) { - eval("// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n\n// a transform stream is a readable/writable stream where you do\n// something with the data. Sometimes it's called a \"filter\",\n// but that's not a great name for it, since that implies a thing where\n// some bits pass through, and others are simply ignored. (That would\n// be a valid example of a transform, of course.)\n//\n// While the output is causally related to the input, it's not a\n// necessarily symmetric or synchronous transformation. For example,\n// a zlib stream might take multiple plain-text writes(), and then\n// emit a single compressed chunk some time in the future.\n//\n// Here's how this works:\n//\n// The Transform stream has all the aspects of the readable and writable\n// stream classes. When you write(chunk), that calls _write(chunk,cb)\n// internally, and returns false if there's a lot of pending writes\n// buffered up. When you call read(), that calls _read(n) until\n// there's enough pending readable data buffered up.\n//\n// In a transform stream, the written data is placed in a buffer. When\n// _read(n) is called, it transforms the queued up data, calling the\n// buffered _write cb's as it consumes chunks. If consuming a single\n// written chunk would result in multiple output chunks, then the first\n// outputted bit calls the readcb, and subsequent chunks just go into\n// the read buffer, and will cause it to emit 'readable' if necessary.\n//\n// This way, back-pressure is actually determined by the reading side,\n// since _read has to be called to start processing a new chunk. However,\n// a pathological inflate type of transform can cause excessive buffering\n// here. For example, imagine a stream where every byte of input is\n// interpreted as an integer from 0-255, and then results in that many\n// bytes of output. Writing the 4 bytes {ff,ff,ff,ff} would result in\n// 1kb of data being output. In this case, you could write a very small\n// amount of input, and end up with a very large amount of output. In\n// such a pathological inflating mechanism, there'd be no way to tell\n// the system to stop doing the transform. A single 4MB write could\n// cause the system to run out of memory.\n//\n// However, even in such a pathological case, only a single written chunk\n// would be consumed, and then the rest would wait (un-transformed) until\n// the results of the previous transformed chunk were consumed.\n\nmodule.exports = Transform;\n\nvar Duplex = __webpack_require__(174);\n\n/**/\nvar util = __webpack_require__(175);\nutil.inherits = __webpack_require__(176);\n/**/\n\nutil.inherits(Transform, Duplex);\n\n\nfunction TransformState(options, stream) {\n this.afterTransform = function(er, data) {\n return afterTransform(stream, er, data);\n };\n\n this.needTransform = false;\n this.transforming = false;\n this.writecb = null;\n this.writechunk = null;\n}\n\nfunction afterTransform(stream, er, data) {\n var ts = stream._transformState;\n ts.transforming = false;\n\n var cb = ts.writecb;\n\n if (!cb)\n return stream.emit('error', new Error('no writecb in Transform class'));\n\n ts.writechunk = null;\n ts.writecb = null;\n\n if (data !== null && data !== undefined)\n stream.push(data);\n\n if (cb)\n cb(er);\n\n var rs = stream._readableState;\n rs.reading = false;\n if (rs.needReadable || rs.length < rs.highWaterMark) {\n stream._read(rs.highWaterMark);\n }\n}\n\n\nfunction Transform(options) {\n if (!(this instanceof Transform))\n return new Transform(options);\n\n Duplex.call(this, options);\n\n var ts = this._transformState = new TransformState(options, this);\n\n // when the writable side finishes, then flush out anything remaining.\n var stream = this;\n\n // start out asking for a readable event once data is transformed.\n this._readableState.needReadable = true;\n\n // we have implemented the _read method, and done the other things\n // that Readable wants before the first _read call, so unset the\n // sync guard flag.\n this._readableState.sync = false;\n\n this.once('finish', function() {\n if ('function' === typeof this._flush)\n this._flush(function(er) {\n done(stream, er);\n });\n else\n done(stream);\n });\n}\n\nTransform.prototype.push = function(chunk, encoding) {\n this._transformState.needTransform = false;\n return Duplex.prototype.push.call(this, chunk, encoding);\n};\n\n// This is the part where you do stuff!\n// override this function in implementation classes.\n// 'chunk' is an input chunk.\n//\n// Call `push(newChunk)` to pass along transformed output\n// to the readable side. You may call 'push' zero or more times.\n//\n// Call `cb(err)` when you are done with this chunk. If you pass\n// an error, then that'll put the hurt on the whole operation. If you\n// never call cb(), then you'll never get another chunk.\nTransform.prototype._transform = function(chunk, encoding, cb) {\n throw new Error('not implemented');\n};\n\nTransform.prototype._write = function(chunk, encoding, cb) {\n var ts = this._transformState;\n ts.writecb = cb;\n ts.writechunk = chunk;\n ts.writeencoding = encoding;\n if (!ts.transforming) {\n var rs = this._readableState;\n if (ts.needTransform ||\n rs.needReadable ||\n rs.length < rs.highWaterMark)\n this._read(rs.highWaterMark);\n }\n};\n\n// Doesn't matter what the args are here.\n// _transform does all the work.\n// That we got here means that the readable side wants more data.\nTransform.prototype._read = function(n) {\n var ts = this._transformState;\n\n if (ts.writechunk !== null && ts.writecb && !ts.transforming) {\n ts.transforming = true;\n this._transform(ts.writechunk, ts.writeencoding, ts.afterTransform);\n } else {\n // mark that we need a transform, so that any data that comes in\n // will get processed, now that we've asked for it.\n ts.needTransform = true;\n }\n};\n\n\nfunction done(stream, er) {\n if (er)\n return stream.emit('error', er);\n\n // if there's nothing in the write buffer, then that means\n // that nothing more will ever be provided\n var ws = stream._writableState;\n var rs = stream._readableState;\n var ts = stream._transformState;\n\n if (ws.length)\n throw new Error('calling transform done when ws.length != 0');\n\n if (ts.transforming)\n throw new Error('calling transform done when still transforming');\n\n return stream.push(null);\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/ndjson/~/through2/~/readable-stream/lib/_stream_transform.js\n ** module id = 173\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/ndjson/~/through2/~/readable-stream/lib/_stream_transform.js?"); + eval("// 7.1.15 ToLength\nvar toInteger = __webpack_require__(25)\n , min = Math.min;\nmodule.exports = function(it){\n return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.to-length.js\n ** module id = 173\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/modules/$.to-length.js?"); /***/ }, /* 174 */ /***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(process) {// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// a duplex stream is just a stream that is both readable and writable.\n// Since JS doesn't have multiple prototypal inheritance, this class\n// prototypally inherits from Readable, and then parasitically from\n// Writable.\n\nmodule.exports = Duplex;\n\n/**/\nvar objectKeys = Object.keys || function (obj) {\n var keys = [];\n for (var key in obj) keys.push(key);\n return keys;\n}\n/**/\n\n\n/**/\nvar util = __webpack_require__(175);\nutil.inherits = __webpack_require__(176);\n/**/\n\nvar Readable = __webpack_require__(177);\nvar Writable = __webpack_require__(180);\n\nutil.inherits(Duplex, Readable);\n\nforEach(objectKeys(Writable.prototype), function(method) {\n if (!Duplex.prototype[method])\n Duplex.prototype[method] = Writable.prototype[method];\n});\n\nfunction Duplex(options) {\n if (!(this instanceof Duplex))\n return new Duplex(options);\n\n Readable.call(this, options);\n Writable.call(this, options);\n\n if (options && options.readable === false)\n this.readable = false;\n\n if (options && options.writable === false)\n this.writable = false;\n\n this.allowHalfOpen = true;\n if (options && options.allowHalfOpen === false)\n this.allowHalfOpen = false;\n\n this.once('end', onend);\n}\n\n// the no-half-open enforcer\nfunction onend() {\n // if we allow half-open state, or if the writable side ended,\n // then we're ok.\n if (this.allowHalfOpen || this._writableState.ended)\n return;\n\n // no more data can be written.\n // But allow more writes to happen in this tick.\n process.nextTick(this.end.bind(this));\n}\n\nfunction forEach (xs, f) {\n for (var i = 0, l = xs.length; i < l; i++) {\n f(xs[i], i);\n }\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(83)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/ndjson/~/through2/~/readable-stream/lib/_stream_duplex.js\n ** module id = 174\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/ndjson/~/through2/~/readable-stream/lib/_stream_duplex.js?"); + eval("var classof = __webpack_require__(168)\n , ITERATOR = __webpack_require__(36)('iterator')\n , Iterators = __webpack_require__(33);\nmodule.exports = __webpack_require__(10).getIteratorMethod = function(it){\n if(it != undefined)return it[ITERATOR]\n || it['@@iterator']\n || Iterators[classof(it)];\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/core.get-iterator-method.js\n ** module id = 174\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/modules/core.get-iterator-method.js?"); /***/ }, /* 175 */ -/***/ function(module, exports, __webpack_require__) { +/***/ function(module, exports) { - eval("/* WEBPACK VAR INJECTION */(function(Buffer) {// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// NOTE: These type checking functions intentionally don't use `instanceof`\n// because it is fragile and can be easily faked with `Object.create()`.\n\nfunction isArray(arg) {\n if (Array.isArray) {\n return Array.isArray(arg);\n }\n return objectToString(arg) === '[object Array]';\n}\nexports.isArray = isArray;\n\nfunction isBoolean(arg) {\n return typeof arg === 'boolean';\n}\nexports.isBoolean = isBoolean;\n\nfunction isNull(arg) {\n return arg === null;\n}\nexports.isNull = isNull;\n\nfunction isNullOrUndefined(arg) {\n return arg == null;\n}\nexports.isNullOrUndefined = isNullOrUndefined;\n\nfunction isNumber(arg) {\n return typeof arg === 'number';\n}\nexports.isNumber = isNumber;\n\nfunction isString(arg) {\n return typeof arg === 'string';\n}\nexports.isString = isString;\n\nfunction isSymbol(arg) {\n return typeof arg === 'symbol';\n}\nexports.isSymbol = isSymbol;\n\nfunction isUndefined(arg) {\n return arg === void 0;\n}\nexports.isUndefined = isUndefined;\n\nfunction isRegExp(re) {\n return objectToString(re) === '[object RegExp]';\n}\nexports.isRegExp = isRegExp;\n\nfunction isObject(arg) {\n return typeof arg === 'object' && arg !== null;\n}\nexports.isObject = isObject;\n\nfunction isDate(d) {\n return objectToString(d) === '[object Date]';\n}\nexports.isDate = isDate;\n\nfunction isError(e) {\n return (objectToString(e) === '[object Error]' || e instanceof Error);\n}\nexports.isError = isError;\n\nfunction isFunction(arg) {\n return typeof arg === 'function';\n}\nexports.isFunction = isFunction;\n\nfunction isPrimitive(arg) {\n return arg === null ||\n typeof arg === 'boolean' ||\n typeof arg === 'number' ||\n typeof arg === 'string' ||\n typeof arg === 'symbol' || // ES6 symbol\n typeof arg === 'undefined';\n}\nexports.isPrimitive = isPrimitive;\n\nexports.isBuffer = Buffer.isBuffer;\n\nfunction objectToString(o) {\n return Object.prototype.toString.call(o);\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1).Buffer))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/ndjson/~/through2/~/readable-stream/~/core-util-is/lib/util.js\n ** module id = 175\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/ndjson/~/through2/~/readable-stream/~/core-util-is/lib/util.js?"); + eval("// 7.2.9 SameValue(x, y)\nmodule.exports = Object.is || function is(x, y){\n return x === y ? x !== 0 || 1 / x === 1 / y : x != x && y != y;\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.same-value.js\n ** module id = 175\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/modules/$.same-value.js?"); /***/ }, /* 176 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("if (typeof Object.create === 'function') {\n // implementation from standard node.js 'util' module\n module.exports = function inherits(ctor, superCtor) {\n ctor.super_ = superCtor\n ctor.prototype = Object.create(superCtor.prototype, {\n constructor: {\n value: ctor,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n };\n} else {\n // old school shim for old browsers\n module.exports = function inherits(ctor, superCtor) {\n ctor.super_ = superCtor\n var TempCtor = function () {}\n TempCtor.prototype = superCtor.prototype\n ctor.prototype = new TempCtor()\n ctor.prototype.constructor = ctor\n }\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/ndjson/~/through2/~/readable-stream/~/inherits/inherits_browser.js\n ** module id = 176\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/ndjson/~/through2/~/readable-stream/~/inherits/inherits_browser.js?"); + eval("// 7.3.20 SpeciesConstructor(O, defaultConstructor)\nvar anObject = __webpack_require__(51)\n , aFunction = __webpack_require__(12)\n , SPECIES = __webpack_require__(36)('species');\nmodule.exports = function(O, D){\n var C = anObject(O).constructor, S;\n return C === undefined || (S = anObject(C)[SPECIES]) == undefined ? D : aFunction(S);\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.species-constructor.js\n ** module id = 176\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/modules/$.species-constructor.js?"); /***/ }, /* 177 */ /***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(process) {// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nmodule.exports = Readable;\n\n/**/\nvar isArray = __webpack_require__(178);\n/**/\n\n\n/**/\nvar Buffer = __webpack_require__(1).Buffer;\n/**/\n\nReadable.ReadableState = ReadableState;\n\nvar EE = __webpack_require__(84).EventEmitter;\n\n/**/\nif (!EE.listenerCount) EE.listenerCount = function(emitter, type) {\n return emitter.listeners(type).length;\n};\n/**/\n\nvar Stream = __webpack_require__(96);\n\n/**/\nvar util = __webpack_require__(175);\nutil.inherits = __webpack_require__(176);\n/**/\n\nvar StringDecoder;\n\nutil.inherits(Readable, Stream);\n\nfunction ReadableState(options, stream) {\n options = options || {};\n\n // the point at which it stops calling _read() to fill the buffer\n // Note: 0 is a valid value, means \"don't call _read preemptively ever\"\n var hwm = options.highWaterMark;\n this.highWaterMark = (hwm || hwm === 0) ? hwm : 16 * 1024;\n\n // cast to ints.\n this.highWaterMark = ~~this.highWaterMark;\n\n this.buffer = [];\n this.length = 0;\n this.pipes = null;\n this.pipesCount = 0;\n this.flowing = false;\n this.ended = false;\n this.endEmitted = false;\n this.reading = false;\n\n // In streams that never have any data, and do push(null) right away,\n // the consumer can miss the 'end' event if they do some I/O before\n // consuming the stream. So, we don't emit('end') until some reading\n // happens.\n this.calledRead = false;\n\n // a flag to be able to tell if the onwrite cb is called immediately,\n // or on a later tick. We set this to true at first, becuase any\n // actions that shouldn't happen until \"later\" should generally also\n // not happen before the first write call.\n this.sync = true;\n\n // whenever we return null, then we set a flag to say\n // that we're awaiting a 'readable' event emission.\n this.needReadable = false;\n this.emittedReadable = false;\n this.readableListening = false;\n\n\n // object stream flag. Used to make read(n) ignore n and to\n // make all the buffer merging and length checks go away\n this.objectMode = !!options.objectMode;\n\n // Crypto is kind of old and crusty. Historically, its default string\n // encoding is 'binary' so we have to make this configurable.\n // Everything else in the universe uses 'utf8', though.\n this.defaultEncoding = options.defaultEncoding || 'utf8';\n\n // when piping, we only care about 'readable' events that happen\n // after read()ing all the bytes and not getting any pushback.\n this.ranOut = false;\n\n // the number of writers that are awaiting a drain event in .pipe()s\n this.awaitDrain = 0;\n\n // if true, a maybeReadMore has been scheduled\n this.readingMore = false;\n\n this.decoder = null;\n this.encoding = null;\n if (options.encoding) {\n if (!StringDecoder)\n StringDecoder = __webpack_require__(179).StringDecoder;\n this.decoder = new StringDecoder(options.encoding);\n this.encoding = options.encoding;\n }\n}\n\nfunction Readable(options) {\n if (!(this instanceof Readable))\n return new Readable(options);\n\n this._readableState = new ReadableState(options, this);\n\n // legacy\n this.readable = true;\n\n Stream.call(this);\n}\n\n// Manually shove something into the read() buffer.\n// This returns true if the highWaterMark has not been hit yet,\n// similar to how Writable.write() returns true if you should\n// write() some more.\nReadable.prototype.push = function(chunk, encoding) {\n var state = this._readableState;\n\n if (typeof chunk === 'string' && !state.objectMode) {\n encoding = encoding || state.defaultEncoding;\n if (encoding !== state.encoding) {\n chunk = new Buffer(chunk, encoding);\n encoding = '';\n }\n }\n\n return readableAddChunk(this, state, chunk, encoding, false);\n};\n\n// Unshift should *always* be something directly out of read()\nReadable.prototype.unshift = function(chunk) {\n var state = this._readableState;\n return readableAddChunk(this, state, chunk, '', true);\n};\n\nfunction readableAddChunk(stream, state, chunk, encoding, addToFront) {\n var er = chunkInvalid(state, chunk);\n if (er) {\n stream.emit('error', er);\n } else if (chunk === null || chunk === undefined) {\n state.reading = false;\n if (!state.ended)\n onEofChunk(stream, state);\n } else if (state.objectMode || chunk && chunk.length > 0) {\n if (state.ended && !addToFront) {\n var e = new Error('stream.push() after EOF');\n stream.emit('error', e);\n } else if (state.endEmitted && addToFront) {\n var e = new Error('stream.unshift() after end event');\n stream.emit('error', e);\n } else {\n if (state.decoder && !addToFront && !encoding)\n chunk = state.decoder.write(chunk);\n\n // update the buffer info.\n state.length += state.objectMode ? 1 : chunk.length;\n if (addToFront) {\n state.buffer.unshift(chunk);\n } else {\n state.reading = false;\n state.buffer.push(chunk);\n }\n\n if (state.needReadable)\n emitReadable(stream);\n\n maybeReadMore(stream, state);\n }\n } else if (!addToFront) {\n state.reading = false;\n }\n\n return needMoreData(state);\n}\n\n\n\n// if it's past the high water mark, we can push in some more.\n// Also, if we have no data yet, we can stand some\n// more bytes. This is to work around cases where hwm=0,\n// such as the repl. Also, if the push() triggered a\n// readable event, and the user called read(largeNumber) such that\n// needReadable was set, then we ought to push more, so that another\n// 'readable' event will be triggered.\nfunction needMoreData(state) {\n return !state.ended &&\n (state.needReadable ||\n state.length < state.highWaterMark ||\n state.length === 0);\n}\n\n// backwards compatibility.\nReadable.prototype.setEncoding = function(enc) {\n if (!StringDecoder)\n StringDecoder = __webpack_require__(179).StringDecoder;\n this._readableState.decoder = new StringDecoder(enc);\n this._readableState.encoding = enc;\n};\n\n// Don't raise the hwm > 128MB\nvar MAX_HWM = 0x800000;\nfunction roundUpToNextPowerOf2(n) {\n if (n >= MAX_HWM) {\n n = MAX_HWM;\n } else {\n // Get the next highest power of 2\n n--;\n for (var p = 1; p < 32; p <<= 1) n |= n >> p;\n n++;\n }\n return n;\n}\n\nfunction howMuchToRead(n, state) {\n if (state.length === 0 && state.ended)\n return 0;\n\n if (state.objectMode)\n return n === 0 ? 0 : 1;\n\n if (n === null || isNaN(n)) {\n // only flow one buffer at a time\n if (state.flowing && state.buffer.length)\n return state.buffer[0].length;\n else\n return state.length;\n }\n\n if (n <= 0)\n return 0;\n\n // If we're asking for more than the target buffer level,\n // then raise the water mark. Bump up to the next highest\n // power of 2, to prevent increasing it excessively in tiny\n // amounts.\n if (n > state.highWaterMark)\n state.highWaterMark = roundUpToNextPowerOf2(n);\n\n // don't have that much. return null, unless we've ended.\n if (n > state.length) {\n if (!state.ended) {\n state.needReadable = true;\n return 0;\n } else\n return state.length;\n }\n\n return n;\n}\n\n// you can override either this method, or the async _read(n) below.\nReadable.prototype.read = function(n) {\n var state = this._readableState;\n state.calledRead = true;\n var nOrig = n;\n var ret;\n\n if (typeof n !== 'number' || n > 0)\n state.emittedReadable = false;\n\n // if we're doing read(0) to trigger a readable event, but we\n // already have a bunch of data in the buffer, then just trigger\n // the 'readable' event and move on.\n if (n === 0 &&\n state.needReadable &&\n (state.length >= state.highWaterMark || state.ended)) {\n emitReadable(this);\n return null;\n }\n\n n = howMuchToRead(n, state);\n\n // if we've ended, and we're now clear, then finish it up.\n if (n === 0 && state.ended) {\n ret = null;\n\n // In cases where the decoder did not receive enough data\n // to produce a full chunk, then immediately received an\n // EOF, state.buffer will contain [, ].\n // howMuchToRead will see this and coerce the amount to\n // read to zero (because it's looking at the length of the\n // first in state.buffer), and we'll end up here.\n //\n // This can only happen via state.decoder -- no other venue\n // exists for pushing a zero-length chunk into state.buffer\n // and triggering this behavior. In this case, we return our\n // remaining data and end the stream, if appropriate.\n if (state.length > 0 && state.decoder) {\n ret = fromList(n, state);\n state.length -= ret.length;\n }\n\n if (state.length === 0)\n endReadable(this);\n\n return ret;\n }\n\n // All the actual chunk generation logic needs to be\n // *below* the call to _read. The reason is that in certain\n // synthetic stream cases, such as passthrough streams, _read\n // may be a completely synchronous operation which may change\n // the state of the read buffer, providing enough data when\n // before there was *not* enough.\n //\n // So, the steps are:\n // 1. Figure out what the state of things will be after we do\n // a read from the buffer.\n //\n // 2. If that resulting state will trigger a _read, then call _read.\n // Note that this may be asynchronous, or synchronous. Yes, it is\n // deeply ugly to write APIs this way, but that still doesn't mean\n // that the Readable class should behave improperly, as streams are\n // designed to be sync/async agnostic.\n // Take note if the _read call is sync or async (ie, if the read call\n // has returned yet), so that we know whether or not it's safe to emit\n // 'readable' etc.\n //\n // 3. Actually pull the requested chunks out of the buffer and return.\n\n // if we need a readable event, then we need to do some reading.\n var doRead = state.needReadable;\n\n // if we currently have less than the highWaterMark, then also read some\n if (state.length - n <= state.highWaterMark)\n doRead = true;\n\n // however, if we've ended, then there's no point, and if we're already\n // reading, then it's unnecessary.\n if (state.ended || state.reading)\n doRead = false;\n\n if (doRead) {\n state.reading = true;\n state.sync = true;\n // if the length is currently zero, then we *need* a readable event.\n if (state.length === 0)\n state.needReadable = true;\n // call internal read method\n this._read(state.highWaterMark);\n state.sync = false;\n }\n\n // If _read called its callback synchronously, then `reading`\n // will be false, and we need to re-evaluate how much data we\n // can return to the user.\n if (doRead && !state.reading)\n n = howMuchToRead(nOrig, state);\n\n if (n > 0)\n ret = fromList(n, state);\n else\n ret = null;\n\n if (ret === null) {\n state.needReadable = true;\n n = 0;\n }\n\n state.length -= n;\n\n // If we have nothing in the buffer, then we want to know\n // as soon as we *do* get something into the buffer.\n if (state.length === 0 && !state.ended)\n state.needReadable = true;\n\n // If we happened to read() exactly the remaining amount in the\n // buffer, and the EOF has been seen at this point, then make sure\n // that we emit 'end' on the very next tick.\n if (state.ended && !state.endEmitted && state.length === 0)\n endReadable(this);\n\n return ret;\n};\n\nfunction chunkInvalid(state, chunk) {\n var er = null;\n if (!Buffer.isBuffer(chunk) &&\n 'string' !== typeof chunk &&\n chunk !== null &&\n chunk !== undefined &&\n !state.objectMode) {\n er = new TypeError('Invalid non-string/buffer chunk');\n }\n return er;\n}\n\n\nfunction onEofChunk(stream, state) {\n if (state.decoder && !state.ended) {\n var chunk = state.decoder.end();\n if (chunk && chunk.length) {\n state.buffer.push(chunk);\n state.length += state.objectMode ? 1 : chunk.length;\n }\n }\n state.ended = true;\n\n // if we've ended and we have some data left, then emit\n // 'readable' now to make sure it gets picked up.\n if (state.length > 0)\n emitReadable(stream);\n else\n endReadable(stream);\n}\n\n// Don't emit readable right away in sync mode, because this can trigger\n// another read() call => stack overflow. This way, it might trigger\n// a nextTick recursion warning, but that's not so bad.\nfunction emitReadable(stream) {\n var state = stream._readableState;\n state.needReadable = false;\n if (state.emittedReadable)\n return;\n\n state.emittedReadable = true;\n if (state.sync)\n process.nextTick(function() {\n emitReadable_(stream);\n });\n else\n emitReadable_(stream);\n}\n\nfunction emitReadable_(stream) {\n stream.emit('readable');\n}\n\n\n// at this point, the user has presumably seen the 'readable' event,\n// and called read() to consume some data. that may have triggered\n// in turn another _read(n) call, in which case reading = true if\n// it's in progress.\n// However, if we're not ended, or reading, and the length < hwm,\n// then go ahead and try to read some more preemptively.\nfunction maybeReadMore(stream, state) {\n if (!state.readingMore) {\n state.readingMore = true;\n process.nextTick(function() {\n maybeReadMore_(stream, state);\n });\n }\n}\n\nfunction maybeReadMore_(stream, state) {\n var len = state.length;\n while (!state.reading && !state.flowing && !state.ended &&\n state.length < state.highWaterMark) {\n stream.read(0);\n if (len === state.length)\n // didn't get any data, stop spinning.\n break;\n else\n len = state.length;\n }\n state.readingMore = false;\n}\n\n// abstract method. to be overridden in specific implementation classes.\n// call cb(er, data) where data is <= n in length.\n// for virtual (non-string, non-buffer) streams, \"length\" is somewhat\n// arbitrary, and perhaps not very meaningful.\nReadable.prototype._read = function(n) {\n this.emit('error', new Error('not implemented'));\n};\n\nReadable.prototype.pipe = function(dest, pipeOpts) {\n var src = this;\n var state = this._readableState;\n\n switch (state.pipesCount) {\n case 0:\n state.pipes = dest;\n break;\n case 1:\n state.pipes = [state.pipes, dest];\n break;\n default:\n state.pipes.push(dest);\n break;\n }\n state.pipesCount += 1;\n\n var doEnd = (!pipeOpts || pipeOpts.end !== false) &&\n dest !== process.stdout &&\n dest !== process.stderr;\n\n var endFn = doEnd ? onend : cleanup;\n if (state.endEmitted)\n process.nextTick(endFn);\n else\n src.once('end', endFn);\n\n dest.on('unpipe', onunpipe);\n function onunpipe(readable) {\n if (readable !== src) return;\n cleanup();\n }\n\n function onend() {\n dest.end();\n }\n\n // when the dest drains, it reduces the awaitDrain counter\n // on the source. This would be more elegant with a .once()\n // handler in flow(), but adding and removing repeatedly is\n // too slow.\n var ondrain = pipeOnDrain(src);\n dest.on('drain', ondrain);\n\n function cleanup() {\n // cleanup event handlers once the pipe is broken\n dest.removeListener('close', onclose);\n dest.removeListener('finish', onfinish);\n dest.removeListener('drain', ondrain);\n dest.removeListener('error', onerror);\n dest.removeListener('unpipe', onunpipe);\n src.removeListener('end', onend);\n src.removeListener('end', cleanup);\n\n // if the reader is waiting for a drain event from this\n // specific writer, then it would cause it to never start\n // flowing again.\n // So, if this is awaiting a drain, then we just call it now.\n // If we don't know, then assume that we are waiting for one.\n if (!dest._writableState || dest._writableState.needDrain)\n ondrain();\n }\n\n // if the dest has an error, then stop piping into it.\n // however, don't suppress the throwing behavior for this.\n function onerror(er) {\n unpipe();\n dest.removeListener('error', onerror);\n if (EE.listenerCount(dest, 'error') === 0)\n dest.emit('error', er);\n }\n // This is a brutally ugly hack to make sure that our error handler\n // is attached before any userland ones. NEVER DO THIS.\n if (!dest._events || !dest._events.error)\n dest.on('error', onerror);\n else if (isArray(dest._events.error))\n dest._events.error.unshift(onerror);\n else\n dest._events.error = [onerror, dest._events.error];\n\n\n\n // Both close and finish should trigger unpipe, but only once.\n function onclose() {\n dest.removeListener('finish', onfinish);\n unpipe();\n }\n dest.once('close', onclose);\n function onfinish() {\n dest.removeListener('close', onclose);\n unpipe();\n }\n dest.once('finish', onfinish);\n\n function unpipe() {\n src.unpipe(dest);\n }\n\n // tell the dest that it's being piped to\n dest.emit('pipe', src);\n\n // start the flow if it hasn't been started already.\n if (!state.flowing) {\n // the handler that waits for readable events after all\n // the data gets sucked out in flow.\n // This would be easier to follow with a .once() handler\n // in flow(), but that is too slow.\n this.on('readable', pipeOnReadable);\n\n state.flowing = true;\n process.nextTick(function() {\n flow(src);\n });\n }\n\n return dest;\n};\n\nfunction pipeOnDrain(src) {\n return function() {\n var dest = this;\n var state = src._readableState;\n state.awaitDrain--;\n if (state.awaitDrain === 0)\n flow(src);\n };\n}\n\nfunction flow(src) {\n var state = src._readableState;\n var chunk;\n state.awaitDrain = 0;\n\n function write(dest, i, list) {\n var written = dest.write(chunk);\n if (false === written) {\n state.awaitDrain++;\n }\n }\n\n while (state.pipesCount && null !== (chunk = src.read())) {\n\n if (state.pipesCount === 1)\n write(state.pipes, 0, null);\n else\n forEach(state.pipes, write);\n\n src.emit('data', chunk);\n\n // if anyone needs a drain, then we have to wait for that.\n if (state.awaitDrain > 0)\n return;\n }\n\n // if every destination was unpiped, either before entering this\n // function, or in the while loop, then stop flowing.\n //\n // NB: This is a pretty rare edge case.\n if (state.pipesCount === 0) {\n state.flowing = false;\n\n // if there were data event listeners added, then switch to old mode.\n if (EE.listenerCount(src, 'data') > 0)\n emitDataEvents(src);\n return;\n }\n\n // at this point, no one needed a drain, so we just ran out of data\n // on the next readable event, start it over again.\n state.ranOut = true;\n}\n\nfunction pipeOnReadable() {\n if (this._readableState.ranOut) {\n this._readableState.ranOut = false;\n flow(this);\n }\n}\n\n\nReadable.prototype.unpipe = function(dest) {\n var state = this._readableState;\n\n // if we're not piping anywhere, then do nothing.\n if (state.pipesCount === 0)\n return this;\n\n // just one destination. most common case.\n if (state.pipesCount === 1) {\n // passed in one, but it's not the right one.\n if (dest && dest !== state.pipes)\n return this;\n\n if (!dest)\n dest = state.pipes;\n\n // got a match.\n state.pipes = null;\n state.pipesCount = 0;\n this.removeListener('readable', pipeOnReadable);\n state.flowing = false;\n if (dest)\n dest.emit('unpipe', this);\n return this;\n }\n\n // slow case. multiple pipe destinations.\n\n if (!dest) {\n // remove all.\n var dests = state.pipes;\n var len = state.pipesCount;\n state.pipes = null;\n state.pipesCount = 0;\n this.removeListener('readable', pipeOnReadable);\n state.flowing = false;\n\n for (var i = 0; i < len; i++)\n dests[i].emit('unpipe', this);\n return this;\n }\n\n // try to find the right one.\n var i = indexOf(state.pipes, dest);\n if (i === -1)\n return this;\n\n state.pipes.splice(i, 1);\n state.pipesCount -= 1;\n if (state.pipesCount === 1)\n state.pipes = state.pipes[0];\n\n dest.emit('unpipe', this);\n\n return this;\n};\n\n// set up data events if they are asked for\n// Ensure readable listeners eventually get something\nReadable.prototype.on = function(ev, fn) {\n var res = Stream.prototype.on.call(this, ev, fn);\n\n if (ev === 'data' && !this._readableState.flowing)\n emitDataEvents(this);\n\n if (ev === 'readable' && this.readable) {\n var state = this._readableState;\n if (!state.readableListening) {\n state.readableListening = true;\n state.emittedReadable = false;\n state.needReadable = true;\n if (!state.reading) {\n this.read(0);\n } else if (state.length) {\n emitReadable(this, state);\n }\n }\n }\n\n return res;\n};\nReadable.prototype.addListener = Readable.prototype.on;\n\n// pause() and resume() are remnants of the legacy readable stream API\n// If the user uses them, then switch into old mode.\nReadable.prototype.resume = function() {\n emitDataEvents(this);\n this.read(0);\n this.emit('resume');\n};\n\nReadable.prototype.pause = function() {\n emitDataEvents(this, true);\n this.emit('pause');\n};\n\nfunction emitDataEvents(stream, startPaused) {\n var state = stream._readableState;\n\n if (state.flowing) {\n // https://github.com/isaacs/readable-stream/issues/16\n throw new Error('Cannot switch to old mode now.');\n }\n\n var paused = startPaused || false;\n var readable = false;\n\n // convert to an old-style stream.\n stream.readable = true;\n stream.pipe = Stream.prototype.pipe;\n stream.on = stream.addListener = Stream.prototype.on;\n\n stream.on('readable', function() {\n readable = true;\n\n var c;\n while (!paused && (null !== (c = stream.read())))\n stream.emit('data', c);\n\n if (c === null) {\n readable = false;\n stream._readableState.needReadable = true;\n }\n });\n\n stream.pause = function() {\n paused = true;\n this.emit('pause');\n };\n\n stream.resume = function() {\n paused = false;\n if (readable)\n process.nextTick(function() {\n stream.emit('readable');\n });\n else\n this.read(0);\n this.emit('resume');\n };\n\n // now make it start, just in case it hadn't already.\n stream.emit('readable');\n}\n\n// wrap an old-style stream as the async data source.\n// This is *not* part of the readable stream interface.\n// It is an ugly unfortunate mess of history.\nReadable.prototype.wrap = function(stream) {\n var state = this._readableState;\n var paused = false;\n\n var self = this;\n stream.on('end', function() {\n if (state.decoder && !state.ended) {\n var chunk = state.decoder.end();\n if (chunk && chunk.length)\n self.push(chunk);\n }\n\n self.push(null);\n });\n\n stream.on('data', function(chunk) {\n if (state.decoder)\n chunk = state.decoder.write(chunk);\n\n // don't skip over falsy values in objectMode\n //if (state.objectMode && util.isNullOrUndefined(chunk))\n if (state.objectMode && (chunk === null || chunk === undefined))\n return;\n else if (!state.objectMode && (!chunk || !chunk.length))\n return;\n\n var ret = self.push(chunk);\n if (!ret) {\n paused = true;\n stream.pause();\n }\n });\n\n // proxy all the other methods.\n // important when wrapping filters and duplexes.\n for (var i in stream) {\n if (typeof stream[i] === 'function' &&\n typeof this[i] === 'undefined') {\n this[i] = function(method) { return function() {\n return stream[method].apply(stream, arguments);\n }}(i);\n }\n }\n\n // proxy certain important events.\n var events = ['error', 'close', 'destroy', 'pause', 'resume'];\n forEach(events, function(ev) {\n stream.on(ev, self.emit.bind(self, ev));\n });\n\n // when we try to consume some more bytes, simply unpause the\n // underlying stream.\n self._read = function(n) {\n if (paused) {\n paused = false;\n stream.resume();\n }\n };\n\n return self;\n};\n\n\n\n// exposed for testing purposes only.\nReadable._fromList = fromList;\n\n// Pluck off n bytes from an array of buffers.\n// Length is the combined lengths of all the buffers in the list.\nfunction fromList(n, state) {\n var list = state.buffer;\n var length = state.length;\n var stringMode = !!state.decoder;\n var objectMode = !!state.objectMode;\n var ret;\n\n // nothing in the list, definitely empty.\n if (list.length === 0)\n return null;\n\n if (length === 0)\n ret = null;\n else if (objectMode)\n ret = list.shift();\n else if (!n || n >= length) {\n // read it all, truncate the array.\n if (stringMode)\n ret = list.join('');\n else\n ret = Buffer.concat(list, length);\n list.length = 0;\n } else {\n // read just some of it.\n if (n < list[0].length) {\n // just take a part of the first list item.\n // slice is the same for buffers and strings.\n var buf = list[0];\n ret = buf.slice(0, n);\n list[0] = buf.slice(n);\n } else if (n === list[0].length) {\n // first list is a perfect match\n ret = list.shift();\n } else {\n // complex case.\n // we have enough to cover it, but it spans past the first buffer.\n if (stringMode)\n ret = '';\n else\n ret = new Buffer(n);\n\n var c = 0;\n for (var i = 0, l = list.length; i < l && c < n; i++) {\n var buf = list[0];\n var cpy = Math.min(n - c, buf.length);\n\n if (stringMode)\n ret += buf.slice(0, cpy);\n else\n buf.copy(ret, c, 0, cpy);\n\n if (cpy < buf.length)\n list[0] = buf.slice(cpy);\n else\n list.shift();\n\n c += cpy;\n }\n }\n }\n\n return ret;\n}\n\nfunction endReadable(stream) {\n var state = stream._readableState;\n\n // If we get here before consuming all the bytes, then that is a\n // bug in node. Should never happen.\n if (state.length > 0)\n throw new Error('endReadable called on non-empty stream');\n\n if (!state.endEmitted && state.calledRead) {\n state.ended = true;\n process.nextTick(function() {\n // Check that we didn't get one last unshift.\n if (!state.endEmitted && state.length === 0) {\n state.endEmitted = true;\n stream.readable = false;\n stream.emit('end');\n }\n });\n }\n}\n\nfunction forEach (xs, f) {\n for (var i = 0, l = xs.length; i < l; i++) {\n f(xs[i], i);\n }\n}\n\nfunction indexOf (xs, x) {\n for (var i = 0, l = xs.length; i < l; i++) {\n if (xs[i] === x) return i;\n }\n return -1;\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(83)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/ndjson/~/through2/~/readable-stream/lib/_stream_readable.js\n ** module id = 177\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/ndjson/~/through2/~/readable-stream/lib/_stream_readable.js?"); + eval("var global = __webpack_require__(9)\n , macrotask = __webpack_require__(178).set\n , Observer = global.MutationObserver || global.WebKitMutationObserver\n , process = global.process\n , Promise = global.Promise\n , isNode = __webpack_require__(18)(process) == 'process'\n , head, last, notify;\n\nvar flush = function(){\n var parent, domain, fn;\n if(isNode && (parent = process.domain)){\n process.domain = null;\n parent.exit();\n }\n while(head){\n domain = head.domain;\n fn = head.fn;\n if(domain)domain.enter();\n fn(); // <- currently we use it only for Promise - try / catch not required\n if(domain)domain.exit();\n head = head.next;\n } last = undefined;\n if(parent)parent.enter();\n};\n\n// Node.js\nif(isNode){\n notify = function(){\n process.nextTick(flush);\n };\n// browsers with MutationObserver\n} else if(Observer){\n var toggle = 1\n , node = document.createTextNode('');\n new Observer(flush).observe(node, {characterData: true}); // eslint-disable-line no-new\n notify = function(){\n node.data = toggle = -toggle;\n };\n// environments with maybe non-completely correct, but existent Promise\n} else if(Promise && Promise.resolve){\n notify = function(){\n Promise.resolve().then(flush);\n };\n// for other environments - macrotask based on:\n// - setImmediate\n// - MessageChannel\n// - window.postMessag\n// - onreadystatechange\n// - setTimeout\n} else {\n notify = function(){\n // strange IE + webpack dev server bug - use .call(global)\n macrotask.call(global, flush);\n };\n}\n\nmodule.exports = function asap(fn){\n var task = {fn: fn, next: undefined, domain: isNode && process.domain};\n if(last)last.next = task;\n if(!head){\n head = task;\n notify();\n } last = task;\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.microtask.js\n ** module id = 177\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/modules/$.microtask.js?"); /***/ }, /* 178 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("module.exports = Array.isArray || function (arr) {\n return Object.prototype.toString.call(arr) == '[object Array]';\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/ndjson/~/through2/~/readable-stream/~/isarray/index.js\n ** module id = 178\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/ndjson/~/through2/~/readable-stream/~/isarray/index.js?"); + eval("var ctx = __webpack_require__(11)\n , invoke = __webpack_require__(179)\n , html = __webpack_require__(180)\n , cel = __webpack_require__(181)\n , global = __webpack_require__(9)\n , process = global.process\n , setTask = global.setImmediate\n , clearTask = global.clearImmediate\n , MessageChannel = global.MessageChannel\n , counter = 0\n , queue = {}\n , ONREADYSTATECHANGE = 'onreadystatechange'\n , defer, channel, port;\nvar run = function(){\n var id = +this;\n if(queue.hasOwnProperty(id)){\n var fn = queue[id];\n delete queue[id];\n fn();\n }\n};\nvar listner = function(event){\n run.call(event.data);\n};\n// Node.js 0.9+ & IE10+ has setImmediate, otherwise:\nif(!setTask || !clearTask){\n setTask = function setImmediate(fn){\n var args = [], i = 1;\n while(arguments.length > i)args.push(arguments[i++]);\n queue[++counter] = function(){\n invoke(typeof fn == 'function' ? fn : Function(fn), args);\n };\n defer(counter);\n return counter;\n };\n clearTask = function clearImmediate(id){\n delete queue[id];\n };\n // Node.js 0.8-\n if(__webpack_require__(18)(process) == 'process'){\n defer = function(id){\n process.nextTick(ctx(run, id, 1));\n };\n // Browsers with MessageChannel, includes WebWorkers\n } else if(MessageChannel){\n channel = new MessageChannel;\n port = channel.port2;\n channel.port1.onmessage = listner;\n defer = ctx(port.postMessage, port, 1);\n // Browsers with postMessage, skip WebWorkers\n // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'\n } else if(global.addEventListener && typeof postMessage == 'function' && !global.importScripts){\n defer = function(id){\n global.postMessage(id + '', '*');\n };\n global.addEventListener('message', listner, false);\n // IE8-\n } else if(ONREADYSTATECHANGE in cel('script')){\n defer = function(id){\n html.appendChild(cel('script'))[ONREADYSTATECHANGE] = function(){\n html.removeChild(this);\n run.call(id);\n };\n };\n // Rest old browsers\n } else {\n defer = function(id){\n setTimeout(ctx(run, id, 1), 0);\n };\n }\n}\nmodule.exports = {\n set: setTask,\n clear: clearTask\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.task.js\n ** module id = 178\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/modules/$.task.js?"); /***/ }, /* 179 */ -/***/ function(module, exports, __webpack_require__) { +/***/ function(module, exports) { - eval("// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nvar Buffer = __webpack_require__(1).Buffer;\n\nvar isBufferEncoding = Buffer.isEncoding\n || function(encoding) {\n switch (encoding && encoding.toLowerCase()) {\n case 'hex': case 'utf8': case 'utf-8': case 'ascii': case 'binary': case 'base64': case 'ucs2': case 'ucs-2': case 'utf16le': case 'utf-16le': case 'raw': return true;\n default: return false;\n }\n }\n\n\nfunction assertEncoding(encoding) {\n if (encoding && !isBufferEncoding(encoding)) {\n throw new Error('Unknown encoding: ' + encoding);\n }\n}\n\n// StringDecoder provides an interface for efficiently splitting a series of\n// buffers into a series of JS strings without breaking apart multi-byte\n// characters. CESU-8 is handled as part of the UTF-8 encoding.\n//\n// @TODO Handling all encodings inside a single object makes it very difficult\n// to reason about this code, so it should be split up in the future.\n// @TODO There should be a utf8-strict encoding that rejects invalid UTF-8 code\n// points as used by CESU-8.\nvar StringDecoder = exports.StringDecoder = function(encoding) {\n this.encoding = (encoding || 'utf8').toLowerCase().replace(/[-_]/, '');\n assertEncoding(encoding);\n switch (this.encoding) {\n case 'utf8':\n // CESU-8 represents each of Surrogate Pair by 3-bytes\n this.surrogateSize = 3;\n break;\n case 'ucs2':\n case 'utf16le':\n // UTF-16 represents each of Surrogate Pair by 2-bytes\n this.surrogateSize = 2;\n this.detectIncompleteChar = utf16DetectIncompleteChar;\n break;\n case 'base64':\n // Base-64 stores 3 bytes in 4 chars, and pads the remainder.\n this.surrogateSize = 3;\n this.detectIncompleteChar = base64DetectIncompleteChar;\n break;\n default:\n this.write = passThroughWrite;\n return;\n }\n\n // Enough space to store all bytes of a single character. UTF-8 needs 4\n // bytes, but CESU-8 may require up to 6 (3 bytes per surrogate).\n this.charBuffer = new Buffer(6);\n // Number of bytes received for the current incomplete multi-byte character.\n this.charReceived = 0;\n // Number of bytes expected for the current incomplete multi-byte character.\n this.charLength = 0;\n};\n\n\n// write decodes the given buffer and returns it as JS string that is\n// guaranteed to not contain any partial multi-byte characters. Any partial\n// character found at the end of the buffer is buffered up, and will be\n// returned when calling write again with the remaining bytes.\n//\n// Note: Converting a Buffer containing an orphan surrogate to a String\n// currently works, but converting a String to a Buffer (via `new Buffer`, or\n// Buffer#write) will replace incomplete surrogates with the unicode\n// replacement character. See https://codereview.chromium.org/121173009/ .\nStringDecoder.prototype.write = function(buffer) {\n var charStr = '';\n // if our last write ended with an incomplete multibyte character\n while (this.charLength) {\n // determine how many remaining bytes this buffer has to offer for this char\n var available = (buffer.length >= this.charLength - this.charReceived) ?\n this.charLength - this.charReceived :\n buffer.length;\n\n // add the new bytes to the char buffer\n buffer.copy(this.charBuffer, this.charReceived, 0, available);\n this.charReceived += available;\n\n if (this.charReceived < this.charLength) {\n // still not enough chars in this buffer? wait for more ...\n return '';\n }\n\n // remove bytes belonging to the current character from the buffer\n buffer = buffer.slice(available, buffer.length);\n\n // get the character that was split\n charStr = this.charBuffer.slice(0, this.charLength).toString(this.encoding);\n\n // CESU-8: lead surrogate (D800-DBFF) is also the incomplete character\n var charCode = charStr.charCodeAt(charStr.length - 1);\n if (charCode >= 0xD800 && charCode <= 0xDBFF) {\n this.charLength += this.surrogateSize;\n charStr = '';\n continue;\n }\n this.charReceived = this.charLength = 0;\n\n // if there are no more bytes in this buffer, just emit our char\n if (buffer.length === 0) {\n return charStr;\n }\n break;\n }\n\n // determine and set charLength / charReceived\n this.detectIncompleteChar(buffer);\n\n var end = buffer.length;\n if (this.charLength) {\n // buffer the incomplete character bytes we got\n buffer.copy(this.charBuffer, 0, buffer.length - this.charReceived, end);\n end -= this.charReceived;\n }\n\n charStr += buffer.toString(this.encoding, 0, end);\n\n var end = charStr.length - 1;\n var charCode = charStr.charCodeAt(end);\n // CESU-8: lead surrogate (D800-DBFF) is also the incomplete character\n if (charCode >= 0xD800 && charCode <= 0xDBFF) {\n var size = this.surrogateSize;\n this.charLength += size;\n this.charReceived += size;\n this.charBuffer.copy(this.charBuffer, size, 0, size);\n buffer.copy(this.charBuffer, 0, 0, size);\n return charStr.substring(0, end);\n }\n\n // or just emit the charStr\n return charStr;\n};\n\n// detectIncompleteChar determines if there is an incomplete UTF-8 character at\n// the end of the given buffer. If so, it sets this.charLength to the byte\n// length that character, and sets this.charReceived to the number of bytes\n// that are available for this character.\nStringDecoder.prototype.detectIncompleteChar = function(buffer) {\n // determine how many bytes we have to check at the end of this buffer\n var i = (buffer.length >= 3) ? 3 : buffer.length;\n\n // Figure out if one of the last i bytes of our buffer announces an\n // incomplete char.\n for (; i > 0; i--) {\n var c = buffer[buffer.length - i];\n\n // See http://en.wikipedia.org/wiki/UTF-8#Description\n\n // 110XXXXX\n if (i == 1 && c >> 5 == 0x06) {\n this.charLength = 2;\n break;\n }\n\n // 1110XXXX\n if (i <= 2 && c >> 4 == 0x0E) {\n this.charLength = 3;\n break;\n }\n\n // 11110XXX\n if (i <= 3 && c >> 3 == 0x1E) {\n this.charLength = 4;\n break;\n }\n }\n this.charReceived = i;\n};\n\nStringDecoder.prototype.end = function(buffer) {\n var res = '';\n if (buffer && buffer.length)\n res = this.write(buffer);\n\n if (this.charReceived) {\n var cr = this.charReceived;\n var buf = this.charBuffer;\n var enc = this.encoding;\n res += buf.slice(0, cr).toString(enc);\n }\n\n return res;\n};\n\nfunction passThroughWrite(buffer) {\n return buffer.toString(this.encoding);\n}\n\nfunction utf16DetectIncompleteChar(buffer) {\n this.charReceived = buffer.length % 2;\n this.charLength = this.charReceived ? 2 : 0;\n}\n\nfunction base64DetectIncompleteChar(buffer) {\n this.charReceived = buffer.length % 3;\n this.charLength = this.charReceived ? 3 : 0;\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/ndjson/~/through2/~/readable-stream/~/string_decoder/index.js\n ** module id = 179\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/ndjson/~/through2/~/readable-stream/~/string_decoder/index.js?"); + eval("// fast apply, http://jsperf.lnkit.com/fast-apply/5\nmodule.exports = function(fn, args, that){\n var un = that === undefined;\n switch(args.length){\n case 0: return un ? fn()\n : fn.call(that);\n case 1: return un ? fn(args[0])\n : fn.call(that, args[0]);\n case 2: return un ? fn(args[0], args[1])\n : fn.call(that, args[0], args[1]);\n case 3: return un ? fn(args[0], args[1], args[2])\n : fn.call(that, args[0], args[1], args[2]);\n case 4: return un ? fn(args[0], args[1], args[2], args[3])\n : fn.call(that, args[0], args[1], args[2], args[3]);\n } return fn.apply(that, args);\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.invoke.js\n ** module id = 179\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/modules/$.invoke.js?"); /***/ }, /* 180 */ /***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(process) {// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// A bit simpler than readable streams.\n// Implement an async ._write(chunk, cb), and it'll handle all\n// the drain event emission and buffering.\n\nmodule.exports = Writable;\n\n/**/\nvar Buffer = __webpack_require__(1).Buffer;\n/**/\n\nWritable.WritableState = WritableState;\n\n\n/**/\nvar util = __webpack_require__(175);\nutil.inherits = __webpack_require__(176);\n/**/\n\nvar Stream = __webpack_require__(96);\n\nutil.inherits(Writable, Stream);\n\nfunction WriteReq(chunk, encoding, cb) {\n this.chunk = chunk;\n this.encoding = encoding;\n this.callback = cb;\n}\n\nfunction WritableState(options, stream) {\n options = options || {};\n\n // the point at which write() starts returning false\n // Note: 0 is a valid value, means that we always return false if\n // the entire buffer is not flushed immediately on write()\n var hwm = options.highWaterMark;\n this.highWaterMark = (hwm || hwm === 0) ? hwm : 16 * 1024;\n\n // object stream flag to indicate whether or not this stream\n // contains buffers or objects.\n this.objectMode = !!options.objectMode;\n\n // cast to ints.\n this.highWaterMark = ~~this.highWaterMark;\n\n this.needDrain = false;\n // at the start of calling end()\n this.ending = false;\n // when end() has been called, and returned\n this.ended = false;\n // when 'finish' is emitted\n this.finished = false;\n\n // should we decode strings into buffers before passing to _write?\n // this is here so that some node-core streams can optimize string\n // handling at a lower level.\n var noDecode = options.decodeStrings === false;\n this.decodeStrings = !noDecode;\n\n // Crypto is kind of old and crusty. Historically, its default string\n // encoding is 'binary' so we have to make this configurable.\n // Everything else in the universe uses 'utf8', though.\n this.defaultEncoding = options.defaultEncoding || 'utf8';\n\n // not an actual buffer we keep track of, but a measurement\n // of how much we're waiting to get pushed to some underlying\n // socket or file.\n this.length = 0;\n\n // a flag to see when we're in the middle of a write.\n this.writing = false;\n\n // a flag to be able to tell if the onwrite cb is called immediately,\n // or on a later tick. We set this to true at first, becuase any\n // actions that shouldn't happen until \"later\" should generally also\n // not happen before the first write call.\n this.sync = true;\n\n // a flag to know if we're processing previously buffered items, which\n // may call the _write() callback in the same tick, so that we don't\n // end up in an overlapped onwrite situation.\n this.bufferProcessing = false;\n\n // the callback that's passed to _write(chunk,cb)\n this.onwrite = function(er) {\n onwrite(stream, er);\n };\n\n // the callback that the user supplies to write(chunk,encoding,cb)\n this.writecb = null;\n\n // the amount that is being written when _write is called.\n this.writelen = 0;\n\n this.buffer = [];\n\n // True if the error was already emitted and should not be thrown again\n this.errorEmitted = false;\n}\n\nfunction Writable(options) {\n var Duplex = __webpack_require__(174);\n\n // Writable ctor is applied to Duplexes, though they're not\n // instanceof Writable, they're instanceof Readable.\n if (!(this instanceof Writable) && !(this instanceof Duplex))\n return new Writable(options);\n\n this._writableState = new WritableState(options, this);\n\n // legacy.\n this.writable = true;\n\n Stream.call(this);\n}\n\n// Otherwise people can pipe Writable streams, which is just wrong.\nWritable.prototype.pipe = function() {\n this.emit('error', new Error('Cannot pipe. Not readable.'));\n};\n\n\nfunction writeAfterEnd(stream, state, cb) {\n var er = new Error('write after end');\n // TODO: defer error events consistently everywhere, not just the cb\n stream.emit('error', er);\n process.nextTick(function() {\n cb(er);\n });\n}\n\n// If we get something that is not a buffer, string, null, or undefined,\n// and we're not in objectMode, then that's an error.\n// Otherwise stream chunks are all considered to be of length=1, and the\n// watermarks determine how many objects to keep in the buffer, rather than\n// how many bytes or characters.\nfunction validChunk(stream, state, chunk, cb) {\n var valid = true;\n if (!Buffer.isBuffer(chunk) &&\n 'string' !== typeof chunk &&\n chunk !== null &&\n chunk !== undefined &&\n !state.objectMode) {\n var er = new TypeError('Invalid non-string/buffer chunk');\n stream.emit('error', er);\n process.nextTick(function() {\n cb(er);\n });\n valid = false;\n }\n return valid;\n}\n\nWritable.prototype.write = function(chunk, encoding, cb) {\n var state = this._writableState;\n var ret = false;\n\n if (typeof encoding === 'function') {\n cb = encoding;\n encoding = null;\n }\n\n if (Buffer.isBuffer(chunk))\n encoding = 'buffer';\n else if (!encoding)\n encoding = state.defaultEncoding;\n\n if (typeof cb !== 'function')\n cb = function() {};\n\n if (state.ended)\n writeAfterEnd(this, state, cb);\n else if (validChunk(this, state, chunk, cb))\n ret = writeOrBuffer(this, state, chunk, encoding, cb);\n\n return ret;\n};\n\nfunction decodeChunk(state, chunk, encoding) {\n if (!state.objectMode &&\n state.decodeStrings !== false &&\n typeof chunk === 'string') {\n chunk = new Buffer(chunk, encoding);\n }\n return chunk;\n}\n\n// if we're already writing something, then just put this\n// in the queue, and wait our turn. Otherwise, call _write\n// If we return false, then we need a drain event, so set that flag.\nfunction writeOrBuffer(stream, state, chunk, encoding, cb) {\n chunk = decodeChunk(state, chunk, encoding);\n if (Buffer.isBuffer(chunk))\n encoding = 'buffer';\n var len = state.objectMode ? 1 : chunk.length;\n\n state.length += len;\n\n var ret = state.length < state.highWaterMark;\n // we must ensure that previous needDrain will not be reset to false.\n if (!ret)\n state.needDrain = true;\n\n if (state.writing)\n state.buffer.push(new WriteReq(chunk, encoding, cb));\n else\n doWrite(stream, state, len, chunk, encoding, cb);\n\n return ret;\n}\n\nfunction doWrite(stream, state, len, chunk, encoding, cb) {\n state.writelen = len;\n state.writecb = cb;\n state.writing = true;\n state.sync = true;\n stream._write(chunk, encoding, state.onwrite);\n state.sync = false;\n}\n\nfunction onwriteError(stream, state, sync, er, cb) {\n if (sync)\n process.nextTick(function() {\n cb(er);\n });\n else\n cb(er);\n\n stream._writableState.errorEmitted = true;\n stream.emit('error', er);\n}\n\nfunction onwriteStateUpdate(state) {\n state.writing = false;\n state.writecb = null;\n state.length -= state.writelen;\n state.writelen = 0;\n}\n\nfunction onwrite(stream, er) {\n var state = stream._writableState;\n var sync = state.sync;\n var cb = state.writecb;\n\n onwriteStateUpdate(state);\n\n if (er)\n onwriteError(stream, state, sync, er, cb);\n else {\n // Check if we're actually ready to finish, but don't emit yet\n var finished = needFinish(stream, state);\n\n if (!finished && !state.bufferProcessing && state.buffer.length)\n clearBuffer(stream, state);\n\n if (sync) {\n process.nextTick(function() {\n afterWrite(stream, state, finished, cb);\n });\n } else {\n afterWrite(stream, state, finished, cb);\n }\n }\n}\n\nfunction afterWrite(stream, state, finished, cb) {\n if (!finished)\n onwriteDrain(stream, state);\n cb();\n if (finished)\n finishMaybe(stream, state);\n}\n\n// Must force callback to be called on nextTick, so that we don't\n// emit 'drain' before the write() consumer gets the 'false' return\n// value, and has a chance to attach a 'drain' listener.\nfunction onwriteDrain(stream, state) {\n if (state.length === 0 && state.needDrain) {\n state.needDrain = false;\n stream.emit('drain');\n }\n}\n\n\n// if there's something in the buffer waiting, then process it\nfunction clearBuffer(stream, state) {\n state.bufferProcessing = true;\n\n for (var c = 0; c < state.buffer.length; c++) {\n var entry = state.buffer[c];\n var chunk = entry.chunk;\n var encoding = entry.encoding;\n var cb = entry.callback;\n var len = state.objectMode ? 1 : chunk.length;\n\n doWrite(stream, state, len, chunk, encoding, cb);\n\n // if we didn't call the onwrite immediately, then\n // it means that we need to wait until it does.\n // also, that means that the chunk and cb are currently\n // being processed, so move the buffer counter past them.\n if (state.writing) {\n c++;\n break;\n }\n }\n\n state.bufferProcessing = false;\n if (c < state.buffer.length)\n state.buffer = state.buffer.slice(c);\n else\n state.buffer.length = 0;\n}\n\nWritable.prototype._write = function(chunk, encoding, cb) {\n cb(new Error('not implemented'));\n};\n\nWritable.prototype.end = function(chunk, encoding, cb) {\n var state = this._writableState;\n\n if (typeof chunk === 'function') {\n cb = chunk;\n chunk = null;\n encoding = null;\n } else if (typeof encoding === 'function') {\n cb = encoding;\n encoding = null;\n }\n\n if (typeof chunk !== 'undefined' && chunk !== null)\n this.write(chunk, encoding);\n\n // ignore unnecessary end() calls.\n if (!state.ending && !state.finished)\n endWritable(this, state, cb);\n};\n\n\nfunction needFinish(stream, state) {\n return (state.ending &&\n state.length === 0 &&\n !state.finished &&\n !state.writing);\n}\n\nfunction finishMaybe(stream, state) {\n var need = needFinish(stream, state);\n if (need) {\n state.finished = true;\n stream.emit('finish');\n }\n return need;\n}\n\nfunction endWritable(stream, state, cb) {\n state.ending = true;\n finishMaybe(stream, state);\n if (cb) {\n if (state.finished)\n process.nextTick(cb);\n else\n stream.once('finish', cb);\n }\n state.ended = true;\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(83)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/ndjson/~/through2/~/readable-stream/lib/_stream_writable.js\n ** module id = 180\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/ndjson/~/through2/~/readable-stream/lib/_stream_writable.js?"); + eval("module.exports = __webpack_require__(9).document && document.documentElement;\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.html.js\n ** module id = 180\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/modules/$.html.js?"); /***/ }, /* 181 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("module.exports = extend\n\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\nfunction extend() {\n var target = {}\n\n for (var i = 0; i < arguments.length; i++) {\n var source = arguments[i]\n\n for (var key in source) {\n if (hasOwnProperty.call(source, key)) {\n target[key] = source[key]\n }\n }\n }\n\n return target\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/ndjson/~/through2/~/xtend/immutable.js\n ** module id = 181\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/ndjson/~/through2/~/xtend/immutable.js?"); + eval("var isObject = __webpack_require__(52)\n , document = __webpack_require__(9).document\n // in old IE typeof document.createElement is 'object'\n , is = isObject(document) && isObject(document.createElement);\nmodule.exports = function(it){\n return is ? document.createElement(it) : {};\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.dom-create.js\n ** module id = 181\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/modules/$.dom-create.js?"); /***/ }, /* 182 */ /***/ function(module, exports, __webpack_require__) { - eval("/*\nCopyright (c) 2014, Matteo Collina \n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted, provided that the above\ncopyright notice and this permission notice appear in all copies.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\nWITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\nMERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\nANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\nWHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\nACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR\nIN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n*/\n\n'use strict';\n\nvar through = __webpack_require__(171)\n\nfunction transform(chunk, enc, cb) {\n var list = chunk.toString('utf8').split(this.matcher)\n , remaining = list.pop()\n , i\n\n if (list.length >= 1) {\n push(this, this.mapper((this._last + list.shift())))\n } else {\n remaining = this._last + remaining\n }\n\n for (i = 0; i < list.length; i++) {\n push(this, this.mapper(list[i]))\n }\n\n this._last = remaining\n\n cb()\n}\n\nfunction flush(cb) {\n if (this._last)\n push(this, this.mapper(this._last))\n\n cb()\n}\n\nfunction push(self, val) {\n if (val !== undefined)\n self.push(val)\n}\n\nfunction noop(incoming) {\n return incoming\n}\n\nfunction split(matcher, mapper, options) {\n\n if (typeof matcher === 'object' && !(matcher instanceof RegExp)) {\n options = matcher\n matcher = null\n }\n\n if (typeof matcher === 'function') {\n mapper = matcher\n matcher = null\n }\n\n options = options || {}\n\n var stream = through(options, transform, flush)\n\n // this stream is in objectMode only in the readable part\n stream._readableState.objectMode = true;\n\n stream._last = ''\n stream.matcher = matcher || /\\r?\\n/\n stream.mapper = mapper || noop\n\n return stream\n}\n\nmodule.exports = split\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/ndjson/~/split2/index.js\n ** module id = 182\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/ndjson/~/split2/index.js?"); + eval("var redefine = __webpack_require__(28);\nmodule.exports = function(target, src){\n for(var key in src)redefine(target, key, src[key]);\n return target;\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.redefine-all.js\n ** module id = 182\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/modules/$.redefine-all.js?"); /***/ }, /* 183 */ /***/ function(module, exports, __webpack_require__) { - eval("'use strict';\n\nvar argCommand = __webpack_require__(162).argCommand;\n\nmodule.exports = function (send) {\n return argCommand(send, 'ls');\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/api/ls.js\n ** module id = 183\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./src/api/ls.js?"); + eval("'use strict';\nvar core = __webpack_require__(10)\n , $ = __webpack_require__(14)\n , DESCRIPTORS = __webpack_require__(31)\n , SPECIES = __webpack_require__(36)('species');\n\nmodule.exports = function(KEY){\n var C = core[KEY];\n if(DESCRIPTORS && C && !C[SPECIES])$.setDesc(C, SPECIES, {\n configurable: true,\n get: function(){ return this; }\n });\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.set-species.js\n ** module id = 183\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/modules/$.set-species.js?"); /***/ }, /* 184 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("'use strict';\n\nmodule.exports = function (send) {\n return function mount(ipfs, ipns, cb) {\n if (typeof ipfs === 'function') {\n cb = ipfs;\n ipfs = null;\n } else if (typeof ipns === 'function') {\n cb = ipns;\n ipns = null;\n }\n var opts = {};\n if (ipfs) opts.f = ipfs;\n if (ipns) opts.n = ipns;\n return send('mount', null, opts, null, cb);\n };\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/api/mount.js\n ** module id = 184\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./src/api/mount.js?"); + eval("var ITERATOR = __webpack_require__(36)('iterator')\n , SAFE_CLOSING = false;\n\ntry {\n var riter = [7][ITERATOR]();\n riter['return'] = function(){ SAFE_CLOSING = true; };\n Array.from(riter, function(){ throw 2; });\n} catch(e){ /* empty */ }\n\nmodule.exports = function(exec, skipClosing){\n if(!skipClosing && !SAFE_CLOSING)return false;\n var safe = false;\n try {\n var arr = [7]\n , iter = arr[ITERATOR]();\n iter.next = function(){ safe = true; };\n arr[ITERATOR] = function(){ return iter; };\n exec(arr);\n } catch(e){ /* empty */ }\n return safe;\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/core-js/library/modules/$.iter-detect.js\n ** module id = 184\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/core-js/library/modules/$.iter-detect.js?"); /***/ }, /* 185 */ /***/ function(module, exports, __webpack_require__) { - eval("'use strict';\n\nvar argCommand = __webpack_require__(162).argCommand;\n\nmodule.exports = function (send) {\n return {\n publish: argCommand(send, 'name/publish'),\n resolve: argCommand(send, 'name/resolve')\n };\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/api/name.js\n ** module id = 185\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./src/api/name.js?"); + eval("'use strict';\n\nvar command = __webpack_require__(160).command;\n\nmodule.exports = function (send) {\n return {\n net: command(send, 'diag/net'),\n sys: command(send, 'diag/sys')\n };\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/api/diag.js\n ** module id = 185\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./src/api/diag.js?"); /***/ }, /* 186 */ -/***/ function(module, exports, __webpack_require__) { +/***/ function(module, exports) { - eval("'use strict';\n\nvar argCommand = __webpack_require__(162).argCommand;\n\nmodule.exports = function (send) {\n return {\n get: argCommand(send, 'object/get'),\n put: function put(file, encoding, cb) {\n if (typeof encoding === 'function') {\n return cb(null, new Error(\"Must specify an object encoding ('json' or 'protobuf')\"));\n }\n return send('object/put', encoding, null, file, cb);\n },\n\n data: argCommand(send, 'object/data'),\n links: argCommand(send, 'object/links'),\n stat: argCommand(send, 'object/stat'),\n new: argCommand(send, 'object/new'),\n patch: function patch(file, opts, cb) {\n return send('object/patch', [file].concat(opts), null, null, cb);\n }\n };\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/api/object.js\n ** module id = 186\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./src/api/object.js?"); + eval("'use strict';\n\nmodule.exports = function (send) {\n return function id(idParam, cb) {\n if (typeof idParam === 'function') {\n cb = idParam;\n idParam = null;\n }\n return send('id', idParam, null, null, cb);\n };\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/api/id.js\n ** module id = 186\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./src/api/id.js?"); /***/ }, /* 187 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("'use strict';\n\nmodule.exports = function (send) {\n return {\n add: function add(hash, opts, cb) {\n if (typeof opts === 'function') {\n cb = opts;\n opts = null;\n }\n\n return send('pin/add', hash, opts, null, cb);\n },\n remove: function remove(hash, opts, cb) {\n if (typeof opts === 'function') {\n cb = opts;\n opts = null;\n }\n\n return send('pin/rm', hash, opts, null, cb);\n },\n list: function list(type, cb) {\n if (typeof type === 'function') {\n cb = type;\n type = null;\n }\n var opts = null;\n if (type) opts = { type: type };\n return send('pin/ls', null, opts, null, cb);\n }\n };\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/api/pin.js\n ** module id = 187\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./src/api/pin.js?"); + eval("'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 ndjson = __webpack_require__(188);\n\nmodule.exports = function (send) {\n return {\n tail: function tail(cb) {\n if (typeof cb !== 'function' && typeof _promise2.default !== 'undefined') {\n return send('log/tail', null, {}, null, false).then(function (res) {\n return res.pipe(ndjson.parse());\n });\n }\n\n return send('log/tail', null, {}, null, false, function (err, res) {\n if (err) return cb(err);\n cb(null, res.pipe(ndjson.parse()));\n });\n }\n };\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/api/log.js\n ** module id = 187\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./src/api/log.js?"); /***/ }, /* 188 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("'use strict';\n\nmodule.exports = function (send) {\n return function ping(id, cb) {\n return send('ping', id, { n: 1 }, null, function (err, res) {\n if (err) return cb(err, null);\n cb(null, res[1]);\n });\n };\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/api/ping.js\n ** module id = 188\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./src/api/ping.js?"); + eval("var through = __webpack_require__(189)\nvar split = __webpack_require__(195)\nvar EOL = __webpack_require__(74).EOL\n\nmodule.exports = parse\nmodule.exports.serialize = module.exports.stringify = serialize\nmodule.exports.parse = parse\n\nfunction parse (opts) {\n opts = opts || {}\n opts.strict = opts.strict !== false\n\n function parseRow (row) {\n try {\n if (row) return JSON.parse(row)\n } catch (e) {\n if (opts.strict) {\n this.emit('error', new Error('Could not parse row ' + row.slice(0, 50) + '...'))\n }\n }\n }\n\n return split(parseRow)\n}\n\nfunction serialize (opts) {\n return through.obj(opts, function(obj, enc, cb) {\n cb(null, JSON.stringify(obj) + EOL)\n })\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/ndjson/index.js\n ** module id = 188\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/ndjson/index.js?"); /***/ }, /* 189 */ /***/ function(module, exports, __webpack_require__) { - eval("'use strict';\n\nvar cmds = __webpack_require__(162);\n\nmodule.exports = function (send) {\n var refs = cmds.argCommand(send, 'refs');\n refs.local = cmds.command(send, 'refs/local');\n\n return refs;\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/api/refs.js\n ** module id = 189\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./src/api/refs.js?"); + eval("/* WEBPACK VAR INJECTION */(function(process) {var Transform = __webpack_require__(190)\n , inherits = __webpack_require__(139).inherits\n , xtend = __webpack_require__(67)\n\nfunction DestroyableTransform(opts) {\n Transform.call(this, opts)\n this._destroyed = false\n}\n\ninherits(DestroyableTransform, Transform)\n\nDestroyableTransform.prototype.destroy = function(err) {\n if (this._destroyed) return\n this._destroyed = true\n \n var self = this\n process.nextTick(function() {\n if (err)\n self.emit('error', err)\n self.emit('close')\n })\n}\n\n// a noop _transform function\nfunction noop (chunk, enc, callback) {\n callback(null, chunk)\n}\n\n\n// create a new export function, used by both the main export and\n// the .ctor export, contains common logic for dealing with arguments\nfunction through2 (construct) {\n return function (options, transform, flush) {\n if (typeof options == 'function') {\n flush = transform\n transform = options\n options = {}\n }\n\n if (typeof transform != 'function')\n transform = noop\n\n if (typeof flush != 'function')\n flush = null\n\n return construct(options, transform, flush)\n }\n}\n\n\n// main export, just make me a transform stream!\nmodule.exports = through2(function (options, transform, flush) {\n var t2 = new DestroyableTransform(options)\n\n t2._transform = transform\n\n if (flush)\n t2._flush = flush\n\n return t2\n})\n\n\n// make me a reusable prototype that I can `new`, or implicitly `new`\n// with a constructor call\nmodule.exports.ctor = through2(function (options, transform, flush) {\n function Through2 (override) {\n if (!(this instanceof Through2))\n return new Through2(override)\n\n this.options = xtend(options, override)\n\n DestroyableTransform.call(this, this.options)\n }\n\n inherits(Through2, DestroyableTransform)\n\n Through2.prototype._transform = transform\n\n if (flush)\n Through2.prototype._flush = flush\n\n return Through2\n})\n\n\nmodule.exports.obj = through2(function (options, transform, flush) {\n var t2 = new DestroyableTransform(xtend({ objectMode: true, highWaterMark: 16 }, options))\n\n t2._transform = transform\n\n if (flush)\n t2._flush = flush\n\n return t2\n})\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/through2/through2.js\n ** module id = 189\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/through2/through2.js?"); /***/ }, /* 190 */ /***/ function(module, exports, __webpack_require__) { - eval("'use strict';\n\nvar cmds = __webpack_require__(162);\n\nmodule.exports = function (send) {\n return {\n peers: cmds.command(send, 'swarm/peers'),\n connect: cmds.argCommand(send, 'swarm/connect')\n };\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/api/swarm.js\n ** module id = 190\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./src/api/swarm.js?"); + eval("module.exports = __webpack_require__(191)\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/through2/~/readable-stream/transform.js\n ** module id = 190\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/through2/~/readable-stream/transform.js?"); /***/ }, /* 191 */ /***/ function(module, exports, __webpack_require__) { - eval("'use strict';\n\nvar command = __webpack_require__(162).command;\n\nmodule.exports = function (send) {\n return {\n apply: command(send, 'update'),\n check: command(send, 'update/check'),\n log: command(send, 'update/log')\n };\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/api/update.js\n ** module id = 191\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./src/api/update.js?"); + eval("// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n\n// a transform stream is a readable/writable stream where you do\n// something with the data. Sometimes it's called a \"filter\",\n// but that's not a great name for it, since that implies a thing where\n// some bits pass through, and others are simply ignored. (That would\n// be a valid example of a transform, of course.)\n//\n// While the output is causally related to the input, it's not a\n// necessarily symmetric or synchronous transformation. For example,\n// a zlib stream might take multiple plain-text writes(), and then\n// emit a single compressed chunk some time in the future.\n//\n// Here's how this works:\n//\n// The Transform stream has all the aspects of the readable and writable\n// stream classes. When you write(chunk), that calls _write(chunk,cb)\n// internally, and returns false if there's a lot of pending writes\n// buffered up. When you call read(), that calls _read(n) until\n// there's enough pending readable data buffered up.\n//\n// In a transform stream, the written data is placed in a buffer. When\n// _read(n) is called, it transforms the queued up data, calling the\n// buffered _write cb's as it consumes chunks. If consuming a single\n// written chunk would result in multiple output chunks, then the first\n// outputted bit calls the readcb, and subsequent chunks just go into\n// the read buffer, and will cause it to emit 'readable' if necessary.\n//\n// This way, back-pressure is actually determined by the reading side,\n// since _read has to be called to start processing a new chunk. However,\n// a pathological inflate type of transform can cause excessive buffering\n// here. For example, imagine a stream where every byte of input is\n// interpreted as an integer from 0-255, and then results in that many\n// bytes of output. Writing the 4 bytes {ff,ff,ff,ff} would result in\n// 1kb of data being output. In this case, you could write a very small\n// amount of input, and end up with a very large amount of output. In\n// such a pathological inflating mechanism, there'd be no way to tell\n// the system to stop doing the transform. A single 4MB write could\n// cause the system to run out of memory.\n//\n// However, even in such a pathological case, only a single written chunk\n// would be consumed, and then the rest would wait (un-transformed) until\n// the results of the previous transformed chunk were consumed.\n\nmodule.exports = Transform;\n\nvar Duplex = __webpack_require__(192);\n\n/**/\nvar util = __webpack_require__(102);\nutil.inherits = __webpack_require__(96);\n/**/\n\nutil.inherits(Transform, Duplex);\n\n\nfunction TransformState(options, stream) {\n this.afterTransform = function(er, data) {\n return afterTransform(stream, er, data);\n };\n\n this.needTransform = false;\n this.transforming = false;\n this.writecb = null;\n this.writechunk = null;\n}\n\nfunction afterTransform(stream, er, data) {\n var ts = stream._transformState;\n ts.transforming = false;\n\n var cb = ts.writecb;\n\n if (!cb)\n return stream.emit('error', new Error('no writecb in Transform class'));\n\n ts.writechunk = null;\n ts.writecb = null;\n\n if (data !== null && data !== undefined)\n stream.push(data);\n\n if (cb)\n cb(er);\n\n var rs = stream._readableState;\n rs.reading = false;\n if (rs.needReadable || rs.length < rs.highWaterMark) {\n stream._read(rs.highWaterMark);\n }\n}\n\n\nfunction Transform(options) {\n if (!(this instanceof Transform))\n return new Transform(options);\n\n Duplex.call(this, options);\n\n var ts = this._transformState = new TransformState(options, this);\n\n // when the writable side finishes, then flush out anything remaining.\n var stream = this;\n\n // start out asking for a readable event once data is transformed.\n this._readableState.needReadable = true;\n\n // we have implemented the _read method, and done the other things\n // that Readable wants before the first _read call, so unset the\n // sync guard flag.\n this._readableState.sync = false;\n\n this.once('finish', function() {\n if ('function' === typeof this._flush)\n this._flush(function(er) {\n done(stream, er);\n });\n else\n done(stream);\n });\n}\n\nTransform.prototype.push = function(chunk, encoding) {\n this._transformState.needTransform = false;\n return Duplex.prototype.push.call(this, chunk, encoding);\n};\n\n// This is the part where you do stuff!\n// override this function in implementation classes.\n// 'chunk' is an input chunk.\n//\n// Call `push(newChunk)` to pass along transformed output\n// to the readable side. You may call 'push' zero or more times.\n//\n// Call `cb(err)` when you are done with this chunk. If you pass\n// an error, then that'll put the hurt on the whole operation. If you\n// never call cb(), then you'll never get another chunk.\nTransform.prototype._transform = function(chunk, encoding, cb) {\n throw new Error('not implemented');\n};\n\nTransform.prototype._write = function(chunk, encoding, cb) {\n var ts = this._transformState;\n ts.writecb = cb;\n ts.writechunk = chunk;\n ts.writeencoding = encoding;\n if (!ts.transforming) {\n var rs = this._readableState;\n if (ts.needTransform ||\n rs.needReadable ||\n rs.length < rs.highWaterMark)\n this._read(rs.highWaterMark);\n }\n};\n\n// Doesn't matter what the args are here.\n// _transform does all the work.\n// That we got here means that the readable side wants more data.\nTransform.prototype._read = function(n) {\n var ts = this._transformState;\n\n if (ts.writechunk !== null && ts.writecb && !ts.transforming) {\n ts.transforming = true;\n this._transform(ts.writechunk, ts.writeencoding, ts.afterTransform);\n } else {\n // mark that we need a transform, so that any data that comes in\n // will get processed, now that we've asked for it.\n ts.needTransform = true;\n }\n};\n\n\nfunction done(stream, er) {\n if (er)\n return stream.emit('error', er);\n\n // if there's nothing in the write buffer, then that means\n // that nothing more will ever be provided\n var ws = stream._writableState;\n var rs = stream._readableState;\n var ts = stream._transformState;\n\n if (ws.length)\n throw new Error('calling transform done when ws.length != 0');\n\n if (ts.transforming)\n throw new Error('calling transform done when still transforming');\n\n return stream.push(null);\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/through2/~/readable-stream/lib/_stream_transform.js\n ** module id = 191\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/through2/~/readable-stream/lib/_stream_transform.js?"); /***/ }, /* 192 */ /***/ function(module, exports, __webpack_require__) { - eval("'use strict';\n\nvar command = __webpack_require__(162).command;\n\nmodule.exports = function (send) {\n return command(send, 'version');\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/api/version.js\n ** module id = 192\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./src/api/version.js?"); + eval("/* WEBPACK VAR INJECTION */(function(process) {// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// a duplex stream is just a stream that is both readable and writable.\n// Since JS doesn't have multiple prototypal inheritance, this class\n// prototypally inherits from Readable, and then parasitically from\n// Writable.\n\nmodule.exports = Duplex;\n\n/**/\nvar objectKeys = Object.keys || function (obj) {\n var keys = [];\n for (var key in obj) keys.push(key);\n return keys;\n}\n/**/\n\n\n/**/\nvar util = __webpack_require__(102);\nutil.inherits = __webpack_require__(96);\n/**/\n\nvar Readable = __webpack_require__(193);\nvar Writable = __webpack_require__(194);\n\nutil.inherits(Duplex, Readable);\n\nforEach(objectKeys(Writable.prototype), function(method) {\n if (!Duplex.prototype[method])\n Duplex.prototype[method] = Writable.prototype[method];\n});\n\nfunction Duplex(options) {\n if (!(this instanceof Duplex))\n return new Duplex(options);\n\n Readable.call(this, options);\n Writable.call(this, options);\n\n if (options && options.readable === false)\n this.readable = false;\n\n if (options && options.writable === false)\n this.writable = false;\n\n this.allowHalfOpen = true;\n if (options && options.allowHalfOpen === false)\n this.allowHalfOpen = false;\n\n this.once('end', onend);\n}\n\n// the no-half-open enforcer\nfunction onend() {\n // if we allow half-open state, or if the writable side ended,\n // then we're ok.\n if (this.allowHalfOpen || this._writableState.ended)\n return;\n\n // no more data can be written.\n // But allow more writes to happen in this tick.\n process.nextTick(this.end.bind(this));\n}\n\nfunction forEach (xs, f) {\n for (var i = 0, l = xs.length; i < l; i++) {\n f(xs[i], i);\n }\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/through2/~/readable-stream/lib/_stream_duplex.js\n ** module id = 192\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/through2/~/readable-stream/lib/_stream_duplex.js?"); /***/ }, /* 193 */ /***/ function(module, exports, __webpack_require__) { - eval("'use strict';\n\nvar pkg = __webpack_require__(194);\n\nexports = module.exports = function () {\n return {\n 'api-path': '/api/v0/',\n 'user-agent': '/node-' + pkg.name + '/' + pkg.version + '/',\n 'host': 'localhost',\n 'port': '5001',\n 'protocol': 'http'\n };\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/config.js\n ** module id = 193\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./src/config.js?"); + eval("/* WEBPACK VAR INJECTION */(function(process) {// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nmodule.exports = Readable;\n\n/**/\nvar isArray = __webpack_require__(101);\n/**/\n\n\n/**/\nvar Buffer = __webpack_require__(1).Buffer;\n/**/\n\nReadable.ReadableState = ReadableState;\n\nvar EE = __webpack_require__(86).EventEmitter;\n\n/**/\nif (!EE.listenerCount) EE.listenerCount = function(emitter, type) {\n return emitter.listeners(type).length;\n};\n/**/\n\nvar Stream = __webpack_require__(98);\n\n/**/\nvar util = __webpack_require__(102);\nutil.inherits = __webpack_require__(96);\n/**/\n\nvar StringDecoder;\n\nutil.inherits(Readable, Stream);\n\nfunction ReadableState(options, stream) {\n options = options || {};\n\n // the point at which it stops calling _read() to fill the buffer\n // Note: 0 is a valid value, means \"don't call _read preemptively ever\"\n var hwm = options.highWaterMark;\n this.highWaterMark = (hwm || hwm === 0) ? hwm : 16 * 1024;\n\n // cast to ints.\n this.highWaterMark = ~~this.highWaterMark;\n\n this.buffer = [];\n this.length = 0;\n this.pipes = null;\n this.pipesCount = 0;\n this.flowing = false;\n this.ended = false;\n this.endEmitted = false;\n this.reading = false;\n\n // In streams that never have any data, and do push(null) right away,\n // the consumer can miss the 'end' event if they do some I/O before\n // consuming the stream. So, we don't emit('end') until some reading\n // happens.\n this.calledRead = false;\n\n // a flag to be able to tell if the onwrite cb is called immediately,\n // or on a later tick. We set this to true at first, becuase any\n // actions that shouldn't happen until \"later\" should generally also\n // not happen before the first write call.\n this.sync = true;\n\n // whenever we return null, then we set a flag to say\n // that we're awaiting a 'readable' event emission.\n this.needReadable = false;\n this.emittedReadable = false;\n this.readableListening = false;\n\n\n // object stream flag. Used to make read(n) ignore n and to\n // make all the buffer merging and length checks go away\n this.objectMode = !!options.objectMode;\n\n // Crypto is kind of old and crusty. Historically, its default string\n // encoding is 'binary' so we have to make this configurable.\n // Everything else in the universe uses 'utf8', though.\n this.defaultEncoding = options.defaultEncoding || 'utf8';\n\n // when piping, we only care about 'readable' events that happen\n // after read()ing all the bytes and not getting any pushback.\n this.ranOut = false;\n\n // the number of writers that are awaiting a drain event in .pipe()s\n this.awaitDrain = 0;\n\n // if true, a maybeReadMore has been scheduled\n this.readingMore = false;\n\n this.decoder = null;\n this.encoding = null;\n if (options.encoding) {\n if (!StringDecoder)\n StringDecoder = __webpack_require__(106).StringDecoder;\n this.decoder = new StringDecoder(options.encoding);\n this.encoding = options.encoding;\n }\n}\n\nfunction Readable(options) {\n if (!(this instanceof Readable))\n return new Readable(options);\n\n this._readableState = new ReadableState(options, this);\n\n // legacy\n this.readable = true;\n\n Stream.call(this);\n}\n\n// Manually shove something into the read() buffer.\n// This returns true if the highWaterMark has not been hit yet,\n// similar to how Writable.write() returns true if you should\n// write() some more.\nReadable.prototype.push = function(chunk, encoding) {\n var state = this._readableState;\n\n if (typeof chunk === 'string' && !state.objectMode) {\n encoding = encoding || state.defaultEncoding;\n if (encoding !== state.encoding) {\n chunk = new Buffer(chunk, encoding);\n encoding = '';\n }\n }\n\n return readableAddChunk(this, state, chunk, encoding, false);\n};\n\n// Unshift should *always* be something directly out of read()\nReadable.prototype.unshift = function(chunk) {\n var state = this._readableState;\n return readableAddChunk(this, state, chunk, '', true);\n};\n\nfunction readableAddChunk(stream, state, chunk, encoding, addToFront) {\n var er = chunkInvalid(state, chunk);\n if (er) {\n stream.emit('error', er);\n } else if (chunk === null || chunk === undefined) {\n state.reading = false;\n if (!state.ended)\n onEofChunk(stream, state);\n } else if (state.objectMode || chunk && chunk.length > 0) {\n if (state.ended && !addToFront) {\n var e = new Error('stream.push() after EOF');\n stream.emit('error', e);\n } else if (state.endEmitted && addToFront) {\n var e = new Error('stream.unshift() after end event');\n stream.emit('error', e);\n } else {\n if (state.decoder && !addToFront && !encoding)\n chunk = state.decoder.write(chunk);\n\n // update the buffer info.\n state.length += state.objectMode ? 1 : chunk.length;\n if (addToFront) {\n state.buffer.unshift(chunk);\n } else {\n state.reading = false;\n state.buffer.push(chunk);\n }\n\n if (state.needReadable)\n emitReadable(stream);\n\n maybeReadMore(stream, state);\n }\n } else if (!addToFront) {\n state.reading = false;\n }\n\n return needMoreData(state);\n}\n\n\n\n// if it's past the high water mark, we can push in some more.\n// Also, if we have no data yet, we can stand some\n// more bytes. This is to work around cases where hwm=0,\n// such as the repl. Also, if the push() triggered a\n// readable event, and the user called read(largeNumber) such that\n// needReadable was set, then we ought to push more, so that another\n// 'readable' event will be triggered.\nfunction needMoreData(state) {\n return !state.ended &&\n (state.needReadable ||\n state.length < state.highWaterMark ||\n state.length === 0);\n}\n\n// backwards compatibility.\nReadable.prototype.setEncoding = function(enc) {\n if (!StringDecoder)\n StringDecoder = __webpack_require__(106).StringDecoder;\n this._readableState.decoder = new StringDecoder(enc);\n this._readableState.encoding = enc;\n};\n\n// Don't raise the hwm > 128MB\nvar MAX_HWM = 0x800000;\nfunction roundUpToNextPowerOf2(n) {\n if (n >= MAX_HWM) {\n n = MAX_HWM;\n } else {\n // Get the next highest power of 2\n n--;\n for (var p = 1; p < 32; p <<= 1) n |= n >> p;\n n++;\n }\n return n;\n}\n\nfunction howMuchToRead(n, state) {\n if (state.length === 0 && state.ended)\n return 0;\n\n if (state.objectMode)\n return n === 0 ? 0 : 1;\n\n if (n === null || isNaN(n)) {\n // only flow one buffer at a time\n if (state.flowing && state.buffer.length)\n return state.buffer[0].length;\n else\n return state.length;\n }\n\n if (n <= 0)\n return 0;\n\n // If we're asking for more than the target buffer level,\n // then raise the water mark. Bump up to the next highest\n // power of 2, to prevent increasing it excessively in tiny\n // amounts.\n if (n > state.highWaterMark)\n state.highWaterMark = roundUpToNextPowerOf2(n);\n\n // don't have that much. return null, unless we've ended.\n if (n > state.length) {\n if (!state.ended) {\n state.needReadable = true;\n return 0;\n } else\n return state.length;\n }\n\n return n;\n}\n\n// you can override either this method, or the async _read(n) below.\nReadable.prototype.read = function(n) {\n var state = this._readableState;\n state.calledRead = true;\n var nOrig = n;\n var ret;\n\n if (typeof n !== 'number' || n > 0)\n state.emittedReadable = false;\n\n // if we're doing read(0) to trigger a readable event, but we\n // already have a bunch of data in the buffer, then just trigger\n // the 'readable' event and move on.\n if (n === 0 &&\n state.needReadable &&\n (state.length >= state.highWaterMark || state.ended)) {\n emitReadable(this);\n return null;\n }\n\n n = howMuchToRead(n, state);\n\n // if we've ended, and we're now clear, then finish it up.\n if (n === 0 && state.ended) {\n ret = null;\n\n // In cases where the decoder did not receive enough data\n // to produce a full chunk, then immediately received an\n // EOF, state.buffer will contain [, ].\n // howMuchToRead will see this and coerce the amount to\n // read to zero (because it's looking at the length of the\n // first in state.buffer), and we'll end up here.\n //\n // This can only happen via state.decoder -- no other venue\n // exists for pushing a zero-length chunk into state.buffer\n // and triggering this behavior. In this case, we return our\n // remaining data and end the stream, if appropriate.\n if (state.length > 0 && state.decoder) {\n ret = fromList(n, state);\n state.length -= ret.length;\n }\n\n if (state.length === 0)\n endReadable(this);\n\n return ret;\n }\n\n // All the actual chunk generation logic needs to be\n // *below* the call to _read. The reason is that in certain\n // synthetic stream cases, such as passthrough streams, _read\n // may be a completely synchronous operation which may change\n // the state of the read buffer, providing enough data when\n // before there was *not* enough.\n //\n // So, the steps are:\n // 1. Figure out what the state of things will be after we do\n // a read from the buffer.\n //\n // 2. If that resulting state will trigger a _read, then call _read.\n // Note that this may be asynchronous, or synchronous. Yes, it is\n // deeply ugly to write APIs this way, but that still doesn't mean\n // that the Readable class should behave improperly, as streams are\n // designed to be sync/async agnostic.\n // Take note if the _read call is sync or async (ie, if the read call\n // has returned yet), so that we know whether or not it's safe to emit\n // 'readable' etc.\n //\n // 3. Actually pull the requested chunks out of the buffer and return.\n\n // if we need a readable event, then we need to do some reading.\n var doRead = state.needReadable;\n\n // if we currently have less than the highWaterMark, then also read some\n if (state.length - n <= state.highWaterMark)\n doRead = true;\n\n // however, if we've ended, then there's no point, and if we're already\n // reading, then it's unnecessary.\n if (state.ended || state.reading)\n doRead = false;\n\n if (doRead) {\n state.reading = true;\n state.sync = true;\n // if the length is currently zero, then we *need* a readable event.\n if (state.length === 0)\n state.needReadable = true;\n // call internal read method\n this._read(state.highWaterMark);\n state.sync = false;\n }\n\n // If _read called its callback synchronously, then `reading`\n // will be false, and we need to re-evaluate how much data we\n // can return to the user.\n if (doRead && !state.reading)\n n = howMuchToRead(nOrig, state);\n\n if (n > 0)\n ret = fromList(n, state);\n else\n ret = null;\n\n if (ret === null) {\n state.needReadable = true;\n n = 0;\n }\n\n state.length -= n;\n\n // If we have nothing in the buffer, then we want to know\n // as soon as we *do* get something into the buffer.\n if (state.length === 0 && !state.ended)\n state.needReadable = true;\n\n // If we happened to read() exactly the remaining amount in the\n // buffer, and the EOF has been seen at this point, then make sure\n // that we emit 'end' on the very next tick.\n if (state.ended && !state.endEmitted && state.length === 0)\n endReadable(this);\n\n return ret;\n};\n\nfunction chunkInvalid(state, chunk) {\n var er = null;\n if (!Buffer.isBuffer(chunk) &&\n 'string' !== typeof chunk &&\n chunk !== null &&\n chunk !== undefined &&\n !state.objectMode) {\n er = new TypeError('Invalid non-string/buffer chunk');\n }\n return er;\n}\n\n\nfunction onEofChunk(stream, state) {\n if (state.decoder && !state.ended) {\n var chunk = state.decoder.end();\n if (chunk && chunk.length) {\n state.buffer.push(chunk);\n state.length += state.objectMode ? 1 : chunk.length;\n }\n }\n state.ended = true;\n\n // if we've ended and we have some data left, then emit\n // 'readable' now to make sure it gets picked up.\n if (state.length > 0)\n emitReadable(stream);\n else\n endReadable(stream);\n}\n\n// Don't emit readable right away in sync mode, because this can trigger\n// another read() call => stack overflow. This way, it might trigger\n// a nextTick recursion warning, but that's not so bad.\nfunction emitReadable(stream) {\n var state = stream._readableState;\n state.needReadable = false;\n if (state.emittedReadable)\n return;\n\n state.emittedReadable = true;\n if (state.sync)\n process.nextTick(function() {\n emitReadable_(stream);\n });\n else\n emitReadable_(stream);\n}\n\nfunction emitReadable_(stream) {\n stream.emit('readable');\n}\n\n\n// at this point, the user has presumably seen the 'readable' event,\n// and called read() to consume some data. that may have triggered\n// in turn another _read(n) call, in which case reading = true if\n// it's in progress.\n// However, if we're not ended, or reading, and the length < hwm,\n// then go ahead and try to read some more preemptively.\nfunction maybeReadMore(stream, state) {\n if (!state.readingMore) {\n state.readingMore = true;\n process.nextTick(function() {\n maybeReadMore_(stream, state);\n });\n }\n}\n\nfunction maybeReadMore_(stream, state) {\n var len = state.length;\n while (!state.reading && !state.flowing && !state.ended &&\n state.length < state.highWaterMark) {\n stream.read(0);\n if (len === state.length)\n // didn't get any data, stop spinning.\n break;\n else\n len = state.length;\n }\n state.readingMore = false;\n}\n\n// abstract method. to be overridden in specific implementation classes.\n// call cb(er, data) where data is <= n in length.\n// for virtual (non-string, non-buffer) streams, \"length\" is somewhat\n// arbitrary, and perhaps not very meaningful.\nReadable.prototype._read = function(n) {\n this.emit('error', new Error('not implemented'));\n};\n\nReadable.prototype.pipe = function(dest, pipeOpts) {\n var src = this;\n var state = this._readableState;\n\n switch (state.pipesCount) {\n case 0:\n state.pipes = dest;\n break;\n case 1:\n state.pipes = [state.pipes, dest];\n break;\n default:\n state.pipes.push(dest);\n break;\n }\n state.pipesCount += 1;\n\n var doEnd = (!pipeOpts || pipeOpts.end !== false) &&\n dest !== process.stdout &&\n dest !== process.stderr;\n\n var endFn = doEnd ? onend : cleanup;\n if (state.endEmitted)\n process.nextTick(endFn);\n else\n src.once('end', endFn);\n\n dest.on('unpipe', onunpipe);\n function onunpipe(readable) {\n if (readable !== src) return;\n cleanup();\n }\n\n function onend() {\n dest.end();\n }\n\n // when the dest drains, it reduces the awaitDrain counter\n // on the source. This would be more elegant with a .once()\n // handler in flow(), but adding and removing repeatedly is\n // too slow.\n var ondrain = pipeOnDrain(src);\n dest.on('drain', ondrain);\n\n function cleanup() {\n // cleanup event handlers once the pipe is broken\n dest.removeListener('close', onclose);\n dest.removeListener('finish', onfinish);\n dest.removeListener('drain', ondrain);\n dest.removeListener('error', onerror);\n dest.removeListener('unpipe', onunpipe);\n src.removeListener('end', onend);\n src.removeListener('end', cleanup);\n\n // if the reader is waiting for a drain event from this\n // specific writer, then it would cause it to never start\n // flowing again.\n // So, if this is awaiting a drain, then we just call it now.\n // If we don't know, then assume that we are waiting for one.\n if (!dest._writableState || dest._writableState.needDrain)\n ondrain();\n }\n\n // if the dest has an error, then stop piping into it.\n // however, don't suppress the throwing behavior for this.\n function onerror(er) {\n unpipe();\n dest.removeListener('error', onerror);\n if (EE.listenerCount(dest, 'error') === 0)\n dest.emit('error', er);\n }\n // This is a brutally ugly hack to make sure that our error handler\n // is attached before any userland ones. NEVER DO THIS.\n if (!dest._events || !dest._events.error)\n dest.on('error', onerror);\n else if (isArray(dest._events.error))\n dest._events.error.unshift(onerror);\n else\n dest._events.error = [onerror, dest._events.error];\n\n\n\n // Both close and finish should trigger unpipe, but only once.\n function onclose() {\n dest.removeListener('finish', onfinish);\n unpipe();\n }\n dest.once('close', onclose);\n function onfinish() {\n dest.removeListener('close', onclose);\n unpipe();\n }\n dest.once('finish', onfinish);\n\n function unpipe() {\n src.unpipe(dest);\n }\n\n // tell the dest that it's being piped to\n dest.emit('pipe', src);\n\n // start the flow if it hasn't been started already.\n if (!state.flowing) {\n // the handler that waits for readable events after all\n // the data gets sucked out in flow.\n // This would be easier to follow with a .once() handler\n // in flow(), but that is too slow.\n this.on('readable', pipeOnReadable);\n\n state.flowing = true;\n process.nextTick(function() {\n flow(src);\n });\n }\n\n return dest;\n};\n\nfunction pipeOnDrain(src) {\n return function() {\n var dest = this;\n var state = src._readableState;\n state.awaitDrain--;\n if (state.awaitDrain === 0)\n flow(src);\n };\n}\n\nfunction flow(src) {\n var state = src._readableState;\n var chunk;\n state.awaitDrain = 0;\n\n function write(dest, i, list) {\n var written = dest.write(chunk);\n if (false === written) {\n state.awaitDrain++;\n }\n }\n\n while (state.pipesCount && null !== (chunk = src.read())) {\n\n if (state.pipesCount === 1)\n write(state.pipes, 0, null);\n else\n forEach(state.pipes, write);\n\n src.emit('data', chunk);\n\n // if anyone needs a drain, then we have to wait for that.\n if (state.awaitDrain > 0)\n return;\n }\n\n // if every destination was unpiped, either before entering this\n // function, or in the while loop, then stop flowing.\n //\n // NB: This is a pretty rare edge case.\n if (state.pipesCount === 0) {\n state.flowing = false;\n\n // if there were data event listeners added, then switch to old mode.\n if (EE.listenerCount(src, 'data') > 0)\n emitDataEvents(src);\n return;\n }\n\n // at this point, no one needed a drain, so we just ran out of data\n // on the next readable event, start it over again.\n state.ranOut = true;\n}\n\nfunction pipeOnReadable() {\n if (this._readableState.ranOut) {\n this._readableState.ranOut = false;\n flow(this);\n }\n}\n\n\nReadable.prototype.unpipe = function(dest) {\n var state = this._readableState;\n\n // if we're not piping anywhere, then do nothing.\n if (state.pipesCount === 0)\n return this;\n\n // just one destination. most common case.\n if (state.pipesCount === 1) {\n // passed in one, but it's not the right one.\n if (dest && dest !== state.pipes)\n return this;\n\n if (!dest)\n dest = state.pipes;\n\n // got a match.\n state.pipes = null;\n state.pipesCount = 0;\n this.removeListener('readable', pipeOnReadable);\n state.flowing = false;\n if (dest)\n dest.emit('unpipe', this);\n return this;\n }\n\n // slow case. multiple pipe destinations.\n\n if (!dest) {\n // remove all.\n var dests = state.pipes;\n var len = state.pipesCount;\n state.pipes = null;\n state.pipesCount = 0;\n this.removeListener('readable', pipeOnReadable);\n state.flowing = false;\n\n for (var i = 0; i < len; i++)\n dests[i].emit('unpipe', this);\n return this;\n }\n\n // try to find the right one.\n var i = indexOf(state.pipes, dest);\n if (i === -1)\n return this;\n\n state.pipes.splice(i, 1);\n state.pipesCount -= 1;\n if (state.pipesCount === 1)\n state.pipes = state.pipes[0];\n\n dest.emit('unpipe', this);\n\n return this;\n};\n\n// set up data events if they are asked for\n// Ensure readable listeners eventually get something\nReadable.prototype.on = function(ev, fn) {\n var res = Stream.prototype.on.call(this, ev, fn);\n\n if (ev === 'data' && !this._readableState.flowing)\n emitDataEvents(this);\n\n if (ev === 'readable' && this.readable) {\n var state = this._readableState;\n if (!state.readableListening) {\n state.readableListening = true;\n state.emittedReadable = false;\n state.needReadable = true;\n if (!state.reading) {\n this.read(0);\n } else if (state.length) {\n emitReadable(this, state);\n }\n }\n }\n\n return res;\n};\nReadable.prototype.addListener = Readable.prototype.on;\n\n// pause() and resume() are remnants of the legacy readable stream API\n// If the user uses them, then switch into old mode.\nReadable.prototype.resume = function() {\n emitDataEvents(this);\n this.read(0);\n this.emit('resume');\n};\n\nReadable.prototype.pause = function() {\n emitDataEvents(this, true);\n this.emit('pause');\n};\n\nfunction emitDataEvents(stream, startPaused) {\n var state = stream._readableState;\n\n if (state.flowing) {\n // https://github.com/isaacs/readable-stream/issues/16\n throw new Error('Cannot switch to old mode now.');\n }\n\n var paused = startPaused || false;\n var readable = false;\n\n // convert to an old-style stream.\n stream.readable = true;\n stream.pipe = Stream.prototype.pipe;\n stream.on = stream.addListener = Stream.prototype.on;\n\n stream.on('readable', function() {\n readable = true;\n\n var c;\n while (!paused && (null !== (c = stream.read())))\n stream.emit('data', c);\n\n if (c === null) {\n readable = false;\n stream._readableState.needReadable = true;\n }\n });\n\n stream.pause = function() {\n paused = true;\n this.emit('pause');\n };\n\n stream.resume = function() {\n paused = false;\n if (readable)\n process.nextTick(function() {\n stream.emit('readable');\n });\n else\n this.read(0);\n this.emit('resume');\n };\n\n // now make it start, just in case it hadn't already.\n stream.emit('readable');\n}\n\n// wrap an old-style stream as the async data source.\n// This is *not* part of the readable stream interface.\n// It is an ugly unfortunate mess of history.\nReadable.prototype.wrap = function(stream) {\n var state = this._readableState;\n var paused = false;\n\n var self = this;\n stream.on('end', function() {\n if (state.decoder && !state.ended) {\n var chunk = state.decoder.end();\n if (chunk && chunk.length)\n self.push(chunk);\n }\n\n self.push(null);\n });\n\n stream.on('data', function(chunk) {\n if (state.decoder)\n chunk = state.decoder.write(chunk);\n\n // don't skip over falsy values in objectMode\n //if (state.objectMode && util.isNullOrUndefined(chunk))\n if (state.objectMode && (chunk === null || chunk === undefined))\n return;\n else if (!state.objectMode && (!chunk || !chunk.length))\n return;\n\n var ret = self.push(chunk);\n if (!ret) {\n paused = true;\n stream.pause();\n }\n });\n\n // proxy all the other methods.\n // important when wrapping filters and duplexes.\n for (var i in stream) {\n if (typeof stream[i] === 'function' &&\n typeof this[i] === 'undefined') {\n this[i] = function(method) { return function() {\n return stream[method].apply(stream, arguments);\n }}(i);\n }\n }\n\n // proxy certain important events.\n var events = ['error', 'close', 'destroy', 'pause', 'resume'];\n forEach(events, function(ev) {\n stream.on(ev, self.emit.bind(self, ev));\n });\n\n // when we try to consume some more bytes, simply unpause the\n // underlying stream.\n self._read = function(n) {\n if (paused) {\n paused = false;\n stream.resume();\n }\n };\n\n return self;\n};\n\n\n\n// exposed for testing purposes only.\nReadable._fromList = fromList;\n\n// Pluck off n bytes from an array of buffers.\n// Length is the combined lengths of all the buffers in the list.\nfunction fromList(n, state) {\n var list = state.buffer;\n var length = state.length;\n var stringMode = !!state.decoder;\n var objectMode = !!state.objectMode;\n var ret;\n\n // nothing in the list, definitely empty.\n if (list.length === 0)\n return null;\n\n if (length === 0)\n ret = null;\n else if (objectMode)\n ret = list.shift();\n else if (!n || n >= length) {\n // read it all, truncate the array.\n if (stringMode)\n ret = list.join('');\n else\n ret = Buffer.concat(list, length);\n list.length = 0;\n } else {\n // read just some of it.\n if (n < list[0].length) {\n // just take a part of the first list item.\n // slice is the same for buffers and strings.\n var buf = list[0];\n ret = buf.slice(0, n);\n list[0] = buf.slice(n);\n } else if (n === list[0].length) {\n // first list is a perfect match\n ret = list.shift();\n } else {\n // complex case.\n // we have enough to cover it, but it spans past the first buffer.\n if (stringMode)\n ret = '';\n else\n ret = new Buffer(n);\n\n var c = 0;\n for (var i = 0, l = list.length; i < l && c < n; i++) {\n var buf = list[0];\n var cpy = Math.min(n - c, buf.length);\n\n if (stringMode)\n ret += buf.slice(0, cpy);\n else\n buf.copy(ret, c, 0, cpy);\n\n if (cpy < buf.length)\n list[0] = buf.slice(cpy);\n else\n list.shift();\n\n c += cpy;\n }\n }\n }\n\n return ret;\n}\n\nfunction endReadable(stream) {\n var state = stream._readableState;\n\n // If we get here before consuming all the bytes, then that is a\n // bug in node. Should never happen.\n if (state.length > 0)\n throw new Error('endReadable called on non-empty stream');\n\n if (!state.endEmitted && state.calledRead) {\n state.ended = true;\n process.nextTick(function() {\n // Check that we didn't get one last unshift.\n if (!state.endEmitted && state.length === 0) {\n state.endEmitted = true;\n stream.readable = false;\n stream.emit('end');\n }\n });\n }\n}\n\nfunction forEach (xs, f) {\n for (var i = 0, l = xs.length; i < l; i++) {\n f(xs[i], i);\n }\n}\n\nfunction indexOf (xs, x) {\n for (var i = 0, l = xs.length; i < l; i++) {\n if (xs[i] === x) return i;\n }\n return -1;\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/through2/~/readable-stream/lib/_stream_readable.js\n ** module id = 193\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/through2/~/readable-stream/lib/_stream_readable.js?"); /***/ }, /* 194 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("module.exports = {\n\t\"name\": \"ipfs-api\",\n\t\"version\": \"2.10.2\",\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-beta6\",\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-config-standard\": \"^4.4.0\",\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\": \"^1.0.0\",\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.0\",\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 = 194\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./package.json?"); + eval("/* WEBPACK VAR INJECTION */(function(process) {// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// A bit simpler than readable streams.\n// Implement an async ._write(chunk, cb), and it'll handle all\n// the drain event emission and buffering.\n\nmodule.exports = Writable;\n\n/**/\nvar Buffer = __webpack_require__(1).Buffer;\n/**/\n\nWritable.WritableState = WritableState;\n\n\n/**/\nvar util = __webpack_require__(102);\nutil.inherits = __webpack_require__(96);\n/**/\n\nvar Stream = __webpack_require__(98);\n\nutil.inherits(Writable, Stream);\n\nfunction WriteReq(chunk, encoding, cb) {\n this.chunk = chunk;\n this.encoding = encoding;\n this.callback = cb;\n}\n\nfunction WritableState(options, stream) {\n options = options || {};\n\n // the point at which write() starts returning false\n // Note: 0 is a valid value, means that we always return false if\n // the entire buffer is not flushed immediately on write()\n var hwm = options.highWaterMark;\n this.highWaterMark = (hwm || hwm === 0) ? hwm : 16 * 1024;\n\n // object stream flag to indicate whether or not this stream\n // contains buffers or objects.\n this.objectMode = !!options.objectMode;\n\n // cast to ints.\n this.highWaterMark = ~~this.highWaterMark;\n\n this.needDrain = false;\n // at the start of calling end()\n this.ending = false;\n // when end() has been called, and returned\n this.ended = false;\n // when 'finish' is emitted\n this.finished = false;\n\n // should we decode strings into buffers before passing to _write?\n // this is here so that some node-core streams can optimize string\n // handling at a lower level.\n var noDecode = options.decodeStrings === false;\n this.decodeStrings = !noDecode;\n\n // Crypto is kind of old and crusty. Historically, its default string\n // encoding is 'binary' so we have to make this configurable.\n // Everything else in the universe uses 'utf8', though.\n this.defaultEncoding = options.defaultEncoding || 'utf8';\n\n // not an actual buffer we keep track of, but a measurement\n // of how much we're waiting to get pushed to some underlying\n // socket or file.\n this.length = 0;\n\n // a flag to see when we're in the middle of a write.\n this.writing = false;\n\n // a flag to be able to tell if the onwrite cb is called immediately,\n // or on a later tick. We set this to true at first, becuase any\n // actions that shouldn't happen until \"later\" should generally also\n // not happen before the first write call.\n this.sync = true;\n\n // a flag to know if we're processing previously buffered items, which\n // may call the _write() callback in the same tick, so that we don't\n // end up in an overlapped onwrite situation.\n this.bufferProcessing = false;\n\n // the callback that's passed to _write(chunk,cb)\n this.onwrite = function(er) {\n onwrite(stream, er);\n };\n\n // the callback that the user supplies to write(chunk,encoding,cb)\n this.writecb = null;\n\n // the amount that is being written when _write is called.\n this.writelen = 0;\n\n this.buffer = [];\n\n // True if the error was already emitted and should not be thrown again\n this.errorEmitted = false;\n}\n\nfunction Writable(options) {\n var Duplex = __webpack_require__(192);\n\n // Writable ctor is applied to Duplexes, though they're not\n // instanceof Writable, they're instanceof Readable.\n if (!(this instanceof Writable) && !(this instanceof Duplex))\n return new Writable(options);\n\n this._writableState = new WritableState(options, this);\n\n // legacy.\n this.writable = true;\n\n Stream.call(this);\n}\n\n// Otherwise people can pipe Writable streams, which is just wrong.\nWritable.prototype.pipe = function() {\n this.emit('error', new Error('Cannot pipe. Not readable.'));\n};\n\n\nfunction writeAfterEnd(stream, state, cb) {\n var er = new Error('write after end');\n // TODO: defer error events consistently everywhere, not just the cb\n stream.emit('error', er);\n process.nextTick(function() {\n cb(er);\n });\n}\n\n// If we get something that is not a buffer, string, null, or undefined,\n// and we're not in objectMode, then that's an error.\n// Otherwise stream chunks are all considered to be of length=1, and the\n// watermarks determine how many objects to keep in the buffer, rather than\n// how many bytes or characters.\nfunction validChunk(stream, state, chunk, cb) {\n var valid = true;\n if (!Buffer.isBuffer(chunk) &&\n 'string' !== typeof chunk &&\n chunk !== null &&\n chunk !== undefined &&\n !state.objectMode) {\n var er = new TypeError('Invalid non-string/buffer chunk');\n stream.emit('error', er);\n process.nextTick(function() {\n cb(er);\n });\n valid = false;\n }\n return valid;\n}\n\nWritable.prototype.write = function(chunk, encoding, cb) {\n var state = this._writableState;\n var ret = false;\n\n if (typeof encoding === 'function') {\n cb = encoding;\n encoding = null;\n }\n\n if (Buffer.isBuffer(chunk))\n encoding = 'buffer';\n else if (!encoding)\n encoding = state.defaultEncoding;\n\n if (typeof cb !== 'function')\n cb = function() {};\n\n if (state.ended)\n writeAfterEnd(this, state, cb);\n else if (validChunk(this, state, chunk, cb))\n ret = writeOrBuffer(this, state, chunk, encoding, cb);\n\n return ret;\n};\n\nfunction decodeChunk(state, chunk, encoding) {\n if (!state.objectMode &&\n state.decodeStrings !== false &&\n typeof chunk === 'string') {\n chunk = new Buffer(chunk, encoding);\n }\n return chunk;\n}\n\n// if we're already writing something, then just put this\n// in the queue, and wait our turn. Otherwise, call _write\n// If we return false, then we need a drain event, so set that flag.\nfunction writeOrBuffer(stream, state, chunk, encoding, cb) {\n chunk = decodeChunk(state, chunk, encoding);\n if (Buffer.isBuffer(chunk))\n encoding = 'buffer';\n var len = state.objectMode ? 1 : chunk.length;\n\n state.length += len;\n\n var ret = state.length < state.highWaterMark;\n // we must ensure that previous needDrain will not be reset to false.\n if (!ret)\n state.needDrain = true;\n\n if (state.writing)\n state.buffer.push(new WriteReq(chunk, encoding, cb));\n else\n doWrite(stream, state, len, chunk, encoding, cb);\n\n return ret;\n}\n\nfunction doWrite(stream, state, len, chunk, encoding, cb) {\n state.writelen = len;\n state.writecb = cb;\n state.writing = true;\n state.sync = true;\n stream._write(chunk, encoding, state.onwrite);\n state.sync = false;\n}\n\nfunction onwriteError(stream, state, sync, er, cb) {\n if (sync)\n process.nextTick(function() {\n cb(er);\n });\n else\n cb(er);\n\n stream._writableState.errorEmitted = true;\n stream.emit('error', er);\n}\n\nfunction onwriteStateUpdate(state) {\n state.writing = false;\n state.writecb = null;\n state.length -= state.writelen;\n state.writelen = 0;\n}\n\nfunction onwrite(stream, er) {\n var state = stream._writableState;\n var sync = state.sync;\n var cb = state.writecb;\n\n onwriteStateUpdate(state);\n\n if (er)\n onwriteError(stream, state, sync, er, cb);\n else {\n // Check if we're actually ready to finish, but don't emit yet\n var finished = needFinish(stream, state);\n\n if (!finished && !state.bufferProcessing && state.buffer.length)\n clearBuffer(stream, state);\n\n if (sync) {\n process.nextTick(function() {\n afterWrite(stream, state, finished, cb);\n });\n } else {\n afterWrite(stream, state, finished, cb);\n }\n }\n}\n\nfunction afterWrite(stream, state, finished, cb) {\n if (!finished)\n onwriteDrain(stream, state);\n cb();\n if (finished)\n finishMaybe(stream, state);\n}\n\n// Must force callback to be called on nextTick, so that we don't\n// emit 'drain' before the write() consumer gets the 'false' return\n// value, and has a chance to attach a 'drain' listener.\nfunction onwriteDrain(stream, state) {\n if (state.length === 0 && state.needDrain) {\n state.needDrain = false;\n stream.emit('drain');\n }\n}\n\n\n// if there's something in the buffer waiting, then process it\nfunction clearBuffer(stream, state) {\n state.bufferProcessing = true;\n\n for (var c = 0; c < state.buffer.length; c++) {\n var entry = state.buffer[c];\n var chunk = entry.chunk;\n var encoding = entry.encoding;\n var cb = entry.callback;\n var len = state.objectMode ? 1 : chunk.length;\n\n doWrite(stream, state, len, chunk, encoding, cb);\n\n // if we didn't call the onwrite immediately, then\n // it means that we need to wait until it does.\n // also, that means that the chunk and cb are currently\n // being processed, so move the buffer counter past them.\n if (state.writing) {\n c++;\n break;\n }\n }\n\n state.bufferProcessing = false;\n if (c < state.buffer.length)\n state.buffer = state.buffer.slice(c);\n else\n state.buffer.length = 0;\n}\n\nWritable.prototype._write = function(chunk, encoding, cb) {\n cb(new Error('not implemented'));\n};\n\nWritable.prototype.end = function(chunk, encoding, cb) {\n var state = this._writableState;\n\n if (typeof chunk === 'function') {\n cb = chunk;\n chunk = null;\n encoding = null;\n } else if (typeof encoding === 'function') {\n cb = encoding;\n encoding = null;\n }\n\n if (typeof chunk !== 'undefined' && chunk !== null)\n this.write(chunk, encoding);\n\n // ignore unnecessary end() calls.\n if (!state.ending && !state.finished)\n endWritable(this, state, cb);\n};\n\n\nfunction needFinish(stream, state) {\n return (state.ending &&\n state.length === 0 &&\n !state.finished &&\n !state.writing);\n}\n\nfunction finishMaybe(stream, state) {\n var need = needFinish(stream, state);\n if (need) {\n state.finished = true;\n stream.emit('finish');\n }\n return need;\n}\n\nfunction endWritable(stream, state, cb) {\n state.ending = true;\n finishMaybe(stream, state);\n if (cb) {\n if (state.finished)\n process.nextTick(cb);\n else\n stream.once('finish', cb);\n }\n state.ended = true;\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/through2/~/readable-stream/lib/_stream_writable.js\n ** module id = 194\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/through2/~/readable-stream/lib/_stream_writable.js?"); /***/ }, /* 195 */ /***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(global) {'use strict';\n\nvar Wreck = __webpack_require__(82);\nvar Qs = __webpack_require__(196);\nvar ndjson = __webpack_require__(170);\nvar getFilesStream = __webpack_require__(200);\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'] === 'application/json';\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 (typeof buffer === 'function') {\n cb = buffer;\n buffer = false;\n }\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 requestAPI.bind(null, config);\n};\n/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/request-api.js\n ** module id = 195\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./src/request-api.js?"); + eval("/*\nCopyright (c) 2014, Matteo Collina \n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted, provided that the above\ncopyright notice and this permission notice appear in all copies.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\nWITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\nMERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\nANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\nWHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\nACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR\nIN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n*/\n\n'use strict';\n\nvar through = __webpack_require__(189)\n\nfunction transform(chunk, enc, cb) {\n var list = chunk.toString('utf8').split(this.matcher)\n , remaining = list.pop()\n , i\n\n if (list.length >= 1) {\n push(this, this.mapper((this._last + list.shift())))\n } else {\n remaining = this._last + remaining\n }\n\n for (i = 0; i < list.length; i++) {\n push(this, this.mapper(list[i]))\n }\n\n this._last = remaining\n\n cb()\n}\n\nfunction flush(cb) {\n if (this._last)\n push(this, this.mapper(this._last))\n\n cb()\n}\n\nfunction push(self, val) {\n if (val !== undefined)\n self.push(val)\n}\n\nfunction noop(incoming) {\n return incoming\n}\n\nfunction split(matcher, mapper, options) {\n\n if (typeof matcher === 'object' && !(matcher instanceof RegExp)) {\n options = matcher\n matcher = null\n }\n\n if (typeof matcher === 'function') {\n mapper = matcher\n matcher = null\n }\n\n options = options || {}\n\n var stream = through(options, transform, flush)\n\n // this stream is in objectMode only in the readable part\n stream._readableState.objectMode = true;\n\n stream._last = ''\n stream.matcher = matcher || /\\r?\\n/\n stream.mapper = mapper || noop\n\n return stream\n}\n\nmodule.exports = split\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/split2/index.js\n ** module id = 195\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/split2/index.js?"); /***/ }, /* 196 */ /***/ function(module, exports, __webpack_require__) { - eval("'use strict';\n\nvar Stringify = __webpack_require__(197);\nvar Parse = __webpack_require__(199);\n\nmodule.exports = {\n stringify: Stringify,\n parse: Parse\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/qs/lib/index.js\n ** module id = 196\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/qs/lib/index.js?"); + eval("'use strict';\n\nvar argCommand = __webpack_require__(160).argCommand;\n\nmodule.exports = function (send) {\n return argCommand(send, 'ls');\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/api/ls.js\n ** module id = 196\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./src/api/ls.js?"); /***/ }, /* 197 */ -/***/ function(module, exports, __webpack_require__) { +/***/ function(module, exports) { - eval("'use strict';\n\nvar _typeof2 = __webpack_require__(20);\n\nvar _typeof3 = _interopRequireDefault(_typeof2);\n\nvar _keys = __webpack_require__(76);\n\nvar _keys2 = _interopRequireDefault(_keys);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar Utils = __webpack_require__(198);\n\nvar internals = {\n delimiter: '&',\n arrayPrefixGenerators: {\n brackets: function brackets(prefix) {\n return prefix + '[]';\n },\n indices: function indices(prefix, key) {\n return prefix + '[' + key + ']';\n },\n repeat: function repeat(prefix) {\n return prefix;\n }\n },\n strictNullHandling: false,\n skipNulls: false,\n encode: true\n};\n\ninternals.stringify = function (object, prefix, generateArrayPrefix, strictNullHandling, skipNulls, encode, filter, sort) {\n var obj = object;\n if (typeof filter === 'function') {\n obj = filter(prefix, obj);\n } else if (Utils.isBuffer(obj)) {\n obj = String(obj);\n } else if (obj instanceof Date) {\n obj = obj.toISOString();\n } else if (obj === null) {\n if (strictNullHandling) {\n return encode ? Utils.encode(prefix) : prefix;\n }\n\n obj = '';\n }\n\n if (typeof obj === 'string' || typeof obj === 'number' || typeof obj === 'boolean') {\n if (encode) {\n return [Utils.encode(prefix) + '=' + Utils.encode(obj)];\n }\n return [prefix + '=' + obj];\n }\n\n var values = [];\n\n if (typeof obj === 'undefined') {\n return values;\n }\n\n var objKeys;\n if (Array.isArray(filter)) {\n objKeys = filter;\n } else {\n var keys = (0, _keys2.default)(obj);\n objKeys = sort ? keys.sort(sort) : keys;\n }\n\n for (var i = 0; i < objKeys.length; ++i) {\n var key = objKeys[i];\n\n if (skipNulls && obj[key] === null) {\n continue;\n }\n\n if (Array.isArray(obj)) {\n values = values.concat(internals.stringify(obj[key], generateArrayPrefix(prefix, key), generateArrayPrefix, strictNullHandling, skipNulls, encode, filter));\n } else {\n values = values.concat(internals.stringify(obj[key], prefix + '[' + key + ']', generateArrayPrefix, strictNullHandling, skipNulls, encode, filter));\n }\n }\n\n return values;\n};\n\nmodule.exports = function (object, opts) {\n var obj = object;\n var options = opts || {};\n var delimiter = typeof options.delimiter === 'undefined' ? internals.delimiter : options.delimiter;\n var strictNullHandling = typeof options.strictNullHandling === 'boolean' ? options.strictNullHandling : internals.strictNullHandling;\n var skipNulls = typeof options.skipNulls === 'boolean' ? options.skipNulls : internals.skipNulls;\n var encode = typeof options.encode === 'boolean' ? options.encode : internals.encode;\n var sort = typeof options.sort === 'function' ? options.sort : null;\n var objKeys;\n var filter;\n if (typeof options.filter === 'function') {\n filter = options.filter;\n obj = filter('', obj);\n } else if (Array.isArray(options.filter)) {\n objKeys = filter = options.filter;\n }\n\n var keys = [];\n\n if ((typeof obj === 'undefined' ? 'undefined' : (0, _typeof3.default)(obj)) !== 'object' || obj === null) {\n return '';\n }\n\n var arrayFormat;\n if (options.arrayFormat in internals.arrayPrefixGenerators) {\n arrayFormat = options.arrayFormat;\n } else if ('indices' in options) {\n arrayFormat = options.indices ? 'indices' : 'repeat';\n } else {\n arrayFormat = 'indices';\n }\n\n var generateArrayPrefix = internals.arrayPrefixGenerators[arrayFormat];\n\n if (!objKeys) {\n objKeys = (0, _keys2.default)(obj);\n }\n\n if (sort) {\n objKeys.sort(sort);\n }\n\n for (var i = 0; i < objKeys.length; ++i) {\n var key = objKeys[i];\n\n if (skipNulls && obj[key] === null) {\n continue;\n }\n\n keys = keys.concat(internals.stringify(obj[key], key, generateArrayPrefix, strictNullHandling, skipNulls, encode, filter, sort));\n }\n\n return keys.join(delimiter);\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/qs/lib/stringify.js\n ** module id = 197\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/qs/lib/stringify.js?"); + eval("'use strict';\n\nmodule.exports = function (send) {\n return function mount(ipfs, ipns, cb) {\n if (typeof ipfs === 'function') {\n cb = ipfs;\n ipfs = null;\n } else if (typeof ipns === 'function') {\n cb = ipns;\n ipns = null;\n }\n var opts = {};\n if (ipfs) opts.f = ipfs;\n if (ipns) opts.n = ipns;\n return send('mount', null, opts, null, cb);\n };\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/api/mount.js\n ** module id = 197\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./src/api/mount.js?"); /***/ }, /* 198 */ /***/ function(module, exports, __webpack_require__) { - eval("'use strict';\n\nvar _keys = __webpack_require__(76);\n\nvar _keys2 = _interopRequireDefault(_keys);\n\nvar _typeof2 = __webpack_require__(20);\n\nvar _typeof3 = _interopRequireDefault(_typeof2);\n\nvar _create = __webpack_require__(128);\n\nvar _create2 = _interopRequireDefault(_create);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar hexTable = function () {\n var array = new Array(256);\n for (var i = 0; i < 256; ++i) {\n array[i] = '%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase();\n }\n\n return array;\n}();\n\nexports.arrayToObject = function (source, options) {\n var obj = options.plainObjects ? (0, _create2.default)(null) : {};\n for (var i = 0; i < source.length; ++i) {\n if (typeof source[i] !== 'undefined') {\n obj[i] = source[i];\n }\n }\n\n return obj;\n};\n\nexports.merge = function (target, source, options) {\n if (!source) {\n return target;\n }\n\n if ((typeof source === 'undefined' ? 'undefined' : (0, _typeof3.default)(source)) !== 'object') {\n if (Array.isArray(target)) {\n target.push(source);\n } else if ((typeof target === 'undefined' ? 'undefined' : (0, _typeof3.default)(target)) === 'object') {\n target[source] = true;\n } else {\n return [target, source];\n }\n\n return target;\n }\n\n if ((typeof target === 'undefined' ? 'undefined' : (0, _typeof3.default)(target)) !== 'object') {\n return [target].concat(source);\n }\n\n var mergeTarget = target;\n if (Array.isArray(target) && !Array.isArray(source)) {\n mergeTarget = exports.arrayToObject(target, options);\n }\n\n return (0, _keys2.default)(source).reduce(function (acc, key) {\n var value = source[key];\n\n if (Object.prototype.hasOwnProperty.call(acc, key)) {\n acc[key] = exports.merge(acc[key], value, options);\n } else {\n acc[key] = value;\n }\n return acc;\n }, mergeTarget);\n};\n\nexports.decode = function (str) {\n try {\n return decodeURIComponent(str.replace(/\\+/g, ' '));\n } catch (e) {\n return str;\n }\n};\n\nexports.encode = function (str) {\n // This code was originally written by Brian White (mscdex) for the io.js core querystring library.\n // It has been adapted here for stricter adherence to RFC 3986\n if (str.length === 0) {\n return str;\n }\n\n var string = typeof str === 'string' ? str : String(str);\n\n var out = '';\n for (var i = 0; i < string.length; ++i) {\n var c = string.charCodeAt(i);\n\n if (c === 0x2D || // -\n c === 0x2E || // .\n c === 0x5F || // _\n c === 0x7E || // ~\n c >= 0x30 && c <= 0x39 || // 0-9\n c >= 0x41 && c <= 0x5A || // a-z\n c >= 0x61 && c <= 0x7A // A-Z\n ) {\n out += string.charAt(i);\n continue;\n }\n\n if (c < 0x80) {\n out = out + hexTable[c];\n continue;\n }\n\n if (c < 0x800) {\n out = out + (hexTable[0xC0 | c >> 6] + hexTable[0x80 | c & 0x3F]);\n continue;\n }\n\n if (c < 0xD800 || c >= 0xE000) {\n out = out + (hexTable[0xE0 | c >> 12] + hexTable[0x80 | c >> 6 & 0x3F] + hexTable[0x80 | c & 0x3F]);\n continue;\n }\n\n i += 1;\n c = 0x10000 + ((c & 0x3FF) << 10 | string.charCodeAt(i) & 0x3FF);\n out += hexTable[0xF0 | c >> 18] + hexTable[0x80 | c >> 12 & 0x3F] + hexTable[0x80 | c >> 6 & 0x3F] + hexTable[0x80 | c & 0x3F];\n }\n\n return out;\n};\n\nexports.compact = function (obj, references) {\n if ((typeof obj === 'undefined' ? 'undefined' : (0, _typeof3.default)(obj)) !== 'object' || obj === null) {\n return obj;\n }\n\n var refs = references || [];\n var lookup = refs.indexOf(obj);\n if (lookup !== -1) {\n return refs[lookup];\n }\n\n refs.push(obj);\n\n if (Array.isArray(obj)) {\n var compacted = [];\n\n for (var i = 0; i < obj.length; ++i) {\n if (typeof obj[i] !== 'undefined') {\n compacted.push(obj[i]);\n }\n }\n\n return compacted;\n }\n\n var keys = (0, _keys2.default)(obj);\n for (var j = 0; j < keys.length; ++j) {\n var key = keys[j];\n obj[key] = exports.compact(obj[key], refs);\n }\n\n return obj;\n};\n\nexports.isRegExp = function (obj) {\n return Object.prototype.toString.call(obj) === '[object RegExp]';\n};\n\nexports.isBuffer = function (obj) {\n if (obj === null || typeof obj === 'undefined') {\n return false;\n }\n\n return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/qs/lib/utils.js\n ** module id = 198\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/qs/lib/utils.js?"); + eval("'use strict';\n\nvar argCommand = __webpack_require__(160).argCommand;\n\nmodule.exports = function (send) {\n return {\n publish: argCommand(send, 'name/publish'),\n resolve: argCommand(send, 'name/resolve')\n };\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/api/name.js\n ** module id = 198\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./src/api/name.js?"); /***/ }, /* 199 */ /***/ function(module, exports, __webpack_require__) { - eval("'use strict';\n\nvar _keys = __webpack_require__(76);\n\nvar _keys2 = _interopRequireDefault(_keys);\n\nvar _create = __webpack_require__(128);\n\nvar _create2 = _interopRequireDefault(_create);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar Utils = __webpack_require__(198);\n\nvar internals = {\n delimiter: '&',\n depth: 5,\n arrayLimit: 20,\n parameterLimit: 1000,\n strictNullHandling: false,\n plainObjects: false,\n allowPrototypes: false,\n allowDots: false\n};\n\ninternals.parseValues = function (str, options) {\n var obj = {};\n var parts = str.split(options.delimiter, options.parameterLimit === Infinity ? undefined : options.parameterLimit);\n\n for (var i = 0; i < parts.length; ++i) {\n var part = parts[i];\n var pos = part.indexOf(']=') === -1 ? part.indexOf('=') : part.indexOf(']=') + 1;\n\n if (pos === -1) {\n obj[Utils.decode(part)] = '';\n\n if (options.strictNullHandling) {\n obj[Utils.decode(part)] = null;\n }\n } else {\n var key = Utils.decode(part.slice(0, pos));\n var val = Utils.decode(part.slice(pos + 1));\n\n if (Object.prototype.hasOwnProperty.call(obj, key)) {\n obj[key] = [].concat(obj[key]).concat(val);\n } else {\n obj[key] = val;\n }\n }\n }\n\n return obj;\n};\n\ninternals.parseObject = function (chain, val, options) {\n if (!chain.length) {\n return val;\n }\n\n var root = chain.shift();\n\n var obj;\n if (root === '[]') {\n obj = [];\n obj = obj.concat(internals.parseObject(chain, val, options));\n } else {\n obj = options.plainObjects ? (0, _create2.default)(null) : {};\n var cleanRoot = root[0] === '[' && root[root.length - 1] === ']' ? root.slice(1, root.length - 1) : root;\n var index = parseInt(cleanRoot, 10);\n if (!isNaN(index) && root !== cleanRoot && String(index) === cleanRoot && index >= 0 && options.parseArrays && index <= options.arrayLimit) {\n obj = [];\n obj[index] = internals.parseObject(chain, val, options);\n } else {\n obj[cleanRoot] = internals.parseObject(chain, val, options);\n }\n }\n\n return obj;\n};\n\ninternals.parseKeys = function (givenKey, val, options) {\n if (!givenKey) {\n return;\n }\n\n // Transform dot notation to bracket notation\n var key = options.allowDots ? givenKey.replace(/\\.([^\\.\\[]+)/g, '[$1]') : givenKey;\n\n // The regex chunks\n\n var parent = /^([^\\[\\]]*)/;\n var child = /(\\[[^\\[\\]]*\\])/g;\n\n // Get the parent\n\n var segment = parent.exec(key);\n\n // Stash the parent if it exists\n\n var keys = [];\n if (segment[1]) {\n // If we aren't using plain objects, optionally prefix keys\n // that would overwrite object prototype properties\n if (!options.plainObjects && Object.prototype.hasOwnProperty(segment[1])) {\n if (!options.allowPrototypes) {\n return;\n }\n }\n\n keys.push(segment[1]);\n }\n\n // Loop through children appending to the array until we hit depth\n\n var i = 0;\n while ((segment = child.exec(key)) !== null && i < options.depth) {\n i += 1;\n if (!options.plainObjects && Object.prototype.hasOwnProperty(segment[1].replace(/\\[|\\]/g, ''))) {\n if (!options.allowPrototypes) {\n continue;\n }\n }\n keys.push(segment[1]);\n }\n\n // If there's a remainder, just add whatever is left\n\n if (segment) {\n keys.push('[' + key.slice(segment.index) + ']');\n }\n\n return internals.parseObject(keys, val, options);\n};\n\nmodule.exports = function (str, opts) {\n var options = opts || {};\n options.delimiter = typeof options.delimiter === 'string' || Utils.isRegExp(options.delimiter) ? options.delimiter : internals.delimiter;\n options.depth = typeof options.depth === 'number' ? options.depth : internals.depth;\n options.arrayLimit = typeof options.arrayLimit === 'number' ? options.arrayLimit : internals.arrayLimit;\n options.parseArrays = options.parseArrays !== false;\n options.allowDots = typeof options.allowDots === 'boolean' ? options.allowDots : internals.allowDots;\n options.plainObjects = typeof options.plainObjects === 'boolean' ? options.plainObjects : internals.plainObjects;\n options.allowPrototypes = typeof options.allowPrototypes === 'boolean' ? options.allowPrototypes : internals.allowPrototypes;\n options.parameterLimit = typeof options.parameterLimit === 'number' ? options.parameterLimit : internals.parameterLimit;\n options.strictNullHandling = typeof options.strictNullHandling === 'boolean' ? options.strictNullHandling : internals.strictNullHandling;\n\n if (str === '' || str === null || typeof str === 'undefined') {\n return options.plainObjects ? (0, _create2.default)(null) : {};\n }\n\n var tempObj = typeof str === 'string' ? internals.parseValues(str, options) : str;\n var obj = options.plainObjects ? (0, _create2.default)(null) : {};\n\n // Iterate over the keys and setup the new object\n\n var keys = (0, _keys2.default)(tempObj);\n for (var i = 0; i < keys.length; ++i) {\n var key = keys[i];\n var newObj = internals.parseKeys(key, tempObj[key], options);\n obj = Utils.merge(obj, newObj, options);\n }\n\n return Utils.compact(obj);\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/qs/lib/parse.js\n ** module id = 199\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/qs/lib/parse.js?"); + eval("'use strict';\n\nvar argCommand = __webpack_require__(160).argCommand;\n\nmodule.exports = function (send) {\n return {\n get: argCommand(send, 'object/get'),\n put: function put(file, encoding, cb) {\n if (typeof encoding === 'function') {\n return cb(null, new Error(\"Must specify an object encoding ('json' or 'protobuf')\"));\n }\n return send('object/put', encoding, null, file, cb);\n },\n\n data: argCommand(send, 'object/data'),\n links: argCommand(send, 'object/links'),\n stat: argCommand(send, 'object/stat'),\n new: argCommand(send, 'object/new'),\n patch: function patch(file, opts, cb) {\n return send('object/patch', [file].concat(opts), null, null, cb);\n }\n };\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/api/object.js\n ** module id = 199\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./src/api/object.js?"); /***/ }, /* 200 */ -/***/ function(module, exports, __webpack_require__) { +/***/ function(module, exports) { - eval("/* WEBPACK VAR INJECTION */(function(Buffer) {'use strict';\n\nvar File = __webpack_require__(201);\nvar vinylfs = __webpack_require__(210);\nvar vmps = __webpack_require__(388);\nvar stream = __webpack_require__(96);\nvar Merge = __webpack_require__(344);\n\nexports = module.exports = getFilesStream;\n\nfunction getFilesStream(files, opts) {\n if (!files) return null;\n\n // merge all inputs into one stream\n var adder = new Merge();\n\n // single stream for pushing directly\n var single = new stream.PassThrough({ objectMode: true });\n adder.add(single);\n\n for (var i = 0; i < files.length; i++) {\n var file = files[i];\n\n if (typeof file === 'string') {\n var srcOpts = {\n buffer: false,\n stripBOM: false,\n followSymlinks: opts.followSymlinks != null ? opts.followSymlinks : true\n };\n\n // add the file or dir itself\n adder.add(vinylfs.src(file, srcOpts));\n\n // if recursive, glob the contents\n if (opts.recursive) {\n adder.add(vinylfs.src(file + '/**/*', srcOpts));\n }\n } else {\n // try to create a single vinyl file, and push it.\n // throws if cannot use the file.\n single.push(vinylFile(file));\n }\n }\n\n single.end();\n return adder.pipe(vmps());\n}\n\n// vinylFile tries to cast a file object to a vinyl file.\n// it's agressive. If it _cannot_ be converted to a file,\n// it returns null.\nfunction vinylFile(file) {\n if (file instanceof File) {\n return file; // it's a vinyl file.\n }\n\n // let's try to make a vinyl file?\n var f = { cwd: '/', base: '/', path: '' };\n if (file.contents && file.path) {\n // set the cwd + base, if there.\n f.path = file.path;\n f.cwd = file.cwd || f.cwd;\n f.base = file.base || f.base;\n f.contents = file.contents;\n } else {\n // ok maybe we just have contents?\n f.contents = file;\n }\n\n // ensure the contents are safe to pass.\n // throws if vinyl cannot use the contents\n f.contents = vinylContentsSafe(f.contents);\n return new File(f);\n}\n\nfunction vinylContentsSafe(c) {\n if (Buffer.isBuffer(c)) return c;\n if (typeof c === 'string') return c;\n if (c instanceof stream.Stream) return c;\n if (typeof c.pipe === 'function') {\n // hey, looks like a stream. but vinyl won't detect it.\n // pipe it to a PassThrough, and use that\n var s = new stream.PassThrough();\n return c.pipe(s);\n }\n\n throw new Error('vinyl will not accept: ' + c);\n}\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1).Buffer))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/get-files-stream.js\n ** module id = 200\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./src/get-files-stream.js?"); + eval("'use strict';\n\nmodule.exports = function (send) {\n return {\n add: function add(hash, opts, cb) {\n if (typeof opts === 'function') {\n cb = opts;\n opts = null;\n }\n\n return send('pin/add', hash, opts, null, cb);\n },\n remove: function remove(hash, opts, cb) {\n if (typeof opts === 'function') {\n cb = opts;\n opts = null;\n }\n\n return send('pin/rm', hash, opts, null, cb);\n },\n list: function list(type, cb) {\n if (typeof type === 'function') {\n cb = type;\n type = null;\n }\n var opts = null;\n if (type) opts = { type: type };\n return send('pin/ls', null, opts, null, cb);\n }\n };\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/api/pin.js\n ** module id = 200\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./src/api/pin.js?"); /***/ }, /* 201 */ /***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(process) {var path = __webpack_require__(151);\nvar clone = __webpack_require__(202);\nvar cloneStats = __webpack_require__(203);\nvar cloneBuffer = __webpack_require__(204);\nvar isBuffer = __webpack_require__(205);\nvar isStream = __webpack_require__(206);\nvar isNull = __webpack_require__(207);\nvar inspectStream = __webpack_require__(208);\nvar Stream = __webpack_require__(96);\nvar replaceExt = __webpack_require__(209);\n\nfunction File(file) {\n if (!file) {\n file = {};\n }\n\n // Record path change\n var history = file.path ? [file.path] : file.history;\n this.history = history || [];\n\n this.cwd = file.cwd || process.cwd();\n this.base = file.base || this.cwd;\n\n // Stat = files stats object\n this.stat = file.stat || null;\n\n // Contents = stream, buffer, or null if not read\n this.contents = file.contents || null;\n\n this._isVinyl = true;\n}\n\nFile.prototype.isBuffer = function() {\n return isBuffer(this.contents);\n};\n\nFile.prototype.isStream = function() {\n return isStream(this.contents);\n};\n\nFile.prototype.isNull = function() {\n return isNull(this.contents);\n};\n\n// TODO: Should this be moved to vinyl-fs?\nFile.prototype.isDirectory = function() {\n return this.isNull() && this.stat && this.stat.isDirectory();\n};\n\nFile.prototype.clone = function(opt) {\n if (typeof opt === 'boolean') {\n opt = {\n deep: opt,\n contents: true,\n };\n } else if (!opt) {\n opt = {\n deep: true,\n contents: true,\n };\n } else {\n opt.deep = opt.deep === true;\n opt.contents = opt.contents !== false;\n }\n\n // Clone our file contents\n var contents;\n if (this.isStream()) {\n contents = this.contents.pipe(new Stream.PassThrough());\n this.contents = this.contents.pipe(new Stream.PassThrough());\n } else if (this.isBuffer()) {\n contents = opt.contents ? cloneBuffer(this.contents) : this.contents;\n }\n\n var file = new File({\n cwd: this.cwd,\n base: this.base,\n stat: (this.stat ? cloneStats(this.stat) : null),\n history: this.history.slice(),\n contents: contents,\n });\n\n // Clone our custom properties\n Object.keys(this).forEach(function(key) {\n // Ignore built-in fields\n if (key === '_contents' || key === 'stat' ||\n key === 'history' || key === 'path' ||\n key === 'base' || key === 'cwd') {\n return;\n }\n file[key] = opt.deep ? clone(this[key], true) : this[key];\n }, this);\n return file;\n};\n\nFile.prototype.pipe = function(stream, opt) {\n if (!opt) {\n opt = {};\n }\n if (typeof opt.end === 'undefined') {\n opt.end = true;\n }\n\n if (this.isStream()) {\n return this.contents.pipe(stream, opt);\n }\n if (this.isBuffer()) {\n if (opt.end) {\n stream.end(this.contents);\n } else {\n stream.write(this.contents);\n }\n return stream;\n }\n\n // Check if isNull\n if (opt.end) {\n stream.end();\n }\n return stream;\n};\n\nFile.prototype.inspect = function() {\n var inspect = [];\n\n // Use relative path if possible\n var filePath = (this.base && this.path) ? this.relative : this.path;\n\n if (filePath) {\n inspect.push('\"' + filePath + '\"');\n }\n\n if (this.isBuffer()) {\n inspect.push(this.contents.inspect());\n }\n\n if (this.isStream()) {\n inspect.push(inspectStream(this.contents));\n }\n\n return '';\n};\n\nFile.isVinyl = function(file) {\n return (file && file._isVinyl === true) || false;\n};\n\n// Virtual attributes\n// Or stuff with extra logic\nObject.defineProperty(File.prototype, 'contents', {\n get: function() {\n return this._contents;\n },\n set: function(val) {\n if (!isBuffer(val) && !isStream(val) && !isNull(val)) {\n throw new Error('File.contents can only be a Buffer, a Stream, or null.');\n }\n this._contents = val;\n },\n});\n\n// TODO: Should this be moved to vinyl-fs?\nObject.defineProperty(File.prototype, 'relative', {\n get: function() {\n if (!this.base) {\n throw new Error('No base specified! Can not get relative.');\n }\n if (!this.path) {\n throw new Error('No path specified! Can not get relative.');\n }\n return path.relative(this.base, this.path);\n },\n set: function() {\n throw new Error('File.relative is generated from the base and path attributes. Do not modify it.');\n },\n});\n\nObject.defineProperty(File.prototype, 'dirname', {\n get: function() {\n if (!this.path) {\n throw new Error('No path specified! Can not get dirname.');\n }\n return path.dirname(this.path);\n },\n set: function(dirname) {\n if (!this.path) {\n throw new Error('No path specified! Can not set dirname.');\n }\n this.path = path.join(dirname, path.basename(this.path));\n },\n});\n\nObject.defineProperty(File.prototype, 'basename', {\n get: function() {\n if (!this.path) {\n throw new Error('No path specified! Can not get basename.');\n }\n return path.basename(this.path);\n },\n set: function(basename) {\n if (!this.path) {\n throw new Error('No path specified! Can not set basename.');\n }\n this.path = path.join(path.dirname(this.path), basename);\n },\n});\n\n// Property for getting/setting stem of the filename.\nObject.defineProperty(File.prototype, 'stem', {\n get: function() {\n if (!this.path) {\n throw new Error('No path specified! Can not get stem.');\n }\n return path.basename(this.path, this.extname);\n },\n set: function(stem) {\n if (!this.path) {\n throw new Error('No PassThrough specified! Can not set stem.');\n }\n this.path = path.join(path.dirname(this.path), stem + this.extname);\n },\n});\n\nObject.defineProperty(File.prototype, 'extname', {\n get: function() {\n if (!this.path) {\n throw new Error('No path specified! Can not get extname.');\n }\n return path.extname(this.path);\n },\n set: function(extname) {\n if (!this.path) {\n throw new Error('No path specified! Can not set extname.');\n }\n this.path = replaceExt(this.path, extname);\n },\n});\n\nObject.defineProperty(File.prototype, 'path', {\n get: function() {\n return this.history[this.history.length - 1];\n },\n set: function(path) {\n if (typeof path !== 'string') {\n throw new Error('path should be string');\n }\n\n // Record history only when path changed\n if (path && path !== this.path) {\n this.history.push(path);\n }\n },\n});\n\nmodule.exports = File;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(83)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl/index.js\n ** module id = 201\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl/index.js?"); + eval("'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\nmodule.exports = function (send) {\n return function ping(id, cb) {\n if (typeof cb !== 'function' && typeof _promise2.default !== 'undefined') {\n return send('ping', id, { n: 1 }, null).then(function (res) {\n return res[1];\n });\n }\n\n return send('ping', id, { n: 1 }, null, function (err, res) {\n if (err) return cb(err, null);\n cb(null, res[1]);\n });\n };\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/api/ping.js\n ** module id = 201\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./src/api/ping.js?"); /***/ }, /* 202 */ /***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(Buffer) {var clone = (function() {\n'use strict';\n\n/**\n * Clones (copies) an Object using deep copying.\n *\n * This function supports circular references by default, but if you are certain\n * there are no circular references in your object, you can save some CPU time\n * by calling clone(obj, false).\n *\n * Caution: if `circular` is false and `parent` contains circular references,\n * your program may enter an infinite loop and crash.\n *\n * @param `parent` - the object to be cloned\n * @param `circular` - set to true if the object to be cloned may contain\n * circular references. (optional - true by default)\n * @param `depth` - set to a number if the object is only to be cloned to\n * a particular depth. (optional - defaults to Infinity)\n * @param `prototype` - sets the prototype to be used when cloning an object.\n * (optional - defaults to parent prototype).\n*/\nfunction clone(parent, circular, depth, prototype) {\n var filter;\n if (typeof circular === 'object') {\n depth = circular.depth;\n prototype = circular.prototype;\n filter = circular.filter;\n circular = circular.circular\n }\n // maintain two arrays for circular references, where corresponding parents\n // and children have the same index\n var allParents = [];\n var allChildren = [];\n\n var useBuffer = typeof Buffer != 'undefined';\n\n if (typeof circular == 'undefined')\n circular = true;\n\n if (typeof depth == 'undefined')\n depth = Infinity;\n\n // recurse this function so we don't reset allParents and allChildren\n function _clone(parent, depth) {\n // cloning null always returns null\n if (parent === null)\n return null;\n\n if (depth == 0)\n return parent;\n\n var child;\n var proto;\n if (typeof parent != 'object') {\n return parent;\n }\n\n if (clone.__isArray(parent)) {\n child = [];\n } else if (clone.__isRegExp(parent)) {\n child = new RegExp(parent.source, __getRegExpFlags(parent));\n if (parent.lastIndex) child.lastIndex = parent.lastIndex;\n } else if (clone.__isDate(parent)) {\n child = new Date(parent.getTime());\n } else if (useBuffer && Buffer.isBuffer(parent)) {\n child = new Buffer(parent.length);\n parent.copy(child);\n return child;\n } else {\n if (typeof prototype == 'undefined') {\n proto = Object.getPrototypeOf(parent);\n child = Object.create(proto);\n }\n else {\n child = Object.create(prototype);\n proto = prototype;\n }\n }\n\n if (circular) {\n var index = allParents.indexOf(parent);\n\n if (index != -1) {\n return allChildren[index];\n }\n allParents.push(parent);\n allChildren.push(child);\n }\n\n for (var i in parent) {\n var attrs;\n if (proto) {\n attrs = Object.getOwnPropertyDescriptor(proto, i);\n }\n\n if (attrs && attrs.set == null) {\n continue;\n }\n child[i] = _clone(parent[i], depth - 1);\n }\n\n return child;\n }\n\n return _clone(parent, depth);\n}\n\n/**\n * Simple flat clone using prototype, accepts only objects, usefull for property\n * override on FLAT configuration object (no nested props).\n *\n * USE WITH CAUTION! This may not behave as you wish if you do not know how this\n * works.\n */\nclone.clonePrototype = function clonePrototype(parent) {\n if (parent === null)\n return null;\n\n var c = function () {};\n c.prototype = parent;\n return new c();\n};\n\n// private utility functions\n\nfunction __objToStr(o) {\n return Object.prototype.toString.call(o);\n};\nclone.__objToStr = __objToStr;\n\nfunction __isDate(o) {\n return typeof o === 'object' && __objToStr(o) === '[object Date]';\n};\nclone.__isDate = __isDate;\n\nfunction __isArray(o) {\n return typeof o === 'object' && __objToStr(o) === '[object Array]';\n};\nclone.__isArray = __isArray;\n\nfunction __isRegExp(o) {\n return typeof o === 'object' && __objToStr(o) === '[object RegExp]';\n};\nclone.__isRegExp = __isRegExp;\n\nfunction __getRegExpFlags(re) {\n var flags = '';\n if (re.global) flags += 'g';\n if (re.ignoreCase) flags += 'i';\n if (re.multiline) flags += 'm';\n return flags;\n};\nclone.__getRegExpFlags = __getRegExpFlags;\n\nreturn clone;\n})();\n\nif (typeof module === 'object' && module.exports) {\n module.exports = clone;\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1).Buffer))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl/~/clone/clone.js\n ** module id = 202\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl/~/clone/clone.js?"); + eval("'use strict';\n\nvar cmds = __webpack_require__(160);\n\nmodule.exports = function (send) {\n var refs = cmds.argCommand(send, 'refs');\n refs.local = cmds.command(send, 'refs/local');\n\n return refs;\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/api/refs.js\n ** module id = 202\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./src/api/refs.js?"); /***/ }, /* 203 */ /***/ function(module, exports, __webpack_require__) { - eval("var Stat = __webpack_require__(80).Stats\n\nmodule.exports = cloneStats\n\nfunction cloneStats(stats) {\n var replacement = new Stat\n\n Object.keys(stats).forEach(function(key) {\n replacement[key] = stats[key]\n })\n\n return replacement\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl/~/clone-stats/index.js\n ** module id = 203\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl/~/clone-stats/index.js?"); + eval("'use strict';\n\nvar cmds = __webpack_require__(160);\n\nmodule.exports = function (send) {\n return {\n peers: cmds.command(send, 'swarm/peers'),\n connect: cmds.argCommand(send, 'swarm/connect')\n };\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/api/swarm.js\n ** module id = 203\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./src/api/swarm.js?"); /***/ }, /* 204 */ /***/ function(module, exports, __webpack_require__) { - eval("var Buffer = __webpack_require__(1).Buffer;\n\nmodule.exports = function(buf) {\n var out = new Buffer(buf.length);\n buf.copy(out);\n return out;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl/lib/cloneBuffer.js\n ** module id = 204\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl/lib/cloneBuffer.js?"); + eval("'use strict';\n\nvar command = __webpack_require__(160).command;\n\nmodule.exports = function (send) {\n return {\n apply: command(send, 'update'),\n check: command(send, 'update/check'),\n log: command(send, 'update/log')\n };\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/api/update.js\n ** module id = 204\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./src/api/update.js?"); /***/ }, /* 205 */ /***/ function(module, exports, __webpack_require__) { - eval("module.exports = __webpack_require__(1).Buffer.isBuffer;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl/lib/isBuffer.js\n ** module id = 205\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl/lib/isBuffer.js?"); + eval("'use strict';\n\nvar command = __webpack_require__(160).command;\n\nmodule.exports = function (send) {\n return command(send, 'version');\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/api/version.js\n ** module id = 205\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./src/api/version.js?"); /***/ }, /* 206 */ /***/ function(module, exports, __webpack_require__) { - eval("var Stream = __webpack_require__(96).Stream;\n\nmodule.exports = function(o) {\n return !!o && o instanceof Stream;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl/lib/isStream.js\n ** module id = 206\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl/lib/isStream.js?"); + eval("'use strict';\n\nvar pkg = __webpack_require__(207);\n\nexports = module.exports = function () {\n return {\n 'api-path': '/api/v0/',\n 'user-agent': '/node-' + pkg.name + '/' + pkg.version + '/',\n 'host': 'localhost',\n 'port': '5001',\n 'protocol': 'http'\n };\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/config.js\n ** module id = 206\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./src/config.js?"); /***/ }, /* 207 */ /***/ function(module, exports) { - eval("module.exports = function(v) {\n return v === null;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl/lib/isNull.js\n ** module id = 207\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl/lib/isNull.js?"); + eval("module.exports = {\n\t\"name\": \"ipfs-api\",\n\t\"version\": \"2.11.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-beta6\",\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-config-standard\": \"^4.4.0\",\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\": \"^1.0.0\",\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?"); /***/ }, /* 208 */ /***/ function(module, exports, __webpack_require__) { - eval("var isStream = __webpack_require__(206);\n\nmodule.exports = function(stream) {\n if (!isStream(stream)) {\n return;\n }\n\n var streamType = stream.constructor.name;\n // Avoid StreamStream\n if (streamType === 'Stream') {\n streamType = '';\n }\n\n return '<' + streamType + 'Stream>';\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl/lib/inspectStream.js\n ** module id = 208\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl/lib/inspectStream.js?"); + 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'] === 'application/json';\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?"); /***/ }, /* 209 */ /***/ function(module, exports, __webpack_require__) { - eval("var path = __webpack_require__(151);\n\nmodule.exports = function(npath, ext) {\n if (typeof npath !== 'string') return npath;\n if (npath.length === 0) return npath;\n\n var nFileName = path.basename(npath, path.extname(npath))+ext;\n return path.join(path.dirname(npath), nFileName);\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl/~/replace-ext/index.js\n ** module id = 209\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl/~/replace-ext/index.js?"); + eval("'use strict';\n\nvar Stringify = __webpack_require__(210);\nvar Parse = __webpack_require__(212);\n\nmodule.exports = {\n stringify: Stringify,\n parse: Parse\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/qs/lib/index.js\n ** module id = 209\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/qs/lib/index.js?"); /***/ }, /* 210 */ /***/ function(module, exports, __webpack_require__) { - eval("'use strict';\n\nmodule.exports = {\n src: __webpack_require__(211),\n dest: __webpack_require__(379),\n symlink: __webpack_require__(387)\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/index.js\n ** module id = 210\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/index.js?"); + eval("'use strict';\n\nvar _typeof2 = __webpack_require__(20);\n\nvar _typeof3 = _interopRequireDefault(_typeof2);\n\nvar _keys = __webpack_require__(78);\n\nvar _keys2 = _interopRequireDefault(_keys);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar Utils = __webpack_require__(211);\n\nvar internals = {\n delimiter: '&',\n arrayPrefixGenerators: {\n brackets: function brackets(prefix) {\n return prefix + '[]';\n },\n indices: function indices(prefix, key) {\n return prefix + '[' + key + ']';\n },\n repeat: function repeat(prefix) {\n return prefix;\n }\n },\n strictNullHandling: false,\n skipNulls: false,\n encode: true\n};\n\ninternals.stringify = function (object, prefix, generateArrayPrefix, strictNullHandling, skipNulls, encode, filter, sort, allowDots) {\n var obj = object;\n if (typeof filter === 'function') {\n obj = filter(prefix, obj);\n } else if (Utils.isBuffer(obj)) {\n obj = String(obj);\n } else if (obj instanceof Date) {\n obj = obj.toISOString();\n } else if (obj === null) {\n if (strictNullHandling) {\n return encode ? Utils.encode(prefix) : prefix;\n }\n\n obj = '';\n }\n\n if (typeof obj === 'string' || typeof obj === 'number' || typeof obj === 'boolean') {\n if (encode) {\n return [Utils.encode(prefix) + '=' + Utils.encode(obj)];\n }\n return [prefix + '=' + obj];\n }\n\n var values = [];\n\n if (typeof obj === 'undefined') {\n return values;\n }\n\n var objKeys;\n if (Array.isArray(filter)) {\n objKeys = filter;\n } else {\n var keys = (0, _keys2.default)(obj);\n objKeys = sort ? keys.sort(sort) : keys;\n }\n\n for (var i = 0; i < objKeys.length; ++i) {\n var key = objKeys[i];\n\n if (skipNulls && obj[key] === null) {\n continue;\n }\n\n if (Array.isArray(obj)) {\n values = values.concat(internals.stringify(obj[key], generateArrayPrefix(prefix, key), generateArrayPrefix, strictNullHandling, skipNulls, encode, filter, sort, allowDots));\n } else {\n values = values.concat(internals.stringify(obj[key], prefix + (allowDots ? '.' + key : '[' + key + ']'), generateArrayPrefix, strictNullHandling, skipNulls, encode, filter, sort, allowDots));\n }\n }\n\n return values;\n};\n\nmodule.exports = function (object, opts) {\n var obj = object;\n var options = opts || {};\n var delimiter = typeof options.delimiter === 'undefined' ? internals.delimiter : options.delimiter;\n var strictNullHandling = typeof options.strictNullHandling === 'boolean' ? options.strictNullHandling : internals.strictNullHandling;\n var skipNulls = typeof options.skipNulls === 'boolean' ? options.skipNulls : internals.skipNulls;\n var encode = typeof options.encode === 'boolean' ? options.encode : internals.encode;\n var sort = typeof options.sort === 'function' ? options.sort : null;\n var allowDots = typeof options.allowDots === 'undefined' ? false : options.allowDots;\n var objKeys;\n var filter;\n if (typeof options.filter === 'function') {\n filter = options.filter;\n obj = filter('', obj);\n } else if (Array.isArray(options.filter)) {\n objKeys = filter = options.filter;\n }\n\n var keys = [];\n\n if ((typeof obj === 'undefined' ? 'undefined' : (0, _typeof3.default)(obj)) !== 'object' || obj === null) {\n return '';\n }\n\n var arrayFormat;\n if (options.arrayFormat in internals.arrayPrefixGenerators) {\n arrayFormat = options.arrayFormat;\n } else if ('indices' in options) {\n arrayFormat = options.indices ? 'indices' : 'repeat';\n } else {\n arrayFormat = 'indices';\n }\n\n var generateArrayPrefix = internals.arrayPrefixGenerators[arrayFormat];\n\n if (!objKeys) {\n objKeys = (0, _keys2.default)(obj);\n }\n\n if (sort) {\n objKeys.sort(sort);\n }\n\n for (var i = 0; i < objKeys.length; ++i) {\n var key = objKeys[i];\n\n if (skipNulls && obj[key] === null) {\n continue;\n }\n\n keys = keys.concat(internals.stringify(obj[key], key, generateArrayPrefix, strictNullHandling, skipNulls, encode, filter, sort, allowDots));\n }\n\n return keys.join(delimiter);\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/qs/lib/stringify.js\n ** module id = 210\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/qs/lib/stringify.js?"); /***/ }, /* 211 */ /***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(process) {'use strict';\n\nvar assign = __webpack_require__(212);\nvar through = __webpack_require__(213);\nvar gs = __webpack_require__(227);\nvar File = __webpack_require__(201);\nvar duplexify = __webpack_require__(327);\nvar merge = __webpack_require__(344);\nvar sourcemaps = process.browser ? null : __webpack_require__(358);\nvar filterSince = __webpack_require__(367);\nvar isValidGlob = __webpack_require__(370);\n\nvar getContents = __webpack_require__(371);\nvar resolveSymlinks = __webpack_require__(378);\n\nfunction createFile(globFile, enc, cb) {\n cb(null, new File(globFile));\n}\n\nfunction src(glob, opt) {\n var options = assign({\n read: true,\n buffer: true,\n stripBOM: true,\n sourcemaps: false,\n passthrough: false,\n followSymlinks: true\n }, opt);\n\n var inputPass;\n\n if (!isValidGlob(glob)) {\n throw new Error('Invalid glob argument: ' + glob);\n }\n\n var globStream = gs.create(glob, options);\n\n var outputStream = globStream\n .pipe(resolveSymlinks(options))\n .pipe(through.obj(createFile));\n\n if (options.since != null) {\n outputStream = outputStream\n .pipe(filterSince(options.since));\n }\n\n if (options.read !== false) {\n outputStream = outputStream\n .pipe(getContents(options));\n }\n\n if (options.passthrough === true) {\n inputPass = through.obj();\n outputStream = duplexify.obj(inputPass, merge(outputStream, inputPass));\n }\n if (options.sourcemaps === true) {\n outputStream = outputStream\n .pipe(sourcemaps.init({loadMaps: true}));\n }\n globStream.on('error', outputStream.emit.bind(outputStream, 'error'));\n return outputStream;\n}\n\nmodule.exports = src;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(83)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/lib/src/index.js\n ** module id = 211\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/lib/src/index.js?"); + eval("'use strict';\n\nvar _keys = __webpack_require__(78);\n\nvar _keys2 = _interopRequireDefault(_keys);\n\nvar _typeof2 = __webpack_require__(20);\n\nvar _typeof3 = _interopRequireDefault(_typeof2);\n\nvar _create = __webpack_require__(127);\n\nvar _create2 = _interopRequireDefault(_create);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar hexTable = function () {\n var array = new Array(256);\n for (var i = 0; i < 256; ++i) {\n array[i] = '%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase();\n }\n\n return array;\n}();\n\nexports.arrayToObject = function (source, options) {\n var obj = options.plainObjects ? (0, _create2.default)(null) : {};\n for (var i = 0; i < source.length; ++i) {\n if (typeof source[i] !== 'undefined') {\n obj[i] = source[i];\n }\n }\n\n return obj;\n};\n\nexports.merge = function (target, source, options) {\n if (!source) {\n return target;\n }\n\n if ((typeof source === 'undefined' ? 'undefined' : (0, _typeof3.default)(source)) !== 'object') {\n if (Array.isArray(target)) {\n target.push(source);\n } else if ((typeof target === 'undefined' ? 'undefined' : (0, _typeof3.default)(target)) === 'object') {\n target[source] = true;\n } else {\n return [target, source];\n }\n\n return target;\n }\n\n if ((typeof target === 'undefined' ? 'undefined' : (0, _typeof3.default)(target)) !== 'object') {\n return [target].concat(source);\n }\n\n var mergeTarget = target;\n if (Array.isArray(target) && !Array.isArray(source)) {\n mergeTarget = exports.arrayToObject(target, options);\n }\n\n return (0, _keys2.default)(source).reduce(function (acc, key) {\n var value = source[key];\n\n if (Object.prototype.hasOwnProperty.call(acc, key)) {\n acc[key] = exports.merge(acc[key], value, options);\n } else {\n acc[key] = value;\n }\n return acc;\n }, mergeTarget);\n};\n\nexports.decode = function (str) {\n try {\n return decodeURIComponent(str.replace(/\\+/g, ' '));\n } catch (e) {\n return str;\n }\n};\n\nexports.encode = function (str) {\n // This code was originally written by Brian White (mscdex) for the io.js core querystring library.\n // It has been adapted here for stricter adherence to RFC 3986\n if (str.length === 0) {\n return str;\n }\n\n var string = typeof str === 'string' ? str : String(str);\n\n var out = '';\n for (var i = 0; i < string.length; ++i) {\n var c = string.charCodeAt(i);\n\n if (c === 0x2D || // -\n c === 0x2E || // .\n c === 0x5F || // _\n c === 0x7E || // ~\n c >= 0x30 && c <= 0x39 || // 0-9\n c >= 0x41 && c <= 0x5A || // a-z\n c >= 0x61 && c <= 0x7A // A-Z\n ) {\n out += string.charAt(i);\n continue;\n }\n\n if (c < 0x80) {\n out = out + hexTable[c];\n continue;\n }\n\n if (c < 0x800) {\n out = out + (hexTable[0xC0 | c >> 6] + hexTable[0x80 | c & 0x3F]);\n continue;\n }\n\n if (c < 0xD800 || c >= 0xE000) {\n out = out + (hexTable[0xE0 | c >> 12] + hexTable[0x80 | c >> 6 & 0x3F] + hexTable[0x80 | c & 0x3F]);\n continue;\n }\n\n i += 1;\n c = 0x10000 + ((c & 0x3FF) << 10 | string.charCodeAt(i) & 0x3FF);\n out += hexTable[0xF0 | c >> 18] + hexTable[0x80 | c >> 12 & 0x3F] + hexTable[0x80 | c >> 6 & 0x3F] + hexTable[0x80 | c & 0x3F];\n }\n\n return out;\n};\n\nexports.compact = function (obj, references) {\n if ((typeof obj === 'undefined' ? 'undefined' : (0, _typeof3.default)(obj)) !== 'object' || obj === null) {\n return obj;\n }\n\n var refs = references || [];\n var lookup = refs.indexOf(obj);\n if (lookup !== -1) {\n return refs[lookup];\n }\n\n refs.push(obj);\n\n if (Array.isArray(obj)) {\n var compacted = [];\n\n for (var i = 0; i < obj.length; ++i) {\n if (typeof obj[i] !== 'undefined') {\n compacted.push(obj[i]);\n }\n }\n\n return compacted;\n }\n\n var keys = (0, _keys2.default)(obj);\n for (var j = 0; j < keys.length; ++j) {\n var key = keys[j];\n obj[key] = exports.compact(obj[key], refs);\n }\n\n return obj;\n};\n\nexports.isRegExp = function (obj) {\n return Object.prototype.toString.call(obj) === '[object RegExp]';\n};\n\nexports.isBuffer = function (obj) {\n if (obj === null || typeof obj === 'undefined') {\n return false;\n }\n\n return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/qs/lib/utils.js\n ** module id = 211\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/qs/lib/utils.js?"); /***/ }, /* 212 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("/* eslint-disable no-unused-vars */\n'use strict';\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nmodule.exports = Object.assign || function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (Object.getOwnPropertySymbols) {\n\t\t\tsymbols = Object.getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/~/object-assign/index.js\n ** module id = 212\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/~/object-assign/index.js?"); + eval("'use strict';\n\nvar _keys = __webpack_require__(78);\n\nvar _keys2 = _interopRequireDefault(_keys);\n\nvar _create = __webpack_require__(127);\n\nvar _create2 = _interopRequireDefault(_create);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar Utils = __webpack_require__(211);\n\nvar internals = {\n delimiter: '&',\n depth: 5,\n arrayLimit: 20,\n parameterLimit: 1000,\n strictNullHandling: false,\n plainObjects: false,\n allowPrototypes: false,\n allowDots: false\n};\n\ninternals.parseValues = function (str, options) {\n var obj = {};\n var parts = str.split(options.delimiter, options.parameterLimit === Infinity ? undefined : options.parameterLimit);\n\n for (var i = 0; i < parts.length; ++i) {\n var part = parts[i];\n var pos = part.indexOf(']=') === -1 ? part.indexOf('=') : part.indexOf(']=') + 1;\n\n if (pos === -1) {\n obj[Utils.decode(part)] = '';\n\n if (options.strictNullHandling) {\n obj[Utils.decode(part)] = null;\n }\n } else {\n var key = Utils.decode(part.slice(0, pos));\n var val = Utils.decode(part.slice(pos + 1));\n\n if (Object.prototype.hasOwnProperty.call(obj, key)) {\n obj[key] = [].concat(obj[key]).concat(val);\n } else {\n obj[key] = val;\n }\n }\n }\n\n return obj;\n};\n\ninternals.parseObject = function (chain, val, options) {\n if (!chain.length) {\n return val;\n }\n\n var root = chain.shift();\n\n var obj;\n if (root === '[]') {\n obj = [];\n obj = obj.concat(internals.parseObject(chain, val, options));\n } else {\n obj = options.plainObjects ? (0, _create2.default)(null) : {};\n var cleanRoot = root[0] === '[' && root[root.length - 1] === ']' ? root.slice(1, root.length - 1) : root;\n var index = parseInt(cleanRoot, 10);\n if (!isNaN(index) && root !== cleanRoot && String(index) === cleanRoot && index >= 0 && options.parseArrays && index <= options.arrayLimit) {\n obj = [];\n obj[index] = internals.parseObject(chain, val, options);\n } else {\n obj[cleanRoot] = internals.parseObject(chain, val, options);\n }\n }\n\n return obj;\n};\n\ninternals.parseKeys = function (givenKey, val, options) {\n if (!givenKey) {\n return;\n }\n\n // Transform dot notation to bracket notation\n var key = options.allowDots ? givenKey.replace(/\\.([^\\.\\[]+)/g, '[$1]') : givenKey;\n\n // The regex chunks\n\n var parent = /^([^\\[\\]]*)/;\n var child = /(\\[[^\\[\\]]*\\])/g;\n\n // Get the parent\n\n var segment = parent.exec(key);\n\n // Stash the parent if it exists\n\n var keys = [];\n if (segment[1]) {\n // If we aren't using plain objects, optionally prefix keys\n // that would overwrite object prototype properties\n if (!options.plainObjects && Object.prototype.hasOwnProperty(segment[1])) {\n if (!options.allowPrototypes) {\n return;\n }\n }\n\n keys.push(segment[1]);\n }\n\n // Loop through children appending to the array until we hit depth\n\n var i = 0;\n while ((segment = child.exec(key)) !== null && i < options.depth) {\n i += 1;\n if (!options.plainObjects && Object.prototype.hasOwnProperty(segment[1].replace(/\\[|\\]/g, ''))) {\n if (!options.allowPrototypes) {\n continue;\n }\n }\n keys.push(segment[1]);\n }\n\n // If there's a remainder, just add whatever is left\n\n if (segment) {\n keys.push('[' + key.slice(segment.index) + ']');\n }\n\n return internals.parseObject(keys, val, options);\n};\n\nmodule.exports = function (str, opts) {\n var options = opts || {};\n options.delimiter = typeof options.delimiter === 'string' || Utils.isRegExp(options.delimiter) ? options.delimiter : internals.delimiter;\n options.depth = typeof options.depth === 'number' ? options.depth : internals.depth;\n options.arrayLimit = typeof options.arrayLimit === 'number' ? options.arrayLimit : internals.arrayLimit;\n options.parseArrays = options.parseArrays !== false;\n options.allowDots = typeof options.allowDots === 'boolean' ? options.allowDots : internals.allowDots;\n options.plainObjects = typeof options.plainObjects === 'boolean' ? options.plainObjects : internals.plainObjects;\n options.allowPrototypes = typeof options.allowPrototypes === 'boolean' ? options.allowPrototypes : internals.allowPrototypes;\n options.parameterLimit = typeof options.parameterLimit === 'number' ? options.parameterLimit : internals.parameterLimit;\n options.strictNullHandling = typeof options.strictNullHandling === 'boolean' ? options.strictNullHandling : internals.strictNullHandling;\n\n if (str === '' || str === null || typeof str === 'undefined') {\n return options.plainObjects ? (0, _create2.default)(null) : {};\n }\n\n var tempObj = typeof str === 'string' ? internals.parseValues(str, options) : str;\n var obj = options.plainObjects ? (0, _create2.default)(null) : {};\n\n // Iterate over the keys and setup the new object\n\n var keys = (0, _keys2.default)(tempObj);\n for (var i = 0; i < keys.length; ++i) {\n var key = keys[i];\n var newObj = internals.parseKeys(key, tempObj[key], options);\n obj = Utils.merge(obj, newObj, options);\n }\n\n return Utils.compact(obj);\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/qs/lib/parse.js\n ** module id = 212\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/qs/lib/parse.js?"); /***/ }, /* 213 */ /***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(process) {var Transform = __webpack_require__(214)\n , inherits = __webpack_require__(140).inherits\n , xtend = __webpack_require__(226)\n\nfunction DestroyableTransform(opts) {\n Transform.call(this, opts)\n this._destroyed = false\n}\n\ninherits(DestroyableTransform, Transform)\n\nDestroyableTransform.prototype.destroy = function(err) {\n if (this._destroyed) return\n this._destroyed = true\n \n var self = this\n process.nextTick(function() {\n if (err)\n self.emit('error', err)\n self.emit('close')\n })\n}\n\n// a noop _transform function\nfunction noop (chunk, enc, callback) {\n callback(null, chunk)\n}\n\n\n// create a new export function, used by both the main export and\n// the .ctor export, contains common logic for dealing with arguments\nfunction through2 (construct) {\n return function (options, transform, flush) {\n if (typeof options == 'function') {\n flush = transform\n transform = options\n options = {}\n }\n\n if (typeof transform != 'function')\n transform = noop\n\n if (typeof flush != 'function')\n flush = null\n\n return construct(options, transform, flush)\n }\n}\n\n\n// main export, just make me a transform stream!\nmodule.exports = through2(function (options, transform, flush) {\n var t2 = new DestroyableTransform(options)\n\n t2._transform = transform\n\n if (flush)\n t2._flush = flush\n\n return t2\n})\n\n\n// make me a reusable prototype that I can `new`, or implicitly `new`\n// with a constructor call\nmodule.exports.ctor = through2(function (options, transform, flush) {\n function Through2 (override) {\n if (!(this instanceof Through2))\n return new Through2(override)\n\n this.options = xtend(options, override)\n\n DestroyableTransform.call(this, this.options)\n }\n\n inherits(Through2, DestroyableTransform)\n\n Through2.prototype._transform = transform\n\n if (flush)\n Through2.prototype._flush = flush\n\n return Through2\n})\n\n\nmodule.exports.obj = through2(function (options, transform, flush) {\n var t2 = new DestroyableTransform(xtend({ objectMode: true, highWaterMark: 16 }, options))\n\n t2._transform = transform\n\n if (flush)\n t2._flush = flush\n\n return t2\n})\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(83)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/~/through2/through2.js\n ** module id = 213\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/~/through2/through2.js?"); + eval("/* WEBPACK VAR INJECTION */(function(Buffer) {'use strict';\n\nvar File = __webpack_require__(214);\nvar vinylfs = __webpack_require__(223);\nvar vmps = __webpack_require__(327);\nvar stream = __webpack_require__(98);\nvar Merge = __webpack_require__(296);\n\nexports = module.exports = getFilesStream;\n\nfunction getFilesStream(files, opts) {\n if (!files) return null;\n\n // merge all inputs into one stream\n var adder = new Merge();\n\n // single stream for pushing directly\n var single = new stream.PassThrough({ objectMode: true });\n adder.add(single);\n\n for (var i = 0; i < files.length; i++) {\n var file = files[i];\n\n if (typeof file === 'string') {\n var srcOpts = {\n buffer: false,\n stripBOM: false,\n followSymlinks: opts.followSymlinks != null ? opts.followSymlinks : true\n };\n\n // add the file or dir itself\n adder.add(vinylfs.src(file, srcOpts));\n\n // if recursive, glob the contents\n if (opts.recursive) {\n adder.add(vinylfs.src(file + '/**/*', srcOpts));\n }\n } else {\n // try to create a single vinyl file, and push it.\n // throws if cannot use the file.\n single.push(vinylFile(file));\n }\n }\n\n single.end();\n return adder.pipe(vmps());\n}\n\n// vinylFile tries to cast a file object to a vinyl file.\n// it's agressive. If it _cannot_ be converted to a file,\n// it returns null.\nfunction vinylFile(file) {\n if (file instanceof File) {\n return file; // it's a vinyl file.\n }\n\n // let's try to make a vinyl file?\n var f = { cwd: '/', base: '/', path: '' };\n if (file.contents && file.path) {\n // set the cwd + base, if there.\n f.path = file.path;\n f.cwd = file.cwd || f.cwd;\n f.base = file.base || f.base;\n f.contents = file.contents;\n } else {\n // ok maybe we just have contents?\n f.contents = file;\n }\n\n // ensure the contents are safe to pass.\n // throws if vinyl cannot use the contents\n f.contents = vinylContentsSafe(f.contents);\n return new File(f);\n}\n\nfunction vinylContentsSafe(c) {\n if (Buffer.isBuffer(c)) return c;\n if (typeof c === 'string') return c;\n if (c instanceof stream.Stream) return c;\n if (typeof c.pipe === 'function') {\n // hey, looks like a stream. but vinyl won't detect it.\n // pipe it to a PassThrough, and use that\n var s = new stream.PassThrough();\n return c.pipe(s);\n }\n\n throw new Error('vinyl will not accept: ' + c);\n}\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1).Buffer))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/get-files-stream.js\n ** module id = 213\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./src/get-files-stream.js?"); /***/ }, /* 214 */ /***/ function(module, exports, __webpack_require__) { - eval("module.exports = __webpack_require__(215)\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/~/through2/~/readable-stream/transform.js\n ** module id = 214\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/~/through2/~/readable-stream/transform.js?"); + eval("/* WEBPACK VAR INJECTION */(function(process) {var path = __webpack_require__(149);\nvar clone = __webpack_require__(215);\nvar cloneStats = __webpack_require__(216);\nvar cloneBuffer = __webpack_require__(217);\nvar isBuffer = __webpack_require__(218);\nvar isStream = __webpack_require__(219);\nvar isNull = __webpack_require__(220);\nvar inspectStream = __webpack_require__(221);\nvar Stream = __webpack_require__(98);\nvar replaceExt = __webpack_require__(222);\n\nfunction File(file) {\n if (!file) {\n file = {};\n }\n\n // Record path change\n var history = file.path ? [file.path] : file.history;\n this.history = history || [];\n\n this.cwd = file.cwd || process.cwd();\n this.base = file.base || this.cwd;\n\n // Stat = files stats object\n this.stat = file.stat || null;\n\n // Contents = stream, buffer, or null if not read\n this.contents = file.contents || null;\n\n this._isVinyl = true;\n}\n\nFile.prototype.isBuffer = function() {\n return isBuffer(this.contents);\n};\n\nFile.prototype.isStream = function() {\n return isStream(this.contents);\n};\n\nFile.prototype.isNull = function() {\n return isNull(this.contents);\n};\n\n// TODO: Should this be moved to vinyl-fs?\nFile.prototype.isDirectory = function() {\n return this.isNull() && this.stat && this.stat.isDirectory();\n};\n\nFile.prototype.clone = function(opt) {\n if (typeof opt === 'boolean') {\n opt = {\n deep: opt,\n contents: true,\n };\n } else if (!opt) {\n opt = {\n deep: true,\n contents: true,\n };\n } else {\n opt.deep = opt.deep === true;\n opt.contents = opt.contents !== false;\n }\n\n // Clone our file contents\n var contents;\n if (this.isStream()) {\n contents = this.contents.pipe(new Stream.PassThrough());\n this.contents = this.contents.pipe(new Stream.PassThrough());\n } else if (this.isBuffer()) {\n contents = opt.contents ? cloneBuffer(this.contents) : this.contents;\n }\n\n var file = new File({\n cwd: this.cwd,\n base: this.base,\n stat: (this.stat ? cloneStats(this.stat) : null),\n history: this.history.slice(),\n contents: contents,\n });\n\n // Clone our custom properties\n Object.keys(this).forEach(function(key) {\n // Ignore built-in fields\n if (key === '_contents' || key === 'stat' ||\n key === 'history' || key === 'path' ||\n key === 'base' || key === 'cwd') {\n return;\n }\n file[key] = opt.deep ? clone(this[key], true) : this[key];\n }, this);\n return file;\n};\n\nFile.prototype.pipe = function(stream, opt) {\n if (!opt) {\n opt = {};\n }\n if (typeof opt.end === 'undefined') {\n opt.end = true;\n }\n\n if (this.isStream()) {\n return this.contents.pipe(stream, opt);\n }\n if (this.isBuffer()) {\n if (opt.end) {\n stream.end(this.contents);\n } else {\n stream.write(this.contents);\n }\n return stream;\n }\n\n // Check if isNull\n if (opt.end) {\n stream.end();\n }\n return stream;\n};\n\nFile.prototype.inspect = function() {\n var inspect = [];\n\n // Use relative path if possible\n var filePath = (this.base && this.path) ? this.relative : this.path;\n\n if (filePath) {\n inspect.push('\"' + filePath + '\"');\n }\n\n if (this.isBuffer()) {\n inspect.push(this.contents.inspect());\n }\n\n if (this.isStream()) {\n inspect.push(inspectStream(this.contents));\n }\n\n return '';\n};\n\nFile.isVinyl = function(file) {\n return (file && file._isVinyl === true) || false;\n};\n\n// Virtual attributes\n// Or stuff with extra logic\nObject.defineProperty(File.prototype, 'contents', {\n get: function() {\n return this._contents;\n },\n set: function(val) {\n if (!isBuffer(val) && !isStream(val) && !isNull(val)) {\n throw new Error('File.contents can only be a Buffer, a Stream, or null.');\n }\n this._contents = val;\n },\n});\n\n// TODO: Should this be moved to vinyl-fs?\nObject.defineProperty(File.prototype, 'relative', {\n get: function() {\n if (!this.base) {\n throw new Error('No base specified! Can not get relative.');\n }\n if (!this.path) {\n throw new Error('No path specified! Can not get relative.');\n }\n return path.relative(this.base, this.path);\n },\n set: function() {\n throw new Error('File.relative is generated from the base and path attributes. Do not modify it.');\n },\n});\n\nObject.defineProperty(File.prototype, 'dirname', {\n get: function() {\n if (!this.path) {\n throw new Error('No path specified! Can not get dirname.');\n }\n return path.dirname(this.path);\n },\n set: function(dirname) {\n if (!this.path) {\n throw new Error('No path specified! Can not set dirname.');\n }\n this.path = path.join(dirname, path.basename(this.path));\n },\n});\n\nObject.defineProperty(File.prototype, 'basename', {\n get: function() {\n if (!this.path) {\n throw new Error('No path specified! Can not get basename.');\n }\n return path.basename(this.path);\n },\n set: function(basename) {\n if (!this.path) {\n throw new Error('No path specified! Can not set basename.');\n }\n this.path = path.join(path.dirname(this.path), basename);\n },\n});\n\n// Property for getting/setting stem of the filename.\nObject.defineProperty(File.prototype, 'stem', {\n get: function() {\n if (!this.path) {\n throw new Error('No path specified! Can not get stem.');\n }\n return path.basename(this.path, this.extname);\n },\n set: function(stem) {\n if (!this.path) {\n throw new Error('No PassThrough specified! Can not set stem.');\n }\n this.path = path.join(path.dirname(this.path), stem + this.extname);\n },\n});\n\nObject.defineProperty(File.prototype, 'extname', {\n get: function() {\n if (!this.path) {\n throw new Error('No path specified! Can not get extname.');\n }\n return path.extname(this.path);\n },\n set: function(extname) {\n if (!this.path) {\n throw new Error('No path specified! Can not set extname.');\n }\n this.path = replaceExt(this.path, extname);\n },\n});\n\nObject.defineProperty(File.prototype, 'path', {\n get: function() {\n return this.history[this.history.length - 1];\n },\n set: function(path) {\n if (typeof path !== 'string') {\n throw new Error('path should be string');\n }\n\n // Record history only when path changed\n if (path && path !== this.path) {\n this.history.push(path);\n }\n },\n});\n\nmodule.exports = File;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl/index.js\n ** module id = 214\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl/index.js?"); /***/ }, /* 215 */ /***/ function(module, exports, __webpack_require__) { - eval("// a transform stream is a readable/writable stream where you do\n// something with the data. Sometimes it's called a \"filter\",\n// but that's not a great name for it, since that implies a thing where\n// some bits pass through, and others are simply ignored. (That would\n// be a valid example of a transform, of course.)\n//\n// While the output is causally related to the input, it's not a\n// necessarily symmetric or synchronous transformation. For example,\n// a zlib stream might take multiple plain-text writes(), and then\n// emit a single compressed chunk some time in the future.\n//\n// Here's how this works:\n//\n// The Transform stream has all the aspects of the readable and writable\n// stream classes. When you write(chunk), that calls _write(chunk,cb)\n// internally, and returns false if there's a lot of pending writes\n// buffered up. When you call read(), that calls _read(n) until\n// there's enough pending readable data buffered up.\n//\n// In a transform stream, the written data is placed in a buffer. When\n// _read(n) is called, it transforms the queued up data, calling the\n// buffered _write cb's as it consumes chunks. If consuming a single\n// written chunk would result in multiple output chunks, then the first\n// outputted bit calls the readcb, and subsequent chunks just go into\n// the read buffer, and will cause it to emit 'readable' if necessary.\n//\n// This way, back-pressure is actually determined by the reading side,\n// since _read has to be called to start processing a new chunk. However,\n// a pathological inflate type of transform can cause excessive buffering\n// here. For example, imagine a stream where every byte of input is\n// interpreted as an integer from 0-255, and then results in that many\n// bytes of output. Writing the 4 bytes {ff,ff,ff,ff} would result in\n// 1kb of data being output. In this case, you could write a very small\n// amount of input, and end up with a very large amount of output. In\n// such a pathological inflating mechanism, there'd be no way to tell\n// the system to stop doing the transform. A single 4MB write could\n// cause the system to run out of memory.\n//\n// However, even in such a pathological case, only a single written chunk\n// would be consumed, and then the rest would wait (un-transformed) until\n// the results of the previous transformed chunk were consumed.\n\n'use strict';\n\nmodule.exports = Transform;\n\nvar Duplex = __webpack_require__(216);\n\n/**/\nvar util = __webpack_require__(218);\nutil.inherits = __webpack_require__(219);\n/**/\n\nutil.inherits(Transform, Duplex);\n\n\nfunction TransformState(stream) {\n this.afterTransform = function(er, data) {\n return afterTransform(stream, er, data);\n };\n\n this.needTransform = false;\n this.transforming = false;\n this.writecb = null;\n this.writechunk = null;\n}\n\nfunction afterTransform(stream, er, data) {\n var ts = stream._transformState;\n ts.transforming = false;\n\n var cb = ts.writecb;\n\n if (!cb)\n return stream.emit('error', new Error('no writecb in Transform class'));\n\n ts.writechunk = null;\n ts.writecb = null;\n\n if (data !== null && data !== undefined)\n stream.push(data);\n\n if (cb)\n cb(er);\n\n var rs = stream._readableState;\n rs.reading = false;\n if (rs.needReadable || rs.length < rs.highWaterMark) {\n stream._read(rs.highWaterMark);\n }\n}\n\n\nfunction Transform(options) {\n if (!(this instanceof Transform))\n return new Transform(options);\n\n Duplex.call(this, options);\n\n this._transformState = new TransformState(this);\n\n // when the writable side finishes, then flush out anything remaining.\n var stream = this;\n\n // start out asking for a readable event once data is transformed.\n this._readableState.needReadable = true;\n\n // we have implemented the _read method, and done the other things\n // that Readable wants before the first _read call, so unset the\n // sync guard flag.\n this._readableState.sync = false;\n\n if (options) {\n if (typeof options.transform === 'function')\n this._transform = options.transform;\n\n if (typeof options.flush === 'function')\n this._flush = options.flush;\n }\n\n this.once('prefinish', function() {\n if (typeof this._flush === 'function')\n this._flush(function(er) {\n done(stream, er);\n });\n else\n done(stream);\n });\n}\n\nTransform.prototype.push = function(chunk, encoding) {\n this._transformState.needTransform = false;\n return Duplex.prototype.push.call(this, chunk, encoding);\n};\n\n// This is the part where you do stuff!\n// override this function in implementation classes.\n// 'chunk' is an input chunk.\n//\n// Call `push(newChunk)` to pass along transformed output\n// to the readable side. You may call 'push' zero or more times.\n//\n// Call `cb(err)` when you are done with this chunk. If you pass\n// an error, then that'll put the hurt on the whole operation. If you\n// never call cb(), then you'll never get another chunk.\nTransform.prototype._transform = function(chunk, encoding, cb) {\n throw new Error('not implemented');\n};\n\nTransform.prototype._write = function(chunk, encoding, cb) {\n var ts = this._transformState;\n ts.writecb = cb;\n ts.writechunk = chunk;\n ts.writeencoding = encoding;\n if (!ts.transforming) {\n var rs = this._readableState;\n if (ts.needTransform ||\n rs.needReadable ||\n rs.length < rs.highWaterMark)\n this._read(rs.highWaterMark);\n }\n};\n\n// Doesn't matter what the args are here.\n// _transform does all the work.\n// That we got here means that the readable side wants more data.\nTransform.prototype._read = function(n) {\n var ts = this._transformState;\n\n if (ts.writechunk !== null && ts.writecb && !ts.transforming) {\n ts.transforming = true;\n this._transform(ts.writechunk, ts.writeencoding, ts.afterTransform);\n } else {\n // mark that we need a transform, so that any data that comes in\n // will get processed, now that we've asked for it.\n ts.needTransform = true;\n }\n};\n\n\nfunction done(stream, er) {\n if (er)\n return stream.emit('error', er);\n\n // if there's nothing in the write buffer, then that means\n // that nothing more will ever be provided\n var ws = stream._writableState;\n var ts = stream._transformState;\n\n if (ws.length)\n throw new Error('calling transform done when ws.length != 0');\n\n if (ts.transforming)\n throw new Error('calling transform done when still transforming');\n\n return stream.push(null);\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/~/through2/~/readable-stream/lib/_stream_transform.js\n ** module id = 215\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/~/through2/~/readable-stream/lib/_stream_transform.js?"); + eval("/* WEBPACK VAR INJECTION */(function(Buffer) {var clone = (function() {\n'use strict';\n\n/**\n * Clones (copies) an Object using deep copying.\n *\n * This function supports circular references by default, but if you are certain\n * there are no circular references in your object, you can save some CPU time\n * by calling clone(obj, false).\n *\n * Caution: if `circular` is false and `parent` contains circular references,\n * your program may enter an infinite loop and crash.\n *\n * @param `parent` - the object to be cloned\n * @param `circular` - set to true if the object to be cloned may contain\n * circular references. (optional - true by default)\n * @param `depth` - set to a number if the object is only to be cloned to\n * a particular depth. (optional - defaults to Infinity)\n * @param `prototype` - sets the prototype to be used when cloning an object.\n * (optional - defaults to parent prototype).\n*/\nfunction clone(parent, circular, depth, prototype) {\n var filter;\n if (typeof circular === 'object') {\n depth = circular.depth;\n prototype = circular.prototype;\n filter = circular.filter;\n circular = circular.circular\n }\n // maintain two arrays for circular references, where corresponding parents\n // and children have the same index\n var allParents = [];\n var allChildren = [];\n\n var useBuffer = typeof Buffer != 'undefined';\n\n if (typeof circular == 'undefined')\n circular = true;\n\n if (typeof depth == 'undefined')\n depth = Infinity;\n\n // recurse this function so we don't reset allParents and allChildren\n function _clone(parent, depth) {\n // cloning null always returns null\n if (parent === null)\n return null;\n\n if (depth == 0)\n return parent;\n\n var child;\n var proto;\n if (typeof parent != 'object') {\n return parent;\n }\n\n if (clone.__isArray(parent)) {\n child = [];\n } else if (clone.__isRegExp(parent)) {\n child = new RegExp(parent.source, __getRegExpFlags(parent));\n if (parent.lastIndex) child.lastIndex = parent.lastIndex;\n } else if (clone.__isDate(parent)) {\n child = new Date(parent.getTime());\n } else if (useBuffer && Buffer.isBuffer(parent)) {\n child = new Buffer(parent.length);\n parent.copy(child);\n return child;\n } else {\n if (typeof prototype == 'undefined') {\n proto = Object.getPrototypeOf(parent);\n child = Object.create(proto);\n }\n else {\n child = Object.create(prototype);\n proto = prototype;\n }\n }\n\n if (circular) {\n var index = allParents.indexOf(parent);\n\n if (index != -1) {\n return allChildren[index];\n }\n allParents.push(parent);\n allChildren.push(child);\n }\n\n for (var i in parent) {\n var attrs;\n if (proto) {\n attrs = Object.getOwnPropertyDescriptor(proto, i);\n }\n\n if (attrs && attrs.set == null) {\n continue;\n }\n child[i] = _clone(parent[i], depth - 1);\n }\n\n return child;\n }\n\n return _clone(parent, depth);\n}\n\n/**\n * Simple flat clone using prototype, accepts only objects, usefull for property\n * override on FLAT configuration object (no nested props).\n *\n * USE WITH CAUTION! This may not behave as you wish if you do not know how this\n * works.\n */\nclone.clonePrototype = function clonePrototype(parent) {\n if (parent === null)\n return null;\n\n var c = function () {};\n c.prototype = parent;\n return new c();\n};\n\n// private utility functions\n\nfunction __objToStr(o) {\n return Object.prototype.toString.call(o);\n};\nclone.__objToStr = __objToStr;\n\nfunction __isDate(o) {\n return typeof o === 'object' && __objToStr(o) === '[object Date]';\n};\nclone.__isDate = __isDate;\n\nfunction __isArray(o) {\n return typeof o === 'object' && __objToStr(o) === '[object Array]';\n};\nclone.__isArray = __isArray;\n\nfunction __isRegExp(o) {\n return typeof o === 'object' && __objToStr(o) === '[object RegExp]';\n};\nclone.__isRegExp = __isRegExp;\n\nfunction __getRegExpFlags(re) {\n var flags = '';\n if (re.global) flags += 'g';\n if (re.ignoreCase) flags += 'i';\n if (re.multiline) flags += 'm';\n return flags;\n};\nclone.__getRegExpFlags = __getRegExpFlags;\n\nreturn clone;\n})();\n\nif (typeof module === 'object' && module.exports) {\n module.exports = clone;\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1).Buffer))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/clone/clone.js\n ** module id = 215\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/clone/clone.js?"); /***/ }, /* 216 */ /***/ function(module, exports, __webpack_require__) { - eval("// a duplex stream is just a stream that is both readable and writable.\n// Since JS doesn't have multiple prototypal inheritance, this class\n// prototypally inherits from Readable, and then parasitically from\n// Writable.\n\n'use strict';\n\n/**/\nvar objectKeys = Object.keys || function (obj) {\n var keys = [];\n for (var key in obj) keys.push(key);\n return keys;\n}\n/**/\n\n\nmodule.exports = Duplex;\n\n/**/\nvar processNextTick = __webpack_require__(217);\n/**/\n\n\n\n/**/\nvar util = __webpack_require__(218);\nutil.inherits = __webpack_require__(219);\n/**/\n\nvar Readable = __webpack_require__(220);\nvar Writable = __webpack_require__(224);\n\nutil.inherits(Duplex, Readable);\n\nvar keys = objectKeys(Writable.prototype);\nfor (var v = 0; v < keys.length; v++) {\n var method = keys[v];\n if (!Duplex.prototype[method])\n Duplex.prototype[method] = Writable.prototype[method];\n}\n\nfunction Duplex(options) {\n if (!(this instanceof Duplex))\n return new Duplex(options);\n\n Readable.call(this, options);\n Writable.call(this, options);\n\n if (options && options.readable === false)\n this.readable = false;\n\n if (options && options.writable === false)\n this.writable = false;\n\n this.allowHalfOpen = true;\n if (options && options.allowHalfOpen === false)\n this.allowHalfOpen = false;\n\n this.once('end', onend);\n}\n\n// the no-half-open enforcer\nfunction onend() {\n // if we allow half-open state, or if the writable side ended,\n // then we're ok.\n if (this.allowHalfOpen || this._writableState.ended)\n return;\n\n // no more data can be written.\n // But allow more writes to happen in this tick.\n processNextTick(onEndNT, this);\n}\n\nfunction onEndNT(self) {\n self.end();\n}\n\nfunction forEach (xs, f) {\n for (var i = 0, l = xs.length; i < l; i++) {\n f(xs[i], i);\n }\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/~/through2/~/readable-stream/lib/_stream_duplex.js\n ** module id = 216\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/~/through2/~/readable-stream/lib/_stream_duplex.js?"); + eval("var Stat = __webpack_require__(82).Stats\n\nmodule.exports = cloneStats\n\nfunction cloneStats(stats) {\n var replacement = new Stat\n\n Object.keys(stats).forEach(function(key) {\n replacement[key] = stats[key]\n })\n\n return replacement\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/clone-stats/index.js\n ** module id = 216\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/clone-stats/index.js?"); /***/ }, /* 217 */ /***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(process) {'use strict';\n\nif (!process.version ||\n process.version.indexOf('v0.') === 0 ||\n process.version.indexOf('v1.') === 0 && process.version.indexOf('v1.8.') !== 0) {\n module.exports = nextTick;\n} else {\n module.exports = process.nextTick;\n}\n\nfunction nextTick(fn) {\n var args = new Array(arguments.length - 1);\n var i = 0;\n while (i < args.length) {\n args[i++] = arguments[i];\n }\n process.nextTick(function afterTick() {\n fn.apply(null, args);\n });\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(83)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/~/through2/~/readable-stream/~/process-nextick-args/index.js\n ** module id = 217\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/~/through2/~/readable-stream/~/process-nextick-args/index.js?"); + eval("var Buffer = __webpack_require__(1).Buffer;\n\nmodule.exports = function(buf) {\n var out = new Buffer(buf.length);\n buf.copy(out);\n return out;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl/lib/cloneBuffer.js\n ** module id = 217\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl/lib/cloneBuffer.js?"); /***/ }, /* 218 */ /***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(Buffer) {// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// NOTE: These type checking functions intentionally don't use `instanceof`\n// because it is fragile and can be easily faked with `Object.create()`.\n\nfunction isArray(arg) {\n if (Array.isArray) {\n return Array.isArray(arg);\n }\n return objectToString(arg) === '[object Array]';\n}\nexports.isArray = isArray;\n\nfunction isBoolean(arg) {\n return typeof arg === 'boolean';\n}\nexports.isBoolean = isBoolean;\n\nfunction isNull(arg) {\n return arg === null;\n}\nexports.isNull = isNull;\n\nfunction isNullOrUndefined(arg) {\n return arg == null;\n}\nexports.isNullOrUndefined = isNullOrUndefined;\n\nfunction isNumber(arg) {\n return typeof arg === 'number';\n}\nexports.isNumber = isNumber;\n\nfunction isString(arg) {\n return typeof arg === 'string';\n}\nexports.isString = isString;\n\nfunction isSymbol(arg) {\n return typeof arg === 'symbol';\n}\nexports.isSymbol = isSymbol;\n\nfunction isUndefined(arg) {\n return arg === void 0;\n}\nexports.isUndefined = isUndefined;\n\nfunction isRegExp(re) {\n return objectToString(re) === '[object RegExp]';\n}\nexports.isRegExp = isRegExp;\n\nfunction isObject(arg) {\n return typeof arg === 'object' && arg !== null;\n}\nexports.isObject = isObject;\n\nfunction isDate(d) {\n return objectToString(d) === '[object Date]';\n}\nexports.isDate = isDate;\n\nfunction isError(e) {\n return (objectToString(e) === '[object Error]' || e instanceof Error);\n}\nexports.isError = isError;\n\nfunction isFunction(arg) {\n return typeof arg === 'function';\n}\nexports.isFunction = isFunction;\n\nfunction isPrimitive(arg) {\n return arg === null ||\n typeof arg === 'boolean' ||\n typeof arg === 'number' ||\n typeof arg === 'string' ||\n typeof arg === 'symbol' || // ES6 symbol\n typeof arg === 'undefined';\n}\nexports.isPrimitive = isPrimitive;\n\nexports.isBuffer = Buffer.isBuffer;\n\nfunction objectToString(o) {\n return Object.prototype.toString.call(o);\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1).Buffer))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/~/through2/~/readable-stream/~/core-util-is/lib/util.js\n ** module id = 218\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/~/through2/~/readable-stream/~/core-util-is/lib/util.js?"); + eval("module.exports = __webpack_require__(1).Buffer.isBuffer;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl/lib/isBuffer.js\n ** module id = 218\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl/lib/isBuffer.js?"); /***/ }, /* 219 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("if (typeof Object.create === 'function') {\n // implementation from standard node.js 'util' module\n module.exports = function inherits(ctor, superCtor) {\n ctor.super_ = superCtor\n ctor.prototype = Object.create(superCtor.prototype, {\n constructor: {\n value: ctor,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n };\n} else {\n // old school shim for old browsers\n module.exports = function inherits(ctor, superCtor) {\n ctor.super_ = superCtor\n var TempCtor = function () {}\n TempCtor.prototype = superCtor.prototype\n ctor.prototype = new TempCtor()\n ctor.prototype.constructor = ctor\n }\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/~/through2/~/readable-stream/~/inherits/inherits_browser.js\n ** module id = 219\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/~/through2/~/readable-stream/~/inherits/inherits_browser.js?"); + eval("var Stream = __webpack_require__(98).Stream;\n\nmodule.exports = function(o) {\n return !!o && o instanceof Stream;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl/lib/isStream.js\n ** module id = 219\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl/lib/isStream.js?"); /***/ }, /* 220 */ -/***/ function(module, exports, __webpack_require__) { +/***/ function(module, exports) { - eval("/* WEBPACK VAR INJECTION */(function(process) {'use strict';\n\nmodule.exports = Readable;\n\n/**/\nvar processNextTick = __webpack_require__(217);\n/**/\n\n\n/**/\nvar isArray = __webpack_require__(221);\n/**/\n\n\n/**/\nvar Buffer = __webpack_require__(1).Buffer;\n/**/\n\nReadable.ReadableState = ReadableState;\n\nvar EE = __webpack_require__(84);\n\n/**/\nvar EElistenerCount = function(emitter, type) {\n return emitter.listeners(type).length;\n};\n/**/\n\n\n\n/**/\nvar Stream;\n(function (){try{\n Stream = __webpack_require__(96);\n}catch(_){}finally{\n if (!Stream)\n Stream = __webpack_require__(84).EventEmitter;\n}}())\n/**/\n\nvar Buffer = __webpack_require__(1).Buffer;\n\n/**/\nvar util = __webpack_require__(218);\nutil.inherits = __webpack_require__(219);\n/**/\n\n\n\n/**/\nvar debugUtil = __webpack_require__(222);\nvar debug;\nif (debugUtil && debugUtil.debuglog) {\n debug = debugUtil.debuglog('stream');\n} else {\n debug = function () {};\n}\n/**/\n\nvar StringDecoder;\n\nutil.inherits(Readable, Stream);\n\nvar Duplex;\nfunction ReadableState(options, stream) {\n Duplex = Duplex || __webpack_require__(216);\n\n options = options || {};\n\n // object stream flag. Used to make read(n) ignore n and to\n // make all the buffer merging and length checks go away\n this.objectMode = !!options.objectMode;\n\n if (stream instanceof Duplex)\n this.objectMode = this.objectMode || !!options.readableObjectMode;\n\n // the point at which it stops calling _read() to fill the buffer\n // Note: 0 is a valid value, means \"don't call _read preemptively ever\"\n var hwm = options.highWaterMark;\n var defaultHwm = this.objectMode ? 16 : 16 * 1024;\n this.highWaterMark = (hwm || hwm === 0) ? hwm : defaultHwm;\n\n // cast to ints.\n this.highWaterMark = ~~this.highWaterMark;\n\n this.buffer = [];\n this.length = 0;\n this.pipes = null;\n this.pipesCount = 0;\n this.flowing = null;\n this.ended = false;\n this.endEmitted = false;\n this.reading = false;\n\n // a flag to be able to tell if the onwrite cb is called immediately,\n // or on a later tick. We set this to true at first, because any\n // actions that shouldn't happen until \"later\" should generally also\n // not happen before the first write call.\n this.sync = true;\n\n // whenever we return null, then we set a flag to say\n // that we're awaiting a 'readable' event emission.\n this.needReadable = false;\n this.emittedReadable = false;\n this.readableListening = false;\n\n // Crypto is kind of old and crusty. Historically, its default string\n // encoding is 'binary' so we have to make this configurable.\n // Everything else in the universe uses 'utf8', though.\n this.defaultEncoding = options.defaultEncoding || 'utf8';\n\n // when piping, we only care about 'readable' events that happen\n // after read()ing all the bytes and not getting any pushback.\n this.ranOut = false;\n\n // the number of writers that are awaiting a drain event in .pipe()s\n this.awaitDrain = 0;\n\n // if true, a maybeReadMore has been scheduled\n this.readingMore = false;\n\n this.decoder = null;\n this.encoding = null;\n if (options.encoding) {\n if (!StringDecoder)\n StringDecoder = __webpack_require__(223).StringDecoder;\n this.decoder = new StringDecoder(options.encoding);\n this.encoding = options.encoding;\n }\n}\n\nvar Duplex;\nfunction Readable(options) {\n Duplex = Duplex || __webpack_require__(216);\n\n if (!(this instanceof Readable))\n return new Readable(options);\n\n this._readableState = new ReadableState(options, this);\n\n // legacy\n this.readable = true;\n\n if (options && typeof options.read === 'function')\n this._read = options.read;\n\n Stream.call(this);\n}\n\n// Manually shove something into the read() buffer.\n// This returns true if the highWaterMark has not been hit yet,\n// similar to how Writable.write() returns true if you should\n// write() some more.\nReadable.prototype.push = function(chunk, encoding) {\n var state = this._readableState;\n\n if (!state.objectMode && typeof chunk === 'string') {\n encoding = encoding || state.defaultEncoding;\n if (encoding !== state.encoding) {\n chunk = new Buffer(chunk, encoding);\n encoding = '';\n }\n }\n\n return readableAddChunk(this, state, chunk, encoding, false);\n};\n\n// Unshift should *always* be something directly out of read()\nReadable.prototype.unshift = function(chunk) {\n var state = this._readableState;\n return readableAddChunk(this, state, chunk, '', true);\n};\n\nReadable.prototype.isPaused = function() {\n return this._readableState.flowing === false;\n};\n\nfunction readableAddChunk(stream, state, chunk, encoding, addToFront) {\n var er = chunkInvalid(state, chunk);\n if (er) {\n stream.emit('error', er);\n } else if (chunk === null) {\n state.reading = false;\n onEofChunk(stream, state);\n } else if (state.objectMode || chunk && chunk.length > 0) {\n if (state.ended && !addToFront) {\n var e = new Error('stream.push() after EOF');\n stream.emit('error', e);\n } else if (state.endEmitted && addToFront) {\n var e = new Error('stream.unshift() after end event');\n stream.emit('error', e);\n } else {\n if (state.decoder && !addToFront && !encoding)\n chunk = state.decoder.write(chunk);\n\n if (!addToFront)\n state.reading = false;\n\n // if we want the data now, just emit it.\n if (state.flowing && state.length === 0 && !state.sync) {\n stream.emit('data', chunk);\n stream.read(0);\n } else {\n // update the buffer info.\n state.length += state.objectMode ? 1 : chunk.length;\n if (addToFront)\n state.buffer.unshift(chunk);\n else\n state.buffer.push(chunk);\n\n if (state.needReadable)\n emitReadable(stream);\n }\n\n maybeReadMore(stream, state);\n }\n } else if (!addToFront) {\n state.reading = false;\n }\n\n return needMoreData(state);\n}\n\n\n// if it's past the high water mark, we can push in some more.\n// Also, if we have no data yet, we can stand some\n// more bytes. This is to work around cases where hwm=0,\n// such as the repl. Also, if the push() triggered a\n// readable event, and the user called read(largeNumber) such that\n// needReadable was set, then we ought to push more, so that another\n// 'readable' event will be triggered.\nfunction needMoreData(state) {\n return !state.ended &&\n (state.needReadable ||\n state.length < state.highWaterMark ||\n state.length === 0);\n}\n\n// backwards compatibility.\nReadable.prototype.setEncoding = function(enc) {\n if (!StringDecoder)\n StringDecoder = __webpack_require__(223).StringDecoder;\n this._readableState.decoder = new StringDecoder(enc);\n this._readableState.encoding = enc;\n return this;\n};\n\n// Don't raise the hwm > 8MB\nvar MAX_HWM = 0x800000;\nfunction computeNewHighWaterMark(n) {\n if (n >= MAX_HWM) {\n n = MAX_HWM;\n } else {\n // Get the next highest power of 2\n n--;\n n |= n >>> 1;\n n |= n >>> 2;\n n |= n >>> 4;\n n |= n >>> 8;\n n |= n >>> 16;\n n++;\n }\n return n;\n}\n\nfunction howMuchToRead(n, state) {\n if (state.length === 0 && state.ended)\n return 0;\n\n if (state.objectMode)\n return n === 0 ? 0 : 1;\n\n if (n === null || isNaN(n)) {\n // only flow one buffer at a time\n if (state.flowing && state.buffer.length)\n return state.buffer[0].length;\n else\n return state.length;\n }\n\n if (n <= 0)\n return 0;\n\n // If we're asking for more than the target buffer level,\n // then raise the water mark. Bump up to the next highest\n // power of 2, to prevent increasing it excessively in tiny\n // amounts.\n if (n > state.highWaterMark)\n state.highWaterMark = computeNewHighWaterMark(n);\n\n // don't have that much. return null, unless we've ended.\n if (n > state.length) {\n if (!state.ended) {\n state.needReadable = true;\n return 0;\n } else {\n return state.length;\n }\n }\n\n return n;\n}\n\n// you can override either this method, or the async _read(n) below.\nReadable.prototype.read = function(n) {\n debug('read', n);\n var state = this._readableState;\n var nOrig = n;\n\n if (typeof n !== 'number' || n > 0)\n state.emittedReadable = false;\n\n // if we're doing read(0) to trigger a readable event, but we\n // already have a bunch of data in the buffer, then just trigger\n // the 'readable' event and move on.\n if (n === 0 &&\n state.needReadable &&\n (state.length >= state.highWaterMark || state.ended)) {\n debug('read: emitReadable', state.length, state.ended);\n if (state.length === 0 && state.ended)\n endReadable(this);\n else\n emitReadable(this);\n return null;\n }\n\n n = howMuchToRead(n, state);\n\n // if we've ended, and we're now clear, then finish it up.\n if (n === 0 && state.ended) {\n if (state.length === 0)\n endReadable(this);\n return null;\n }\n\n // All the actual chunk generation logic needs to be\n // *below* the call to _read. The reason is that in certain\n // synthetic stream cases, such as passthrough streams, _read\n // may be a completely synchronous operation which may change\n // the state of the read buffer, providing enough data when\n // before there was *not* enough.\n //\n // So, the steps are:\n // 1. Figure out what the state of things will be after we do\n // a read from the buffer.\n //\n // 2. If that resulting state will trigger a _read, then call _read.\n // Note that this may be asynchronous, or synchronous. Yes, it is\n // deeply ugly to write APIs this way, but that still doesn't mean\n // that the Readable class should behave improperly, as streams are\n // designed to be sync/async agnostic.\n // Take note if the _read call is sync or async (ie, if the read call\n // has returned yet), so that we know whether or not it's safe to emit\n // 'readable' etc.\n //\n // 3. Actually pull the requested chunks out of the buffer and return.\n\n // if we need a readable event, then we need to do some reading.\n var doRead = state.needReadable;\n debug('need readable', doRead);\n\n // if we currently have less than the highWaterMark, then also read some\n if (state.length === 0 || state.length - n < state.highWaterMark) {\n doRead = true;\n debug('length less than watermark', doRead);\n }\n\n // however, if we've ended, then there's no point, and if we're already\n // reading, then it's unnecessary.\n if (state.ended || state.reading) {\n doRead = false;\n debug('reading or ended', doRead);\n }\n\n if (doRead) {\n debug('do read');\n state.reading = true;\n state.sync = true;\n // if the length is currently zero, then we *need* a readable event.\n if (state.length === 0)\n state.needReadable = true;\n // call internal read method\n this._read(state.highWaterMark);\n state.sync = false;\n }\n\n // If _read pushed data synchronously, then `reading` will be false,\n // and we need to re-evaluate how much data we can return to the user.\n if (doRead && !state.reading)\n n = howMuchToRead(nOrig, state);\n\n var ret;\n if (n > 0)\n ret = fromList(n, state);\n else\n ret = null;\n\n if (ret === null) {\n state.needReadable = true;\n n = 0;\n }\n\n state.length -= n;\n\n // If we have nothing in the buffer, then we want to know\n // as soon as we *do* get something into the buffer.\n if (state.length === 0 && !state.ended)\n state.needReadable = true;\n\n // If we tried to read() past the EOF, then emit end on the next tick.\n if (nOrig !== n && state.ended && state.length === 0)\n endReadable(this);\n\n if (ret !== null)\n this.emit('data', ret);\n\n return ret;\n};\n\nfunction chunkInvalid(state, chunk) {\n var er = null;\n if (!(Buffer.isBuffer(chunk)) &&\n typeof chunk !== 'string' &&\n chunk !== null &&\n chunk !== undefined &&\n !state.objectMode) {\n er = new TypeError('Invalid non-string/buffer chunk');\n }\n return er;\n}\n\n\nfunction onEofChunk(stream, state) {\n if (state.ended) return;\n if (state.decoder) {\n var chunk = state.decoder.end();\n if (chunk && chunk.length) {\n state.buffer.push(chunk);\n state.length += state.objectMode ? 1 : chunk.length;\n }\n }\n state.ended = true;\n\n // emit 'readable' now to make sure it gets picked up.\n emitReadable(stream);\n}\n\n// Don't emit readable right away in sync mode, because this can trigger\n// another read() call => stack overflow. This way, it might trigger\n// a nextTick recursion warning, but that's not so bad.\nfunction emitReadable(stream) {\n var state = stream._readableState;\n state.needReadable = false;\n if (!state.emittedReadable) {\n debug('emitReadable', state.flowing);\n state.emittedReadable = true;\n if (state.sync)\n processNextTick(emitReadable_, stream);\n else\n emitReadable_(stream);\n }\n}\n\nfunction emitReadable_(stream) {\n debug('emit readable');\n stream.emit('readable');\n flow(stream);\n}\n\n\n// at this point, the user has presumably seen the 'readable' event,\n// and called read() to consume some data. that may have triggered\n// in turn another _read(n) call, in which case reading = true if\n// it's in progress.\n// However, if we're not ended, or reading, and the length < hwm,\n// then go ahead and try to read some more preemptively.\nfunction maybeReadMore(stream, state) {\n if (!state.readingMore) {\n state.readingMore = true;\n processNextTick(maybeReadMore_, stream, state);\n }\n}\n\nfunction maybeReadMore_(stream, state) {\n var len = state.length;\n while (!state.reading && !state.flowing && !state.ended &&\n state.length < state.highWaterMark) {\n debug('maybeReadMore read 0');\n stream.read(0);\n if (len === state.length)\n // didn't get any data, stop spinning.\n break;\n else\n len = state.length;\n }\n state.readingMore = false;\n}\n\n// abstract method. to be overridden in specific implementation classes.\n// call cb(er, data) where data is <= n in length.\n// for virtual (non-string, non-buffer) streams, \"length\" is somewhat\n// arbitrary, and perhaps not very meaningful.\nReadable.prototype._read = function(n) {\n this.emit('error', new Error('not implemented'));\n};\n\nReadable.prototype.pipe = function(dest, pipeOpts) {\n var src = this;\n var state = this._readableState;\n\n switch (state.pipesCount) {\n case 0:\n state.pipes = dest;\n break;\n case 1:\n state.pipes = [state.pipes, dest];\n break;\n default:\n state.pipes.push(dest);\n break;\n }\n state.pipesCount += 1;\n debug('pipe count=%d opts=%j', state.pipesCount, pipeOpts);\n\n var doEnd = (!pipeOpts || pipeOpts.end !== false) &&\n dest !== process.stdout &&\n dest !== process.stderr;\n\n var endFn = doEnd ? onend : cleanup;\n if (state.endEmitted)\n processNextTick(endFn);\n else\n src.once('end', endFn);\n\n dest.on('unpipe', onunpipe);\n function onunpipe(readable) {\n debug('onunpipe');\n if (readable === src) {\n cleanup();\n }\n }\n\n function onend() {\n debug('onend');\n dest.end();\n }\n\n // when the dest drains, it reduces the awaitDrain counter\n // on the source. This would be more elegant with a .once()\n // handler in flow(), but adding and removing repeatedly is\n // too slow.\n var ondrain = pipeOnDrain(src);\n dest.on('drain', ondrain);\n\n var cleanedUp = false;\n function cleanup() {\n debug('cleanup');\n // cleanup event handlers once the pipe is broken\n dest.removeListener('close', onclose);\n dest.removeListener('finish', onfinish);\n dest.removeListener('drain', ondrain);\n dest.removeListener('error', onerror);\n dest.removeListener('unpipe', onunpipe);\n src.removeListener('end', onend);\n src.removeListener('end', cleanup);\n src.removeListener('data', ondata);\n\n cleanedUp = true;\n\n // if the reader is waiting for a drain event from this\n // specific writer, then it would cause it to never start\n // flowing again.\n // So, if this is awaiting a drain, then we just call it now.\n // If we don't know, then assume that we are waiting for one.\n if (state.awaitDrain &&\n (!dest._writableState || dest._writableState.needDrain))\n ondrain();\n }\n\n src.on('data', ondata);\n function ondata(chunk) {\n debug('ondata');\n var ret = dest.write(chunk);\n if (false === ret) {\n // If the user unpiped during `dest.write()`, it is possible\n // to get stuck in a permanently paused state if that write\n // also returned false.\n if (state.pipesCount === 1 &&\n state.pipes[0] === dest &&\n src.listenerCount('data') === 1 &&\n !cleanedUp) {\n debug('false write response, pause', src._readableState.awaitDrain);\n src._readableState.awaitDrain++;\n }\n src.pause();\n }\n }\n\n // if the dest has an error, then stop piping into it.\n // however, don't suppress the throwing behavior for this.\n function onerror(er) {\n debug('onerror', er);\n unpipe();\n dest.removeListener('error', onerror);\n if (EElistenerCount(dest, 'error') === 0)\n dest.emit('error', er);\n }\n // This is a brutally ugly hack to make sure that our error handler\n // is attached before any userland ones. NEVER DO THIS.\n if (!dest._events || !dest._events.error)\n dest.on('error', onerror);\n else if (isArray(dest._events.error))\n dest._events.error.unshift(onerror);\n else\n dest._events.error = [onerror, dest._events.error];\n\n\n // Both close and finish should trigger unpipe, but only once.\n function onclose() {\n dest.removeListener('finish', onfinish);\n unpipe();\n }\n dest.once('close', onclose);\n function onfinish() {\n debug('onfinish');\n dest.removeListener('close', onclose);\n unpipe();\n }\n dest.once('finish', onfinish);\n\n function unpipe() {\n debug('unpipe');\n src.unpipe(dest);\n }\n\n // tell the dest that it's being piped to\n dest.emit('pipe', src);\n\n // start the flow if it hasn't been started already.\n if (!state.flowing) {\n debug('pipe resume');\n src.resume();\n }\n\n return dest;\n};\n\nfunction pipeOnDrain(src) {\n return function() {\n var state = src._readableState;\n debug('pipeOnDrain', state.awaitDrain);\n if (state.awaitDrain)\n state.awaitDrain--;\n if (state.awaitDrain === 0 && EElistenerCount(src, 'data')) {\n state.flowing = true;\n flow(src);\n }\n };\n}\n\n\nReadable.prototype.unpipe = function(dest) {\n var state = this._readableState;\n\n // if we're not piping anywhere, then do nothing.\n if (state.pipesCount === 0)\n return this;\n\n // just one destination. most common case.\n if (state.pipesCount === 1) {\n // passed in one, but it's not the right one.\n if (dest && dest !== state.pipes)\n return this;\n\n if (!dest)\n dest = state.pipes;\n\n // got a match.\n state.pipes = null;\n state.pipesCount = 0;\n state.flowing = false;\n if (dest)\n dest.emit('unpipe', this);\n return this;\n }\n\n // slow case. multiple pipe destinations.\n\n if (!dest) {\n // remove all.\n var dests = state.pipes;\n var len = state.pipesCount;\n state.pipes = null;\n state.pipesCount = 0;\n state.flowing = false;\n\n for (var i = 0; i < len; i++)\n dests[i].emit('unpipe', this);\n return this;\n }\n\n // try to find the right one.\n var i = indexOf(state.pipes, dest);\n if (i === -1)\n return this;\n\n state.pipes.splice(i, 1);\n state.pipesCount -= 1;\n if (state.pipesCount === 1)\n state.pipes = state.pipes[0];\n\n dest.emit('unpipe', this);\n\n return this;\n};\n\n// set up data events if they are asked for\n// Ensure readable listeners eventually get something\nReadable.prototype.on = function(ev, fn) {\n var res = Stream.prototype.on.call(this, ev, fn);\n\n // If listening to data, and it has not explicitly been paused,\n // then call resume to start the flow of data on the next tick.\n if (ev === 'data' && false !== this._readableState.flowing) {\n this.resume();\n }\n\n if (ev === 'readable' && this.readable) {\n var state = this._readableState;\n if (!state.readableListening) {\n state.readableListening = true;\n state.emittedReadable = false;\n state.needReadable = true;\n if (!state.reading) {\n processNextTick(nReadingNextTick, this);\n } else if (state.length) {\n emitReadable(this, state);\n }\n }\n }\n\n return res;\n};\nReadable.prototype.addListener = Readable.prototype.on;\n\nfunction nReadingNextTick(self) {\n debug('readable nexttick read 0');\n self.read(0);\n}\n\n// pause() and resume() are remnants of the legacy readable stream API\n// If the user uses them, then switch into old mode.\nReadable.prototype.resume = function() {\n var state = this._readableState;\n if (!state.flowing) {\n debug('resume');\n state.flowing = true;\n resume(this, state);\n }\n return this;\n};\n\nfunction resume(stream, state) {\n if (!state.resumeScheduled) {\n state.resumeScheduled = true;\n processNextTick(resume_, stream, state);\n }\n}\n\nfunction resume_(stream, state) {\n if (!state.reading) {\n debug('resume read 0');\n stream.read(0);\n }\n\n state.resumeScheduled = false;\n stream.emit('resume');\n flow(stream);\n if (state.flowing && !state.reading)\n stream.read(0);\n}\n\nReadable.prototype.pause = function() {\n debug('call pause flowing=%j', this._readableState.flowing);\n if (false !== this._readableState.flowing) {\n debug('pause');\n this._readableState.flowing = false;\n this.emit('pause');\n }\n return this;\n};\n\nfunction flow(stream) {\n var state = stream._readableState;\n debug('flow', state.flowing);\n if (state.flowing) {\n do {\n var chunk = stream.read();\n } while (null !== chunk && state.flowing);\n }\n}\n\n// wrap an old-style stream as the async data source.\n// This is *not* part of the readable stream interface.\n// It is an ugly unfortunate mess of history.\nReadable.prototype.wrap = function(stream) {\n var state = this._readableState;\n var paused = false;\n\n var self = this;\n stream.on('end', function() {\n debug('wrapped end');\n if (state.decoder && !state.ended) {\n var chunk = state.decoder.end();\n if (chunk && chunk.length)\n self.push(chunk);\n }\n\n self.push(null);\n });\n\n stream.on('data', function(chunk) {\n debug('wrapped data');\n if (state.decoder)\n chunk = state.decoder.write(chunk);\n\n // don't skip over falsy values in objectMode\n if (state.objectMode && (chunk === null || chunk === undefined))\n return;\n else if (!state.objectMode && (!chunk || !chunk.length))\n return;\n\n var ret = self.push(chunk);\n if (!ret) {\n paused = true;\n stream.pause();\n }\n });\n\n // proxy all the other methods.\n // important when wrapping filters and duplexes.\n for (var i in stream) {\n if (this[i] === undefined && typeof stream[i] === 'function') {\n this[i] = function(method) { return function() {\n return stream[method].apply(stream, arguments);\n }; }(i);\n }\n }\n\n // proxy certain important events.\n var events = ['error', 'close', 'destroy', 'pause', 'resume'];\n forEach(events, function(ev) {\n stream.on(ev, self.emit.bind(self, ev));\n });\n\n // when we try to consume some more bytes, simply unpause the\n // underlying stream.\n self._read = function(n) {\n debug('wrapped _read', n);\n if (paused) {\n paused = false;\n stream.resume();\n }\n };\n\n return self;\n};\n\n\n// exposed for testing purposes only.\nReadable._fromList = fromList;\n\n// Pluck off n bytes from an array of buffers.\n// Length is the combined lengths of all the buffers in the list.\nfunction fromList(n, state) {\n var list = state.buffer;\n var length = state.length;\n var stringMode = !!state.decoder;\n var objectMode = !!state.objectMode;\n var ret;\n\n // nothing in the list, definitely empty.\n if (list.length === 0)\n return null;\n\n if (length === 0)\n ret = null;\n else if (objectMode)\n ret = list.shift();\n else if (!n || n >= length) {\n // read it all, truncate the array.\n if (stringMode)\n ret = list.join('');\n else if (list.length === 1)\n ret = list[0];\n else\n ret = Buffer.concat(list, length);\n list.length = 0;\n } else {\n // read just some of it.\n if (n < list[0].length) {\n // just take a part of the first list item.\n // slice is the same for buffers and strings.\n var buf = list[0];\n ret = buf.slice(0, n);\n list[0] = buf.slice(n);\n } else if (n === list[0].length) {\n // first list is a perfect match\n ret = list.shift();\n } else {\n // complex case.\n // we have enough to cover it, but it spans past the first buffer.\n if (stringMode)\n ret = '';\n else\n ret = new Buffer(n);\n\n var c = 0;\n for (var i = 0, l = list.length; i < l && c < n; i++) {\n var buf = list[0];\n var cpy = Math.min(n - c, buf.length);\n\n if (stringMode)\n ret += buf.slice(0, cpy);\n else\n buf.copy(ret, c, 0, cpy);\n\n if (cpy < buf.length)\n list[0] = buf.slice(cpy);\n else\n list.shift();\n\n c += cpy;\n }\n }\n }\n\n return ret;\n}\n\nfunction endReadable(stream) {\n var state = stream._readableState;\n\n // If we get here before consuming all the bytes, then that is a\n // bug in node. Should never happen.\n if (state.length > 0)\n throw new Error('endReadable called on non-empty stream');\n\n if (!state.endEmitted) {\n state.ended = true;\n processNextTick(endReadableNT, state, stream);\n }\n}\n\nfunction endReadableNT(state, stream) {\n // Check that we didn't get one last unshift.\n if (!state.endEmitted && state.length === 0) {\n state.endEmitted = true;\n stream.readable = false;\n stream.emit('end');\n }\n}\n\nfunction forEach (xs, f) {\n for (var i = 0, l = xs.length; i < l; i++) {\n f(xs[i], i);\n }\n}\n\nfunction indexOf (xs, x) {\n for (var i = 0, l = xs.length; i < l; i++) {\n if (xs[i] === x) return i;\n }\n return -1;\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(83)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/~/through2/~/readable-stream/lib/_stream_readable.js\n ** module id = 220\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/~/through2/~/readable-stream/lib/_stream_readable.js?"); + eval("module.exports = function(v) {\n return v === null;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl/lib/isNull.js\n ** module id = 220\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl/lib/isNull.js?"); /***/ }, /* 221 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("module.exports = Array.isArray || function (arr) {\n return Object.prototype.toString.call(arr) == '[object Array]';\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/~/through2/~/readable-stream/~/isarray/index.js\n ** module id = 221\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/~/through2/~/readable-stream/~/isarray/index.js?"); + eval("var isStream = __webpack_require__(219);\n\nmodule.exports = function(stream) {\n if (!isStream(stream)) {\n return;\n }\n\n var streamType = stream.constructor.name;\n // Avoid StreamStream\n if (streamType === 'Stream') {\n streamType = '';\n }\n\n return '<' + streamType + 'Stream>';\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl/lib/inspectStream.js\n ** module id = 221\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl/lib/inspectStream.js?"); /***/ }, /* 222 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("/* (ignored) */\n\n/*****************\n ** WEBPACK FOOTER\n ** util (ignored)\n ** module id = 222\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///util_(ignored)?"); + eval("var path = __webpack_require__(149);\n\nmodule.exports = function(npath, ext) {\n if (typeof npath !== 'string') return npath;\n if (npath.length === 0) return npath;\n\n var nFileName = path.basename(npath, path.extname(npath))+ext;\n return path.join(path.dirname(npath), nFileName);\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/replace-ext/index.js\n ** module id = 222\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/replace-ext/index.js?"); /***/ }, /* 223 */ /***/ function(module, exports, __webpack_require__) { - eval("// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nvar Buffer = __webpack_require__(1).Buffer;\n\nvar isBufferEncoding = Buffer.isEncoding\n || function(encoding) {\n switch (encoding && encoding.toLowerCase()) {\n case 'hex': case 'utf8': case 'utf-8': case 'ascii': case 'binary': case 'base64': case 'ucs2': case 'ucs-2': case 'utf16le': case 'utf-16le': case 'raw': return true;\n default: return false;\n }\n }\n\n\nfunction assertEncoding(encoding) {\n if (encoding && !isBufferEncoding(encoding)) {\n throw new Error('Unknown encoding: ' + encoding);\n }\n}\n\n// StringDecoder provides an interface for efficiently splitting a series of\n// buffers into a series of JS strings without breaking apart multi-byte\n// characters. CESU-8 is handled as part of the UTF-8 encoding.\n//\n// @TODO Handling all encodings inside a single object makes it very difficult\n// to reason about this code, so it should be split up in the future.\n// @TODO There should be a utf8-strict encoding that rejects invalid UTF-8 code\n// points as used by CESU-8.\nvar StringDecoder = exports.StringDecoder = function(encoding) {\n this.encoding = (encoding || 'utf8').toLowerCase().replace(/[-_]/, '');\n assertEncoding(encoding);\n switch (this.encoding) {\n case 'utf8':\n // CESU-8 represents each of Surrogate Pair by 3-bytes\n this.surrogateSize = 3;\n break;\n case 'ucs2':\n case 'utf16le':\n // UTF-16 represents each of Surrogate Pair by 2-bytes\n this.surrogateSize = 2;\n this.detectIncompleteChar = utf16DetectIncompleteChar;\n break;\n case 'base64':\n // Base-64 stores 3 bytes in 4 chars, and pads the remainder.\n this.surrogateSize = 3;\n this.detectIncompleteChar = base64DetectIncompleteChar;\n break;\n default:\n this.write = passThroughWrite;\n return;\n }\n\n // Enough space to store all bytes of a single character. UTF-8 needs 4\n // bytes, but CESU-8 may require up to 6 (3 bytes per surrogate).\n this.charBuffer = new Buffer(6);\n // Number of bytes received for the current incomplete multi-byte character.\n this.charReceived = 0;\n // Number of bytes expected for the current incomplete multi-byte character.\n this.charLength = 0;\n};\n\n\n// write decodes the given buffer and returns it as JS string that is\n// guaranteed to not contain any partial multi-byte characters. Any partial\n// character found at the end of the buffer is buffered up, and will be\n// returned when calling write again with the remaining bytes.\n//\n// Note: Converting a Buffer containing an orphan surrogate to a String\n// currently works, but converting a String to a Buffer (via `new Buffer`, or\n// Buffer#write) will replace incomplete surrogates with the unicode\n// replacement character. See https://codereview.chromium.org/121173009/ .\nStringDecoder.prototype.write = function(buffer) {\n var charStr = '';\n // if our last write ended with an incomplete multibyte character\n while (this.charLength) {\n // determine how many remaining bytes this buffer has to offer for this char\n var available = (buffer.length >= this.charLength - this.charReceived) ?\n this.charLength - this.charReceived :\n buffer.length;\n\n // add the new bytes to the char buffer\n buffer.copy(this.charBuffer, this.charReceived, 0, available);\n this.charReceived += available;\n\n if (this.charReceived < this.charLength) {\n // still not enough chars in this buffer? wait for more ...\n return '';\n }\n\n // remove bytes belonging to the current character from the buffer\n buffer = buffer.slice(available, buffer.length);\n\n // get the character that was split\n charStr = this.charBuffer.slice(0, this.charLength).toString(this.encoding);\n\n // CESU-8: lead surrogate (D800-DBFF) is also the incomplete character\n var charCode = charStr.charCodeAt(charStr.length - 1);\n if (charCode >= 0xD800 && charCode <= 0xDBFF) {\n this.charLength += this.surrogateSize;\n charStr = '';\n continue;\n }\n this.charReceived = this.charLength = 0;\n\n // if there are no more bytes in this buffer, just emit our char\n if (buffer.length === 0) {\n return charStr;\n }\n break;\n }\n\n // determine and set charLength / charReceived\n this.detectIncompleteChar(buffer);\n\n var end = buffer.length;\n if (this.charLength) {\n // buffer the incomplete character bytes we got\n buffer.copy(this.charBuffer, 0, buffer.length - this.charReceived, end);\n end -= this.charReceived;\n }\n\n charStr += buffer.toString(this.encoding, 0, end);\n\n var end = charStr.length - 1;\n var charCode = charStr.charCodeAt(end);\n // CESU-8: lead surrogate (D800-DBFF) is also the incomplete character\n if (charCode >= 0xD800 && charCode <= 0xDBFF) {\n var size = this.surrogateSize;\n this.charLength += size;\n this.charReceived += size;\n this.charBuffer.copy(this.charBuffer, size, 0, size);\n buffer.copy(this.charBuffer, 0, 0, size);\n return charStr.substring(0, end);\n }\n\n // or just emit the charStr\n return charStr;\n};\n\n// detectIncompleteChar determines if there is an incomplete UTF-8 character at\n// the end of the given buffer. If so, it sets this.charLength to the byte\n// length that character, and sets this.charReceived to the number of bytes\n// that are available for this character.\nStringDecoder.prototype.detectIncompleteChar = function(buffer) {\n // determine how many bytes we have to check at the end of this buffer\n var i = (buffer.length >= 3) ? 3 : buffer.length;\n\n // Figure out if one of the last i bytes of our buffer announces an\n // incomplete char.\n for (; i > 0; i--) {\n var c = buffer[buffer.length - i];\n\n // See http://en.wikipedia.org/wiki/UTF-8#Description\n\n // 110XXXXX\n if (i == 1 && c >> 5 == 0x06) {\n this.charLength = 2;\n break;\n }\n\n // 1110XXXX\n if (i <= 2 && c >> 4 == 0x0E) {\n this.charLength = 3;\n break;\n }\n\n // 11110XXX\n if (i <= 3 && c >> 3 == 0x1E) {\n this.charLength = 4;\n break;\n }\n }\n this.charReceived = i;\n};\n\nStringDecoder.prototype.end = function(buffer) {\n var res = '';\n if (buffer && buffer.length)\n res = this.write(buffer);\n\n if (this.charReceived) {\n var cr = this.charReceived;\n var buf = this.charBuffer;\n var enc = this.encoding;\n res += buf.slice(0, cr).toString(enc);\n }\n\n return res;\n};\n\nfunction passThroughWrite(buffer) {\n return buffer.toString(this.encoding);\n}\n\nfunction utf16DetectIncompleteChar(buffer) {\n this.charReceived = buffer.length % 2;\n this.charLength = this.charReceived ? 2 : 0;\n}\n\nfunction base64DetectIncompleteChar(buffer) {\n this.charReceived = buffer.length % 3;\n this.charLength = this.charReceived ? 3 : 0;\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/~/through2/~/readable-stream/~/string_decoder/index.js\n ** module id = 223\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/~/through2/~/readable-stream/~/string_decoder/index.js?"); + eval("'use strict';\n\nmodule.exports = {\n src: __webpack_require__(224),\n dest: __webpack_require__(318),\n symlink: __webpack_require__(326)\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/index.js\n ** module id = 223\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/index.js?"); /***/ }, /* 224 */ /***/ function(module, exports, __webpack_require__) { - eval("// A bit simpler than readable streams.\n// Implement an async ._write(chunk, encoding, cb), and it'll handle all\n// the drain event emission and buffering.\n\n'use strict';\n\nmodule.exports = Writable;\n\n/**/\nvar processNextTick = __webpack_require__(217);\n/**/\n\n\n/**/\nvar Buffer = __webpack_require__(1).Buffer;\n/**/\n\nWritable.WritableState = WritableState;\n\n\n/**/\nvar util = __webpack_require__(218);\nutil.inherits = __webpack_require__(219);\n/**/\n\n\n/**/\nvar internalUtil = {\n deprecate: __webpack_require__(225)\n};\n/**/\n\n\n\n/**/\nvar Stream;\n(function (){try{\n Stream = __webpack_require__(96);\n}catch(_){}finally{\n if (!Stream)\n Stream = __webpack_require__(84).EventEmitter;\n}}())\n/**/\n\nvar Buffer = __webpack_require__(1).Buffer;\n\nutil.inherits(Writable, Stream);\n\nfunction nop() {}\n\nfunction WriteReq(chunk, encoding, cb) {\n this.chunk = chunk;\n this.encoding = encoding;\n this.callback = cb;\n this.next = null;\n}\n\nvar Duplex;\nfunction WritableState(options, stream) {\n Duplex = Duplex || __webpack_require__(216);\n\n options = options || {};\n\n // object stream flag to indicate whether or not this stream\n // contains buffers or objects.\n this.objectMode = !!options.objectMode;\n\n if (stream instanceof Duplex)\n this.objectMode = this.objectMode || !!options.writableObjectMode;\n\n // the point at which write() starts returning false\n // Note: 0 is a valid value, means that we always return false if\n // the entire buffer is not flushed immediately on write()\n var hwm = options.highWaterMark;\n var defaultHwm = this.objectMode ? 16 : 16 * 1024;\n this.highWaterMark = (hwm || hwm === 0) ? hwm : defaultHwm;\n\n // cast to ints.\n this.highWaterMark = ~~this.highWaterMark;\n\n this.needDrain = false;\n // at the start of calling end()\n this.ending = false;\n // when end() has been called, and returned\n this.ended = false;\n // when 'finish' is emitted\n this.finished = false;\n\n // should we decode strings into buffers before passing to _write?\n // this is here so that some node-core streams can optimize string\n // handling at a lower level.\n var noDecode = options.decodeStrings === false;\n this.decodeStrings = !noDecode;\n\n // Crypto is kind of old and crusty. Historically, its default string\n // encoding is 'binary' so we have to make this configurable.\n // Everything else in the universe uses 'utf8', though.\n this.defaultEncoding = options.defaultEncoding || 'utf8';\n\n // not an actual buffer we keep track of, but a measurement\n // of how much we're waiting to get pushed to some underlying\n // socket or file.\n this.length = 0;\n\n // a flag to see when we're in the middle of a write.\n this.writing = false;\n\n // when true all writes will be buffered until .uncork() call\n this.corked = 0;\n\n // a flag to be able to tell if the onwrite cb is called immediately,\n // or on a later tick. We set this to true at first, because any\n // actions that shouldn't happen until \"later\" should generally also\n // not happen before the first write call.\n this.sync = true;\n\n // a flag to know if we're processing previously buffered items, which\n // may call the _write() callback in the same tick, so that we don't\n // end up in an overlapped onwrite situation.\n this.bufferProcessing = false;\n\n // the callback that's passed to _write(chunk,cb)\n this.onwrite = function(er) {\n onwrite(stream, er);\n };\n\n // the callback that the user supplies to write(chunk,encoding,cb)\n this.writecb = null;\n\n // the amount that is being written when _write is called.\n this.writelen = 0;\n\n this.bufferedRequest = null;\n this.lastBufferedRequest = null;\n\n // number of pending user-supplied write callbacks\n // this must be 0 before 'finish' can be emitted\n this.pendingcb = 0;\n\n // emit prefinish if the only thing we're waiting for is _write cbs\n // This is relevant for synchronous Transform streams\n this.prefinished = false;\n\n // True if the error was already emitted and should not be thrown again\n this.errorEmitted = false;\n}\n\nWritableState.prototype.getBuffer = function writableStateGetBuffer() {\n var current = this.bufferedRequest;\n var out = [];\n while (current) {\n out.push(current);\n current = current.next;\n }\n return out;\n};\n\n(function (){try {\nObject.defineProperty(WritableState.prototype, 'buffer', {\n get: internalUtil.deprecate(function() {\n return this.getBuffer();\n }, '_writableState.buffer is deprecated. Use _writableState.getBuffer ' +\n 'instead.')\n});\n}catch(_){}}());\n\n\nvar Duplex;\nfunction Writable(options) {\n Duplex = Duplex || __webpack_require__(216);\n\n // Writable ctor is applied to Duplexes, though they're not\n // instanceof Writable, they're instanceof Readable.\n if (!(this instanceof Writable) && !(this instanceof Duplex))\n return new Writable(options);\n\n this._writableState = new WritableState(options, this);\n\n // legacy.\n this.writable = true;\n\n if (options) {\n if (typeof options.write === 'function')\n this._write = options.write;\n\n if (typeof options.writev === 'function')\n this._writev = options.writev;\n }\n\n Stream.call(this);\n}\n\n// Otherwise people can pipe Writable streams, which is just wrong.\nWritable.prototype.pipe = function() {\n this.emit('error', new Error('Cannot pipe. Not readable.'));\n};\n\n\nfunction writeAfterEnd(stream, cb) {\n var er = new Error('write after end');\n // TODO: defer error events consistently everywhere, not just the cb\n stream.emit('error', er);\n processNextTick(cb, er);\n}\n\n// If we get something that is not a buffer, string, null, or undefined,\n// and we're not in objectMode, then that's an error.\n// Otherwise stream chunks are all considered to be of length=1, and the\n// watermarks determine how many objects to keep in the buffer, rather than\n// how many bytes or characters.\nfunction validChunk(stream, state, chunk, cb) {\n var valid = true;\n\n if (!(Buffer.isBuffer(chunk)) &&\n typeof chunk !== 'string' &&\n chunk !== null &&\n chunk !== undefined &&\n !state.objectMode) {\n var er = new TypeError('Invalid non-string/buffer chunk');\n stream.emit('error', er);\n processNextTick(cb, er);\n valid = false;\n }\n return valid;\n}\n\nWritable.prototype.write = function(chunk, encoding, cb) {\n var state = this._writableState;\n var ret = false;\n\n if (typeof encoding === 'function') {\n cb = encoding;\n encoding = null;\n }\n\n if (Buffer.isBuffer(chunk))\n encoding = 'buffer';\n else if (!encoding)\n encoding = state.defaultEncoding;\n\n if (typeof cb !== 'function')\n cb = nop;\n\n if (state.ended)\n writeAfterEnd(this, cb);\n else if (validChunk(this, state, chunk, cb)) {\n state.pendingcb++;\n ret = writeOrBuffer(this, state, chunk, encoding, cb);\n }\n\n return ret;\n};\n\nWritable.prototype.cork = function() {\n var state = this._writableState;\n\n state.corked++;\n};\n\nWritable.prototype.uncork = function() {\n var state = this._writableState;\n\n if (state.corked) {\n state.corked--;\n\n if (!state.writing &&\n !state.corked &&\n !state.finished &&\n !state.bufferProcessing &&\n state.bufferedRequest)\n clearBuffer(this, state);\n }\n};\n\nWritable.prototype.setDefaultEncoding = function setDefaultEncoding(encoding) {\n // node::ParseEncoding() requires lower case.\n if (typeof encoding === 'string')\n encoding = encoding.toLowerCase();\n if (!(['hex', 'utf8', 'utf-8', 'ascii', 'binary', 'base64',\n'ucs2', 'ucs-2','utf16le', 'utf-16le', 'raw']\n.indexOf((encoding + '').toLowerCase()) > -1))\n throw new TypeError('Unknown encoding: ' + encoding);\n this._writableState.defaultEncoding = encoding;\n};\n\nfunction decodeChunk(state, chunk, encoding) {\n if (!state.objectMode &&\n state.decodeStrings !== false &&\n typeof chunk === 'string') {\n chunk = new Buffer(chunk, encoding);\n }\n return chunk;\n}\n\n// if we're already writing something, then just put this\n// in the queue, and wait our turn. Otherwise, call _write\n// If we return false, then we need a drain event, so set that flag.\nfunction writeOrBuffer(stream, state, chunk, encoding, cb) {\n chunk = decodeChunk(state, chunk, encoding);\n\n if (Buffer.isBuffer(chunk))\n encoding = 'buffer';\n var len = state.objectMode ? 1 : chunk.length;\n\n state.length += len;\n\n var ret = state.length < state.highWaterMark;\n // we must ensure that previous needDrain will not be reset to false.\n if (!ret)\n state.needDrain = true;\n\n if (state.writing || state.corked) {\n var last = state.lastBufferedRequest;\n state.lastBufferedRequest = new WriteReq(chunk, encoding, cb);\n if (last) {\n last.next = state.lastBufferedRequest;\n } else {\n state.bufferedRequest = state.lastBufferedRequest;\n }\n } else {\n doWrite(stream, state, false, len, chunk, encoding, cb);\n }\n\n return ret;\n}\n\nfunction doWrite(stream, state, writev, len, chunk, encoding, cb) {\n state.writelen = len;\n state.writecb = cb;\n state.writing = true;\n state.sync = true;\n if (writev)\n stream._writev(chunk, state.onwrite);\n else\n stream._write(chunk, encoding, state.onwrite);\n state.sync = false;\n}\n\nfunction onwriteError(stream, state, sync, er, cb) {\n --state.pendingcb;\n if (sync)\n processNextTick(cb, er);\n else\n cb(er);\n\n stream._writableState.errorEmitted = true;\n stream.emit('error', er);\n}\n\nfunction onwriteStateUpdate(state) {\n state.writing = false;\n state.writecb = null;\n state.length -= state.writelen;\n state.writelen = 0;\n}\n\nfunction onwrite(stream, er) {\n var state = stream._writableState;\n var sync = state.sync;\n var cb = state.writecb;\n\n onwriteStateUpdate(state);\n\n if (er)\n onwriteError(stream, state, sync, er, cb);\n else {\n // Check if we're actually ready to finish, but don't emit yet\n var finished = needFinish(state);\n\n if (!finished &&\n !state.corked &&\n !state.bufferProcessing &&\n state.bufferedRequest) {\n clearBuffer(stream, state);\n }\n\n if (sync) {\n processNextTick(afterWrite, stream, state, finished, cb);\n } else {\n afterWrite(stream, state, finished, cb);\n }\n }\n}\n\nfunction afterWrite(stream, state, finished, cb) {\n if (!finished)\n onwriteDrain(stream, state);\n state.pendingcb--;\n cb();\n finishMaybe(stream, state);\n}\n\n// Must force callback to be called on nextTick, so that we don't\n// emit 'drain' before the write() consumer gets the 'false' return\n// value, and has a chance to attach a 'drain' listener.\nfunction onwriteDrain(stream, state) {\n if (state.length === 0 && state.needDrain) {\n state.needDrain = false;\n stream.emit('drain');\n }\n}\n\n\n// if there's something in the buffer waiting, then process it\nfunction clearBuffer(stream, state) {\n state.bufferProcessing = true;\n var entry = state.bufferedRequest;\n\n if (stream._writev && entry && entry.next) {\n // Fast case, write everything using _writev()\n var buffer = [];\n var cbs = [];\n while (entry) {\n cbs.push(entry.callback);\n buffer.push(entry);\n entry = entry.next;\n }\n\n // count the one we are adding, as well.\n // TODO(isaacs) clean this up\n state.pendingcb++;\n state.lastBufferedRequest = null;\n doWrite(stream, state, true, state.length, buffer, '', function(err) {\n for (var i = 0; i < cbs.length; i++) {\n state.pendingcb--;\n cbs[i](err);\n }\n });\n\n // Clear buffer\n } else {\n // Slow case, write chunks one-by-one\n while (entry) {\n var chunk = entry.chunk;\n var encoding = entry.encoding;\n var cb = entry.callback;\n var len = state.objectMode ? 1 : chunk.length;\n\n doWrite(stream, state, false, len, chunk, encoding, cb);\n entry = entry.next;\n // if we didn't call the onwrite immediately, then\n // it means that we need to wait until it does.\n // also, that means that the chunk and cb are currently\n // being processed, so move the buffer counter past them.\n if (state.writing) {\n break;\n }\n }\n\n if (entry === null)\n state.lastBufferedRequest = null;\n }\n state.bufferedRequest = entry;\n state.bufferProcessing = false;\n}\n\nWritable.prototype._write = function(chunk, encoding, cb) {\n cb(new Error('not implemented'));\n};\n\nWritable.prototype._writev = null;\n\nWritable.prototype.end = function(chunk, encoding, cb) {\n var state = this._writableState;\n\n if (typeof chunk === 'function') {\n cb = chunk;\n chunk = null;\n encoding = null;\n } else if (typeof encoding === 'function') {\n cb = encoding;\n encoding = null;\n }\n\n if (chunk !== null && chunk !== undefined)\n this.write(chunk, encoding);\n\n // .end() fully uncorks\n if (state.corked) {\n state.corked = 1;\n this.uncork();\n }\n\n // ignore unnecessary end() calls.\n if (!state.ending && !state.finished)\n endWritable(this, state, cb);\n};\n\n\nfunction needFinish(state) {\n return (state.ending &&\n state.length === 0 &&\n state.bufferedRequest === null &&\n !state.finished &&\n !state.writing);\n}\n\nfunction prefinish(stream, state) {\n if (!state.prefinished) {\n state.prefinished = true;\n stream.emit('prefinish');\n }\n}\n\nfunction finishMaybe(stream, state) {\n var need = needFinish(state);\n if (need) {\n if (state.pendingcb === 0) {\n prefinish(stream, state);\n state.finished = true;\n stream.emit('finish');\n } else {\n prefinish(stream, state);\n }\n }\n return need;\n}\n\nfunction endWritable(stream, state, cb) {\n state.ending = true;\n finishMaybe(stream, state);\n if (cb) {\n if (state.finished)\n processNextTick(cb);\n else\n stream.once('finish', cb);\n }\n state.ended = true;\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/~/through2/~/readable-stream/lib/_stream_writable.js\n ** module id = 224\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/~/through2/~/readable-stream/lib/_stream_writable.js?"); + eval("/* WEBPACK VAR INJECTION */(function(process) {'use strict';\n\nvar assign = __webpack_require__(225);\nvar through = __webpack_require__(226);\nvar gs = __webpack_require__(235);\nvar File = __webpack_require__(214);\nvar duplexify = __webpack_require__(294);\nvar merge = __webpack_require__(296);\nvar sourcemaps = process.browser ? null : __webpack_require__(298);\nvar filterSince = __webpack_require__(308);\nvar isValidGlob = __webpack_require__(309);\n\nvar getContents = __webpack_require__(310);\nvar resolveSymlinks = __webpack_require__(317);\n\nfunction createFile(globFile, enc, cb) {\n cb(null, new File(globFile));\n}\n\nfunction src(glob, opt) {\n var options = assign({\n read: true,\n buffer: true,\n stripBOM: true,\n sourcemaps: false,\n passthrough: false,\n followSymlinks: true\n }, opt);\n\n var inputPass;\n\n if (!isValidGlob(glob)) {\n throw new Error('Invalid glob argument: ' + glob);\n }\n\n var globStream = gs.create(glob, options);\n\n var outputStream = globStream\n .pipe(resolveSymlinks(options))\n .pipe(through.obj(createFile));\n\n if (options.since != null) {\n outputStream = outputStream\n .pipe(filterSince(options.since));\n }\n\n if (options.read !== false) {\n outputStream = outputStream\n .pipe(getContents(options));\n }\n\n if (options.passthrough === true) {\n inputPass = through.obj();\n outputStream = duplexify.obj(inputPass, merge(outputStream, inputPass));\n }\n if (options.sourcemaps === true) {\n outputStream = outputStream\n .pipe(sourcemaps.init({loadMaps: true}));\n }\n globStream.on('error', outputStream.emit.bind(outputStream, 'error'));\n return outputStream;\n}\n\nmodule.exports = src;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/lib/src/index.js\n ** module id = 224\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/lib/src/index.js?"); /***/ }, /* 225 */ /***/ function(module, exports) { - eval("/* WEBPACK VAR INJECTION */(function(global) {\n/**\n * Module exports.\n */\n\nmodule.exports = deprecate;\n\n/**\n * Mark that a method should not be used.\n * Returns a modified function which warns once by default.\n *\n * If `localStorage.noDeprecation = true` is set, then it is a no-op.\n *\n * If `localStorage.throwDeprecation = true` is set, then deprecated functions\n * will throw an Error when invoked.\n *\n * If `localStorage.traceDeprecation = true` is set, then deprecated functions\n * will invoke `console.trace()` instead of `console.error()`.\n *\n * @param {Function} fn - the function to deprecate\n * @param {String} msg - the string to print to the console when `fn` is invoked\n * @returns {Function} a new \"deprecated\" version of `fn`\n * @api public\n */\n\nfunction deprecate (fn, msg) {\n if (config('noDeprecation')) {\n return fn;\n }\n\n var warned = false;\n function deprecated() {\n if (!warned) {\n if (config('throwDeprecation')) {\n throw new Error(msg);\n } else if (config('traceDeprecation')) {\n console.trace(msg);\n } else {\n console.warn(msg);\n }\n warned = true;\n }\n return fn.apply(this, arguments);\n }\n\n return deprecated;\n}\n\n/**\n * Checks `localStorage` for boolean values for the given `name`.\n *\n * @param {String} name\n * @returns {Boolean}\n * @api private\n */\n\nfunction config (name) {\n // accessing global.localStorage can trigger a DOMException in sandboxed iframes\n try {\n if (!global.localStorage) return false;\n } catch (_) {\n return false;\n }\n var val = global.localStorage[name];\n if (null == val) return false;\n return String(val).toLowerCase() === 'true';\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/~/through2/~/readable-stream/~/util-deprecate/browser.js\n ** module id = 225\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/~/through2/~/readable-stream/~/util-deprecate/browser.js?"); + eval("/* eslint-disable no-unused-vars */\n'use strict';\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nmodule.exports = Object.assign || function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (Object.getOwnPropertySymbols) {\n\t\t\tsymbols = Object.getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/object-assign/index.js\n ** module id = 225\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/object-assign/index.js?"); /***/ }, /* 226 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("module.exports = extend\n\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\nfunction extend() {\n var target = {}\n\n for (var i = 0; i < arguments.length; i++) {\n var source = arguments[i]\n\n for (var key in source) {\n if (hasOwnProperty.call(source, key)) {\n target[key] = source[key]\n }\n }\n }\n\n return target\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/~/through2/~/xtend/immutable.js\n ** module id = 226\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/~/through2/~/xtend/immutable.js?"); + eval("/* WEBPACK VAR INJECTION */(function(process) {var Transform = __webpack_require__(227)\n , inherits = __webpack_require__(139).inherits\n , xtend = __webpack_require__(67)\n\nfunction DestroyableTransform(opts) {\n Transform.call(this, opts)\n this._destroyed = false\n}\n\ninherits(DestroyableTransform, Transform)\n\nDestroyableTransform.prototype.destroy = function(err) {\n if (this._destroyed) return\n this._destroyed = true\n \n var self = this\n process.nextTick(function() {\n if (err)\n self.emit('error', err)\n self.emit('close')\n })\n}\n\n// a noop _transform function\nfunction noop (chunk, enc, callback) {\n callback(null, chunk)\n}\n\n\n// create a new export function, used by both the main export and\n// the .ctor export, contains common logic for dealing with arguments\nfunction through2 (construct) {\n return function (options, transform, flush) {\n if (typeof options == 'function') {\n flush = transform\n transform = options\n options = {}\n }\n\n if (typeof transform != 'function')\n transform = noop\n\n if (typeof flush != 'function')\n flush = null\n\n return construct(options, transform, flush)\n }\n}\n\n\n// main export, just make me a transform stream!\nmodule.exports = through2(function (options, transform, flush) {\n var t2 = new DestroyableTransform(options)\n\n t2._transform = transform\n\n if (flush)\n t2._flush = flush\n\n return t2\n})\n\n\n// make me a reusable prototype that I can `new`, or implicitly `new`\n// with a constructor call\nmodule.exports.ctor = through2(function (options, transform, flush) {\n function Through2 (override) {\n if (!(this instanceof Through2))\n return new Through2(override)\n\n this.options = xtend(options, override)\n\n DestroyableTransform.call(this, this.options)\n }\n\n inherits(Through2, DestroyableTransform)\n\n Through2.prototype._transform = transform\n\n if (flush)\n Through2.prototype._flush = flush\n\n return Through2\n})\n\n\nmodule.exports.obj = through2(function (options, transform, flush) {\n var t2 = new DestroyableTransform(xtend({ objectMode: true, highWaterMark: 16 }, options))\n\n t2._transform = transform\n\n if (flush)\n t2._flush = flush\n\n return t2\n})\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/~/through2/through2.js\n ** module id = 226\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/~/through2/through2.js?"); /***/ }, /* 227 */ /***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(process) {'use strict';\n\nvar through2 = __webpack_require__(228);\nvar Combine = __webpack_require__(239);\nvar unique = __webpack_require__(254);\n\nvar glob = __webpack_require__(270);\nvar micromatch = __webpack_require__(284);\nvar resolveGlob = __webpack_require__(323);\nvar globParent = __webpack_require__(314);\nvar path = __webpack_require__(151);\nvar extend = __webpack_require__(326);\n\nvar gs = {\n // Creates a stream for a single glob or filter\n createStream: function(ourGlob, negatives, opt) {\n\n // Remove path relativity to make globs make sense\n ourGlob = resolveGlob(ourGlob, opt);\n var ourOpt = extend({}, opt);\n delete ourOpt.root;\n\n // Create globbing stuff\n var globber = new glob.Glob(ourGlob, ourOpt);\n\n // Extract base path from glob\n var basePath = opt.base || globParent(ourGlob) + path.sep;\n\n // Create stream and map events from globber to it\n var stream = through2.obj(opt,\n negatives.length ? filterNegatives : undefined);\n\n var found = false;\n\n globber.on('error', stream.emit.bind(stream, 'error'));\n globber.once('end', function() {\n if (opt.allowEmpty !== true && !found && globIsSingular(globber)) {\n stream.emit('error',\n new Error('File not found with singular glob: ' + ourGlob));\n }\n\n stream.end();\n });\n globber.on('match', function(filename) {\n found = true;\n\n stream.write({\n cwd: opt.cwd,\n base: basePath,\n path: filename,\n });\n });\n\n return stream;\n\n function filterNegatives(filename, enc, cb) {\n var matcha = isMatch.bind(null, filename);\n if (negatives.every(matcha)) {\n cb(null, filename); // Pass\n } else {\n cb(); // Ignore\n }\n }\n },\n\n // Creates a stream for multiple globs or filters\n create: function(globs, opt) {\n if (!opt) {\n opt = {};\n }\n if (typeof opt.cwd !== 'string') {\n opt.cwd = process.cwd();\n }\n if (typeof opt.dot !== 'boolean') {\n opt.dot = false;\n }\n if (typeof opt.silent !== 'boolean') {\n opt.silent = true;\n }\n if (typeof opt.nonull !== 'boolean') {\n opt.nonull = false;\n }\n if (typeof opt.cwdbase !== 'boolean') {\n opt.cwdbase = false;\n }\n if (opt.cwdbase) {\n opt.base = opt.cwd;\n }\n\n // Only one glob no need to aggregate\n if (!Array.isArray(globs)) {\n globs = [globs];\n }\n\n var positives = [];\n var negatives = [];\n\n var ourOpt = extend({}, opt);\n delete ourOpt.root;\n\n globs.forEach(function(glob, index) {\n if (typeof glob !== 'string' && !(glob instanceof RegExp)) {\n throw new Error('Invalid glob at index ' + index);\n }\n\n var globArray = isNegative(glob) ? negatives : positives;\n\n // Create Minimatch instances for negative glob patterns\n if (globArray === negatives && typeof glob === 'string') {\n var ourGlob = resolveGlob(glob, opt);\n glob = micromatch.matcher(ourGlob, ourOpt);\n }\n\n globArray.push({\n index: index,\n glob: glob,\n });\n });\n\n if (positives.length === 0) {\n throw new Error('Missing positive glob');\n }\n\n // Only one positive glob no need to aggregate\n if (positives.length === 1) {\n return streamFromPositive(positives[0]);\n }\n\n // Create all individual streams\n var streams = positives.map(streamFromPositive);\n\n // Then just pipe them to a single unique stream and return it\n var aggregate = new Combine(streams);\n var uniqueStream = unique('path');\n var returnStream = aggregate.pipe(uniqueStream);\n\n aggregate.on('error', function(err) {\n returnStream.emit('error', err);\n });\n\n return returnStream;\n\n function streamFromPositive(positive) {\n var negativeGlobs = negatives.filter(indexGreaterThan(positive.index))\n .map(toGlob);\n return gs.createStream(positive.glob, negativeGlobs, opt);\n }\n },\n};\n\nfunction isMatch(file, matcher) {\n if (typeof matcher === 'function') {\n return matcher(file.path);\n }\n if (matcher instanceof RegExp) {\n return matcher.test(file.path);\n }\n}\n\nfunction isNegative(pattern) {\n if (typeof pattern === 'string') {\n return pattern[0] === '!';\n }\n if (pattern instanceof RegExp) {\n return true;\n }\n}\n\nfunction indexGreaterThan(index) {\n return function(obj) {\n return obj.index > index;\n };\n}\n\nfunction toGlob(obj) {\n return obj.glob;\n}\n\nfunction globIsSingular(glob) {\n var globSet = glob.minimatch.set;\n\n if (globSet.length !== 1) {\n return false;\n }\n\n return globSet[0].every(function isString(value) {\n return typeof value === 'string';\n });\n}\n\nmodule.exports = gs;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(83)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/index.js\n ** module id = 227\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/index.js?"); + eval("module.exports = __webpack_require__(228)\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/readable-stream/transform.js\n ** module id = 227\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/readable-stream/transform.js?"); /***/ }, /* 228 */ /***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(process) {var Transform = __webpack_require__(229)\n , inherits = __webpack_require__(140).inherits\n , xtend = __webpack_require__(238)\n\nfunction DestroyableTransform(opts) {\n Transform.call(this, opts)\n this._destroyed = false\n}\n\ninherits(DestroyableTransform, Transform)\n\nDestroyableTransform.prototype.destroy = function(err) {\n if (this._destroyed) return\n this._destroyed = true\n \n var self = this\n process.nextTick(function() {\n if (err)\n self.emit('error', err)\n self.emit('close')\n })\n}\n\n// a noop _transform function\nfunction noop (chunk, enc, callback) {\n callback(null, chunk)\n}\n\n\n// create a new export function, used by both the main export and\n// the .ctor export, contains common logic for dealing with arguments\nfunction through2 (construct) {\n return function (options, transform, flush) {\n if (typeof options == 'function') {\n flush = transform\n transform = options\n options = {}\n }\n\n if (typeof transform != 'function')\n transform = noop\n\n if (typeof flush != 'function')\n flush = null\n\n return construct(options, transform, flush)\n }\n}\n\n\n// main export, just make me a transform stream!\nmodule.exports = through2(function (options, transform, flush) {\n var t2 = new DestroyableTransform(options)\n\n t2._transform = transform\n\n if (flush)\n t2._flush = flush\n\n return t2\n})\n\n\n// make me a reusable prototype that I can `new`, or implicitly `new`\n// with a constructor call\nmodule.exports.ctor = through2(function (options, transform, flush) {\n function Through2 (override) {\n if (!(this instanceof Through2))\n return new Through2(override)\n\n this.options = xtend(options, override)\n\n DestroyableTransform.call(this, this.options)\n }\n\n inherits(Through2, DestroyableTransform)\n\n Through2.prototype._transform = transform\n\n if (flush)\n Through2.prototype._flush = flush\n\n return Through2\n})\n\n\nmodule.exports.obj = through2(function (options, transform, flush) {\n var t2 = new DestroyableTransform(xtend({ objectMode: true, highWaterMark: 16 }, options))\n\n t2._transform = transform\n\n if (flush)\n t2._flush = flush\n\n return t2\n})\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(83)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/through2/through2.js\n ** module id = 228\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/through2/through2.js?"); + eval("// a transform stream is a readable/writable stream where you do\n// something with the data. Sometimes it's called a \"filter\",\n// but that's not a great name for it, since that implies a thing where\n// some bits pass through, and others are simply ignored. (That would\n// be a valid example of a transform, of course.)\n//\n// While the output is causally related to the input, it's not a\n// necessarily symmetric or synchronous transformation. For example,\n// a zlib stream might take multiple plain-text writes(), and then\n// emit a single compressed chunk some time in the future.\n//\n// Here's how this works:\n//\n// The Transform stream has all the aspects of the readable and writable\n// stream classes. When you write(chunk), that calls _write(chunk,cb)\n// internally, and returns false if there's a lot of pending writes\n// buffered up. When you call read(), that calls _read(n) until\n// there's enough pending readable data buffered up.\n//\n// In a transform stream, the written data is placed in a buffer. When\n// _read(n) is called, it transforms the queued up data, calling the\n// buffered _write cb's as it consumes chunks. If consuming a single\n// written chunk would result in multiple output chunks, then the first\n// outputted bit calls the readcb, and subsequent chunks just go into\n// the read buffer, and will cause it to emit 'readable' if necessary.\n//\n// This way, back-pressure is actually determined by the reading side,\n// since _read has to be called to start processing a new chunk. However,\n// a pathological inflate type of transform can cause excessive buffering\n// here. For example, imagine a stream where every byte of input is\n// interpreted as an integer from 0-255, and then results in that many\n// bytes of output. Writing the 4 bytes {ff,ff,ff,ff} would result in\n// 1kb of data being output. In this case, you could write a very small\n// amount of input, and end up with a very large amount of output. In\n// such a pathological inflating mechanism, there'd be no way to tell\n// the system to stop doing the transform. A single 4MB write could\n// cause the system to run out of memory.\n//\n// However, even in such a pathological case, only a single written chunk\n// would be consumed, and then the rest would wait (un-transformed) until\n// the results of the previous transformed chunk were consumed.\n\n'use strict';\n\nmodule.exports = Transform;\n\nvar Duplex = __webpack_require__(229);\n\n/**/\nvar util = __webpack_require__(102);\nutil.inherits = __webpack_require__(96);\n/**/\n\nutil.inherits(Transform, Duplex);\n\n\nfunction TransformState(stream) {\n this.afterTransform = function(er, data) {\n return afterTransform(stream, er, data);\n };\n\n this.needTransform = false;\n this.transforming = false;\n this.writecb = null;\n this.writechunk = null;\n}\n\nfunction afterTransform(stream, er, data) {\n var ts = stream._transformState;\n ts.transforming = false;\n\n var cb = ts.writecb;\n\n if (!cb)\n return stream.emit('error', new Error('no writecb in Transform class'));\n\n ts.writechunk = null;\n ts.writecb = null;\n\n if (data !== null && data !== undefined)\n stream.push(data);\n\n if (cb)\n cb(er);\n\n var rs = stream._readableState;\n rs.reading = false;\n if (rs.needReadable || rs.length < rs.highWaterMark) {\n stream._read(rs.highWaterMark);\n }\n}\n\n\nfunction Transform(options) {\n if (!(this instanceof Transform))\n return new Transform(options);\n\n Duplex.call(this, options);\n\n this._transformState = new TransformState(this);\n\n // when the writable side finishes, then flush out anything remaining.\n var stream = this;\n\n // start out asking for a readable event once data is transformed.\n this._readableState.needReadable = true;\n\n // we have implemented the _read method, and done the other things\n // that Readable wants before the first _read call, so unset the\n // sync guard flag.\n this._readableState.sync = false;\n\n if (options) {\n if (typeof options.transform === 'function')\n this._transform = options.transform;\n\n if (typeof options.flush === 'function')\n this._flush = options.flush;\n }\n\n this.once('prefinish', function() {\n if (typeof this._flush === 'function')\n this._flush(function(er) {\n done(stream, er);\n });\n else\n done(stream);\n });\n}\n\nTransform.prototype.push = function(chunk, encoding) {\n this._transformState.needTransform = false;\n return Duplex.prototype.push.call(this, chunk, encoding);\n};\n\n// This is the part where you do stuff!\n// override this function in implementation classes.\n// 'chunk' is an input chunk.\n//\n// Call `push(newChunk)` to pass along transformed output\n// to the readable side. You may call 'push' zero or more times.\n//\n// Call `cb(err)` when you are done with this chunk. If you pass\n// an error, then that'll put the hurt on the whole operation. If you\n// never call cb(), then you'll never get another chunk.\nTransform.prototype._transform = function(chunk, encoding, cb) {\n throw new Error('not implemented');\n};\n\nTransform.prototype._write = function(chunk, encoding, cb) {\n var ts = this._transformState;\n ts.writecb = cb;\n ts.writechunk = chunk;\n ts.writeencoding = encoding;\n if (!ts.transforming) {\n var rs = this._readableState;\n if (ts.needTransform ||\n rs.needReadable ||\n rs.length < rs.highWaterMark)\n this._read(rs.highWaterMark);\n }\n};\n\n// Doesn't matter what the args are here.\n// _transform does all the work.\n// That we got here means that the readable side wants more data.\nTransform.prototype._read = function(n) {\n var ts = this._transformState;\n\n if (ts.writechunk !== null && ts.writecb && !ts.transforming) {\n ts.transforming = true;\n this._transform(ts.writechunk, ts.writeencoding, ts.afterTransform);\n } else {\n // mark that we need a transform, so that any data that comes in\n // will get processed, now that we've asked for it.\n ts.needTransform = true;\n }\n};\n\n\nfunction done(stream, er) {\n if (er)\n return stream.emit('error', er);\n\n // if there's nothing in the write buffer, then that means\n // that nothing more will ever be provided\n var ws = stream._writableState;\n var ts = stream._transformState;\n\n if (ws.length)\n throw new Error('calling transform done when ws.length != 0');\n\n if (ts.transforming)\n throw new Error('calling transform done when still transforming');\n\n return stream.push(null);\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/readable-stream/lib/_stream_transform.js\n ** module id = 228\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/readable-stream/lib/_stream_transform.js?"); /***/ }, /* 229 */ /***/ function(module, exports, __webpack_require__) { - eval("module.exports = __webpack_require__(230)\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/through2/~/readable-stream/transform.js\n ** module id = 229\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/through2/~/readable-stream/transform.js?"); + eval("// a duplex stream is just a stream that is both readable and writable.\n// Since JS doesn't have multiple prototypal inheritance, this class\n// prototypally inherits from Readable, and then parasitically from\n// Writable.\n\n'use strict';\n\n/**/\nvar objectKeys = Object.keys || function (obj) {\n var keys = [];\n for (var key in obj) keys.push(key);\n return keys;\n}\n/**/\n\n\nmodule.exports = Duplex;\n\n/**/\nvar processNextTick = __webpack_require__(230);\n/**/\n\n\n\n/**/\nvar util = __webpack_require__(102);\nutil.inherits = __webpack_require__(96);\n/**/\n\nvar Readable = __webpack_require__(231);\nvar Writable = __webpack_require__(233);\n\nutil.inherits(Duplex, Readable);\n\nvar keys = objectKeys(Writable.prototype);\nfor (var v = 0; v < keys.length; v++) {\n var method = keys[v];\n if (!Duplex.prototype[method])\n Duplex.prototype[method] = Writable.prototype[method];\n}\n\nfunction Duplex(options) {\n if (!(this instanceof Duplex))\n return new Duplex(options);\n\n Readable.call(this, options);\n Writable.call(this, options);\n\n if (options && options.readable === false)\n this.readable = false;\n\n if (options && options.writable === false)\n this.writable = false;\n\n this.allowHalfOpen = true;\n if (options && options.allowHalfOpen === false)\n this.allowHalfOpen = false;\n\n this.once('end', onend);\n}\n\n// the no-half-open enforcer\nfunction onend() {\n // if we allow half-open state, or if the writable side ended,\n // then we're ok.\n if (this.allowHalfOpen || this._writableState.ended)\n return;\n\n // no more data can be written.\n // But allow more writes to happen in this tick.\n processNextTick(onEndNT, this);\n}\n\nfunction onEndNT(self) {\n self.end();\n}\n\nfunction forEach (xs, f) {\n for (var i = 0, l = xs.length; i < l; i++) {\n f(xs[i], i);\n }\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/readable-stream/lib/_stream_duplex.js\n ** module id = 229\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/readable-stream/lib/_stream_duplex.js?"); /***/ }, /* 230 */ /***/ function(module, exports, __webpack_require__) { - eval("// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n\n// a transform stream is a readable/writable stream where you do\n// something with the data. Sometimes it's called a \"filter\",\n// but that's not a great name for it, since that implies a thing where\n// some bits pass through, and others are simply ignored. (That would\n// be a valid example of a transform, of course.)\n//\n// While the output is causally related to the input, it's not a\n// necessarily symmetric or synchronous transformation. For example,\n// a zlib stream might take multiple plain-text writes(), and then\n// emit a single compressed chunk some time in the future.\n//\n// Here's how this works:\n//\n// The Transform stream has all the aspects of the readable and writable\n// stream classes. When you write(chunk), that calls _write(chunk,cb)\n// internally, and returns false if there's a lot of pending writes\n// buffered up. When you call read(), that calls _read(n) until\n// there's enough pending readable data buffered up.\n//\n// In a transform stream, the written data is placed in a buffer. When\n// _read(n) is called, it transforms the queued up data, calling the\n// buffered _write cb's as it consumes chunks. If consuming a single\n// written chunk would result in multiple output chunks, then the first\n// outputted bit calls the readcb, and subsequent chunks just go into\n// the read buffer, and will cause it to emit 'readable' if necessary.\n//\n// This way, back-pressure is actually determined by the reading side,\n// since _read has to be called to start processing a new chunk. However,\n// a pathological inflate type of transform can cause excessive buffering\n// here. For example, imagine a stream where every byte of input is\n// interpreted as an integer from 0-255, and then results in that many\n// bytes of output. Writing the 4 bytes {ff,ff,ff,ff} would result in\n// 1kb of data being output. In this case, you could write a very small\n// amount of input, and end up with a very large amount of output. In\n// such a pathological inflating mechanism, there'd be no way to tell\n// the system to stop doing the transform. A single 4MB write could\n// cause the system to run out of memory.\n//\n// However, even in such a pathological case, only a single written chunk\n// would be consumed, and then the rest would wait (un-transformed) until\n// the results of the previous transformed chunk were consumed.\n\nmodule.exports = Transform;\n\nvar Duplex = __webpack_require__(231);\n\n/**/\nvar util = __webpack_require__(232);\nutil.inherits = __webpack_require__(233);\n/**/\n\nutil.inherits(Transform, Duplex);\n\n\nfunction TransformState(options, stream) {\n this.afterTransform = function(er, data) {\n return afterTransform(stream, er, data);\n };\n\n this.needTransform = false;\n this.transforming = false;\n this.writecb = null;\n this.writechunk = null;\n}\n\nfunction afterTransform(stream, er, data) {\n var ts = stream._transformState;\n ts.transforming = false;\n\n var cb = ts.writecb;\n\n if (!cb)\n return stream.emit('error', new Error('no writecb in Transform class'));\n\n ts.writechunk = null;\n ts.writecb = null;\n\n if (data !== null && data !== undefined)\n stream.push(data);\n\n if (cb)\n cb(er);\n\n var rs = stream._readableState;\n rs.reading = false;\n if (rs.needReadable || rs.length < rs.highWaterMark) {\n stream._read(rs.highWaterMark);\n }\n}\n\n\nfunction Transform(options) {\n if (!(this instanceof Transform))\n return new Transform(options);\n\n Duplex.call(this, options);\n\n var ts = this._transformState = new TransformState(options, this);\n\n // when the writable side finishes, then flush out anything remaining.\n var stream = this;\n\n // start out asking for a readable event once data is transformed.\n this._readableState.needReadable = true;\n\n // we have implemented the _read method, and done the other things\n // that Readable wants before the first _read call, so unset the\n // sync guard flag.\n this._readableState.sync = false;\n\n this.once('finish', function() {\n if ('function' === typeof this._flush)\n this._flush(function(er) {\n done(stream, er);\n });\n else\n done(stream);\n });\n}\n\nTransform.prototype.push = function(chunk, encoding) {\n this._transformState.needTransform = false;\n return Duplex.prototype.push.call(this, chunk, encoding);\n};\n\n// This is the part where you do stuff!\n// override this function in implementation classes.\n// 'chunk' is an input chunk.\n//\n// Call `push(newChunk)` to pass along transformed output\n// to the readable side. You may call 'push' zero or more times.\n//\n// Call `cb(err)` when you are done with this chunk. If you pass\n// an error, then that'll put the hurt on the whole operation. If you\n// never call cb(), then you'll never get another chunk.\nTransform.prototype._transform = function(chunk, encoding, cb) {\n throw new Error('not implemented');\n};\n\nTransform.prototype._write = function(chunk, encoding, cb) {\n var ts = this._transformState;\n ts.writecb = cb;\n ts.writechunk = chunk;\n ts.writeencoding = encoding;\n if (!ts.transforming) {\n var rs = this._readableState;\n if (ts.needTransform ||\n rs.needReadable ||\n rs.length < rs.highWaterMark)\n this._read(rs.highWaterMark);\n }\n};\n\n// Doesn't matter what the args are here.\n// _transform does all the work.\n// That we got here means that the readable side wants more data.\nTransform.prototype._read = function(n) {\n var ts = this._transformState;\n\n if (ts.writechunk !== null && ts.writecb && !ts.transforming) {\n ts.transforming = true;\n this._transform(ts.writechunk, ts.writeencoding, ts.afterTransform);\n } else {\n // mark that we need a transform, so that any data that comes in\n // will get processed, now that we've asked for it.\n ts.needTransform = true;\n }\n};\n\n\nfunction done(stream, er) {\n if (er)\n return stream.emit('error', er);\n\n // if there's nothing in the write buffer, then that means\n // that nothing more will ever be provided\n var ws = stream._writableState;\n var rs = stream._readableState;\n var ts = stream._transformState;\n\n if (ws.length)\n throw new Error('calling transform done when ws.length != 0');\n\n if (ts.transforming)\n throw new Error('calling transform done when still transforming');\n\n return stream.push(null);\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/through2/~/readable-stream/lib/_stream_transform.js\n ** module id = 230\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/through2/~/readable-stream/lib/_stream_transform.js?"); + eval("/* WEBPACK VAR INJECTION */(function(process) {'use strict';\n\nif (!process.version ||\n process.version.indexOf('v0.') === 0 ||\n process.version.indexOf('v1.') === 0 && process.version.indexOf('v1.8.') !== 0) {\n module.exports = nextTick;\n} else {\n module.exports = process.nextTick;\n}\n\nfunction nextTick(fn) {\n var args = new Array(arguments.length - 1);\n var i = 0;\n while (i < args.length) {\n args[i++] = arguments[i];\n }\n process.nextTick(function afterTick() {\n fn.apply(null, args);\n });\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/process-nextick-args/index.js\n ** module id = 230\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/process-nextick-args/index.js?"); /***/ }, /* 231 */ /***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(process) {// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// a duplex stream is just a stream that is both readable and writable.\n// Since JS doesn't have multiple prototypal inheritance, this class\n// prototypally inherits from Readable, and then parasitically from\n// Writable.\n\nmodule.exports = Duplex;\n\n/**/\nvar objectKeys = Object.keys || function (obj) {\n var keys = [];\n for (var key in obj) keys.push(key);\n return keys;\n}\n/**/\n\n\n/**/\nvar util = __webpack_require__(232);\nutil.inherits = __webpack_require__(233);\n/**/\n\nvar Readable = __webpack_require__(234);\nvar Writable = __webpack_require__(237);\n\nutil.inherits(Duplex, Readable);\n\nforEach(objectKeys(Writable.prototype), function(method) {\n if (!Duplex.prototype[method])\n Duplex.prototype[method] = Writable.prototype[method];\n});\n\nfunction Duplex(options) {\n if (!(this instanceof Duplex))\n return new Duplex(options);\n\n Readable.call(this, options);\n Writable.call(this, options);\n\n if (options && options.readable === false)\n this.readable = false;\n\n if (options && options.writable === false)\n this.writable = false;\n\n this.allowHalfOpen = true;\n if (options && options.allowHalfOpen === false)\n this.allowHalfOpen = false;\n\n this.once('end', onend);\n}\n\n// the no-half-open enforcer\nfunction onend() {\n // if we allow half-open state, or if the writable side ended,\n // then we're ok.\n if (this.allowHalfOpen || this._writableState.ended)\n return;\n\n // no more data can be written.\n // But allow more writes to happen in this tick.\n process.nextTick(this.end.bind(this));\n}\n\nfunction forEach (xs, f) {\n for (var i = 0, l = xs.length; i < l; i++) {\n f(xs[i], i);\n }\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(83)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/through2/~/readable-stream/lib/_stream_duplex.js\n ** module id = 231\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/through2/~/readable-stream/lib/_stream_duplex.js?"); + eval("/* WEBPACK VAR INJECTION */(function(process) {'use strict';\n\nmodule.exports = Readable;\n\n/**/\nvar processNextTick = __webpack_require__(230);\n/**/\n\n\n/**/\nvar isArray = __webpack_require__(101);\n/**/\n\n\n/**/\nvar Buffer = __webpack_require__(1).Buffer;\n/**/\n\nReadable.ReadableState = ReadableState;\n\nvar EE = __webpack_require__(86);\n\n/**/\nvar EElistenerCount = function(emitter, type) {\n return emitter.listeners(type).length;\n};\n/**/\n\n\n\n/**/\nvar Stream;\n(function (){try{\n Stream = __webpack_require__(98);\n}catch(_){}finally{\n if (!Stream)\n Stream = __webpack_require__(86).EventEmitter;\n}}())\n/**/\n\nvar Buffer = __webpack_require__(1).Buffer;\n\n/**/\nvar util = __webpack_require__(102);\nutil.inherits = __webpack_require__(96);\n/**/\n\n\n\n/**/\nvar debugUtil = __webpack_require__(232);\nvar debug;\nif (debugUtil && debugUtil.debuglog) {\n debug = debugUtil.debuglog('stream');\n} else {\n debug = function () {};\n}\n/**/\n\nvar StringDecoder;\n\nutil.inherits(Readable, Stream);\n\nvar Duplex;\nfunction ReadableState(options, stream) {\n Duplex = Duplex || __webpack_require__(229);\n\n options = options || {};\n\n // object stream flag. Used to make read(n) ignore n and to\n // make all the buffer merging and length checks go away\n this.objectMode = !!options.objectMode;\n\n if (stream instanceof Duplex)\n this.objectMode = this.objectMode || !!options.readableObjectMode;\n\n // the point at which it stops calling _read() to fill the buffer\n // Note: 0 is a valid value, means \"don't call _read preemptively ever\"\n var hwm = options.highWaterMark;\n var defaultHwm = this.objectMode ? 16 : 16 * 1024;\n this.highWaterMark = (hwm || hwm === 0) ? hwm : defaultHwm;\n\n // cast to ints.\n this.highWaterMark = ~~this.highWaterMark;\n\n this.buffer = [];\n this.length = 0;\n this.pipes = null;\n this.pipesCount = 0;\n this.flowing = null;\n this.ended = false;\n this.endEmitted = false;\n this.reading = false;\n\n // a flag to be able to tell if the onwrite cb is called immediately,\n // or on a later tick. We set this to true at first, because any\n // actions that shouldn't happen until \"later\" should generally also\n // not happen before the first write call.\n this.sync = true;\n\n // whenever we return null, then we set a flag to say\n // that we're awaiting a 'readable' event emission.\n this.needReadable = false;\n this.emittedReadable = false;\n this.readableListening = false;\n\n // Crypto is kind of old and crusty. Historically, its default string\n // encoding is 'binary' so we have to make this configurable.\n // Everything else in the universe uses 'utf8', though.\n this.defaultEncoding = options.defaultEncoding || 'utf8';\n\n // when piping, we only care about 'readable' events that happen\n // after read()ing all the bytes and not getting any pushback.\n this.ranOut = false;\n\n // the number of writers that are awaiting a drain event in .pipe()s\n this.awaitDrain = 0;\n\n // if true, a maybeReadMore has been scheduled\n this.readingMore = false;\n\n this.decoder = null;\n this.encoding = null;\n if (options.encoding) {\n if (!StringDecoder)\n StringDecoder = __webpack_require__(106).StringDecoder;\n this.decoder = new StringDecoder(options.encoding);\n this.encoding = options.encoding;\n }\n}\n\nvar Duplex;\nfunction Readable(options) {\n Duplex = Duplex || __webpack_require__(229);\n\n if (!(this instanceof Readable))\n return new Readable(options);\n\n this._readableState = new ReadableState(options, this);\n\n // legacy\n this.readable = true;\n\n if (options && typeof options.read === 'function')\n this._read = options.read;\n\n Stream.call(this);\n}\n\n// Manually shove something into the read() buffer.\n// This returns true if the highWaterMark has not been hit yet,\n// similar to how Writable.write() returns true if you should\n// write() some more.\nReadable.prototype.push = function(chunk, encoding) {\n var state = this._readableState;\n\n if (!state.objectMode && typeof chunk === 'string') {\n encoding = encoding || state.defaultEncoding;\n if (encoding !== state.encoding) {\n chunk = new Buffer(chunk, encoding);\n encoding = '';\n }\n }\n\n return readableAddChunk(this, state, chunk, encoding, false);\n};\n\n// Unshift should *always* be something directly out of read()\nReadable.prototype.unshift = function(chunk) {\n var state = this._readableState;\n return readableAddChunk(this, state, chunk, '', true);\n};\n\nReadable.prototype.isPaused = function() {\n return this._readableState.flowing === false;\n};\n\nfunction readableAddChunk(stream, state, chunk, encoding, addToFront) {\n var er = chunkInvalid(state, chunk);\n if (er) {\n stream.emit('error', er);\n } else if (chunk === null) {\n state.reading = false;\n onEofChunk(stream, state);\n } else if (state.objectMode || chunk && chunk.length > 0) {\n if (state.ended && !addToFront) {\n var e = new Error('stream.push() after EOF');\n stream.emit('error', e);\n } else if (state.endEmitted && addToFront) {\n var e = new Error('stream.unshift() after end event');\n stream.emit('error', e);\n } else {\n if (state.decoder && !addToFront && !encoding)\n chunk = state.decoder.write(chunk);\n\n if (!addToFront)\n state.reading = false;\n\n // if we want the data now, just emit it.\n if (state.flowing && state.length === 0 && !state.sync) {\n stream.emit('data', chunk);\n stream.read(0);\n } else {\n // update the buffer info.\n state.length += state.objectMode ? 1 : chunk.length;\n if (addToFront)\n state.buffer.unshift(chunk);\n else\n state.buffer.push(chunk);\n\n if (state.needReadable)\n emitReadable(stream);\n }\n\n maybeReadMore(stream, state);\n }\n } else if (!addToFront) {\n state.reading = false;\n }\n\n return needMoreData(state);\n}\n\n\n// if it's past the high water mark, we can push in some more.\n// Also, if we have no data yet, we can stand some\n// more bytes. This is to work around cases where hwm=0,\n// such as the repl. Also, if the push() triggered a\n// readable event, and the user called read(largeNumber) such that\n// needReadable was set, then we ought to push more, so that another\n// 'readable' event will be triggered.\nfunction needMoreData(state) {\n return !state.ended &&\n (state.needReadable ||\n state.length < state.highWaterMark ||\n state.length === 0);\n}\n\n// backwards compatibility.\nReadable.prototype.setEncoding = function(enc) {\n if (!StringDecoder)\n StringDecoder = __webpack_require__(106).StringDecoder;\n this._readableState.decoder = new StringDecoder(enc);\n this._readableState.encoding = enc;\n return this;\n};\n\n// Don't raise the hwm > 8MB\nvar MAX_HWM = 0x800000;\nfunction computeNewHighWaterMark(n) {\n if (n >= MAX_HWM) {\n n = MAX_HWM;\n } else {\n // Get the next highest power of 2\n n--;\n n |= n >>> 1;\n n |= n >>> 2;\n n |= n >>> 4;\n n |= n >>> 8;\n n |= n >>> 16;\n n++;\n }\n return n;\n}\n\nfunction howMuchToRead(n, state) {\n if (state.length === 0 && state.ended)\n return 0;\n\n if (state.objectMode)\n return n === 0 ? 0 : 1;\n\n if (n === null || isNaN(n)) {\n // only flow one buffer at a time\n if (state.flowing && state.buffer.length)\n return state.buffer[0].length;\n else\n return state.length;\n }\n\n if (n <= 0)\n return 0;\n\n // If we're asking for more than the target buffer level,\n // then raise the water mark. Bump up to the next highest\n // power of 2, to prevent increasing it excessively in tiny\n // amounts.\n if (n > state.highWaterMark)\n state.highWaterMark = computeNewHighWaterMark(n);\n\n // don't have that much. return null, unless we've ended.\n if (n > state.length) {\n if (!state.ended) {\n state.needReadable = true;\n return 0;\n } else {\n return state.length;\n }\n }\n\n return n;\n}\n\n// you can override either this method, or the async _read(n) below.\nReadable.prototype.read = function(n) {\n debug('read', n);\n var state = this._readableState;\n var nOrig = n;\n\n if (typeof n !== 'number' || n > 0)\n state.emittedReadable = false;\n\n // if we're doing read(0) to trigger a readable event, but we\n // already have a bunch of data in the buffer, then just trigger\n // the 'readable' event and move on.\n if (n === 0 &&\n state.needReadable &&\n (state.length >= state.highWaterMark || state.ended)) {\n debug('read: emitReadable', state.length, state.ended);\n if (state.length === 0 && state.ended)\n endReadable(this);\n else\n emitReadable(this);\n return null;\n }\n\n n = howMuchToRead(n, state);\n\n // if we've ended, and we're now clear, then finish it up.\n if (n === 0 && state.ended) {\n if (state.length === 0)\n endReadable(this);\n return null;\n }\n\n // All the actual chunk generation logic needs to be\n // *below* the call to _read. The reason is that in certain\n // synthetic stream cases, such as passthrough streams, _read\n // may be a completely synchronous operation which may change\n // the state of the read buffer, providing enough data when\n // before there was *not* enough.\n //\n // So, the steps are:\n // 1. Figure out what the state of things will be after we do\n // a read from the buffer.\n //\n // 2. If that resulting state will trigger a _read, then call _read.\n // Note that this may be asynchronous, or synchronous. Yes, it is\n // deeply ugly to write APIs this way, but that still doesn't mean\n // that the Readable class should behave improperly, as streams are\n // designed to be sync/async agnostic.\n // Take note if the _read call is sync or async (ie, if the read call\n // has returned yet), so that we know whether or not it's safe to emit\n // 'readable' etc.\n //\n // 3. Actually pull the requested chunks out of the buffer and return.\n\n // if we need a readable event, then we need to do some reading.\n var doRead = state.needReadable;\n debug('need readable', doRead);\n\n // if we currently have less than the highWaterMark, then also read some\n if (state.length === 0 || state.length - n < state.highWaterMark) {\n doRead = true;\n debug('length less than watermark', doRead);\n }\n\n // however, if we've ended, then there's no point, and if we're already\n // reading, then it's unnecessary.\n if (state.ended || state.reading) {\n doRead = false;\n debug('reading or ended', doRead);\n }\n\n if (doRead) {\n debug('do read');\n state.reading = true;\n state.sync = true;\n // if the length is currently zero, then we *need* a readable event.\n if (state.length === 0)\n state.needReadable = true;\n // call internal read method\n this._read(state.highWaterMark);\n state.sync = false;\n }\n\n // If _read pushed data synchronously, then `reading` will be false,\n // and we need to re-evaluate how much data we can return to the user.\n if (doRead && !state.reading)\n n = howMuchToRead(nOrig, state);\n\n var ret;\n if (n > 0)\n ret = fromList(n, state);\n else\n ret = null;\n\n if (ret === null) {\n state.needReadable = true;\n n = 0;\n }\n\n state.length -= n;\n\n // If we have nothing in the buffer, then we want to know\n // as soon as we *do* get something into the buffer.\n if (state.length === 0 && !state.ended)\n state.needReadable = true;\n\n // If we tried to read() past the EOF, then emit end on the next tick.\n if (nOrig !== n && state.ended && state.length === 0)\n endReadable(this);\n\n if (ret !== null)\n this.emit('data', ret);\n\n return ret;\n};\n\nfunction chunkInvalid(state, chunk) {\n var er = null;\n if (!(Buffer.isBuffer(chunk)) &&\n typeof chunk !== 'string' &&\n chunk !== null &&\n chunk !== undefined &&\n !state.objectMode) {\n er = new TypeError('Invalid non-string/buffer chunk');\n }\n return er;\n}\n\n\nfunction onEofChunk(stream, state) {\n if (state.ended) return;\n if (state.decoder) {\n var chunk = state.decoder.end();\n if (chunk && chunk.length) {\n state.buffer.push(chunk);\n state.length += state.objectMode ? 1 : chunk.length;\n }\n }\n state.ended = true;\n\n // emit 'readable' now to make sure it gets picked up.\n emitReadable(stream);\n}\n\n// Don't emit readable right away in sync mode, because this can trigger\n// another read() call => stack overflow. This way, it might trigger\n// a nextTick recursion warning, but that's not so bad.\nfunction emitReadable(stream) {\n var state = stream._readableState;\n state.needReadable = false;\n if (!state.emittedReadable) {\n debug('emitReadable', state.flowing);\n state.emittedReadable = true;\n if (state.sync)\n processNextTick(emitReadable_, stream);\n else\n emitReadable_(stream);\n }\n}\n\nfunction emitReadable_(stream) {\n debug('emit readable');\n stream.emit('readable');\n flow(stream);\n}\n\n\n// at this point, the user has presumably seen the 'readable' event,\n// and called read() to consume some data. that may have triggered\n// in turn another _read(n) call, in which case reading = true if\n// it's in progress.\n// However, if we're not ended, or reading, and the length < hwm,\n// then go ahead and try to read some more preemptively.\nfunction maybeReadMore(stream, state) {\n if (!state.readingMore) {\n state.readingMore = true;\n processNextTick(maybeReadMore_, stream, state);\n }\n}\n\nfunction maybeReadMore_(stream, state) {\n var len = state.length;\n while (!state.reading && !state.flowing && !state.ended &&\n state.length < state.highWaterMark) {\n debug('maybeReadMore read 0');\n stream.read(0);\n if (len === state.length)\n // didn't get any data, stop spinning.\n break;\n else\n len = state.length;\n }\n state.readingMore = false;\n}\n\n// abstract method. to be overridden in specific implementation classes.\n// call cb(er, data) where data is <= n in length.\n// for virtual (non-string, non-buffer) streams, \"length\" is somewhat\n// arbitrary, and perhaps not very meaningful.\nReadable.prototype._read = function(n) {\n this.emit('error', new Error('not implemented'));\n};\n\nReadable.prototype.pipe = function(dest, pipeOpts) {\n var src = this;\n var state = this._readableState;\n\n switch (state.pipesCount) {\n case 0:\n state.pipes = dest;\n break;\n case 1:\n state.pipes = [state.pipes, dest];\n break;\n default:\n state.pipes.push(dest);\n break;\n }\n state.pipesCount += 1;\n debug('pipe count=%d opts=%j', state.pipesCount, pipeOpts);\n\n var doEnd = (!pipeOpts || pipeOpts.end !== false) &&\n dest !== process.stdout &&\n dest !== process.stderr;\n\n var endFn = doEnd ? onend : cleanup;\n if (state.endEmitted)\n processNextTick(endFn);\n else\n src.once('end', endFn);\n\n dest.on('unpipe', onunpipe);\n function onunpipe(readable) {\n debug('onunpipe');\n if (readable === src) {\n cleanup();\n }\n }\n\n function onend() {\n debug('onend');\n dest.end();\n }\n\n // when the dest drains, it reduces the awaitDrain counter\n // on the source. This would be more elegant with a .once()\n // handler in flow(), but adding and removing repeatedly is\n // too slow.\n var ondrain = pipeOnDrain(src);\n dest.on('drain', ondrain);\n\n var cleanedUp = false;\n function cleanup() {\n debug('cleanup');\n // cleanup event handlers once the pipe is broken\n dest.removeListener('close', onclose);\n dest.removeListener('finish', onfinish);\n dest.removeListener('drain', ondrain);\n dest.removeListener('error', onerror);\n dest.removeListener('unpipe', onunpipe);\n src.removeListener('end', onend);\n src.removeListener('end', cleanup);\n src.removeListener('data', ondata);\n\n cleanedUp = true;\n\n // if the reader is waiting for a drain event from this\n // specific writer, then it would cause it to never start\n // flowing again.\n // So, if this is awaiting a drain, then we just call it now.\n // If we don't know, then assume that we are waiting for one.\n if (state.awaitDrain &&\n (!dest._writableState || dest._writableState.needDrain))\n ondrain();\n }\n\n src.on('data', ondata);\n function ondata(chunk) {\n debug('ondata');\n var ret = dest.write(chunk);\n if (false === ret) {\n // If the user unpiped during `dest.write()`, it is possible\n // to get stuck in a permanently paused state if that write\n // also returned false.\n if (state.pipesCount === 1 &&\n state.pipes[0] === dest &&\n src.listenerCount('data') === 1 &&\n !cleanedUp) {\n debug('false write response, pause', src._readableState.awaitDrain);\n src._readableState.awaitDrain++;\n }\n src.pause();\n }\n }\n\n // if the dest has an error, then stop piping into it.\n // however, don't suppress the throwing behavior for this.\n function onerror(er) {\n debug('onerror', er);\n unpipe();\n dest.removeListener('error', onerror);\n if (EElistenerCount(dest, 'error') === 0)\n dest.emit('error', er);\n }\n // This is a brutally ugly hack to make sure that our error handler\n // is attached before any userland ones. NEVER DO THIS.\n if (!dest._events || !dest._events.error)\n dest.on('error', onerror);\n else if (isArray(dest._events.error))\n dest._events.error.unshift(onerror);\n else\n dest._events.error = [onerror, dest._events.error];\n\n\n // Both close and finish should trigger unpipe, but only once.\n function onclose() {\n dest.removeListener('finish', onfinish);\n unpipe();\n }\n dest.once('close', onclose);\n function onfinish() {\n debug('onfinish');\n dest.removeListener('close', onclose);\n unpipe();\n }\n dest.once('finish', onfinish);\n\n function unpipe() {\n debug('unpipe');\n src.unpipe(dest);\n }\n\n // tell the dest that it's being piped to\n dest.emit('pipe', src);\n\n // start the flow if it hasn't been started already.\n if (!state.flowing) {\n debug('pipe resume');\n src.resume();\n }\n\n return dest;\n};\n\nfunction pipeOnDrain(src) {\n return function() {\n var state = src._readableState;\n debug('pipeOnDrain', state.awaitDrain);\n if (state.awaitDrain)\n state.awaitDrain--;\n if (state.awaitDrain === 0 && EElistenerCount(src, 'data')) {\n state.flowing = true;\n flow(src);\n }\n };\n}\n\n\nReadable.prototype.unpipe = function(dest) {\n var state = this._readableState;\n\n // if we're not piping anywhere, then do nothing.\n if (state.pipesCount === 0)\n return this;\n\n // just one destination. most common case.\n if (state.pipesCount === 1) {\n // passed in one, but it's not the right one.\n if (dest && dest !== state.pipes)\n return this;\n\n if (!dest)\n dest = state.pipes;\n\n // got a match.\n state.pipes = null;\n state.pipesCount = 0;\n state.flowing = false;\n if (dest)\n dest.emit('unpipe', this);\n return this;\n }\n\n // slow case. multiple pipe destinations.\n\n if (!dest) {\n // remove all.\n var dests = state.pipes;\n var len = state.pipesCount;\n state.pipes = null;\n state.pipesCount = 0;\n state.flowing = false;\n\n for (var i = 0; i < len; i++)\n dests[i].emit('unpipe', this);\n return this;\n }\n\n // try to find the right one.\n var i = indexOf(state.pipes, dest);\n if (i === -1)\n return this;\n\n state.pipes.splice(i, 1);\n state.pipesCount -= 1;\n if (state.pipesCount === 1)\n state.pipes = state.pipes[0];\n\n dest.emit('unpipe', this);\n\n return this;\n};\n\n// set up data events if they are asked for\n// Ensure readable listeners eventually get something\nReadable.prototype.on = function(ev, fn) {\n var res = Stream.prototype.on.call(this, ev, fn);\n\n // If listening to data, and it has not explicitly been paused,\n // then call resume to start the flow of data on the next tick.\n if (ev === 'data' && false !== this._readableState.flowing) {\n this.resume();\n }\n\n if (ev === 'readable' && this.readable) {\n var state = this._readableState;\n if (!state.readableListening) {\n state.readableListening = true;\n state.emittedReadable = false;\n state.needReadable = true;\n if (!state.reading) {\n processNextTick(nReadingNextTick, this);\n } else if (state.length) {\n emitReadable(this, state);\n }\n }\n }\n\n return res;\n};\nReadable.prototype.addListener = Readable.prototype.on;\n\nfunction nReadingNextTick(self) {\n debug('readable nexttick read 0');\n self.read(0);\n}\n\n// pause() and resume() are remnants of the legacy readable stream API\n// If the user uses them, then switch into old mode.\nReadable.prototype.resume = function() {\n var state = this._readableState;\n if (!state.flowing) {\n debug('resume');\n state.flowing = true;\n resume(this, state);\n }\n return this;\n};\n\nfunction resume(stream, state) {\n if (!state.resumeScheduled) {\n state.resumeScheduled = true;\n processNextTick(resume_, stream, state);\n }\n}\n\nfunction resume_(stream, state) {\n if (!state.reading) {\n debug('resume read 0');\n stream.read(0);\n }\n\n state.resumeScheduled = false;\n stream.emit('resume');\n flow(stream);\n if (state.flowing && !state.reading)\n stream.read(0);\n}\n\nReadable.prototype.pause = function() {\n debug('call pause flowing=%j', this._readableState.flowing);\n if (false !== this._readableState.flowing) {\n debug('pause');\n this._readableState.flowing = false;\n this.emit('pause');\n }\n return this;\n};\n\nfunction flow(stream) {\n var state = stream._readableState;\n debug('flow', state.flowing);\n if (state.flowing) {\n do {\n var chunk = stream.read();\n } while (null !== chunk && state.flowing);\n }\n}\n\n// wrap an old-style stream as the async data source.\n// This is *not* part of the readable stream interface.\n// It is an ugly unfortunate mess of history.\nReadable.prototype.wrap = function(stream) {\n var state = this._readableState;\n var paused = false;\n\n var self = this;\n stream.on('end', function() {\n debug('wrapped end');\n if (state.decoder && !state.ended) {\n var chunk = state.decoder.end();\n if (chunk && chunk.length)\n self.push(chunk);\n }\n\n self.push(null);\n });\n\n stream.on('data', function(chunk) {\n debug('wrapped data');\n if (state.decoder)\n chunk = state.decoder.write(chunk);\n\n // don't skip over falsy values in objectMode\n if (state.objectMode && (chunk === null || chunk === undefined))\n return;\n else if (!state.objectMode && (!chunk || !chunk.length))\n return;\n\n var ret = self.push(chunk);\n if (!ret) {\n paused = true;\n stream.pause();\n }\n });\n\n // proxy all the other methods.\n // important when wrapping filters and duplexes.\n for (var i in stream) {\n if (this[i] === undefined && typeof stream[i] === 'function') {\n this[i] = function(method) { return function() {\n return stream[method].apply(stream, arguments);\n }; }(i);\n }\n }\n\n // proxy certain important events.\n var events = ['error', 'close', 'destroy', 'pause', 'resume'];\n forEach(events, function(ev) {\n stream.on(ev, self.emit.bind(self, ev));\n });\n\n // when we try to consume some more bytes, simply unpause the\n // underlying stream.\n self._read = function(n) {\n debug('wrapped _read', n);\n if (paused) {\n paused = false;\n stream.resume();\n }\n };\n\n return self;\n};\n\n\n// exposed for testing purposes only.\nReadable._fromList = fromList;\n\n// Pluck off n bytes from an array of buffers.\n// Length is the combined lengths of all the buffers in the list.\nfunction fromList(n, state) {\n var list = state.buffer;\n var length = state.length;\n var stringMode = !!state.decoder;\n var objectMode = !!state.objectMode;\n var ret;\n\n // nothing in the list, definitely empty.\n if (list.length === 0)\n return null;\n\n if (length === 0)\n ret = null;\n else if (objectMode)\n ret = list.shift();\n else if (!n || n >= length) {\n // read it all, truncate the array.\n if (stringMode)\n ret = list.join('');\n else if (list.length === 1)\n ret = list[0];\n else\n ret = Buffer.concat(list, length);\n list.length = 0;\n } else {\n // read just some of it.\n if (n < list[0].length) {\n // just take a part of the first list item.\n // slice is the same for buffers and strings.\n var buf = list[0];\n ret = buf.slice(0, n);\n list[0] = buf.slice(n);\n } else if (n === list[0].length) {\n // first list is a perfect match\n ret = list.shift();\n } else {\n // complex case.\n // we have enough to cover it, but it spans past the first buffer.\n if (stringMode)\n ret = '';\n else\n ret = new Buffer(n);\n\n var c = 0;\n for (var i = 0, l = list.length; i < l && c < n; i++) {\n var buf = list[0];\n var cpy = Math.min(n - c, buf.length);\n\n if (stringMode)\n ret += buf.slice(0, cpy);\n else\n buf.copy(ret, c, 0, cpy);\n\n if (cpy < buf.length)\n list[0] = buf.slice(cpy);\n else\n list.shift();\n\n c += cpy;\n }\n }\n }\n\n return ret;\n}\n\nfunction endReadable(stream) {\n var state = stream._readableState;\n\n // If we get here before consuming all the bytes, then that is a\n // bug in node. Should never happen.\n if (state.length > 0)\n throw new Error('endReadable called on non-empty stream');\n\n if (!state.endEmitted) {\n state.ended = true;\n processNextTick(endReadableNT, state, stream);\n }\n}\n\nfunction endReadableNT(state, stream) {\n // Check that we didn't get one last unshift.\n if (!state.endEmitted && state.length === 0) {\n state.endEmitted = true;\n stream.readable = false;\n stream.emit('end');\n }\n}\n\nfunction forEach (xs, f) {\n for (var i = 0, l = xs.length; i < l; i++) {\n f(xs[i], i);\n }\n}\n\nfunction indexOf (xs, x) {\n for (var i = 0, l = xs.length; i < l; i++) {\n if (xs[i] === x) return i;\n }\n return -1;\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/readable-stream/lib/_stream_readable.js\n ** module id = 231\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/readable-stream/lib/_stream_readable.js?"); /***/ }, /* 232 */ -/***/ function(module, exports, __webpack_require__) { +/***/ function(module, exports) { - eval("/* WEBPACK VAR INJECTION */(function(Buffer) {// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// NOTE: These type checking functions intentionally don't use `instanceof`\n// because it is fragile and can be easily faked with `Object.create()`.\n\nfunction isArray(arg) {\n if (Array.isArray) {\n return Array.isArray(arg);\n }\n return objectToString(arg) === '[object Array]';\n}\nexports.isArray = isArray;\n\nfunction isBoolean(arg) {\n return typeof arg === 'boolean';\n}\nexports.isBoolean = isBoolean;\n\nfunction isNull(arg) {\n return arg === null;\n}\nexports.isNull = isNull;\n\nfunction isNullOrUndefined(arg) {\n return arg == null;\n}\nexports.isNullOrUndefined = isNullOrUndefined;\n\nfunction isNumber(arg) {\n return typeof arg === 'number';\n}\nexports.isNumber = isNumber;\n\nfunction isString(arg) {\n return typeof arg === 'string';\n}\nexports.isString = isString;\n\nfunction isSymbol(arg) {\n return typeof arg === 'symbol';\n}\nexports.isSymbol = isSymbol;\n\nfunction isUndefined(arg) {\n return arg === void 0;\n}\nexports.isUndefined = isUndefined;\n\nfunction isRegExp(re) {\n return objectToString(re) === '[object RegExp]';\n}\nexports.isRegExp = isRegExp;\n\nfunction isObject(arg) {\n return typeof arg === 'object' && arg !== null;\n}\nexports.isObject = isObject;\n\nfunction isDate(d) {\n return objectToString(d) === '[object Date]';\n}\nexports.isDate = isDate;\n\nfunction isError(e) {\n return (objectToString(e) === '[object Error]' || e instanceof Error);\n}\nexports.isError = isError;\n\nfunction isFunction(arg) {\n return typeof arg === 'function';\n}\nexports.isFunction = isFunction;\n\nfunction isPrimitive(arg) {\n return arg === null ||\n typeof arg === 'boolean' ||\n typeof arg === 'number' ||\n typeof arg === 'string' ||\n typeof arg === 'symbol' || // ES6 symbol\n typeof arg === 'undefined';\n}\nexports.isPrimitive = isPrimitive;\n\nexports.isBuffer = Buffer.isBuffer;\n\nfunction objectToString(o) {\n return Object.prototype.toString.call(o);\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1).Buffer))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/through2/~/readable-stream/~/core-util-is/lib/util.js\n ** module id = 232\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/through2/~/readable-stream/~/core-util-is/lib/util.js?"); + eval("/* (ignored) */\n\n/*****************\n ** WEBPACK FOOTER\n ** util (ignored)\n ** module id = 232\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///util_(ignored)?"); /***/ }, /* 233 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("if (typeof Object.create === 'function') {\n // implementation from standard node.js 'util' module\n module.exports = function inherits(ctor, superCtor) {\n ctor.super_ = superCtor\n ctor.prototype = Object.create(superCtor.prototype, {\n constructor: {\n value: ctor,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n };\n} else {\n // old school shim for old browsers\n module.exports = function inherits(ctor, superCtor) {\n ctor.super_ = superCtor\n var TempCtor = function () {}\n TempCtor.prototype = superCtor.prototype\n ctor.prototype = new TempCtor()\n ctor.prototype.constructor = ctor\n }\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/through2/~/readable-stream/~/inherits/inherits_browser.js\n ** module id = 233\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/through2/~/readable-stream/~/inherits/inherits_browser.js?"); + eval("// A bit simpler than readable streams.\n// Implement an async ._write(chunk, encoding, cb), and it'll handle all\n// the drain event emission and buffering.\n\n'use strict';\n\nmodule.exports = Writable;\n\n/**/\nvar processNextTick = __webpack_require__(230);\n/**/\n\n\n/**/\nvar Buffer = __webpack_require__(1).Buffer;\n/**/\n\nWritable.WritableState = WritableState;\n\n\n/**/\nvar util = __webpack_require__(102);\nutil.inherits = __webpack_require__(96);\n/**/\n\n\n/**/\nvar internalUtil = {\n deprecate: __webpack_require__(234)\n};\n/**/\n\n\n\n/**/\nvar Stream;\n(function (){try{\n Stream = __webpack_require__(98);\n}catch(_){}finally{\n if (!Stream)\n Stream = __webpack_require__(86).EventEmitter;\n}}())\n/**/\n\nvar Buffer = __webpack_require__(1).Buffer;\n\nutil.inherits(Writable, Stream);\n\nfunction nop() {}\n\nfunction WriteReq(chunk, encoding, cb) {\n this.chunk = chunk;\n this.encoding = encoding;\n this.callback = cb;\n this.next = null;\n}\n\nvar Duplex;\nfunction WritableState(options, stream) {\n Duplex = Duplex || __webpack_require__(229);\n\n options = options || {};\n\n // object stream flag to indicate whether or not this stream\n // contains buffers or objects.\n this.objectMode = !!options.objectMode;\n\n if (stream instanceof Duplex)\n this.objectMode = this.objectMode || !!options.writableObjectMode;\n\n // the point at which write() starts returning false\n // Note: 0 is a valid value, means that we always return false if\n // the entire buffer is not flushed immediately on write()\n var hwm = options.highWaterMark;\n var defaultHwm = this.objectMode ? 16 : 16 * 1024;\n this.highWaterMark = (hwm || hwm === 0) ? hwm : defaultHwm;\n\n // cast to ints.\n this.highWaterMark = ~~this.highWaterMark;\n\n this.needDrain = false;\n // at the start of calling end()\n this.ending = false;\n // when end() has been called, and returned\n this.ended = false;\n // when 'finish' is emitted\n this.finished = false;\n\n // should we decode strings into buffers before passing to _write?\n // this is here so that some node-core streams can optimize string\n // handling at a lower level.\n var noDecode = options.decodeStrings === false;\n this.decodeStrings = !noDecode;\n\n // Crypto is kind of old and crusty. Historically, its default string\n // encoding is 'binary' so we have to make this configurable.\n // Everything else in the universe uses 'utf8', though.\n this.defaultEncoding = options.defaultEncoding || 'utf8';\n\n // not an actual buffer we keep track of, but a measurement\n // of how much we're waiting to get pushed to some underlying\n // socket or file.\n this.length = 0;\n\n // a flag to see when we're in the middle of a write.\n this.writing = false;\n\n // when true all writes will be buffered until .uncork() call\n this.corked = 0;\n\n // a flag to be able to tell if the onwrite cb is called immediately,\n // or on a later tick. We set this to true at first, because any\n // actions that shouldn't happen until \"later\" should generally also\n // not happen before the first write call.\n this.sync = true;\n\n // a flag to know if we're processing previously buffered items, which\n // may call the _write() callback in the same tick, so that we don't\n // end up in an overlapped onwrite situation.\n this.bufferProcessing = false;\n\n // the callback that's passed to _write(chunk,cb)\n this.onwrite = function(er) {\n onwrite(stream, er);\n };\n\n // the callback that the user supplies to write(chunk,encoding,cb)\n this.writecb = null;\n\n // the amount that is being written when _write is called.\n this.writelen = 0;\n\n this.bufferedRequest = null;\n this.lastBufferedRequest = null;\n\n // number of pending user-supplied write callbacks\n // this must be 0 before 'finish' can be emitted\n this.pendingcb = 0;\n\n // emit prefinish if the only thing we're waiting for is _write cbs\n // This is relevant for synchronous Transform streams\n this.prefinished = false;\n\n // True if the error was already emitted and should not be thrown again\n this.errorEmitted = false;\n}\n\nWritableState.prototype.getBuffer = function writableStateGetBuffer() {\n var current = this.bufferedRequest;\n var out = [];\n while (current) {\n out.push(current);\n current = current.next;\n }\n return out;\n};\n\n(function (){try {\nObject.defineProperty(WritableState.prototype, 'buffer', {\n get: internalUtil.deprecate(function() {\n return this.getBuffer();\n }, '_writableState.buffer is deprecated. Use _writableState.getBuffer ' +\n 'instead.')\n});\n}catch(_){}}());\n\n\nvar Duplex;\nfunction Writable(options) {\n Duplex = Duplex || __webpack_require__(229);\n\n // Writable ctor is applied to Duplexes, though they're not\n // instanceof Writable, they're instanceof Readable.\n if (!(this instanceof Writable) && !(this instanceof Duplex))\n return new Writable(options);\n\n this._writableState = new WritableState(options, this);\n\n // legacy.\n this.writable = true;\n\n if (options) {\n if (typeof options.write === 'function')\n this._write = options.write;\n\n if (typeof options.writev === 'function')\n this._writev = options.writev;\n }\n\n Stream.call(this);\n}\n\n// Otherwise people can pipe Writable streams, which is just wrong.\nWritable.prototype.pipe = function() {\n this.emit('error', new Error('Cannot pipe. Not readable.'));\n};\n\n\nfunction writeAfterEnd(stream, cb) {\n var er = new Error('write after end');\n // TODO: defer error events consistently everywhere, not just the cb\n stream.emit('error', er);\n processNextTick(cb, er);\n}\n\n// If we get something that is not a buffer, string, null, or undefined,\n// and we're not in objectMode, then that's an error.\n// Otherwise stream chunks are all considered to be of length=1, and the\n// watermarks determine how many objects to keep in the buffer, rather than\n// how many bytes or characters.\nfunction validChunk(stream, state, chunk, cb) {\n var valid = true;\n\n if (!(Buffer.isBuffer(chunk)) &&\n typeof chunk !== 'string' &&\n chunk !== null &&\n chunk !== undefined &&\n !state.objectMode) {\n var er = new TypeError('Invalid non-string/buffer chunk');\n stream.emit('error', er);\n processNextTick(cb, er);\n valid = false;\n }\n return valid;\n}\n\nWritable.prototype.write = function(chunk, encoding, cb) {\n var state = this._writableState;\n var ret = false;\n\n if (typeof encoding === 'function') {\n cb = encoding;\n encoding = null;\n }\n\n if (Buffer.isBuffer(chunk))\n encoding = 'buffer';\n else if (!encoding)\n encoding = state.defaultEncoding;\n\n if (typeof cb !== 'function')\n cb = nop;\n\n if (state.ended)\n writeAfterEnd(this, cb);\n else if (validChunk(this, state, chunk, cb)) {\n state.pendingcb++;\n ret = writeOrBuffer(this, state, chunk, encoding, cb);\n }\n\n return ret;\n};\n\nWritable.prototype.cork = function() {\n var state = this._writableState;\n\n state.corked++;\n};\n\nWritable.prototype.uncork = function() {\n var state = this._writableState;\n\n if (state.corked) {\n state.corked--;\n\n if (!state.writing &&\n !state.corked &&\n !state.finished &&\n !state.bufferProcessing &&\n state.bufferedRequest)\n clearBuffer(this, state);\n }\n};\n\nWritable.prototype.setDefaultEncoding = function setDefaultEncoding(encoding) {\n // node::ParseEncoding() requires lower case.\n if (typeof encoding === 'string')\n encoding = encoding.toLowerCase();\n if (!(['hex', 'utf8', 'utf-8', 'ascii', 'binary', 'base64',\n'ucs2', 'ucs-2','utf16le', 'utf-16le', 'raw']\n.indexOf((encoding + '').toLowerCase()) > -1))\n throw new TypeError('Unknown encoding: ' + encoding);\n this._writableState.defaultEncoding = encoding;\n};\n\nfunction decodeChunk(state, chunk, encoding) {\n if (!state.objectMode &&\n state.decodeStrings !== false &&\n typeof chunk === 'string') {\n chunk = new Buffer(chunk, encoding);\n }\n return chunk;\n}\n\n// if we're already writing something, then just put this\n// in the queue, and wait our turn. Otherwise, call _write\n// If we return false, then we need a drain event, so set that flag.\nfunction writeOrBuffer(stream, state, chunk, encoding, cb) {\n chunk = decodeChunk(state, chunk, encoding);\n\n if (Buffer.isBuffer(chunk))\n encoding = 'buffer';\n var len = state.objectMode ? 1 : chunk.length;\n\n state.length += len;\n\n var ret = state.length < state.highWaterMark;\n // we must ensure that previous needDrain will not be reset to false.\n if (!ret)\n state.needDrain = true;\n\n if (state.writing || state.corked) {\n var last = state.lastBufferedRequest;\n state.lastBufferedRequest = new WriteReq(chunk, encoding, cb);\n if (last) {\n last.next = state.lastBufferedRequest;\n } else {\n state.bufferedRequest = state.lastBufferedRequest;\n }\n } else {\n doWrite(stream, state, false, len, chunk, encoding, cb);\n }\n\n return ret;\n}\n\nfunction doWrite(stream, state, writev, len, chunk, encoding, cb) {\n state.writelen = len;\n state.writecb = cb;\n state.writing = true;\n state.sync = true;\n if (writev)\n stream._writev(chunk, state.onwrite);\n else\n stream._write(chunk, encoding, state.onwrite);\n state.sync = false;\n}\n\nfunction onwriteError(stream, state, sync, er, cb) {\n --state.pendingcb;\n if (sync)\n processNextTick(cb, er);\n else\n cb(er);\n\n stream._writableState.errorEmitted = true;\n stream.emit('error', er);\n}\n\nfunction onwriteStateUpdate(state) {\n state.writing = false;\n state.writecb = null;\n state.length -= state.writelen;\n state.writelen = 0;\n}\n\nfunction onwrite(stream, er) {\n var state = stream._writableState;\n var sync = state.sync;\n var cb = state.writecb;\n\n onwriteStateUpdate(state);\n\n if (er)\n onwriteError(stream, state, sync, er, cb);\n else {\n // Check if we're actually ready to finish, but don't emit yet\n var finished = needFinish(state);\n\n if (!finished &&\n !state.corked &&\n !state.bufferProcessing &&\n state.bufferedRequest) {\n clearBuffer(stream, state);\n }\n\n if (sync) {\n processNextTick(afterWrite, stream, state, finished, cb);\n } else {\n afterWrite(stream, state, finished, cb);\n }\n }\n}\n\nfunction afterWrite(stream, state, finished, cb) {\n if (!finished)\n onwriteDrain(stream, state);\n state.pendingcb--;\n cb();\n finishMaybe(stream, state);\n}\n\n// Must force callback to be called on nextTick, so that we don't\n// emit 'drain' before the write() consumer gets the 'false' return\n// value, and has a chance to attach a 'drain' listener.\nfunction onwriteDrain(stream, state) {\n if (state.length === 0 && state.needDrain) {\n state.needDrain = false;\n stream.emit('drain');\n }\n}\n\n\n// if there's something in the buffer waiting, then process it\nfunction clearBuffer(stream, state) {\n state.bufferProcessing = true;\n var entry = state.bufferedRequest;\n\n if (stream._writev && entry && entry.next) {\n // Fast case, write everything using _writev()\n var buffer = [];\n var cbs = [];\n while (entry) {\n cbs.push(entry.callback);\n buffer.push(entry);\n entry = entry.next;\n }\n\n // count the one we are adding, as well.\n // TODO(isaacs) clean this up\n state.pendingcb++;\n state.lastBufferedRequest = null;\n doWrite(stream, state, true, state.length, buffer, '', function(err) {\n for (var i = 0; i < cbs.length; i++) {\n state.pendingcb--;\n cbs[i](err);\n }\n });\n\n // Clear buffer\n } else {\n // Slow case, write chunks one-by-one\n while (entry) {\n var chunk = entry.chunk;\n var encoding = entry.encoding;\n var cb = entry.callback;\n var len = state.objectMode ? 1 : chunk.length;\n\n doWrite(stream, state, false, len, chunk, encoding, cb);\n entry = entry.next;\n // if we didn't call the onwrite immediately, then\n // it means that we need to wait until it does.\n // also, that means that the chunk and cb are currently\n // being processed, so move the buffer counter past them.\n if (state.writing) {\n break;\n }\n }\n\n if (entry === null)\n state.lastBufferedRequest = null;\n }\n state.bufferedRequest = entry;\n state.bufferProcessing = false;\n}\n\nWritable.prototype._write = function(chunk, encoding, cb) {\n cb(new Error('not implemented'));\n};\n\nWritable.prototype._writev = null;\n\nWritable.prototype.end = function(chunk, encoding, cb) {\n var state = this._writableState;\n\n if (typeof chunk === 'function') {\n cb = chunk;\n chunk = null;\n encoding = null;\n } else if (typeof encoding === 'function') {\n cb = encoding;\n encoding = null;\n }\n\n if (chunk !== null && chunk !== undefined)\n this.write(chunk, encoding);\n\n // .end() fully uncorks\n if (state.corked) {\n state.corked = 1;\n this.uncork();\n }\n\n // ignore unnecessary end() calls.\n if (!state.ending && !state.finished)\n endWritable(this, state, cb);\n};\n\n\nfunction needFinish(state) {\n return (state.ending &&\n state.length === 0 &&\n state.bufferedRequest === null &&\n !state.finished &&\n !state.writing);\n}\n\nfunction prefinish(stream, state) {\n if (!state.prefinished) {\n state.prefinished = true;\n stream.emit('prefinish');\n }\n}\n\nfunction finishMaybe(stream, state) {\n var need = needFinish(state);\n if (need) {\n if (state.pendingcb === 0) {\n prefinish(stream, state);\n state.finished = true;\n stream.emit('finish');\n } else {\n prefinish(stream, state);\n }\n }\n return need;\n}\n\nfunction endWritable(stream, state, cb) {\n state.ending = true;\n finishMaybe(stream, state);\n if (cb) {\n if (state.finished)\n processNextTick(cb);\n else\n stream.once('finish', cb);\n }\n state.ended = true;\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/readable-stream/lib/_stream_writable.js\n ** module id = 233\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/readable-stream/lib/_stream_writable.js?"); /***/ }, /* 234 */ -/***/ function(module, exports, __webpack_require__) { +/***/ function(module, exports) { - eval("/* WEBPACK VAR INJECTION */(function(process) {// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nmodule.exports = Readable;\n\n/**/\nvar isArray = __webpack_require__(235);\n/**/\n\n\n/**/\nvar Buffer = __webpack_require__(1).Buffer;\n/**/\n\nReadable.ReadableState = ReadableState;\n\nvar EE = __webpack_require__(84).EventEmitter;\n\n/**/\nif (!EE.listenerCount) EE.listenerCount = function(emitter, type) {\n return emitter.listeners(type).length;\n};\n/**/\n\nvar Stream = __webpack_require__(96);\n\n/**/\nvar util = __webpack_require__(232);\nutil.inherits = __webpack_require__(233);\n/**/\n\nvar StringDecoder;\n\nutil.inherits(Readable, Stream);\n\nfunction ReadableState(options, stream) {\n options = options || {};\n\n // the point at which it stops calling _read() to fill the buffer\n // Note: 0 is a valid value, means \"don't call _read preemptively ever\"\n var hwm = options.highWaterMark;\n this.highWaterMark = (hwm || hwm === 0) ? hwm : 16 * 1024;\n\n // cast to ints.\n this.highWaterMark = ~~this.highWaterMark;\n\n this.buffer = [];\n this.length = 0;\n this.pipes = null;\n this.pipesCount = 0;\n this.flowing = false;\n this.ended = false;\n this.endEmitted = false;\n this.reading = false;\n\n // In streams that never have any data, and do push(null) right away,\n // the consumer can miss the 'end' event if they do some I/O before\n // consuming the stream. So, we don't emit('end') until some reading\n // happens.\n this.calledRead = false;\n\n // a flag to be able to tell if the onwrite cb is called immediately,\n // or on a later tick. We set this to true at first, becuase any\n // actions that shouldn't happen until \"later\" should generally also\n // not happen before the first write call.\n this.sync = true;\n\n // whenever we return null, then we set a flag to say\n // that we're awaiting a 'readable' event emission.\n this.needReadable = false;\n this.emittedReadable = false;\n this.readableListening = false;\n\n\n // object stream flag. Used to make read(n) ignore n and to\n // make all the buffer merging and length checks go away\n this.objectMode = !!options.objectMode;\n\n // Crypto is kind of old and crusty. Historically, its default string\n // encoding is 'binary' so we have to make this configurable.\n // Everything else in the universe uses 'utf8', though.\n this.defaultEncoding = options.defaultEncoding || 'utf8';\n\n // when piping, we only care about 'readable' events that happen\n // after read()ing all the bytes and not getting any pushback.\n this.ranOut = false;\n\n // the number of writers that are awaiting a drain event in .pipe()s\n this.awaitDrain = 0;\n\n // if true, a maybeReadMore has been scheduled\n this.readingMore = false;\n\n this.decoder = null;\n this.encoding = null;\n if (options.encoding) {\n if (!StringDecoder)\n StringDecoder = __webpack_require__(236).StringDecoder;\n this.decoder = new StringDecoder(options.encoding);\n this.encoding = options.encoding;\n }\n}\n\nfunction Readable(options) {\n if (!(this instanceof Readable))\n return new Readable(options);\n\n this._readableState = new ReadableState(options, this);\n\n // legacy\n this.readable = true;\n\n Stream.call(this);\n}\n\n// Manually shove something into the read() buffer.\n// This returns true if the highWaterMark has not been hit yet,\n// similar to how Writable.write() returns true if you should\n// write() some more.\nReadable.prototype.push = function(chunk, encoding) {\n var state = this._readableState;\n\n if (typeof chunk === 'string' && !state.objectMode) {\n encoding = encoding || state.defaultEncoding;\n if (encoding !== state.encoding) {\n chunk = new Buffer(chunk, encoding);\n encoding = '';\n }\n }\n\n return readableAddChunk(this, state, chunk, encoding, false);\n};\n\n// Unshift should *always* be something directly out of read()\nReadable.prototype.unshift = function(chunk) {\n var state = this._readableState;\n return readableAddChunk(this, state, chunk, '', true);\n};\n\nfunction readableAddChunk(stream, state, chunk, encoding, addToFront) {\n var er = chunkInvalid(state, chunk);\n if (er) {\n stream.emit('error', er);\n } else if (chunk === null || chunk === undefined) {\n state.reading = false;\n if (!state.ended)\n onEofChunk(stream, state);\n } else if (state.objectMode || chunk && chunk.length > 0) {\n if (state.ended && !addToFront) {\n var e = new Error('stream.push() after EOF');\n stream.emit('error', e);\n } else if (state.endEmitted && addToFront) {\n var e = new Error('stream.unshift() after end event');\n stream.emit('error', e);\n } else {\n if (state.decoder && !addToFront && !encoding)\n chunk = state.decoder.write(chunk);\n\n // update the buffer info.\n state.length += state.objectMode ? 1 : chunk.length;\n if (addToFront) {\n state.buffer.unshift(chunk);\n } else {\n state.reading = false;\n state.buffer.push(chunk);\n }\n\n if (state.needReadable)\n emitReadable(stream);\n\n maybeReadMore(stream, state);\n }\n } else if (!addToFront) {\n state.reading = false;\n }\n\n return needMoreData(state);\n}\n\n\n\n// if it's past the high water mark, we can push in some more.\n// Also, if we have no data yet, we can stand some\n// more bytes. This is to work around cases where hwm=0,\n// such as the repl. Also, if the push() triggered a\n// readable event, and the user called read(largeNumber) such that\n// needReadable was set, then we ought to push more, so that another\n// 'readable' event will be triggered.\nfunction needMoreData(state) {\n return !state.ended &&\n (state.needReadable ||\n state.length < state.highWaterMark ||\n state.length === 0);\n}\n\n// backwards compatibility.\nReadable.prototype.setEncoding = function(enc) {\n if (!StringDecoder)\n StringDecoder = __webpack_require__(236).StringDecoder;\n this._readableState.decoder = new StringDecoder(enc);\n this._readableState.encoding = enc;\n};\n\n// Don't raise the hwm > 128MB\nvar MAX_HWM = 0x800000;\nfunction roundUpToNextPowerOf2(n) {\n if (n >= MAX_HWM) {\n n = MAX_HWM;\n } else {\n // Get the next highest power of 2\n n--;\n for (var p = 1; p < 32; p <<= 1) n |= n >> p;\n n++;\n }\n return n;\n}\n\nfunction howMuchToRead(n, state) {\n if (state.length === 0 && state.ended)\n return 0;\n\n if (state.objectMode)\n return n === 0 ? 0 : 1;\n\n if (n === null || isNaN(n)) {\n // only flow one buffer at a time\n if (state.flowing && state.buffer.length)\n return state.buffer[0].length;\n else\n return state.length;\n }\n\n if (n <= 0)\n return 0;\n\n // If we're asking for more than the target buffer level,\n // then raise the water mark. Bump up to the next highest\n // power of 2, to prevent increasing it excessively in tiny\n // amounts.\n if (n > state.highWaterMark)\n state.highWaterMark = roundUpToNextPowerOf2(n);\n\n // don't have that much. return null, unless we've ended.\n if (n > state.length) {\n if (!state.ended) {\n state.needReadable = true;\n return 0;\n } else\n return state.length;\n }\n\n return n;\n}\n\n// you can override either this method, or the async _read(n) below.\nReadable.prototype.read = function(n) {\n var state = this._readableState;\n state.calledRead = true;\n var nOrig = n;\n var ret;\n\n if (typeof n !== 'number' || n > 0)\n state.emittedReadable = false;\n\n // if we're doing read(0) to trigger a readable event, but we\n // already have a bunch of data in the buffer, then just trigger\n // the 'readable' event and move on.\n if (n === 0 &&\n state.needReadable &&\n (state.length >= state.highWaterMark || state.ended)) {\n emitReadable(this);\n return null;\n }\n\n n = howMuchToRead(n, state);\n\n // if we've ended, and we're now clear, then finish it up.\n if (n === 0 && state.ended) {\n ret = null;\n\n // In cases where the decoder did not receive enough data\n // to produce a full chunk, then immediately received an\n // EOF, state.buffer will contain [, ].\n // howMuchToRead will see this and coerce the amount to\n // read to zero (because it's looking at the length of the\n // first in state.buffer), and we'll end up here.\n //\n // This can only happen via state.decoder -- no other venue\n // exists for pushing a zero-length chunk into state.buffer\n // and triggering this behavior. In this case, we return our\n // remaining data and end the stream, if appropriate.\n if (state.length > 0 && state.decoder) {\n ret = fromList(n, state);\n state.length -= ret.length;\n }\n\n if (state.length === 0)\n endReadable(this);\n\n return ret;\n }\n\n // All the actual chunk generation logic needs to be\n // *below* the call to _read. The reason is that in certain\n // synthetic stream cases, such as passthrough streams, _read\n // may be a completely synchronous operation which may change\n // the state of the read buffer, providing enough data when\n // before there was *not* enough.\n //\n // So, the steps are:\n // 1. Figure out what the state of things will be after we do\n // a read from the buffer.\n //\n // 2. If that resulting state will trigger a _read, then call _read.\n // Note that this may be asynchronous, or synchronous. Yes, it is\n // deeply ugly to write APIs this way, but that still doesn't mean\n // that the Readable class should behave improperly, as streams are\n // designed to be sync/async agnostic.\n // Take note if the _read call is sync or async (ie, if the read call\n // has returned yet), so that we know whether or not it's safe to emit\n // 'readable' etc.\n //\n // 3. Actually pull the requested chunks out of the buffer and return.\n\n // if we need a readable event, then we need to do some reading.\n var doRead = state.needReadable;\n\n // if we currently have less than the highWaterMark, then also read some\n if (state.length - n <= state.highWaterMark)\n doRead = true;\n\n // however, if we've ended, then there's no point, and if we're already\n // reading, then it's unnecessary.\n if (state.ended || state.reading)\n doRead = false;\n\n if (doRead) {\n state.reading = true;\n state.sync = true;\n // if the length is currently zero, then we *need* a readable event.\n if (state.length === 0)\n state.needReadable = true;\n // call internal read method\n this._read(state.highWaterMark);\n state.sync = false;\n }\n\n // If _read called its callback synchronously, then `reading`\n // will be false, and we need to re-evaluate how much data we\n // can return to the user.\n if (doRead && !state.reading)\n n = howMuchToRead(nOrig, state);\n\n if (n > 0)\n ret = fromList(n, state);\n else\n ret = null;\n\n if (ret === null) {\n state.needReadable = true;\n n = 0;\n }\n\n state.length -= n;\n\n // If we have nothing in the buffer, then we want to know\n // as soon as we *do* get something into the buffer.\n if (state.length === 0 && !state.ended)\n state.needReadable = true;\n\n // If we happened to read() exactly the remaining amount in the\n // buffer, and the EOF has been seen at this point, then make sure\n // that we emit 'end' on the very next tick.\n if (state.ended && !state.endEmitted && state.length === 0)\n endReadable(this);\n\n return ret;\n};\n\nfunction chunkInvalid(state, chunk) {\n var er = null;\n if (!Buffer.isBuffer(chunk) &&\n 'string' !== typeof chunk &&\n chunk !== null &&\n chunk !== undefined &&\n !state.objectMode) {\n er = new TypeError('Invalid non-string/buffer chunk');\n }\n return er;\n}\n\n\nfunction onEofChunk(stream, state) {\n if (state.decoder && !state.ended) {\n var chunk = state.decoder.end();\n if (chunk && chunk.length) {\n state.buffer.push(chunk);\n state.length += state.objectMode ? 1 : chunk.length;\n }\n }\n state.ended = true;\n\n // if we've ended and we have some data left, then emit\n // 'readable' now to make sure it gets picked up.\n if (state.length > 0)\n emitReadable(stream);\n else\n endReadable(stream);\n}\n\n// Don't emit readable right away in sync mode, because this can trigger\n// another read() call => stack overflow. This way, it might trigger\n// a nextTick recursion warning, but that's not so bad.\nfunction emitReadable(stream) {\n var state = stream._readableState;\n state.needReadable = false;\n if (state.emittedReadable)\n return;\n\n state.emittedReadable = true;\n if (state.sync)\n process.nextTick(function() {\n emitReadable_(stream);\n });\n else\n emitReadable_(stream);\n}\n\nfunction emitReadable_(stream) {\n stream.emit('readable');\n}\n\n\n// at this point, the user has presumably seen the 'readable' event,\n// and called read() to consume some data. that may have triggered\n// in turn another _read(n) call, in which case reading = true if\n// it's in progress.\n// However, if we're not ended, or reading, and the length < hwm,\n// then go ahead and try to read some more preemptively.\nfunction maybeReadMore(stream, state) {\n if (!state.readingMore) {\n state.readingMore = true;\n process.nextTick(function() {\n maybeReadMore_(stream, state);\n });\n }\n}\n\nfunction maybeReadMore_(stream, state) {\n var len = state.length;\n while (!state.reading && !state.flowing && !state.ended &&\n state.length < state.highWaterMark) {\n stream.read(0);\n if (len === state.length)\n // didn't get any data, stop spinning.\n break;\n else\n len = state.length;\n }\n state.readingMore = false;\n}\n\n// abstract method. to be overridden in specific implementation classes.\n// call cb(er, data) where data is <= n in length.\n// for virtual (non-string, non-buffer) streams, \"length\" is somewhat\n// arbitrary, and perhaps not very meaningful.\nReadable.prototype._read = function(n) {\n this.emit('error', new Error('not implemented'));\n};\n\nReadable.prototype.pipe = function(dest, pipeOpts) {\n var src = this;\n var state = this._readableState;\n\n switch (state.pipesCount) {\n case 0:\n state.pipes = dest;\n break;\n case 1:\n state.pipes = [state.pipes, dest];\n break;\n default:\n state.pipes.push(dest);\n break;\n }\n state.pipesCount += 1;\n\n var doEnd = (!pipeOpts || pipeOpts.end !== false) &&\n dest !== process.stdout &&\n dest !== process.stderr;\n\n var endFn = doEnd ? onend : cleanup;\n if (state.endEmitted)\n process.nextTick(endFn);\n else\n src.once('end', endFn);\n\n dest.on('unpipe', onunpipe);\n function onunpipe(readable) {\n if (readable !== src) return;\n cleanup();\n }\n\n function onend() {\n dest.end();\n }\n\n // when the dest drains, it reduces the awaitDrain counter\n // on the source. This would be more elegant with a .once()\n // handler in flow(), but adding and removing repeatedly is\n // too slow.\n var ondrain = pipeOnDrain(src);\n dest.on('drain', ondrain);\n\n function cleanup() {\n // cleanup event handlers once the pipe is broken\n dest.removeListener('close', onclose);\n dest.removeListener('finish', onfinish);\n dest.removeListener('drain', ondrain);\n dest.removeListener('error', onerror);\n dest.removeListener('unpipe', onunpipe);\n src.removeListener('end', onend);\n src.removeListener('end', cleanup);\n\n // if the reader is waiting for a drain event from this\n // specific writer, then it would cause it to never start\n // flowing again.\n // So, if this is awaiting a drain, then we just call it now.\n // If we don't know, then assume that we are waiting for one.\n if (!dest._writableState || dest._writableState.needDrain)\n ondrain();\n }\n\n // if the dest has an error, then stop piping into it.\n // however, don't suppress the throwing behavior for this.\n function onerror(er) {\n unpipe();\n dest.removeListener('error', onerror);\n if (EE.listenerCount(dest, 'error') === 0)\n dest.emit('error', er);\n }\n // This is a brutally ugly hack to make sure that our error handler\n // is attached before any userland ones. NEVER DO THIS.\n if (!dest._events || !dest._events.error)\n dest.on('error', onerror);\n else if (isArray(dest._events.error))\n dest._events.error.unshift(onerror);\n else\n dest._events.error = [onerror, dest._events.error];\n\n\n\n // Both close and finish should trigger unpipe, but only once.\n function onclose() {\n dest.removeListener('finish', onfinish);\n unpipe();\n }\n dest.once('close', onclose);\n function onfinish() {\n dest.removeListener('close', onclose);\n unpipe();\n }\n dest.once('finish', onfinish);\n\n function unpipe() {\n src.unpipe(dest);\n }\n\n // tell the dest that it's being piped to\n dest.emit('pipe', src);\n\n // start the flow if it hasn't been started already.\n if (!state.flowing) {\n // the handler that waits for readable events after all\n // the data gets sucked out in flow.\n // This would be easier to follow with a .once() handler\n // in flow(), but that is too slow.\n this.on('readable', pipeOnReadable);\n\n state.flowing = true;\n process.nextTick(function() {\n flow(src);\n });\n }\n\n return dest;\n};\n\nfunction pipeOnDrain(src) {\n return function() {\n var dest = this;\n var state = src._readableState;\n state.awaitDrain--;\n if (state.awaitDrain === 0)\n flow(src);\n };\n}\n\nfunction flow(src) {\n var state = src._readableState;\n var chunk;\n state.awaitDrain = 0;\n\n function write(dest, i, list) {\n var written = dest.write(chunk);\n if (false === written) {\n state.awaitDrain++;\n }\n }\n\n while (state.pipesCount && null !== (chunk = src.read())) {\n\n if (state.pipesCount === 1)\n write(state.pipes, 0, null);\n else\n forEach(state.pipes, write);\n\n src.emit('data', chunk);\n\n // if anyone needs a drain, then we have to wait for that.\n if (state.awaitDrain > 0)\n return;\n }\n\n // if every destination was unpiped, either before entering this\n // function, or in the while loop, then stop flowing.\n //\n // NB: This is a pretty rare edge case.\n if (state.pipesCount === 0) {\n state.flowing = false;\n\n // if there were data event listeners added, then switch to old mode.\n if (EE.listenerCount(src, 'data') > 0)\n emitDataEvents(src);\n return;\n }\n\n // at this point, no one needed a drain, so we just ran out of data\n // on the next readable event, start it over again.\n state.ranOut = true;\n}\n\nfunction pipeOnReadable() {\n if (this._readableState.ranOut) {\n this._readableState.ranOut = false;\n flow(this);\n }\n}\n\n\nReadable.prototype.unpipe = function(dest) {\n var state = this._readableState;\n\n // if we're not piping anywhere, then do nothing.\n if (state.pipesCount === 0)\n return this;\n\n // just one destination. most common case.\n if (state.pipesCount === 1) {\n // passed in one, but it's not the right one.\n if (dest && dest !== state.pipes)\n return this;\n\n if (!dest)\n dest = state.pipes;\n\n // got a match.\n state.pipes = null;\n state.pipesCount = 0;\n this.removeListener('readable', pipeOnReadable);\n state.flowing = false;\n if (dest)\n dest.emit('unpipe', this);\n return this;\n }\n\n // slow case. multiple pipe destinations.\n\n if (!dest) {\n // remove all.\n var dests = state.pipes;\n var len = state.pipesCount;\n state.pipes = null;\n state.pipesCount = 0;\n this.removeListener('readable', pipeOnReadable);\n state.flowing = false;\n\n for (var i = 0; i < len; i++)\n dests[i].emit('unpipe', this);\n return this;\n }\n\n // try to find the right one.\n var i = indexOf(state.pipes, dest);\n if (i === -1)\n return this;\n\n state.pipes.splice(i, 1);\n state.pipesCount -= 1;\n if (state.pipesCount === 1)\n state.pipes = state.pipes[0];\n\n dest.emit('unpipe', this);\n\n return this;\n};\n\n// set up data events if they are asked for\n// Ensure readable listeners eventually get something\nReadable.prototype.on = function(ev, fn) {\n var res = Stream.prototype.on.call(this, ev, fn);\n\n if (ev === 'data' && !this._readableState.flowing)\n emitDataEvents(this);\n\n if (ev === 'readable' && this.readable) {\n var state = this._readableState;\n if (!state.readableListening) {\n state.readableListening = true;\n state.emittedReadable = false;\n state.needReadable = true;\n if (!state.reading) {\n this.read(0);\n } else if (state.length) {\n emitReadable(this, state);\n }\n }\n }\n\n return res;\n};\nReadable.prototype.addListener = Readable.prototype.on;\n\n// pause() and resume() are remnants of the legacy readable stream API\n// If the user uses them, then switch into old mode.\nReadable.prototype.resume = function() {\n emitDataEvents(this);\n this.read(0);\n this.emit('resume');\n};\n\nReadable.prototype.pause = function() {\n emitDataEvents(this, true);\n this.emit('pause');\n};\n\nfunction emitDataEvents(stream, startPaused) {\n var state = stream._readableState;\n\n if (state.flowing) {\n // https://github.com/isaacs/readable-stream/issues/16\n throw new Error('Cannot switch to old mode now.');\n }\n\n var paused = startPaused || false;\n var readable = false;\n\n // convert to an old-style stream.\n stream.readable = true;\n stream.pipe = Stream.prototype.pipe;\n stream.on = stream.addListener = Stream.prototype.on;\n\n stream.on('readable', function() {\n readable = true;\n\n var c;\n while (!paused && (null !== (c = stream.read())))\n stream.emit('data', c);\n\n if (c === null) {\n readable = false;\n stream._readableState.needReadable = true;\n }\n });\n\n stream.pause = function() {\n paused = true;\n this.emit('pause');\n };\n\n stream.resume = function() {\n paused = false;\n if (readable)\n process.nextTick(function() {\n stream.emit('readable');\n });\n else\n this.read(0);\n this.emit('resume');\n };\n\n // now make it start, just in case it hadn't already.\n stream.emit('readable');\n}\n\n// wrap an old-style stream as the async data source.\n// This is *not* part of the readable stream interface.\n// It is an ugly unfortunate mess of history.\nReadable.prototype.wrap = function(stream) {\n var state = this._readableState;\n var paused = false;\n\n var self = this;\n stream.on('end', function() {\n if (state.decoder && !state.ended) {\n var chunk = state.decoder.end();\n if (chunk && chunk.length)\n self.push(chunk);\n }\n\n self.push(null);\n });\n\n stream.on('data', function(chunk) {\n if (state.decoder)\n chunk = state.decoder.write(chunk);\n\n // don't skip over falsy values in objectMode\n //if (state.objectMode && util.isNullOrUndefined(chunk))\n if (state.objectMode && (chunk === null || chunk === undefined))\n return;\n else if (!state.objectMode && (!chunk || !chunk.length))\n return;\n\n var ret = self.push(chunk);\n if (!ret) {\n paused = true;\n stream.pause();\n }\n });\n\n // proxy all the other methods.\n // important when wrapping filters and duplexes.\n for (var i in stream) {\n if (typeof stream[i] === 'function' &&\n typeof this[i] === 'undefined') {\n this[i] = function(method) { return function() {\n return stream[method].apply(stream, arguments);\n }}(i);\n }\n }\n\n // proxy certain important events.\n var events = ['error', 'close', 'destroy', 'pause', 'resume'];\n forEach(events, function(ev) {\n stream.on(ev, self.emit.bind(self, ev));\n });\n\n // when we try to consume some more bytes, simply unpause the\n // underlying stream.\n self._read = function(n) {\n if (paused) {\n paused = false;\n stream.resume();\n }\n };\n\n return self;\n};\n\n\n\n// exposed for testing purposes only.\nReadable._fromList = fromList;\n\n// Pluck off n bytes from an array of buffers.\n// Length is the combined lengths of all the buffers in the list.\nfunction fromList(n, state) {\n var list = state.buffer;\n var length = state.length;\n var stringMode = !!state.decoder;\n var objectMode = !!state.objectMode;\n var ret;\n\n // nothing in the list, definitely empty.\n if (list.length === 0)\n return null;\n\n if (length === 0)\n ret = null;\n else if (objectMode)\n ret = list.shift();\n else if (!n || n >= length) {\n // read it all, truncate the array.\n if (stringMode)\n ret = list.join('');\n else\n ret = Buffer.concat(list, length);\n list.length = 0;\n } else {\n // read just some of it.\n if (n < list[0].length) {\n // just take a part of the first list item.\n // slice is the same for buffers and strings.\n var buf = list[0];\n ret = buf.slice(0, n);\n list[0] = buf.slice(n);\n } else if (n === list[0].length) {\n // first list is a perfect match\n ret = list.shift();\n } else {\n // complex case.\n // we have enough to cover it, but it spans past the first buffer.\n if (stringMode)\n ret = '';\n else\n ret = new Buffer(n);\n\n var c = 0;\n for (var i = 0, l = list.length; i < l && c < n; i++) {\n var buf = list[0];\n var cpy = Math.min(n - c, buf.length);\n\n if (stringMode)\n ret += buf.slice(0, cpy);\n else\n buf.copy(ret, c, 0, cpy);\n\n if (cpy < buf.length)\n list[0] = buf.slice(cpy);\n else\n list.shift();\n\n c += cpy;\n }\n }\n }\n\n return ret;\n}\n\nfunction endReadable(stream) {\n var state = stream._readableState;\n\n // If we get here before consuming all the bytes, then that is a\n // bug in node. Should never happen.\n if (state.length > 0)\n throw new Error('endReadable called on non-empty stream');\n\n if (!state.endEmitted && state.calledRead) {\n state.ended = true;\n process.nextTick(function() {\n // Check that we didn't get one last unshift.\n if (!state.endEmitted && state.length === 0) {\n state.endEmitted = true;\n stream.readable = false;\n stream.emit('end');\n }\n });\n }\n}\n\nfunction forEach (xs, f) {\n for (var i = 0, l = xs.length; i < l; i++) {\n f(xs[i], i);\n }\n}\n\nfunction indexOf (xs, x) {\n for (var i = 0, l = xs.length; i < l; i++) {\n if (xs[i] === x) return i;\n }\n return -1;\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(83)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/through2/~/readable-stream/lib/_stream_readable.js\n ** module id = 234\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/through2/~/readable-stream/lib/_stream_readable.js?"); + eval("/* WEBPACK VAR INJECTION */(function(global) {\n/**\n * Module exports.\n */\n\nmodule.exports = deprecate;\n\n/**\n * Mark that a method should not be used.\n * Returns a modified function which warns once by default.\n *\n * If `localStorage.noDeprecation = true` is set, then it is a no-op.\n *\n * If `localStorage.throwDeprecation = true` is set, then deprecated functions\n * will throw an Error when invoked.\n *\n * If `localStorage.traceDeprecation = true` is set, then deprecated functions\n * will invoke `console.trace()` instead of `console.error()`.\n *\n * @param {Function} fn - the function to deprecate\n * @param {String} msg - the string to print to the console when `fn` is invoked\n * @returns {Function} a new \"deprecated\" version of `fn`\n * @api public\n */\n\nfunction deprecate (fn, msg) {\n if (config('noDeprecation')) {\n return fn;\n }\n\n var warned = false;\n function deprecated() {\n if (!warned) {\n if (config('throwDeprecation')) {\n throw new Error(msg);\n } else if (config('traceDeprecation')) {\n console.trace(msg);\n } else {\n console.warn(msg);\n }\n warned = true;\n }\n return fn.apply(this, arguments);\n }\n\n return deprecated;\n}\n\n/**\n * Checks `localStorage` for boolean values for the given `name`.\n *\n * @param {String} name\n * @returns {Boolean}\n * @api private\n */\n\nfunction config (name) {\n // accessing global.localStorage can trigger a DOMException in sandboxed iframes\n try {\n if (!global.localStorage) return false;\n } catch (_) {\n return false;\n }\n var val = global.localStorage[name];\n if (null == val) return false;\n return String(val).toLowerCase() === 'true';\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/util-deprecate/browser.js\n ** module id = 234\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/util-deprecate/browser.js?"); /***/ }, /* 235 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("module.exports = Array.isArray || function (arr) {\n return Object.prototype.toString.call(arr) == '[object Array]';\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/through2/~/readable-stream/~/isarray/index.js\n ** module id = 235\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/through2/~/readable-stream/~/isarray/index.js?"); + eval("/* WEBPACK VAR INJECTION */(function(process) {'use strict';\n\nvar through2 = __webpack_require__(189);\nvar Combine = __webpack_require__(236);\nvar unique = __webpack_require__(240);\n\nvar glob = __webpack_require__(243);\nvar micromatch = __webpack_require__(255);\nvar resolveGlob = __webpack_require__(291);\nvar globParent = __webpack_require__(284);\nvar path = __webpack_require__(149);\nvar extend = __webpack_require__(293);\n\nvar gs = {\n // Creates a stream for a single glob or filter\n createStream: function(ourGlob, negatives, opt) {\n\n // Remove path relativity to make globs make sense\n ourGlob = resolveGlob(ourGlob, opt);\n var ourOpt = extend({}, opt);\n delete ourOpt.root;\n\n // Create globbing stuff\n var globber = new glob.Glob(ourGlob, ourOpt);\n\n // Extract base path from glob\n var basePath = opt.base || globParent(ourGlob) + path.sep;\n\n // Create stream and map events from globber to it\n var stream = through2.obj(opt,\n negatives.length ? filterNegatives : undefined);\n\n var found = false;\n\n globber.on('error', stream.emit.bind(stream, 'error'));\n globber.once('end', function() {\n if (opt.allowEmpty !== true && !found && globIsSingular(globber)) {\n stream.emit('error',\n new Error('File not found with singular glob: ' + ourGlob));\n }\n\n stream.end();\n });\n globber.on('match', function(filename) {\n found = true;\n\n stream.write({\n cwd: opt.cwd,\n base: basePath,\n path: filename,\n });\n });\n\n return stream;\n\n function filterNegatives(filename, enc, cb) {\n var matcha = isMatch.bind(null, filename);\n if (negatives.every(matcha)) {\n cb(null, filename); // Pass\n } else {\n cb(); // Ignore\n }\n }\n },\n\n // Creates a stream for multiple globs or filters\n create: function(globs, opt) {\n if (!opt) {\n opt = {};\n }\n if (typeof opt.cwd !== 'string') {\n opt.cwd = process.cwd();\n }\n if (typeof opt.dot !== 'boolean') {\n opt.dot = false;\n }\n if (typeof opt.silent !== 'boolean') {\n opt.silent = true;\n }\n if (typeof opt.nonull !== 'boolean') {\n opt.nonull = false;\n }\n if (typeof opt.cwdbase !== 'boolean') {\n opt.cwdbase = false;\n }\n if (opt.cwdbase) {\n opt.base = opt.cwd;\n }\n\n // Only one glob no need to aggregate\n if (!Array.isArray(globs)) {\n globs = [globs];\n }\n\n var positives = [];\n var negatives = [];\n\n var ourOpt = extend({}, opt);\n delete ourOpt.root;\n\n globs.forEach(function(glob, index) {\n if (typeof glob !== 'string' && !(glob instanceof RegExp)) {\n throw new Error('Invalid glob at index ' + index);\n }\n\n var globArray = isNegative(glob) ? negatives : positives;\n\n // Create Minimatch instances for negative glob patterns\n if (globArray === negatives && typeof glob === 'string') {\n var ourGlob = resolveGlob(glob, opt);\n glob = micromatch.matcher(ourGlob, ourOpt);\n }\n\n globArray.push({\n index: index,\n glob: glob,\n });\n });\n\n if (positives.length === 0) {\n throw new Error('Missing positive glob');\n }\n\n // Only one positive glob no need to aggregate\n if (positives.length === 1) {\n return streamFromPositive(positives[0]);\n }\n\n // Create all individual streams\n var streams = positives.map(streamFromPositive);\n\n // Then just pipe them to a single unique stream and return it\n var aggregate = new Combine(streams);\n var uniqueStream = unique('path');\n var returnStream = aggregate.pipe(uniqueStream);\n\n aggregate.on('error', function(err) {\n returnStream.emit('error', err);\n });\n\n return returnStream;\n\n function streamFromPositive(positive) {\n var negativeGlobs = negatives.filter(indexGreaterThan(positive.index))\n .map(toGlob);\n return gs.createStream(positive.glob, negativeGlobs, opt);\n }\n },\n};\n\nfunction isMatch(file, matcher) {\n if (typeof matcher === 'function') {\n return matcher(file.path);\n }\n if (matcher instanceof RegExp) {\n return matcher.test(file.path);\n }\n}\n\nfunction isNegative(pattern) {\n if (typeof pattern === 'string') {\n return pattern[0] === '!';\n }\n if (pattern instanceof RegExp) {\n return true;\n }\n}\n\nfunction indexGreaterThan(index) {\n return function(obj) {\n return obj.index > index;\n };\n}\n\nfunction toGlob(obj) {\n return obj.glob;\n}\n\nfunction globIsSingular(glob) {\n var globSet = glob.minimatch.set;\n\n if (globSet.length !== 1) {\n return false;\n }\n\n return globSet[0].every(function isString(value) {\n return typeof value === 'string';\n });\n}\n\nmodule.exports = gs;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/index.js\n ** module id = 235\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/index.js?"); /***/ }, /* 236 */ /***/ function(module, exports, __webpack_require__) { - eval("// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nvar Buffer = __webpack_require__(1).Buffer;\n\nvar isBufferEncoding = Buffer.isEncoding\n || function(encoding) {\n switch (encoding && encoding.toLowerCase()) {\n case 'hex': case 'utf8': case 'utf-8': case 'ascii': case 'binary': case 'base64': case 'ucs2': case 'ucs-2': case 'utf16le': case 'utf-16le': case 'raw': return true;\n default: return false;\n }\n }\n\n\nfunction assertEncoding(encoding) {\n if (encoding && !isBufferEncoding(encoding)) {\n throw new Error('Unknown encoding: ' + encoding);\n }\n}\n\n// StringDecoder provides an interface for efficiently splitting a series of\n// buffers into a series of JS strings without breaking apart multi-byte\n// characters. CESU-8 is handled as part of the UTF-8 encoding.\n//\n// @TODO Handling all encodings inside a single object makes it very difficult\n// to reason about this code, so it should be split up in the future.\n// @TODO There should be a utf8-strict encoding that rejects invalid UTF-8 code\n// points as used by CESU-8.\nvar StringDecoder = exports.StringDecoder = function(encoding) {\n this.encoding = (encoding || 'utf8').toLowerCase().replace(/[-_]/, '');\n assertEncoding(encoding);\n switch (this.encoding) {\n case 'utf8':\n // CESU-8 represents each of Surrogate Pair by 3-bytes\n this.surrogateSize = 3;\n break;\n case 'ucs2':\n case 'utf16le':\n // UTF-16 represents each of Surrogate Pair by 2-bytes\n this.surrogateSize = 2;\n this.detectIncompleteChar = utf16DetectIncompleteChar;\n break;\n case 'base64':\n // Base-64 stores 3 bytes in 4 chars, and pads the remainder.\n this.surrogateSize = 3;\n this.detectIncompleteChar = base64DetectIncompleteChar;\n break;\n default:\n this.write = passThroughWrite;\n return;\n }\n\n // Enough space to store all bytes of a single character. UTF-8 needs 4\n // bytes, but CESU-8 may require up to 6 (3 bytes per surrogate).\n this.charBuffer = new Buffer(6);\n // Number of bytes received for the current incomplete multi-byte character.\n this.charReceived = 0;\n // Number of bytes expected for the current incomplete multi-byte character.\n this.charLength = 0;\n};\n\n\n// write decodes the given buffer and returns it as JS string that is\n// guaranteed to not contain any partial multi-byte characters. Any partial\n// character found at the end of the buffer is buffered up, and will be\n// returned when calling write again with the remaining bytes.\n//\n// Note: Converting a Buffer containing an orphan surrogate to a String\n// currently works, but converting a String to a Buffer (via `new Buffer`, or\n// Buffer#write) will replace incomplete surrogates with the unicode\n// replacement character. See https://codereview.chromium.org/121173009/ .\nStringDecoder.prototype.write = function(buffer) {\n var charStr = '';\n // if our last write ended with an incomplete multibyte character\n while (this.charLength) {\n // determine how many remaining bytes this buffer has to offer for this char\n var available = (buffer.length >= this.charLength - this.charReceived) ?\n this.charLength - this.charReceived :\n buffer.length;\n\n // add the new bytes to the char buffer\n buffer.copy(this.charBuffer, this.charReceived, 0, available);\n this.charReceived += available;\n\n if (this.charReceived < this.charLength) {\n // still not enough chars in this buffer? wait for more ...\n return '';\n }\n\n // remove bytes belonging to the current character from the buffer\n buffer = buffer.slice(available, buffer.length);\n\n // get the character that was split\n charStr = this.charBuffer.slice(0, this.charLength).toString(this.encoding);\n\n // CESU-8: lead surrogate (D800-DBFF) is also the incomplete character\n var charCode = charStr.charCodeAt(charStr.length - 1);\n if (charCode >= 0xD800 && charCode <= 0xDBFF) {\n this.charLength += this.surrogateSize;\n charStr = '';\n continue;\n }\n this.charReceived = this.charLength = 0;\n\n // if there are no more bytes in this buffer, just emit our char\n if (buffer.length === 0) {\n return charStr;\n }\n break;\n }\n\n // determine and set charLength / charReceived\n this.detectIncompleteChar(buffer);\n\n var end = buffer.length;\n if (this.charLength) {\n // buffer the incomplete character bytes we got\n buffer.copy(this.charBuffer, 0, buffer.length - this.charReceived, end);\n end -= this.charReceived;\n }\n\n charStr += buffer.toString(this.encoding, 0, end);\n\n var end = charStr.length - 1;\n var charCode = charStr.charCodeAt(end);\n // CESU-8: lead surrogate (D800-DBFF) is also the incomplete character\n if (charCode >= 0xD800 && charCode <= 0xDBFF) {\n var size = this.surrogateSize;\n this.charLength += size;\n this.charReceived += size;\n this.charBuffer.copy(this.charBuffer, size, 0, size);\n buffer.copy(this.charBuffer, 0, 0, size);\n return charStr.substring(0, end);\n }\n\n // or just emit the charStr\n return charStr;\n};\n\n// detectIncompleteChar determines if there is an incomplete UTF-8 character at\n// the end of the given buffer. If so, it sets this.charLength to the byte\n// length that character, and sets this.charReceived to the number of bytes\n// that are available for this character.\nStringDecoder.prototype.detectIncompleteChar = function(buffer) {\n // determine how many bytes we have to check at the end of this buffer\n var i = (buffer.length >= 3) ? 3 : buffer.length;\n\n // Figure out if one of the last i bytes of our buffer announces an\n // incomplete char.\n for (; i > 0; i--) {\n var c = buffer[buffer.length - i];\n\n // See http://en.wikipedia.org/wiki/UTF-8#Description\n\n // 110XXXXX\n if (i == 1 && c >> 5 == 0x06) {\n this.charLength = 2;\n break;\n }\n\n // 1110XXXX\n if (i <= 2 && c >> 4 == 0x0E) {\n this.charLength = 3;\n break;\n }\n\n // 11110XXX\n if (i <= 3 && c >> 3 == 0x1E) {\n this.charLength = 4;\n break;\n }\n }\n this.charReceived = i;\n};\n\nStringDecoder.prototype.end = function(buffer) {\n var res = '';\n if (buffer && buffer.length)\n res = this.write(buffer);\n\n if (this.charReceived) {\n var cr = this.charReceived;\n var buf = this.charBuffer;\n var enc = this.encoding;\n res += buf.slice(0, cr).toString(enc);\n }\n\n return res;\n};\n\nfunction passThroughWrite(buffer) {\n return buffer.toString(this.encoding);\n}\n\nfunction utf16DetectIncompleteChar(buffer) {\n this.charReceived = buffer.length % 2;\n this.charLength = this.charReceived ? 2 : 0;\n}\n\nfunction base64DetectIncompleteChar(buffer) {\n this.charReceived = buffer.length % 3;\n this.charLength = this.charReceived ? 3 : 0;\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/through2/~/readable-stream/~/string_decoder/index.js\n ** module id = 236\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/through2/~/readable-stream/~/string_decoder/index.js?"); + eval("var Readable = __webpack_require__(237);\nvar isReadable = __webpack_require__(239).readable;\nvar util = __webpack_require__(139);\n\nfunction addStream(streams, stream)\n{\n if(!isReadable(stream)) throw new Error('All input streams must be readable');\n\n var self = this;\n\n stream._buffer = [];\n\n stream.on('readable', function()\n {\n var chunk = stream.read();\n if (chunk === null)\n return;\n\n if(this === streams[0])\n self.push(chunk);\n\n else\n this._buffer.push(chunk);\n });\n\n stream.on('end', function()\n {\n for(var stream = streams[0];\n stream && stream._readableState.ended;\n stream = streams[0])\n {\n while(stream._buffer.length)\n self.push(stream._buffer.shift());\n\n streams.shift();\n }\n\n if(!streams.length) self.push(null);\n });\n\n stream.on('error', this.emit.bind(this, 'error'));\n\n streams.push(stream);\n}\n\n\nfunction OrderedStreams(streams, options) {\n if (!(this instanceof(OrderedStreams))) {\n return new OrderedStreams(streams, options);\n }\n\n streams = streams || [];\n options = options || {};\n\n options.objectMode = true;\n\n Readable.call(this, options);\n\n\n if(!Array.isArray(streams)) streams = [streams];\n if(!streams.length) return this.push(null); // no streams, close\n\n\n var addStream_bind = addStream.bind(this, []);\n\n\n streams.forEach(function(item)\n {\n if(Array.isArray(item))\n item.forEach(addStream_bind);\n\n else\n addStream_bind(item);\n });\n}\nutil.inherits(OrderedStreams, Readable);\n\nOrderedStreams.prototype._read = function () {};\n\n\nmodule.exports = OrderedStreams;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/ordered-read-streams/index.js\n ** module id = 236\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/ordered-read-streams/index.js?"); /***/ }, /* 237 */ /***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(process) {// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// A bit simpler than readable streams.\n// Implement an async ._write(chunk, cb), and it'll handle all\n// the drain event emission and buffering.\n\nmodule.exports = Writable;\n\n/**/\nvar Buffer = __webpack_require__(1).Buffer;\n/**/\n\nWritable.WritableState = WritableState;\n\n\n/**/\nvar util = __webpack_require__(232);\nutil.inherits = __webpack_require__(233);\n/**/\n\nvar Stream = __webpack_require__(96);\n\nutil.inherits(Writable, Stream);\n\nfunction WriteReq(chunk, encoding, cb) {\n this.chunk = chunk;\n this.encoding = encoding;\n this.callback = cb;\n}\n\nfunction WritableState(options, stream) {\n options = options || {};\n\n // the point at which write() starts returning false\n // Note: 0 is a valid value, means that we always return false if\n // the entire buffer is not flushed immediately on write()\n var hwm = options.highWaterMark;\n this.highWaterMark = (hwm || hwm === 0) ? hwm : 16 * 1024;\n\n // object stream flag to indicate whether or not this stream\n // contains buffers or objects.\n this.objectMode = !!options.objectMode;\n\n // cast to ints.\n this.highWaterMark = ~~this.highWaterMark;\n\n this.needDrain = false;\n // at the start of calling end()\n this.ending = false;\n // when end() has been called, and returned\n this.ended = false;\n // when 'finish' is emitted\n this.finished = false;\n\n // should we decode strings into buffers before passing to _write?\n // this is here so that some node-core streams can optimize string\n // handling at a lower level.\n var noDecode = options.decodeStrings === false;\n this.decodeStrings = !noDecode;\n\n // Crypto is kind of old and crusty. Historically, its default string\n // encoding is 'binary' so we have to make this configurable.\n // Everything else in the universe uses 'utf8', though.\n this.defaultEncoding = options.defaultEncoding || 'utf8';\n\n // not an actual buffer we keep track of, but a measurement\n // of how much we're waiting to get pushed to some underlying\n // socket or file.\n this.length = 0;\n\n // a flag to see when we're in the middle of a write.\n this.writing = false;\n\n // a flag to be able to tell if the onwrite cb is called immediately,\n // or on a later tick. We set this to true at first, becuase any\n // actions that shouldn't happen until \"later\" should generally also\n // not happen before the first write call.\n this.sync = true;\n\n // a flag to know if we're processing previously buffered items, which\n // may call the _write() callback in the same tick, so that we don't\n // end up in an overlapped onwrite situation.\n this.bufferProcessing = false;\n\n // the callback that's passed to _write(chunk,cb)\n this.onwrite = function(er) {\n onwrite(stream, er);\n };\n\n // the callback that the user supplies to write(chunk,encoding,cb)\n this.writecb = null;\n\n // the amount that is being written when _write is called.\n this.writelen = 0;\n\n this.buffer = [];\n\n // True if the error was already emitted and should not be thrown again\n this.errorEmitted = false;\n}\n\nfunction Writable(options) {\n var Duplex = __webpack_require__(231);\n\n // Writable ctor is applied to Duplexes, though they're not\n // instanceof Writable, they're instanceof Readable.\n if (!(this instanceof Writable) && !(this instanceof Duplex))\n return new Writable(options);\n\n this._writableState = new WritableState(options, this);\n\n // legacy.\n this.writable = true;\n\n Stream.call(this);\n}\n\n// Otherwise people can pipe Writable streams, which is just wrong.\nWritable.prototype.pipe = function() {\n this.emit('error', new Error('Cannot pipe. Not readable.'));\n};\n\n\nfunction writeAfterEnd(stream, state, cb) {\n var er = new Error('write after end');\n // TODO: defer error events consistently everywhere, not just the cb\n stream.emit('error', er);\n process.nextTick(function() {\n cb(er);\n });\n}\n\n// If we get something that is not a buffer, string, null, or undefined,\n// and we're not in objectMode, then that's an error.\n// Otherwise stream chunks are all considered to be of length=1, and the\n// watermarks determine how many objects to keep in the buffer, rather than\n// how many bytes or characters.\nfunction validChunk(stream, state, chunk, cb) {\n var valid = true;\n if (!Buffer.isBuffer(chunk) &&\n 'string' !== typeof chunk &&\n chunk !== null &&\n chunk !== undefined &&\n !state.objectMode) {\n var er = new TypeError('Invalid non-string/buffer chunk');\n stream.emit('error', er);\n process.nextTick(function() {\n cb(er);\n });\n valid = false;\n }\n return valid;\n}\n\nWritable.prototype.write = function(chunk, encoding, cb) {\n var state = this._writableState;\n var ret = false;\n\n if (typeof encoding === 'function') {\n cb = encoding;\n encoding = null;\n }\n\n if (Buffer.isBuffer(chunk))\n encoding = 'buffer';\n else if (!encoding)\n encoding = state.defaultEncoding;\n\n if (typeof cb !== 'function')\n cb = function() {};\n\n if (state.ended)\n writeAfterEnd(this, state, cb);\n else if (validChunk(this, state, chunk, cb))\n ret = writeOrBuffer(this, state, chunk, encoding, cb);\n\n return ret;\n};\n\nfunction decodeChunk(state, chunk, encoding) {\n if (!state.objectMode &&\n state.decodeStrings !== false &&\n typeof chunk === 'string') {\n chunk = new Buffer(chunk, encoding);\n }\n return chunk;\n}\n\n// if we're already writing something, then just put this\n// in the queue, and wait our turn. Otherwise, call _write\n// If we return false, then we need a drain event, so set that flag.\nfunction writeOrBuffer(stream, state, chunk, encoding, cb) {\n chunk = decodeChunk(state, chunk, encoding);\n if (Buffer.isBuffer(chunk))\n encoding = 'buffer';\n var len = state.objectMode ? 1 : chunk.length;\n\n state.length += len;\n\n var ret = state.length < state.highWaterMark;\n // we must ensure that previous needDrain will not be reset to false.\n if (!ret)\n state.needDrain = true;\n\n if (state.writing)\n state.buffer.push(new WriteReq(chunk, encoding, cb));\n else\n doWrite(stream, state, len, chunk, encoding, cb);\n\n return ret;\n}\n\nfunction doWrite(stream, state, len, chunk, encoding, cb) {\n state.writelen = len;\n state.writecb = cb;\n state.writing = true;\n state.sync = true;\n stream._write(chunk, encoding, state.onwrite);\n state.sync = false;\n}\n\nfunction onwriteError(stream, state, sync, er, cb) {\n if (sync)\n process.nextTick(function() {\n cb(er);\n });\n else\n cb(er);\n\n stream._writableState.errorEmitted = true;\n stream.emit('error', er);\n}\n\nfunction onwriteStateUpdate(state) {\n state.writing = false;\n state.writecb = null;\n state.length -= state.writelen;\n state.writelen = 0;\n}\n\nfunction onwrite(stream, er) {\n var state = stream._writableState;\n var sync = state.sync;\n var cb = state.writecb;\n\n onwriteStateUpdate(state);\n\n if (er)\n onwriteError(stream, state, sync, er, cb);\n else {\n // Check if we're actually ready to finish, but don't emit yet\n var finished = needFinish(stream, state);\n\n if (!finished && !state.bufferProcessing && state.buffer.length)\n clearBuffer(stream, state);\n\n if (sync) {\n process.nextTick(function() {\n afterWrite(stream, state, finished, cb);\n });\n } else {\n afterWrite(stream, state, finished, cb);\n }\n }\n}\n\nfunction afterWrite(stream, state, finished, cb) {\n if (!finished)\n onwriteDrain(stream, state);\n cb();\n if (finished)\n finishMaybe(stream, state);\n}\n\n// Must force callback to be called on nextTick, so that we don't\n// emit 'drain' before the write() consumer gets the 'false' return\n// value, and has a chance to attach a 'drain' listener.\nfunction onwriteDrain(stream, state) {\n if (state.length === 0 && state.needDrain) {\n state.needDrain = false;\n stream.emit('drain');\n }\n}\n\n\n// if there's something in the buffer waiting, then process it\nfunction clearBuffer(stream, state) {\n state.bufferProcessing = true;\n\n for (var c = 0; c < state.buffer.length; c++) {\n var entry = state.buffer[c];\n var chunk = entry.chunk;\n var encoding = entry.encoding;\n var cb = entry.callback;\n var len = state.objectMode ? 1 : chunk.length;\n\n doWrite(stream, state, len, chunk, encoding, cb);\n\n // if we didn't call the onwrite immediately, then\n // it means that we need to wait until it does.\n // also, that means that the chunk and cb are currently\n // being processed, so move the buffer counter past them.\n if (state.writing) {\n c++;\n break;\n }\n }\n\n state.bufferProcessing = false;\n if (c < state.buffer.length)\n state.buffer = state.buffer.slice(c);\n else\n state.buffer.length = 0;\n}\n\nWritable.prototype._write = function(chunk, encoding, cb) {\n cb(new Error('not implemented'));\n};\n\nWritable.prototype.end = function(chunk, encoding, cb) {\n var state = this._writableState;\n\n if (typeof chunk === 'function') {\n cb = chunk;\n chunk = null;\n encoding = null;\n } else if (typeof encoding === 'function') {\n cb = encoding;\n encoding = null;\n }\n\n if (typeof chunk !== 'undefined' && chunk !== null)\n this.write(chunk, encoding);\n\n // ignore unnecessary end() calls.\n if (!state.ending && !state.finished)\n endWritable(this, state, cb);\n};\n\n\nfunction needFinish(stream, state) {\n return (state.ending &&\n state.length === 0 &&\n !state.finished &&\n !state.writing);\n}\n\nfunction finishMaybe(stream, state) {\n var need = needFinish(stream, state);\n if (need) {\n state.finished = true;\n stream.emit('finish');\n }\n return need;\n}\n\nfunction endWritable(stream, state, cb) {\n state.ending = true;\n finishMaybe(stream, state);\n if (cb) {\n if (state.finished)\n process.nextTick(cb);\n else\n stream.once('finish', cb);\n }\n state.ended = true;\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(83)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/through2/~/readable-stream/lib/_stream_writable.js\n ** module id = 237\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/through2/~/readable-stream/lib/_stream_writable.js?"); + eval("var Stream = (function (){\n try {\n return __webpack_require__(98); // hack to fix a circular dependency issue when used with browserify\n } catch(_){}\n}());\nexports = module.exports = __webpack_require__(231);\nexports.Stream = Stream || exports;\nexports.Readable = exports;\nexports.Writable = __webpack_require__(233);\nexports.Duplex = __webpack_require__(229);\nexports.Transform = __webpack_require__(228);\nexports.PassThrough = __webpack_require__(238);\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/readable-stream/readable.js\n ** module id = 237\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/readable-stream/readable.js?"); /***/ }, /* 238 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("module.exports = extend\n\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\nfunction extend() {\n var target = {}\n\n for (var i = 0; i < arguments.length; i++) {\n var source = arguments[i]\n\n for (var key in source) {\n if (hasOwnProperty.call(source, key)) {\n target[key] = source[key]\n }\n }\n }\n\n return target\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/through2/~/xtend/immutable.js\n ** module id = 238\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/through2/~/xtend/immutable.js?"); + eval("// a passthrough stream.\n// basically just the most minimal sort of Transform stream.\n// Every written chunk gets output as-is.\n\n'use strict';\n\nmodule.exports = PassThrough;\n\nvar Transform = __webpack_require__(228);\n\n/**/\nvar util = __webpack_require__(102);\nutil.inherits = __webpack_require__(96);\n/**/\n\nutil.inherits(PassThrough, Transform);\n\nfunction PassThrough(options) {\n if (!(this instanceof PassThrough))\n return new PassThrough(options);\n\n Transform.call(this, options);\n}\n\nPassThrough.prototype._transform = function(chunk, encoding, cb) {\n cb(null, chunk);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/readable-stream/lib/_stream_passthrough.js\n ** module id = 238\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/readable-stream/lib/_stream_passthrough.js?"); /***/ }, /* 239 */ -/***/ function(module, exports, __webpack_require__) { +/***/ function(module, exports) { - eval("var Readable = __webpack_require__(240);\nvar isReadable = __webpack_require__(253).readable;\nvar util = __webpack_require__(140);\n\nfunction addStream(streams, stream)\n{\n if(!isReadable(stream)) throw new Error('All input streams must be readable');\n\n var self = this;\n\n stream._buffer = [];\n\n stream.on('readable', function()\n {\n var chunk = stream.read();\n if (chunk === null)\n return;\n\n if(this === streams[0])\n self.push(chunk);\n\n else\n this._buffer.push(chunk);\n });\n\n stream.on('end', function()\n {\n for(var stream = streams[0];\n stream && stream._readableState.ended;\n stream = streams[0])\n {\n while(stream._buffer.length)\n self.push(stream._buffer.shift());\n\n streams.shift();\n }\n\n if(!streams.length) self.push(null);\n });\n\n stream.on('error', this.emit.bind(this, 'error'));\n\n streams.push(stream);\n}\n\n\nfunction OrderedStreams(streams, options) {\n if (!(this instanceof(OrderedStreams))) {\n return new OrderedStreams(streams, options);\n }\n\n streams = streams || [];\n options = options || {};\n\n options.objectMode = true;\n\n Readable.call(this, options);\n\n\n if(!Array.isArray(streams)) streams = [streams];\n if(!streams.length) return this.push(null); // no streams, close\n\n\n var addStream_bind = addStream.bind(this, []);\n\n\n streams.forEach(function(item)\n {\n if(Array.isArray(item))\n item.forEach(addStream_bind);\n\n else\n addStream_bind(item);\n });\n}\nutil.inherits(OrderedStreams, Readable);\n\nOrderedStreams.prototype._read = function () {};\n\n\nmodule.exports = OrderedStreams;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/ordered-read-streams/index.js\n ** module id = 239\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/ordered-read-streams/index.js?"); + eval("'use strict';\n\nvar isStream = module.exports = function (stream) {\n\treturn stream !== null && typeof stream === 'object' && typeof stream.pipe === 'function';\n};\n\nisStream.writable = function (stream) {\n\treturn isStream(stream) && stream.writable !== false && typeof stream._write == 'function' && typeof stream._writableState == 'object';\n};\n\nisStream.readable = function (stream) {\n\treturn isStream(stream) && stream.readable !== false && typeof stream._read == 'function' && typeof stream._readableState == 'object';\n};\n\nisStream.duplex = function (stream) {\n\treturn isStream.writable(stream) && isStream.readable(stream);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/is-stream/index.js\n ** module id = 239\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/is-stream/index.js?"); /***/ }, /* 240 */ /***/ function(module, exports, __webpack_require__) { - eval("var Stream = (function (){\n try {\n return __webpack_require__(96); // hack to fix a circular dependency issue when used with browserify\n } catch(_){}\n}());\nexports = module.exports = __webpack_require__(241);\nexports.Stream = Stream || exports;\nexports.Readable = exports;\nexports.Writable = __webpack_require__(248);\nexports.Duplex = __webpack_require__(247);\nexports.Transform = __webpack_require__(251);\nexports.PassThrough = __webpack_require__(252);\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/ordered-read-streams/~/readable-stream/readable.js\n ** module id = 240\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/ordered-read-streams/~/readable-stream/readable.js?"); + eval("/* WEBPACK VAR INJECTION */(function(global) {'use strict';\n\nvar filter = __webpack_require__(241).obj;\nvar ES6Set;\nif (typeof global.Set === 'function') {\n ES6Set = global.Set;\n} else {\n ES6Set = function() {\n this.keys = [];\n this.has = function(val) {\n return this.keys.indexOf(val) !== -1;\n },\n this.add = function(val) {\n this.keys.push(val);\n }\n }\n}\n\nfunction prop(propName) {\n return function (data) {\n return data[propName];\n };\n}\n\nmodule.exports = unique;\nfunction unique(propName, keyStore) {\n keyStore = keyStore || new ES6Set();\n\n var keyfn = JSON.stringify;\n if (typeof propName === 'string') {\n keyfn = prop(propName);\n } else if (typeof propName === 'function') {\n keyfn = propName;\n }\n\n return filter(function (data) {\n var key = keyfn(data);\n\n if (keyStore.has(key)) {\n return false;\n }\n\n keyStore.add(key);\n return true;\n });\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/unique-stream/index.js\n ** module id = 240\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/unique-stream/index.js?"); /***/ }, /* 241 */ /***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(process) {'use strict';\n\nmodule.exports = Readable;\n\n/**/\nvar processNextTick = __webpack_require__(242);\n/**/\n\n\n/**/\nvar isArray = __webpack_require__(243);\n/**/\n\n\n/**/\nvar Buffer = __webpack_require__(1).Buffer;\n/**/\n\nReadable.ReadableState = ReadableState;\n\nvar EE = __webpack_require__(84);\n\n/**/\nvar EElistenerCount = function(emitter, type) {\n return emitter.listeners(type).length;\n};\n/**/\n\n\n\n/**/\nvar Stream;\n(function (){try{\n Stream = __webpack_require__(96);\n}catch(_){}finally{\n if (!Stream)\n Stream = __webpack_require__(84).EventEmitter;\n}}())\n/**/\n\nvar Buffer = __webpack_require__(1).Buffer;\n\n/**/\nvar util = __webpack_require__(244);\nutil.inherits = __webpack_require__(245);\n/**/\n\n\n\n/**/\nvar debugUtil = __webpack_require__(246);\nvar debug;\nif (debugUtil && debugUtil.debuglog) {\n debug = debugUtil.debuglog('stream');\n} else {\n debug = function () {};\n}\n/**/\n\nvar StringDecoder;\n\nutil.inherits(Readable, Stream);\n\nvar Duplex;\nfunction ReadableState(options, stream) {\n Duplex = Duplex || __webpack_require__(247);\n\n options = options || {};\n\n // object stream flag. Used to make read(n) ignore n and to\n // make all the buffer merging and length checks go away\n this.objectMode = !!options.objectMode;\n\n if (stream instanceof Duplex)\n this.objectMode = this.objectMode || !!options.readableObjectMode;\n\n // the point at which it stops calling _read() to fill the buffer\n // Note: 0 is a valid value, means \"don't call _read preemptively ever\"\n var hwm = options.highWaterMark;\n var defaultHwm = this.objectMode ? 16 : 16 * 1024;\n this.highWaterMark = (hwm || hwm === 0) ? hwm : defaultHwm;\n\n // cast to ints.\n this.highWaterMark = ~~this.highWaterMark;\n\n this.buffer = [];\n this.length = 0;\n this.pipes = null;\n this.pipesCount = 0;\n this.flowing = null;\n this.ended = false;\n this.endEmitted = false;\n this.reading = false;\n\n // a flag to be able to tell if the onwrite cb is called immediately,\n // or on a later tick. We set this to true at first, because any\n // actions that shouldn't happen until \"later\" should generally also\n // not happen before the first write call.\n this.sync = true;\n\n // whenever we return null, then we set a flag to say\n // that we're awaiting a 'readable' event emission.\n this.needReadable = false;\n this.emittedReadable = false;\n this.readableListening = false;\n\n // Crypto is kind of old and crusty. Historically, its default string\n // encoding is 'binary' so we have to make this configurable.\n // Everything else in the universe uses 'utf8', though.\n this.defaultEncoding = options.defaultEncoding || 'utf8';\n\n // when piping, we only care about 'readable' events that happen\n // after read()ing all the bytes and not getting any pushback.\n this.ranOut = false;\n\n // the number of writers that are awaiting a drain event in .pipe()s\n this.awaitDrain = 0;\n\n // if true, a maybeReadMore has been scheduled\n this.readingMore = false;\n\n this.decoder = null;\n this.encoding = null;\n if (options.encoding) {\n if (!StringDecoder)\n StringDecoder = __webpack_require__(250).StringDecoder;\n this.decoder = new StringDecoder(options.encoding);\n this.encoding = options.encoding;\n }\n}\n\nvar Duplex;\nfunction Readable(options) {\n Duplex = Duplex || __webpack_require__(247);\n\n if (!(this instanceof Readable))\n return new Readable(options);\n\n this._readableState = new ReadableState(options, this);\n\n // legacy\n this.readable = true;\n\n if (options && typeof options.read === 'function')\n this._read = options.read;\n\n Stream.call(this);\n}\n\n// Manually shove something into the read() buffer.\n// This returns true if the highWaterMark has not been hit yet,\n// similar to how Writable.write() returns true if you should\n// write() some more.\nReadable.prototype.push = function(chunk, encoding) {\n var state = this._readableState;\n\n if (!state.objectMode && typeof chunk === 'string') {\n encoding = encoding || state.defaultEncoding;\n if (encoding !== state.encoding) {\n chunk = new Buffer(chunk, encoding);\n encoding = '';\n }\n }\n\n return readableAddChunk(this, state, chunk, encoding, false);\n};\n\n// Unshift should *always* be something directly out of read()\nReadable.prototype.unshift = function(chunk) {\n var state = this._readableState;\n return readableAddChunk(this, state, chunk, '', true);\n};\n\nReadable.prototype.isPaused = function() {\n return this._readableState.flowing === false;\n};\n\nfunction readableAddChunk(stream, state, chunk, encoding, addToFront) {\n var er = chunkInvalid(state, chunk);\n if (er) {\n stream.emit('error', er);\n } else if (chunk === null) {\n state.reading = false;\n onEofChunk(stream, state);\n } else if (state.objectMode || chunk && chunk.length > 0) {\n if (state.ended && !addToFront) {\n var e = new Error('stream.push() after EOF');\n stream.emit('error', e);\n } else if (state.endEmitted && addToFront) {\n var e = new Error('stream.unshift() after end event');\n stream.emit('error', e);\n } else {\n if (state.decoder && !addToFront && !encoding)\n chunk = state.decoder.write(chunk);\n\n if (!addToFront)\n state.reading = false;\n\n // if we want the data now, just emit it.\n if (state.flowing && state.length === 0 && !state.sync) {\n stream.emit('data', chunk);\n stream.read(0);\n } else {\n // update the buffer info.\n state.length += state.objectMode ? 1 : chunk.length;\n if (addToFront)\n state.buffer.unshift(chunk);\n else\n state.buffer.push(chunk);\n\n if (state.needReadable)\n emitReadable(stream);\n }\n\n maybeReadMore(stream, state);\n }\n } else if (!addToFront) {\n state.reading = false;\n }\n\n return needMoreData(state);\n}\n\n\n// if it's past the high water mark, we can push in some more.\n// Also, if we have no data yet, we can stand some\n// more bytes. This is to work around cases where hwm=0,\n// such as the repl. Also, if the push() triggered a\n// readable event, and the user called read(largeNumber) such that\n// needReadable was set, then we ought to push more, so that another\n// 'readable' event will be triggered.\nfunction needMoreData(state) {\n return !state.ended &&\n (state.needReadable ||\n state.length < state.highWaterMark ||\n state.length === 0);\n}\n\n// backwards compatibility.\nReadable.prototype.setEncoding = function(enc) {\n if (!StringDecoder)\n StringDecoder = __webpack_require__(250).StringDecoder;\n this._readableState.decoder = new StringDecoder(enc);\n this._readableState.encoding = enc;\n return this;\n};\n\n// Don't raise the hwm > 8MB\nvar MAX_HWM = 0x800000;\nfunction computeNewHighWaterMark(n) {\n if (n >= MAX_HWM) {\n n = MAX_HWM;\n } else {\n // Get the next highest power of 2\n n--;\n n |= n >>> 1;\n n |= n >>> 2;\n n |= n >>> 4;\n n |= n >>> 8;\n n |= n >>> 16;\n n++;\n }\n return n;\n}\n\nfunction howMuchToRead(n, state) {\n if (state.length === 0 && state.ended)\n return 0;\n\n if (state.objectMode)\n return n === 0 ? 0 : 1;\n\n if (n === null || isNaN(n)) {\n // only flow one buffer at a time\n if (state.flowing && state.buffer.length)\n return state.buffer[0].length;\n else\n return state.length;\n }\n\n if (n <= 0)\n return 0;\n\n // If we're asking for more than the target buffer level,\n // then raise the water mark. Bump up to the next highest\n // power of 2, to prevent increasing it excessively in tiny\n // amounts.\n if (n > state.highWaterMark)\n state.highWaterMark = computeNewHighWaterMark(n);\n\n // don't have that much. return null, unless we've ended.\n if (n > state.length) {\n if (!state.ended) {\n state.needReadable = true;\n return 0;\n } else {\n return state.length;\n }\n }\n\n return n;\n}\n\n// you can override either this method, or the async _read(n) below.\nReadable.prototype.read = function(n) {\n debug('read', n);\n var state = this._readableState;\n var nOrig = n;\n\n if (typeof n !== 'number' || n > 0)\n state.emittedReadable = false;\n\n // if we're doing read(0) to trigger a readable event, but we\n // already have a bunch of data in the buffer, then just trigger\n // the 'readable' event and move on.\n if (n === 0 &&\n state.needReadable &&\n (state.length >= state.highWaterMark || state.ended)) {\n debug('read: emitReadable', state.length, state.ended);\n if (state.length === 0 && state.ended)\n endReadable(this);\n else\n emitReadable(this);\n return null;\n }\n\n n = howMuchToRead(n, state);\n\n // if we've ended, and we're now clear, then finish it up.\n if (n === 0 && state.ended) {\n if (state.length === 0)\n endReadable(this);\n return null;\n }\n\n // All the actual chunk generation logic needs to be\n // *below* the call to _read. The reason is that in certain\n // synthetic stream cases, such as passthrough streams, _read\n // may be a completely synchronous operation which may change\n // the state of the read buffer, providing enough data when\n // before there was *not* enough.\n //\n // So, the steps are:\n // 1. Figure out what the state of things will be after we do\n // a read from the buffer.\n //\n // 2. If that resulting state will trigger a _read, then call _read.\n // Note that this may be asynchronous, or synchronous. Yes, it is\n // deeply ugly to write APIs this way, but that still doesn't mean\n // that the Readable class should behave improperly, as streams are\n // designed to be sync/async agnostic.\n // Take note if the _read call is sync or async (ie, if the read call\n // has returned yet), so that we know whether or not it's safe to emit\n // 'readable' etc.\n //\n // 3. Actually pull the requested chunks out of the buffer and return.\n\n // if we need a readable event, then we need to do some reading.\n var doRead = state.needReadable;\n debug('need readable', doRead);\n\n // if we currently have less than the highWaterMark, then also read some\n if (state.length === 0 || state.length - n < state.highWaterMark) {\n doRead = true;\n debug('length less than watermark', doRead);\n }\n\n // however, if we've ended, then there's no point, and if we're already\n // reading, then it's unnecessary.\n if (state.ended || state.reading) {\n doRead = false;\n debug('reading or ended', doRead);\n }\n\n if (doRead) {\n debug('do read');\n state.reading = true;\n state.sync = true;\n // if the length is currently zero, then we *need* a readable event.\n if (state.length === 0)\n state.needReadable = true;\n // call internal read method\n this._read(state.highWaterMark);\n state.sync = false;\n }\n\n // If _read pushed data synchronously, then `reading` will be false,\n // and we need to re-evaluate how much data we can return to the user.\n if (doRead && !state.reading)\n n = howMuchToRead(nOrig, state);\n\n var ret;\n if (n > 0)\n ret = fromList(n, state);\n else\n ret = null;\n\n if (ret === null) {\n state.needReadable = true;\n n = 0;\n }\n\n state.length -= n;\n\n // If we have nothing in the buffer, then we want to know\n // as soon as we *do* get something into the buffer.\n if (state.length === 0 && !state.ended)\n state.needReadable = true;\n\n // If we tried to read() past the EOF, then emit end on the next tick.\n if (nOrig !== n && state.ended && state.length === 0)\n endReadable(this);\n\n if (ret !== null)\n this.emit('data', ret);\n\n return ret;\n};\n\nfunction chunkInvalid(state, chunk) {\n var er = null;\n if (!(Buffer.isBuffer(chunk)) &&\n typeof chunk !== 'string' &&\n chunk !== null &&\n chunk !== undefined &&\n !state.objectMode) {\n er = new TypeError('Invalid non-string/buffer chunk');\n }\n return er;\n}\n\n\nfunction onEofChunk(stream, state) {\n if (state.ended) return;\n if (state.decoder) {\n var chunk = state.decoder.end();\n if (chunk && chunk.length) {\n state.buffer.push(chunk);\n state.length += state.objectMode ? 1 : chunk.length;\n }\n }\n state.ended = true;\n\n // emit 'readable' now to make sure it gets picked up.\n emitReadable(stream);\n}\n\n// Don't emit readable right away in sync mode, because this can trigger\n// another read() call => stack overflow. This way, it might trigger\n// a nextTick recursion warning, but that's not so bad.\nfunction emitReadable(stream) {\n var state = stream._readableState;\n state.needReadable = false;\n if (!state.emittedReadable) {\n debug('emitReadable', state.flowing);\n state.emittedReadable = true;\n if (state.sync)\n processNextTick(emitReadable_, stream);\n else\n emitReadable_(stream);\n }\n}\n\nfunction emitReadable_(stream) {\n debug('emit readable');\n stream.emit('readable');\n flow(stream);\n}\n\n\n// at this point, the user has presumably seen the 'readable' event,\n// and called read() to consume some data. that may have triggered\n// in turn another _read(n) call, in which case reading = true if\n// it's in progress.\n// However, if we're not ended, or reading, and the length < hwm,\n// then go ahead and try to read some more preemptively.\nfunction maybeReadMore(stream, state) {\n if (!state.readingMore) {\n state.readingMore = true;\n processNextTick(maybeReadMore_, stream, state);\n }\n}\n\nfunction maybeReadMore_(stream, state) {\n var len = state.length;\n while (!state.reading && !state.flowing && !state.ended &&\n state.length < state.highWaterMark) {\n debug('maybeReadMore read 0');\n stream.read(0);\n if (len === state.length)\n // didn't get any data, stop spinning.\n break;\n else\n len = state.length;\n }\n state.readingMore = false;\n}\n\n// abstract method. to be overridden in specific implementation classes.\n// call cb(er, data) where data is <= n in length.\n// for virtual (non-string, non-buffer) streams, \"length\" is somewhat\n// arbitrary, and perhaps not very meaningful.\nReadable.prototype._read = function(n) {\n this.emit('error', new Error('not implemented'));\n};\n\nReadable.prototype.pipe = function(dest, pipeOpts) {\n var src = this;\n var state = this._readableState;\n\n switch (state.pipesCount) {\n case 0:\n state.pipes = dest;\n break;\n case 1:\n state.pipes = [state.pipes, dest];\n break;\n default:\n state.pipes.push(dest);\n break;\n }\n state.pipesCount += 1;\n debug('pipe count=%d opts=%j', state.pipesCount, pipeOpts);\n\n var doEnd = (!pipeOpts || pipeOpts.end !== false) &&\n dest !== process.stdout &&\n dest !== process.stderr;\n\n var endFn = doEnd ? onend : cleanup;\n if (state.endEmitted)\n processNextTick(endFn);\n else\n src.once('end', endFn);\n\n dest.on('unpipe', onunpipe);\n function onunpipe(readable) {\n debug('onunpipe');\n if (readable === src) {\n cleanup();\n }\n }\n\n function onend() {\n debug('onend');\n dest.end();\n }\n\n // when the dest drains, it reduces the awaitDrain counter\n // on the source. This would be more elegant with a .once()\n // handler in flow(), but adding and removing repeatedly is\n // too slow.\n var ondrain = pipeOnDrain(src);\n dest.on('drain', ondrain);\n\n var cleanedUp = false;\n function cleanup() {\n debug('cleanup');\n // cleanup event handlers once the pipe is broken\n dest.removeListener('close', onclose);\n dest.removeListener('finish', onfinish);\n dest.removeListener('drain', ondrain);\n dest.removeListener('error', onerror);\n dest.removeListener('unpipe', onunpipe);\n src.removeListener('end', onend);\n src.removeListener('end', cleanup);\n src.removeListener('data', ondata);\n\n cleanedUp = true;\n\n // if the reader is waiting for a drain event from this\n // specific writer, then it would cause it to never start\n // flowing again.\n // So, if this is awaiting a drain, then we just call it now.\n // If we don't know, then assume that we are waiting for one.\n if (state.awaitDrain &&\n (!dest._writableState || dest._writableState.needDrain))\n ondrain();\n }\n\n src.on('data', ondata);\n function ondata(chunk) {\n debug('ondata');\n var ret = dest.write(chunk);\n if (false === ret) {\n // If the user unpiped during `dest.write()`, it is possible\n // to get stuck in a permanently paused state if that write\n // also returned false.\n if (state.pipesCount === 1 &&\n state.pipes[0] === dest &&\n src.listenerCount('data') === 1 &&\n !cleanedUp) {\n debug('false write response, pause', src._readableState.awaitDrain);\n src._readableState.awaitDrain++;\n }\n src.pause();\n }\n }\n\n // if the dest has an error, then stop piping into it.\n // however, don't suppress the throwing behavior for this.\n function onerror(er) {\n debug('onerror', er);\n unpipe();\n dest.removeListener('error', onerror);\n if (EElistenerCount(dest, 'error') === 0)\n dest.emit('error', er);\n }\n // This is a brutally ugly hack to make sure that our error handler\n // is attached before any userland ones. NEVER DO THIS.\n if (!dest._events || !dest._events.error)\n dest.on('error', onerror);\n else if (isArray(dest._events.error))\n dest._events.error.unshift(onerror);\n else\n dest._events.error = [onerror, dest._events.error];\n\n\n // Both close and finish should trigger unpipe, but only once.\n function onclose() {\n dest.removeListener('finish', onfinish);\n unpipe();\n }\n dest.once('close', onclose);\n function onfinish() {\n debug('onfinish');\n dest.removeListener('close', onclose);\n unpipe();\n }\n dest.once('finish', onfinish);\n\n function unpipe() {\n debug('unpipe');\n src.unpipe(dest);\n }\n\n // tell the dest that it's being piped to\n dest.emit('pipe', src);\n\n // start the flow if it hasn't been started already.\n if (!state.flowing) {\n debug('pipe resume');\n src.resume();\n }\n\n return dest;\n};\n\nfunction pipeOnDrain(src) {\n return function() {\n var state = src._readableState;\n debug('pipeOnDrain', state.awaitDrain);\n if (state.awaitDrain)\n state.awaitDrain--;\n if (state.awaitDrain === 0 && EElistenerCount(src, 'data')) {\n state.flowing = true;\n flow(src);\n }\n };\n}\n\n\nReadable.prototype.unpipe = function(dest) {\n var state = this._readableState;\n\n // if we're not piping anywhere, then do nothing.\n if (state.pipesCount === 0)\n return this;\n\n // just one destination. most common case.\n if (state.pipesCount === 1) {\n // passed in one, but it's not the right one.\n if (dest && dest !== state.pipes)\n return this;\n\n if (!dest)\n dest = state.pipes;\n\n // got a match.\n state.pipes = null;\n state.pipesCount = 0;\n state.flowing = false;\n if (dest)\n dest.emit('unpipe', this);\n return this;\n }\n\n // slow case. multiple pipe destinations.\n\n if (!dest) {\n // remove all.\n var dests = state.pipes;\n var len = state.pipesCount;\n state.pipes = null;\n state.pipesCount = 0;\n state.flowing = false;\n\n for (var i = 0; i < len; i++)\n dests[i].emit('unpipe', this);\n return this;\n }\n\n // try to find the right one.\n var i = indexOf(state.pipes, dest);\n if (i === -1)\n return this;\n\n state.pipes.splice(i, 1);\n state.pipesCount -= 1;\n if (state.pipesCount === 1)\n state.pipes = state.pipes[0];\n\n dest.emit('unpipe', this);\n\n return this;\n};\n\n// set up data events if they are asked for\n// Ensure readable listeners eventually get something\nReadable.prototype.on = function(ev, fn) {\n var res = Stream.prototype.on.call(this, ev, fn);\n\n // If listening to data, and it has not explicitly been paused,\n // then call resume to start the flow of data on the next tick.\n if (ev === 'data' && false !== this._readableState.flowing) {\n this.resume();\n }\n\n if (ev === 'readable' && this.readable) {\n var state = this._readableState;\n if (!state.readableListening) {\n state.readableListening = true;\n state.emittedReadable = false;\n state.needReadable = true;\n if (!state.reading) {\n processNextTick(nReadingNextTick, this);\n } else if (state.length) {\n emitReadable(this, state);\n }\n }\n }\n\n return res;\n};\nReadable.prototype.addListener = Readable.prototype.on;\n\nfunction nReadingNextTick(self) {\n debug('readable nexttick read 0');\n self.read(0);\n}\n\n// pause() and resume() are remnants of the legacy readable stream API\n// If the user uses them, then switch into old mode.\nReadable.prototype.resume = function() {\n var state = this._readableState;\n if (!state.flowing) {\n debug('resume');\n state.flowing = true;\n resume(this, state);\n }\n return this;\n};\n\nfunction resume(stream, state) {\n if (!state.resumeScheduled) {\n state.resumeScheduled = true;\n processNextTick(resume_, stream, state);\n }\n}\n\nfunction resume_(stream, state) {\n if (!state.reading) {\n debug('resume read 0');\n stream.read(0);\n }\n\n state.resumeScheduled = false;\n stream.emit('resume');\n flow(stream);\n if (state.flowing && !state.reading)\n stream.read(0);\n}\n\nReadable.prototype.pause = function() {\n debug('call pause flowing=%j', this._readableState.flowing);\n if (false !== this._readableState.flowing) {\n debug('pause');\n this._readableState.flowing = false;\n this.emit('pause');\n }\n return this;\n};\n\nfunction flow(stream) {\n var state = stream._readableState;\n debug('flow', state.flowing);\n if (state.flowing) {\n do {\n var chunk = stream.read();\n } while (null !== chunk && state.flowing);\n }\n}\n\n// wrap an old-style stream as the async data source.\n// This is *not* part of the readable stream interface.\n// It is an ugly unfortunate mess of history.\nReadable.prototype.wrap = function(stream) {\n var state = this._readableState;\n var paused = false;\n\n var self = this;\n stream.on('end', function() {\n debug('wrapped end');\n if (state.decoder && !state.ended) {\n var chunk = state.decoder.end();\n if (chunk && chunk.length)\n self.push(chunk);\n }\n\n self.push(null);\n });\n\n stream.on('data', function(chunk) {\n debug('wrapped data');\n if (state.decoder)\n chunk = state.decoder.write(chunk);\n\n // don't skip over falsy values in objectMode\n if (state.objectMode && (chunk === null || chunk === undefined))\n return;\n else if (!state.objectMode && (!chunk || !chunk.length))\n return;\n\n var ret = self.push(chunk);\n if (!ret) {\n paused = true;\n stream.pause();\n }\n });\n\n // proxy all the other methods.\n // important when wrapping filters and duplexes.\n for (var i in stream) {\n if (this[i] === undefined && typeof stream[i] === 'function') {\n this[i] = function(method) { return function() {\n return stream[method].apply(stream, arguments);\n }; }(i);\n }\n }\n\n // proxy certain important events.\n var events = ['error', 'close', 'destroy', 'pause', 'resume'];\n forEach(events, function(ev) {\n stream.on(ev, self.emit.bind(self, ev));\n });\n\n // when we try to consume some more bytes, simply unpause the\n // underlying stream.\n self._read = function(n) {\n debug('wrapped _read', n);\n if (paused) {\n paused = false;\n stream.resume();\n }\n };\n\n return self;\n};\n\n\n// exposed for testing purposes only.\nReadable._fromList = fromList;\n\n// Pluck off n bytes from an array of buffers.\n// Length is the combined lengths of all the buffers in the list.\nfunction fromList(n, state) {\n var list = state.buffer;\n var length = state.length;\n var stringMode = !!state.decoder;\n var objectMode = !!state.objectMode;\n var ret;\n\n // nothing in the list, definitely empty.\n if (list.length === 0)\n return null;\n\n if (length === 0)\n ret = null;\n else if (objectMode)\n ret = list.shift();\n else if (!n || n >= length) {\n // read it all, truncate the array.\n if (stringMode)\n ret = list.join('');\n else if (list.length === 1)\n ret = list[0];\n else\n ret = Buffer.concat(list, length);\n list.length = 0;\n } else {\n // read just some of it.\n if (n < list[0].length) {\n // just take a part of the first list item.\n // slice is the same for buffers and strings.\n var buf = list[0];\n ret = buf.slice(0, n);\n list[0] = buf.slice(n);\n } else if (n === list[0].length) {\n // first list is a perfect match\n ret = list.shift();\n } else {\n // complex case.\n // we have enough to cover it, but it spans past the first buffer.\n if (stringMode)\n ret = '';\n else\n ret = new Buffer(n);\n\n var c = 0;\n for (var i = 0, l = list.length; i < l && c < n; i++) {\n var buf = list[0];\n var cpy = Math.min(n - c, buf.length);\n\n if (stringMode)\n ret += buf.slice(0, cpy);\n else\n buf.copy(ret, c, 0, cpy);\n\n if (cpy < buf.length)\n list[0] = buf.slice(cpy);\n else\n list.shift();\n\n c += cpy;\n }\n }\n }\n\n return ret;\n}\n\nfunction endReadable(stream) {\n var state = stream._readableState;\n\n // If we get here before consuming all the bytes, then that is a\n // bug in node. Should never happen.\n if (state.length > 0)\n throw new Error('endReadable called on non-empty stream');\n\n if (!state.endEmitted) {\n state.ended = true;\n processNextTick(endReadableNT, state, stream);\n }\n}\n\nfunction endReadableNT(state, stream) {\n // Check that we didn't get one last unshift.\n if (!state.endEmitted && state.length === 0) {\n state.endEmitted = true;\n stream.readable = false;\n stream.emit('end');\n }\n}\n\nfunction forEach (xs, f) {\n for (var i = 0, l = xs.length; i < l; i++) {\n f(xs[i], i);\n }\n}\n\nfunction indexOf (xs, x) {\n for (var i = 0, l = xs.length; i < l; i++) {\n if (xs[i] === x) return i;\n }\n return -1;\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(83)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/ordered-read-streams/~/readable-stream/lib/_stream_readable.js\n ** module id = 241\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/ordered-read-streams/~/readable-stream/lib/_stream_readable.js?"); + eval("\"use strict\";\n\nmodule.exports = make\nmodule.exports.ctor = ctor\nmodule.exports.objCtor = objCtor\nmodule.exports.obj = obj\n\nvar through2 = __webpack_require__(242)\nvar xtend = __webpack_require__(67)\n\nfunction ctor(options, fn) {\n if (typeof options == \"function\") {\n fn = options\n options = {}\n }\n\n var Filter = through2.ctor(options, function (chunk, encoding, callback) {\n if (this.options.wantStrings) chunk = chunk.toString()\n if (fn.call(this, chunk, this._index++)) this.push(chunk)\n return callback()\n })\n Filter.prototype._index = 0\n return Filter\n}\n\nfunction objCtor(options, fn) {\n if (typeof options === \"function\") {\n fn = options\n options = {}\n }\n options = xtend({objectMode: true, highWaterMark: 16}, options)\n return ctor(options, fn)\n}\n\nfunction make(options, fn) {\n return ctor(options, fn)()\n}\n\nfunction obj(options, fn) {\n if (typeof options === \"function\") {\n fn = options\n options = {}\n }\n options = xtend({objectMode: true, highWaterMark: 16}, options)\n return make(options, fn)\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/through2-filter/index.js\n ** module id = 241\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/through2-filter/index.js?"); /***/ }, /* 242 */ /***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(process) {'use strict';\n\nif (!process.version ||\n process.version.indexOf('v0.') === 0 ||\n process.version.indexOf('v1.') === 0 && process.version.indexOf('v1.8.') !== 0) {\n module.exports = nextTick;\n} else {\n module.exports = process.nextTick;\n}\n\nfunction nextTick(fn) {\n var args = new Array(arguments.length - 1);\n var i = 0;\n while (i < args.length) {\n args[i++] = arguments[i];\n }\n process.nextTick(function afterTick() {\n fn.apply(null, args);\n });\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(83)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/ordered-read-streams/~/readable-stream/~/process-nextick-args/index.js\n ** module id = 242\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/ordered-read-streams/~/readable-stream/~/process-nextick-args/index.js?"); + eval("/* WEBPACK VAR INJECTION */(function(process) {var Transform = __webpack_require__(227)\n , inherits = __webpack_require__(139).inherits\n , xtend = __webpack_require__(67)\n\nfunction DestroyableTransform(opts) {\n Transform.call(this, opts)\n this._destroyed = false\n}\n\ninherits(DestroyableTransform, Transform)\n\nDestroyableTransform.prototype.destroy = function(err) {\n if (this._destroyed) return\n this._destroyed = true\n \n var self = this\n process.nextTick(function() {\n if (err)\n self.emit('error', err)\n self.emit('close')\n })\n}\n\n// a noop _transform function\nfunction noop (chunk, enc, callback) {\n callback(null, chunk)\n}\n\n\n// create a new export function, used by both the main export and\n// the .ctor export, contains common logic for dealing with arguments\nfunction through2 (construct) {\n return function (options, transform, flush) {\n if (typeof options == 'function') {\n flush = transform\n transform = options\n options = {}\n }\n\n if (typeof transform != 'function')\n transform = noop\n\n if (typeof flush != 'function')\n flush = null\n\n return construct(options, transform, flush)\n }\n}\n\n\n// main export, just make me a transform stream!\nmodule.exports = through2(function (options, transform, flush) {\n var t2 = new DestroyableTransform(options)\n\n t2._transform = transform\n\n if (flush)\n t2._flush = flush\n\n return t2\n})\n\n\n// make me a reusable prototype that I can `new`, or implicitly `new`\n// with a constructor call\nmodule.exports.ctor = through2(function (options, transform, flush) {\n function Through2 (override) {\n if (!(this instanceof Through2))\n return new Through2(override)\n\n this.options = xtend(options, override)\n\n DestroyableTransform.call(this, this.options)\n }\n\n inherits(Through2, DestroyableTransform)\n\n Through2.prototype._transform = transform\n\n if (flush)\n Through2.prototype._flush = flush\n\n return Through2\n})\n\n\nmodule.exports.obj = through2(function (options, transform, flush) {\n var t2 = new DestroyableTransform(xtend({ objectMode: true, highWaterMark: 16 }, options))\n\n t2._transform = transform\n\n if (flush)\n t2._flush = flush\n\n return t2\n})\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/through2-filter/~/through2/through2.js\n ** module id = 242\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/through2-filter/~/through2/through2.js?"); /***/ }, /* 243 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("module.exports = Array.isArray || function (arr) {\n return Object.prototype.toString.call(arr) == '[object Array]';\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/ordered-read-streams/~/readable-stream/~/isarray/index.js\n ** module id = 243\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/ordered-read-streams/~/readable-stream/~/isarray/index.js?"); + eval("/* WEBPACK VAR INJECTION */(function(process) {// Approach:\n//\n// 1. Get the minimatch set\n// 2. For each pattern in the set, PROCESS(pattern, false)\n// 3. Store matches per-set, then uniq them\n//\n// PROCESS(pattern, inGlobStar)\n// Get the first [n] items from pattern that are all strings\n// Join these together. This is PREFIX.\n// If there is no more remaining, then stat(PREFIX) and\n// add to matches if it succeeds. END.\n//\n// If inGlobStar and PREFIX is symlink and points to dir\n// set ENTRIES = []\n// else readdir(PREFIX) as ENTRIES\n// If fail, END\n//\n// with ENTRIES\n// If pattern[n] is GLOBSTAR\n// // handle the case where the globstar match is empty\n// // by pruning it out, and testing the resulting pattern\n// PROCESS(pattern[0..n] + pattern[n+1 .. $], false)\n// // handle other cases.\n// for ENTRY in ENTRIES (not dotfiles)\n// // attach globstar + tail onto the entry\n// // Mark that this entry is a globstar match\n// PROCESS(pattern[0..n] + ENTRY + pattern[n .. $], true)\n//\n// else // not globstar\n// for ENTRY in ENTRIES (not dotfiles, unless pattern[n] is dot)\n// Test ENTRY against pattern[n]\n// If fails, continue\n// If passes, PROCESS(pattern[0..n] + item + pattern[n+1 .. $])\n//\n// Caveat:\n// Cache all stats and readdirs results to minimize syscall. Since all\n// we ever care about is existence and directory-ness, we can just keep\n// `true` for files, and [children,...] for directories, or `false` for\n// things that don't exist.\n\nmodule.exports = glob\n\nvar fs = __webpack_require__(82)\nvar minimatch = __webpack_require__(244)\nvar Minimatch = minimatch.Minimatch\nvar inherits = __webpack_require__(96)\nvar EE = __webpack_require__(86).EventEmitter\nvar path = __webpack_require__(149)\nvar assert = __webpack_require__(248)\nvar isAbsolute = __webpack_require__(249)\nvar globSync = __webpack_require__(250)\nvar common = __webpack_require__(251)\nvar alphasort = common.alphasort\nvar alphasorti = common.alphasorti\nvar setopts = common.setopts\nvar ownProp = common.ownProp\nvar inflight = __webpack_require__(252)\nvar util = __webpack_require__(139)\nvar childrenIgnored = common.childrenIgnored\nvar isIgnored = common.isIgnored\n\nvar once = __webpack_require__(254)\n\nfunction glob (pattern, options, cb) {\n if (typeof options === 'function') cb = options, options = {}\n if (!options) options = {}\n\n if (options.sync) {\n if (cb)\n throw new TypeError('callback provided to sync glob')\n return globSync(pattern, options)\n }\n\n return new Glob(pattern, options, cb)\n}\n\nglob.sync = globSync\nvar GlobSync = glob.GlobSync = globSync.GlobSync\n\n// old api surface\nglob.glob = glob\n\nglob.hasMagic = function (pattern, options_) {\n var options = util._extend({}, options_)\n options.noprocess = true\n\n var g = new Glob(pattern, options)\n var set = g.minimatch.set\n if (set.length > 1)\n return true\n\n for (var j = 0; j < set[0].length; j++) {\n if (typeof set[0][j] !== 'string')\n return true\n }\n\n return false\n}\n\nglob.Glob = Glob\ninherits(Glob, EE)\nfunction Glob (pattern, options, cb) {\n if (typeof options === 'function') {\n cb = options\n options = null\n }\n\n if (options && options.sync) {\n if (cb)\n throw new TypeError('callback provided to sync glob')\n return new GlobSync(pattern, options)\n }\n\n if (!(this instanceof Glob))\n return new Glob(pattern, options, cb)\n\n setopts(this, pattern, options)\n this._didRealPath = false\n\n // process each pattern in the minimatch set\n var n = this.minimatch.set.length\n\n // The matches are stored as {: true,...} so that\n // duplicates are automagically pruned.\n // Later, we do an Object.keys() on these.\n // Keep them as a list so we can fill in when nonull is set.\n this.matches = new Array(n)\n\n if (typeof cb === 'function') {\n cb = once(cb)\n this.on('error', cb)\n this.on('end', function (matches) {\n cb(null, matches)\n })\n }\n\n var self = this\n var n = this.minimatch.set.length\n this._processing = 0\n this.matches = new Array(n)\n\n this._emitQueue = []\n this._processQueue = []\n this.paused = false\n\n if (this.noprocess)\n return this\n\n if (n === 0)\n return done()\n\n for (var i = 0; i < n; i ++) {\n this._process(this.minimatch.set[i], i, false, done)\n }\n\n function done () {\n --self._processing\n if (self._processing <= 0)\n self._finish()\n }\n}\n\nGlob.prototype._finish = function () {\n assert(this instanceof Glob)\n if (this.aborted)\n return\n\n if (this.realpath && !this._didRealpath)\n return this._realpath()\n\n common.finish(this)\n this.emit('end', this.found)\n}\n\nGlob.prototype._realpath = function () {\n if (this._didRealpath)\n return\n\n this._didRealpath = true\n\n var n = this.matches.length\n if (n === 0)\n return this._finish()\n\n var self = this\n for (var i = 0; i < this.matches.length; i++)\n this._realpathSet(i, next)\n\n function next () {\n if (--n === 0)\n self._finish()\n }\n}\n\nGlob.prototype._realpathSet = function (index, cb) {\n var matchset = this.matches[index]\n if (!matchset)\n return cb()\n\n var found = Object.keys(matchset)\n var self = this\n var n = found.length\n\n if (n === 0)\n return cb()\n\n var set = this.matches[index] = Object.create(null)\n found.forEach(function (p, i) {\n // If there's a problem with the stat, then it means that\n // one or more of the links in the realpath couldn't be\n // resolved. just return the abs value in that case.\n p = self._makeAbs(p)\n fs.realpath(p, self.realpathCache, function (er, real) {\n if (!er)\n set[real] = true\n else if (er.syscall === 'stat')\n set[p] = true\n else\n self.emit('error', er) // srsly wtf right here\n\n if (--n === 0) {\n self.matches[index] = set\n cb()\n }\n })\n })\n}\n\nGlob.prototype._mark = function (p) {\n return common.mark(this, p)\n}\n\nGlob.prototype._makeAbs = function (f) {\n return common.makeAbs(this, f)\n}\n\nGlob.prototype.abort = function () {\n this.aborted = true\n this.emit('abort')\n}\n\nGlob.prototype.pause = function () {\n if (!this.paused) {\n this.paused = true\n this.emit('pause')\n }\n}\n\nGlob.prototype.resume = function () {\n if (this.paused) {\n this.emit('resume')\n this.paused = false\n if (this._emitQueue.length) {\n var eq = this._emitQueue.slice(0)\n this._emitQueue.length = 0\n for (var i = 0; i < eq.length; i ++) {\n var e = eq[i]\n this._emitMatch(e[0], e[1])\n }\n }\n if (this._processQueue.length) {\n var pq = this._processQueue.slice(0)\n this._processQueue.length = 0\n for (var i = 0; i < pq.length; i ++) {\n var p = pq[i]\n this._processing--\n this._process(p[0], p[1], p[2], p[3])\n }\n }\n }\n}\n\nGlob.prototype._process = function (pattern, index, inGlobStar, cb) {\n assert(this instanceof Glob)\n assert(typeof cb === 'function')\n\n if (this.aborted)\n return\n\n this._processing++\n if (this.paused) {\n this._processQueue.push([pattern, index, inGlobStar, cb])\n return\n }\n\n //console.error('PROCESS %d', this._processing, pattern)\n\n // Get the first [n] parts of pattern that are all strings.\n var n = 0\n while (typeof pattern[n] === 'string') {\n n ++\n }\n // now n is the index of the first one that is *not* a string.\n\n // see if there's anything else\n var prefix\n switch (n) {\n // if not, then this is rather simple\n case pattern.length:\n this._processSimple(pattern.join('/'), index, cb)\n return\n\n case 0:\n // pattern *starts* with some non-trivial item.\n // going to readdir(cwd), but not include the prefix in matches.\n prefix = null\n break\n\n default:\n // pattern has some string bits in the front.\n // whatever it starts with, whether that's 'absolute' like /foo/bar,\n // or 'relative' like '../baz'\n prefix = pattern.slice(0, n).join('/')\n break\n }\n\n var remain = pattern.slice(n)\n\n // get the list of entries.\n var read\n if (prefix === null)\n read = '.'\n else if (isAbsolute(prefix) || isAbsolute(pattern.join('/'))) {\n if (!prefix || !isAbsolute(prefix))\n prefix = '/' + prefix\n read = prefix\n } else\n read = prefix\n\n var abs = this._makeAbs(read)\n\n //if ignored, skip _processing\n if (childrenIgnored(this, read))\n return cb()\n\n var isGlobStar = remain[0] === minimatch.GLOBSTAR\n if (isGlobStar)\n this._processGlobStar(prefix, read, abs, remain, index, inGlobStar, cb)\n else\n this._processReaddir(prefix, read, abs, remain, index, inGlobStar, cb)\n}\n\nGlob.prototype._processReaddir = function (prefix, read, abs, remain, index, inGlobStar, cb) {\n var self = this\n this._readdir(abs, inGlobStar, function (er, entries) {\n return self._processReaddir2(prefix, read, abs, remain, index, inGlobStar, entries, cb)\n })\n}\n\nGlob.prototype._processReaddir2 = function (prefix, read, abs, remain, index, inGlobStar, entries, cb) {\n\n // if the abs isn't a dir, then nothing can match!\n if (!entries)\n return cb()\n\n // It will only match dot entries if it starts with a dot, or if\n // dot is set. Stuff like @(.foo|.bar) isn't allowed.\n var pn = remain[0]\n var negate = !!this.minimatch.negate\n var rawGlob = pn._glob\n var dotOk = this.dot || rawGlob.charAt(0) === '.'\n\n var matchedEntries = []\n for (var i = 0; i < entries.length; i++) {\n var e = entries[i]\n if (e.charAt(0) !== '.' || dotOk) {\n var m\n if (negate && !prefix) {\n m = !e.match(pn)\n } else {\n m = e.match(pn)\n }\n if (m)\n matchedEntries.push(e)\n }\n }\n\n //console.error('prd2', prefix, entries, remain[0]._glob, matchedEntries)\n\n var len = matchedEntries.length\n // If there are no matched entries, then nothing matches.\n if (len === 0)\n return cb()\n\n // if this is the last remaining pattern bit, then no need for\n // an additional stat *unless* the user has specified mark or\n // stat explicitly. We know they exist, since readdir returned\n // them.\n\n if (remain.length === 1 && !this.mark && !this.stat) {\n if (!this.matches[index])\n this.matches[index] = Object.create(null)\n\n for (var i = 0; i < len; i ++) {\n var e = matchedEntries[i]\n if (prefix) {\n if (prefix !== '/')\n e = prefix + '/' + e\n else\n e = prefix + e\n }\n\n if (e.charAt(0) === '/' && !this.nomount) {\n e = path.join(this.root, e)\n }\n this._emitMatch(index, e)\n }\n // This was the last one, and no stats were needed\n return cb()\n }\n\n // now test all matched entries as stand-ins for that part\n // of the pattern.\n remain.shift()\n for (var i = 0; i < len; i ++) {\n var e = matchedEntries[i]\n var newPattern\n if (prefix) {\n if (prefix !== '/')\n e = prefix + '/' + e\n else\n e = prefix + e\n }\n this._process([e].concat(remain), index, inGlobStar, cb)\n }\n cb()\n}\n\nGlob.prototype._emitMatch = function (index, e) {\n if (this.aborted)\n return\n\n if (this.matches[index][e])\n return\n\n if (isIgnored(this, e))\n return\n\n if (this.paused) {\n this._emitQueue.push([index, e])\n return\n }\n\n var abs = this._makeAbs(e)\n\n if (this.nodir) {\n var c = this.cache[abs]\n if (c === 'DIR' || Array.isArray(c))\n return\n }\n\n if (this.mark)\n e = this._mark(e)\n\n this.matches[index][e] = true\n\n var st = this.statCache[abs]\n if (st)\n this.emit('stat', e, st)\n\n this.emit('match', e)\n}\n\nGlob.prototype._readdirInGlobStar = function (abs, cb) {\n if (this.aborted)\n return\n\n // follow all symlinked directories forever\n // just proceed as if this is a non-globstar situation\n if (this.follow)\n return this._readdir(abs, false, cb)\n\n var lstatkey = 'lstat\\0' + abs\n var self = this\n var lstatcb = inflight(lstatkey, lstatcb_)\n\n if (lstatcb)\n fs.lstat(abs, lstatcb)\n\n function lstatcb_ (er, lstat) {\n if (er)\n return cb()\n\n var isSym = lstat.isSymbolicLink()\n self.symlinks[abs] = isSym\n\n // If it's not a symlink or a dir, then it's definitely a regular file.\n // don't bother doing a readdir in that case.\n if (!isSym && !lstat.isDirectory()) {\n self.cache[abs] = 'FILE'\n cb()\n } else\n self._readdir(abs, false, cb)\n }\n}\n\nGlob.prototype._readdir = function (abs, inGlobStar, cb) {\n if (this.aborted)\n return\n\n cb = inflight('readdir\\0'+abs+'\\0'+inGlobStar, cb)\n if (!cb)\n return\n\n //console.error('RD %j %j', +inGlobStar, abs)\n if (inGlobStar && !ownProp(this.symlinks, abs))\n return this._readdirInGlobStar(abs, cb)\n\n if (ownProp(this.cache, abs)) {\n var c = this.cache[abs]\n if (!c || c === 'FILE')\n return cb()\n\n if (Array.isArray(c))\n return cb(null, c)\n }\n\n var self = this\n fs.readdir(abs, readdirCb(this, abs, cb))\n}\n\nfunction readdirCb (self, abs, cb) {\n return function (er, entries) {\n if (er)\n self._readdirError(abs, er, cb)\n else\n self._readdirEntries(abs, entries, cb)\n }\n}\n\nGlob.prototype._readdirEntries = function (abs, entries, cb) {\n if (this.aborted)\n return\n\n // if we haven't asked to stat everything, then just\n // assume that everything in there exists, so we can avoid\n // having to stat it a second time.\n if (!this.mark && !this.stat) {\n for (var i = 0; i < entries.length; i ++) {\n var e = entries[i]\n if (abs === '/')\n e = abs + e\n else\n e = abs + '/' + e\n this.cache[e] = true\n }\n }\n\n this.cache[abs] = entries\n return cb(null, entries)\n}\n\nGlob.prototype._readdirError = function (f, er, cb) {\n if (this.aborted)\n return\n\n // handle errors, and cache the information\n switch (er.code) {\n case 'ENOTSUP': // https://github.com/isaacs/node-glob/issues/205\n case 'ENOTDIR': // totally normal. means it *does* exist.\n this.cache[this._makeAbs(f)] = 'FILE'\n break\n\n case 'ENOENT': // not terribly unusual\n case 'ELOOP':\n case 'ENAMETOOLONG':\n case 'UNKNOWN':\n this.cache[this._makeAbs(f)] = false\n break\n\n default: // some unusual error. Treat as failure.\n this.cache[this._makeAbs(f)] = false\n if (this.strict) {\n this.emit('error', er)\n // If the error is handled, then we abort\n // if not, we threw out of here\n this.abort()\n }\n if (!this.silent)\n console.error('glob error', er)\n break\n }\n\n return cb()\n}\n\nGlob.prototype._processGlobStar = function (prefix, read, abs, remain, index, inGlobStar, cb) {\n var self = this\n this._readdir(abs, inGlobStar, function (er, entries) {\n self._processGlobStar2(prefix, read, abs, remain, index, inGlobStar, entries, cb)\n })\n}\n\n\nGlob.prototype._processGlobStar2 = function (prefix, read, abs, remain, index, inGlobStar, entries, cb) {\n //console.error('pgs2', prefix, remain[0], entries)\n\n // no entries means not a dir, so it can never have matches\n // foo.txt/** doesn't match foo.txt\n if (!entries)\n return cb()\n\n // test without the globstar, and with every child both below\n // and replacing the globstar.\n var remainWithoutGlobStar = remain.slice(1)\n var gspref = prefix ? [ prefix ] : []\n var noGlobStar = gspref.concat(remainWithoutGlobStar)\n\n // the noGlobStar pattern exits the inGlobStar state\n this._process(noGlobStar, index, false, cb)\n\n var isSym = this.symlinks[abs]\n var len = entries.length\n\n // If it's a symlink, and we're in a globstar, then stop\n if (isSym && inGlobStar)\n return cb()\n\n for (var i = 0; i < len; i++) {\n var e = entries[i]\n if (e.charAt(0) === '.' && !this.dot)\n continue\n\n // these two cases enter the inGlobStar state\n var instead = gspref.concat(entries[i], remainWithoutGlobStar)\n this._process(instead, index, true, cb)\n\n var below = gspref.concat(entries[i], remain)\n this._process(below, index, true, cb)\n }\n\n cb()\n}\n\nGlob.prototype._processSimple = function (prefix, index, cb) {\n // XXX review this. Shouldn't it be doing the mounting etc\n // before doing stat? kinda weird?\n var self = this\n this._stat(prefix, function (er, exists) {\n self._processSimple2(prefix, index, er, exists, cb)\n })\n}\nGlob.prototype._processSimple2 = function (prefix, index, er, exists, cb) {\n\n //console.error('ps2', prefix, exists)\n\n if (!this.matches[index])\n this.matches[index] = Object.create(null)\n\n // If it doesn't exist, then just mark the lack of results\n if (!exists)\n return cb()\n\n if (prefix && isAbsolute(prefix) && !this.nomount) {\n var trail = /[\\/\\\\]$/.test(prefix)\n if (prefix.charAt(0) === '/') {\n prefix = path.join(this.root, prefix)\n } else {\n prefix = path.resolve(this.root, prefix)\n if (trail)\n prefix += '/'\n }\n }\n\n if (process.platform === 'win32')\n prefix = prefix.replace(/\\\\/g, '/')\n\n // Mark this as a match\n this._emitMatch(index, prefix)\n cb()\n}\n\n// Returns either 'DIR', 'FILE', or false\nGlob.prototype._stat = function (f, cb) {\n var abs = this._makeAbs(f)\n var needDir = f.slice(-1) === '/'\n\n if (f.length > this.maxLength)\n return cb()\n\n if (!this.stat && ownProp(this.cache, abs)) {\n var c = this.cache[abs]\n\n if (Array.isArray(c))\n c = 'DIR'\n\n // It exists, but maybe not how we need it\n if (!needDir || c === 'DIR')\n return cb(null, c)\n\n if (needDir && c === 'FILE')\n return cb()\n\n // otherwise we have to stat, because maybe c=true\n // if we know it exists, but not what it is.\n }\n\n var exists\n var stat = this.statCache[abs]\n if (stat !== undefined) {\n if (stat === false)\n return cb(null, stat)\n else {\n var type = stat.isDirectory() ? 'DIR' : 'FILE'\n if (needDir && type === 'FILE')\n return cb()\n else\n return cb(null, type, stat)\n }\n }\n\n var self = this\n var statcb = inflight('stat\\0' + abs, lstatcb_)\n if (statcb)\n fs.lstat(abs, statcb)\n\n function lstatcb_ (er, lstat) {\n if (lstat && lstat.isSymbolicLink()) {\n // If it's a symlink, then treat it as the target, unless\n // the target does not exist, then treat it as a file.\n return fs.stat(abs, function (er, stat) {\n if (er)\n self._stat2(f, abs, null, lstat, cb)\n else\n self._stat2(f, abs, er, stat, cb)\n })\n } else {\n self._stat2(f, abs, er, lstat, cb)\n }\n }\n}\n\nGlob.prototype._stat2 = function (f, abs, er, stat, cb) {\n if (er) {\n this.statCache[abs] = false\n return cb()\n }\n\n var needDir = f.slice(-1) === '/'\n this.statCache[abs] = stat\n\n if (abs.slice(-1) === '/' && !stat.isDirectory())\n return cb(null, false, stat)\n\n var c = stat.isDirectory() ? 'DIR' : 'FILE'\n this.cache[abs] = this.cache[abs] || c\n\n if (needDir && c !== 'DIR')\n return cb()\n\n return cb(null, c, stat)\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob/glob.js\n ** module id = 243\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob/glob.js?"); /***/ }, /* 244 */ /***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(Buffer) {// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// NOTE: These type checking functions intentionally don't use `instanceof`\n// because it is fragile and can be easily faked with `Object.create()`.\n\nfunction isArray(arg) {\n if (Array.isArray) {\n return Array.isArray(arg);\n }\n return objectToString(arg) === '[object Array]';\n}\nexports.isArray = isArray;\n\nfunction isBoolean(arg) {\n return typeof arg === 'boolean';\n}\nexports.isBoolean = isBoolean;\n\nfunction isNull(arg) {\n return arg === null;\n}\nexports.isNull = isNull;\n\nfunction isNullOrUndefined(arg) {\n return arg == null;\n}\nexports.isNullOrUndefined = isNullOrUndefined;\n\nfunction isNumber(arg) {\n return typeof arg === 'number';\n}\nexports.isNumber = isNumber;\n\nfunction isString(arg) {\n return typeof arg === 'string';\n}\nexports.isString = isString;\n\nfunction isSymbol(arg) {\n return typeof arg === 'symbol';\n}\nexports.isSymbol = isSymbol;\n\nfunction isUndefined(arg) {\n return arg === void 0;\n}\nexports.isUndefined = isUndefined;\n\nfunction isRegExp(re) {\n return objectToString(re) === '[object RegExp]';\n}\nexports.isRegExp = isRegExp;\n\nfunction isObject(arg) {\n return typeof arg === 'object' && arg !== null;\n}\nexports.isObject = isObject;\n\nfunction isDate(d) {\n return objectToString(d) === '[object Date]';\n}\nexports.isDate = isDate;\n\nfunction isError(e) {\n return (objectToString(e) === '[object Error]' || e instanceof Error);\n}\nexports.isError = isError;\n\nfunction isFunction(arg) {\n return typeof arg === 'function';\n}\nexports.isFunction = isFunction;\n\nfunction isPrimitive(arg) {\n return arg === null ||\n typeof arg === 'boolean' ||\n typeof arg === 'number' ||\n typeof arg === 'string' ||\n typeof arg === 'symbol' || // ES6 symbol\n typeof arg === 'undefined';\n}\nexports.isPrimitive = isPrimitive;\n\nexports.isBuffer = Buffer.isBuffer;\n\nfunction objectToString(o) {\n return Object.prototype.toString.call(o);\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1).Buffer))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/ordered-read-streams/~/readable-stream/~/core-util-is/lib/util.js\n ** module id = 244\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/ordered-read-streams/~/readable-stream/~/core-util-is/lib/util.js?"); + eval("module.exports = minimatch\nminimatch.Minimatch = Minimatch\n\nvar path = { sep: '/' }\ntry {\n path = __webpack_require__(149)\n} catch (er) {}\n\nvar GLOBSTAR = minimatch.GLOBSTAR = Minimatch.GLOBSTAR = {}\nvar expand = __webpack_require__(245)\n\n// any single thing other than /\n// don't need to escape / when using new RegExp()\nvar qmark = '[^/]'\n\n// * => any number of characters\nvar star = qmark + '*?'\n\n// ** when dots are allowed. Anything goes, except .. and .\n// not (^ or / followed by one or two dots followed by $ or /),\n// followed by anything, any number of times.\nvar twoStarDot = '(?:(?!(?:\\\\\\/|^)(?:\\\\.{1,2})($|\\\\\\/)).)*?'\n\n// not a ^ or / followed by a dot,\n// followed by anything, any number of times.\nvar twoStarNoDot = '(?:(?!(?:\\\\\\/|^)\\\\.).)*?'\n\n// characters that need to be escaped in RegExp.\nvar reSpecials = charSet('().*{}+?[]^$\\\\!')\n\n// \"abc\" -> { a:true, b:true, c:true }\nfunction charSet (s) {\n return s.split('').reduce(function (set, c) {\n set[c] = true\n return set\n }, {})\n}\n\n// normalizes slashes.\nvar slashSplit = /\\/+/\n\nminimatch.filter = filter\nfunction filter (pattern, options) {\n options = options || {}\n return function (p, i, list) {\n return minimatch(p, pattern, options)\n }\n}\n\nfunction ext (a, b) {\n a = a || {}\n b = b || {}\n var t = {}\n Object.keys(b).forEach(function (k) {\n t[k] = b[k]\n })\n Object.keys(a).forEach(function (k) {\n t[k] = a[k]\n })\n return t\n}\n\nminimatch.defaults = function (def) {\n if (!def || !Object.keys(def).length) return minimatch\n\n var orig = minimatch\n\n var m = function minimatch (p, pattern, options) {\n return orig.minimatch(p, pattern, ext(def, options))\n }\n\n m.Minimatch = function Minimatch (pattern, options) {\n return new orig.Minimatch(pattern, ext(def, options))\n }\n\n return m\n}\n\nMinimatch.defaults = function (def) {\n if (!def || !Object.keys(def).length) return Minimatch\n return minimatch.defaults(def).Minimatch\n}\n\nfunction minimatch (p, pattern, options) {\n if (typeof pattern !== 'string') {\n throw new TypeError('glob pattern string required')\n }\n\n if (!options) options = {}\n\n // shortcut: comments match nothing.\n if (!options.nocomment && pattern.charAt(0) === '#') {\n return false\n }\n\n // \"\" only matches \"\"\n if (pattern.trim() === '') return p === ''\n\n return new Minimatch(pattern, options).match(p)\n}\n\nfunction Minimatch (pattern, options) {\n if (!(this instanceof Minimatch)) {\n return new Minimatch(pattern, options)\n }\n\n if (typeof pattern !== 'string') {\n throw new TypeError('glob pattern string required')\n }\n\n if (!options) options = {}\n pattern = pattern.trim()\n\n // windows support: need to use /, not \\\n if (path.sep !== '/') {\n pattern = pattern.split(path.sep).join('/')\n }\n\n this.options = options\n this.set = []\n this.pattern = pattern\n this.regexp = null\n this.negate = false\n this.comment = false\n this.empty = false\n\n // make the set of regexps etc.\n this.make()\n}\n\nMinimatch.prototype.debug = function () {}\n\nMinimatch.prototype.make = make\nfunction make () {\n // don't do it more than once.\n if (this._made) return\n\n var pattern = this.pattern\n var options = this.options\n\n // empty patterns and comments match nothing.\n if (!options.nocomment && pattern.charAt(0) === '#') {\n this.comment = true\n return\n }\n if (!pattern) {\n this.empty = true\n return\n }\n\n // step 1: figure out negation, etc.\n this.parseNegate()\n\n // step 2: expand braces\n var set = this.globSet = this.braceExpand()\n\n if (options.debug) this.debug = console.error\n\n this.debug(this.pattern, set)\n\n // step 3: now we have a set, so turn each one into a series of path-portion\n // matching patterns.\n // These will be regexps, except in the case of \"**\", which is\n // set to the GLOBSTAR object for globstar behavior,\n // and will not contain any / characters\n set = this.globParts = set.map(function (s) {\n return s.split(slashSplit)\n })\n\n this.debug(this.pattern, set)\n\n // glob --> regexps\n set = set.map(function (s, si, set) {\n return s.map(this.parse, this)\n }, this)\n\n this.debug(this.pattern, set)\n\n // filter out everything that didn't compile properly.\n set = set.filter(function (s) {\n return s.indexOf(false) === -1\n })\n\n this.debug(this.pattern, set)\n\n this.set = set\n}\n\nMinimatch.prototype.parseNegate = parseNegate\nfunction parseNegate () {\n var pattern = this.pattern\n var negate = false\n var options = this.options\n var negateOffset = 0\n\n if (options.nonegate) return\n\n for (var i = 0, l = pattern.length\n ; i < l && pattern.charAt(i) === '!'\n ; i++) {\n negate = !negate\n negateOffset++\n }\n\n if (negateOffset) this.pattern = pattern.substr(negateOffset)\n this.negate = negate\n}\n\n// Brace expansion:\n// a{b,c}d -> abd acd\n// a{b,}c -> abc ac\n// a{0..3}d -> a0d a1d a2d a3d\n// a{b,c{d,e}f}g -> abg acdfg acefg\n// a{b,c}d{e,f}g -> abdeg acdeg abdeg abdfg\n//\n// Invalid sets are not expanded.\n// a{2..}b -> a{2..}b\n// a{b}c -> a{b}c\nminimatch.braceExpand = function (pattern, options) {\n return braceExpand(pattern, options)\n}\n\nMinimatch.prototype.braceExpand = braceExpand\n\nfunction braceExpand (pattern, options) {\n if (!options) {\n if (this instanceof Minimatch) {\n options = this.options\n } else {\n options = {}\n }\n }\n\n pattern = typeof pattern === 'undefined'\n ? this.pattern : pattern\n\n if (typeof pattern === 'undefined') {\n throw new Error('undefined pattern')\n }\n\n if (options.nobrace ||\n !pattern.match(/\\{.*\\}/)) {\n // shortcut. no need to expand.\n return [pattern]\n }\n\n return expand(pattern)\n}\n\n// parse a component of the expanded set.\n// At this point, no pattern may contain \"/\" in it\n// so we're going to return a 2d array, where each entry is the full\n// pattern, split on '/', and then turned into a regular expression.\n// A regexp is made at the end which joins each array with an\n// escaped /, and another full one which joins each regexp with |.\n//\n// Following the lead of Bash 4.1, note that \"**\" only has special meaning\n// when it is the *only* thing in a path portion. Otherwise, any series\n// of * is equivalent to a single *. Globstar behavior is enabled by\n// default, and can be disabled by setting options.noglobstar.\nMinimatch.prototype.parse = parse\nvar SUBPARSE = {}\nfunction parse (pattern, isSub) {\n var options = this.options\n\n // shortcuts\n if (!options.noglobstar && pattern === '**') return GLOBSTAR\n if (pattern === '') return ''\n\n var re = ''\n var hasMagic = !!options.nocase\n var escaping = false\n // ? => one single character\n var patternListStack = []\n var negativeLists = []\n var plType\n var stateChar\n var inClass = false\n var reClassStart = -1\n var classStart = -1\n // . and .. never match anything that doesn't start with .,\n // even when options.dot is set.\n var patternStart = pattern.charAt(0) === '.' ? '' // anything\n // not (start or / followed by . or .. followed by / or end)\n : options.dot ? '(?!(?:^|\\\\\\/)\\\\.{1,2}(?:$|\\\\\\/))'\n : '(?!\\\\.)'\n var self = this\n\n function clearStateChar () {\n if (stateChar) {\n // we had some state-tracking character\n // that wasn't consumed by this pass.\n switch (stateChar) {\n case '*':\n re += star\n hasMagic = true\n break\n case '?':\n re += qmark\n hasMagic = true\n break\n default:\n re += '\\\\' + stateChar\n break\n }\n self.debug('clearStateChar %j %j', stateChar, re)\n stateChar = false\n }\n }\n\n for (var i = 0, len = pattern.length, c\n ; (i < len) && (c = pattern.charAt(i))\n ; i++) {\n this.debug('%s\\t%s %s %j', pattern, i, re, c)\n\n // skip over any that are escaped.\n if (escaping && reSpecials[c]) {\n re += '\\\\' + c\n escaping = false\n continue\n }\n\n switch (c) {\n case '/':\n // completely not allowed, even escaped.\n // Should already be path-split by now.\n return false\n\n case '\\\\':\n clearStateChar()\n escaping = true\n continue\n\n // the various stateChar values\n // for the \"extglob\" stuff.\n case '?':\n case '*':\n case '+':\n case '@':\n case '!':\n this.debug('%s\\t%s %s %j <-- stateChar', pattern, i, re, c)\n\n // all of those are literals inside a class, except that\n // the glob [!a] means [^a] in regexp\n if (inClass) {\n this.debug(' in class')\n if (c === '!' && i === classStart + 1) c = '^'\n re += c\n continue\n }\n\n // if we already have a stateChar, then it means\n // that there was something like ** or +? in there.\n // Handle the stateChar, then proceed with this one.\n self.debug('call clearStateChar %j', stateChar)\n clearStateChar()\n stateChar = c\n // if extglob is disabled, then +(asdf|foo) isn't a thing.\n // just clear the statechar *now*, rather than even diving into\n // the patternList stuff.\n if (options.noext) clearStateChar()\n continue\n\n case '(':\n if (inClass) {\n re += '('\n continue\n }\n\n if (!stateChar) {\n re += '\\\\('\n continue\n }\n\n plType = stateChar\n patternListStack.push({\n type: plType,\n start: i - 1,\n reStart: re.length\n })\n // negation is (?:(?!js)[^/]*)\n re += stateChar === '!' ? '(?:(?!(?:' : '(?:'\n this.debug('plType %j %j', stateChar, re)\n stateChar = false\n continue\n\n case ')':\n if (inClass || !patternListStack.length) {\n re += '\\\\)'\n continue\n }\n\n clearStateChar()\n hasMagic = true\n re += ')'\n var pl = patternListStack.pop()\n plType = pl.type\n // negation is (?:(?!js)[^/]*)\n // The others are (?:)\n switch (plType) {\n case '!':\n negativeLists.push(pl)\n re += ')[^/]*?)'\n pl.reEnd = re.length\n break\n case '?':\n case '+':\n case '*':\n re += plType\n break\n case '@': break // the default anyway\n }\n continue\n\n case '|':\n if (inClass || !patternListStack.length || escaping) {\n re += '\\\\|'\n escaping = false\n continue\n }\n\n clearStateChar()\n re += '|'\n continue\n\n // these are mostly the same in regexp and glob\n case '[':\n // swallow any state-tracking char before the [\n clearStateChar()\n\n if (inClass) {\n re += '\\\\' + c\n continue\n }\n\n inClass = true\n classStart = i\n reClassStart = re.length\n re += c\n continue\n\n case ']':\n // a right bracket shall lose its special\n // meaning and represent itself in\n // a bracket expression if it occurs\n // first in the list. -- POSIX.2 2.8.3.2\n if (i === classStart + 1 || !inClass) {\n re += '\\\\' + c\n escaping = false\n continue\n }\n\n // handle the case where we left a class open.\n // \"[z-a]\" is valid, equivalent to \"\\[z-a\\]\"\n if (inClass) {\n // split where the last [ was, make sure we don't have\n // an invalid re. if so, re-walk the contents of the\n // would-be class to re-translate any characters that\n // were passed through as-is\n // TODO: It would probably be faster to determine this\n // without a try/catch and a new RegExp, but it's tricky\n // to do safely. For now, this is safe and works.\n var cs = pattern.substring(classStart + 1, i)\n try {\n RegExp('[' + cs + ']')\n } catch (er) {\n // not a valid class!\n var sp = this.parse(cs, SUBPARSE)\n re = re.substr(0, reClassStart) + '\\\\[' + sp[0] + '\\\\]'\n hasMagic = hasMagic || sp[1]\n inClass = false\n continue\n }\n }\n\n // finish up the class.\n hasMagic = true\n inClass = false\n re += c\n continue\n\n default:\n // swallow any state char that wasn't consumed\n clearStateChar()\n\n if (escaping) {\n // no need\n escaping = false\n } else if (reSpecials[c]\n && !(c === '^' && inClass)) {\n re += '\\\\'\n }\n\n re += c\n\n } // switch\n } // for\n\n // handle the case where we left a class open.\n // \"[abc\" is valid, equivalent to \"\\[abc\"\n if (inClass) {\n // split where the last [ was, and escape it\n // this is a huge pita. We now have to re-walk\n // the contents of the would-be class to re-translate\n // any characters that were passed through as-is\n cs = pattern.substr(classStart + 1)\n sp = this.parse(cs, SUBPARSE)\n re = re.substr(0, reClassStart) + '\\\\[' + sp[0]\n hasMagic = hasMagic || sp[1]\n }\n\n // handle the case where we had a +( thing at the *end*\n // of the pattern.\n // each pattern list stack adds 3 chars, and we need to go through\n // and escape any | chars that were passed through as-is for the regexp.\n // Go through and escape them, taking care not to double-escape any\n // | chars that were already escaped.\n for (pl = patternListStack.pop(); pl; pl = patternListStack.pop()) {\n var tail = re.slice(pl.reStart + 3)\n // maybe some even number of \\, then maybe 1 \\, followed by a |\n tail = tail.replace(/((?:\\\\{2})*)(\\\\?)\\|/g, function (_, $1, $2) {\n if (!$2) {\n // the | isn't already escaped, so escape it.\n $2 = '\\\\'\n }\n\n // need to escape all those slashes *again*, without escaping the\n // one that we need for escaping the | character. As it works out,\n // escaping an even number of slashes can be done by simply repeating\n // it exactly after itself. That's why this trick works.\n //\n // I am sorry that you have to see this.\n return $1 + $1 + $2 + '|'\n })\n\n this.debug('tail=%j\\n %s', tail, tail)\n var t = pl.type === '*' ? star\n : pl.type === '?' ? qmark\n : '\\\\' + pl.type\n\n hasMagic = true\n re = re.slice(0, pl.reStart) + t + '\\\\(' + tail\n }\n\n // handle trailing things that only matter at the very end.\n clearStateChar()\n if (escaping) {\n // trailing \\\\\n re += '\\\\\\\\'\n }\n\n // only need to apply the nodot start if the re starts with\n // something that could conceivably capture a dot\n var addPatternStart = false\n switch (re.charAt(0)) {\n case '.':\n case '[':\n case '(': addPatternStart = true\n }\n\n // Hack to work around lack of negative lookbehind in JS\n // A pattern like: *.!(x).!(y|z) needs to ensure that a name\n // like 'a.xyz.yz' doesn't match. So, the first negative\n // lookahead, has to look ALL the way ahead, to the end of\n // the pattern.\n for (var n = negativeLists.length - 1; n > -1; n--) {\n var nl = negativeLists[n]\n\n var nlBefore = re.slice(0, nl.reStart)\n var nlFirst = re.slice(nl.reStart, nl.reEnd - 8)\n var nlLast = re.slice(nl.reEnd - 8, nl.reEnd)\n var nlAfter = re.slice(nl.reEnd)\n\n nlLast += nlAfter\n\n // Handle nested stuff like *(*.js|!(*.json)), where open parens\n // mean that we should *not* include the ) in the bit that is considered\n // \"after\" the negated section.\n var openParensBefore = nlBefore.split('(').length - 1\n var cleanAfter = nlAfter\n for (i = 0; i < openParensBefore; i++) {\n cleanAfter = cleanAfter.replace(/\\)[+*?]?/, '')\n }\n nlAfter = cleanAfter\n\n var dollar = ''\n if (nlAfter === '' && isSub !== SUBPARSE) {\n dollar = '$'\n }\n var newRe = nlBefore + nlFirst + nlAfter + dollar + nlLast\n re = newRe\n }\n\n // if the re is not \"\" at this point, then we need to make sure\n // it doesn't match against an empty path part.\n // Otherwise a/* will match a/, which it should not.\n if (re !== '' && hasMagic) {\n re = '(?=.)' + re\n }\n\n if (addPatternStart) {\n re = patternStart + re\n }\n\n // parsing just a piece of a larger pattern.\n if (isSub === SUBPARSE) {\n return [re, hasMagic]\n }\n\n // skip the regexp for non-magical patterns\n // unescape anything in it, though, so that it'll be\n // an exact match against a file etc.\n if (!hasMagic) {\n return globUnescape(pattern)\n }\n\n var flags = options.nocase ? 'i' : ''\n var regExp = new RegExp('^' + re + '$', flags)\n\n regExp._glob = pattern\n regExp._src = re\n\n return regExp\n}\n\nminimatch.makeRe = function (pattern, options) {\n return new Minimatch(pattern, options || {}).makeRe()\n}\n\nMinimatch.prototype.makeRe = makeRe\nfunction makeRe () {\n if (this.regexp || this.regexp === false) return this.regexp\n\n // at this point, this.set is a 2d array of partial\n // pattern strings, or \"**\".\n //\n // It's better to use .match(). This function shouldn't\n // be used, really, but it's pretty convenient sometimes,\n // when you just want to work with a regex.\n var set = this.set\n\n if (!set.length) {\n this.regexp = false\n return this.regexp\n }\n var options = this.options\n\n var twoStar = options.noglobstar ? star\n : options.dot ? twoStarDot\n : twoStarNoDot\n var flags = options.nocase ? 'i' : ''\n\n var re = set.map(function (pattern) {\n return pattern.map(function (p) {\n return (p === GLOBSTAR) ? twoStar\n : (typeof p === 'string') ? regExpEscape(p)\n : p._src\n }).join('\\\\\\/')\n }).join('|')\n\n // must match entire pattern\n // ending in a * or ** will make it less strict.\n re = '^(?:' + re + ')$'\n\n // can match anything, as long as it's not this.\n if (this.negate) re = '^(?!' + re + ').*$'\n\n try {\n this.regexp = new RegExp(re, flags)\n } catch (ex) {\n this.regexp = false\n }\n return this.regexp\n}\n\nminimatch.match = function (list, pattern, options) {\n options = options || {}\n var mm = new Minimatch(pattern, options)\n list = list.filter(function (f) {\n return mm.match(f)\n })\n if (mm.options.nonull && !list.length) {\n list.push(pattern)\n }\n return list\n}\n\nMinimatch.prototype.match = match\nfunction match (f, partial) {\n this.debug('match', f, this.pattern)\n // short-circuit in the case of busted things.\n // comments, etc.\n if (this.comment) return false\n if (this.empty) return f === ''\n\n if (f === '/' && partial) return true\n\n var options = this.options\n\n // windows: need to use /, not \\\n if (path.sep !== '/') {\n f = f.split(path.sep).join('/')\n }\n\n // treat the test path as a set of pathparts.\n f = f.split(slashSplit)\n this.debug(this.pattern, 'split', f)\n\n // just ONE of the pattern sets in this.set needs to match\n // in order for it to be valid. If negating, then just one\n // match means that we have failed.\n // Either way, return on the first hit.\n\n var set = this.set\n this.debug(this.pattern, 'set', set)\n\n // Find the basename of the path by looking for the last non-empty segment\n var filename\n var i\n for (i = f.length - 1; i >= 0; i--) {\n filename = f[i]\n if (filename) break\n }\n\n for (i = 0; i < set.length; i++) {\n var pattern = set[i]\n var file = f\n if (options.matchBase && pattern.length === 1) {\n file = [filename]\n }\n var hit = this.matchOne(file, pattern, partial)\n if (hit) {\n if (options.flipNegate) return true\n return !this.negate\n }\n }\n\n // didn't get any hits. this is success if it's a negative\n // pattern, failure otherwise.\n if (options.flipNegate) return false\n return this.negate\n}\n\n// set partial to true to test if, for example,\n// \"/a/b\" matches the start of \"/*/b/*/d\"\n// Partial means, if you run out of file before you run\n// out of pattern, then that's fine, as long as all\n// the parts match.\nMinimatch.prototype.matchOne = function (file, pattern, partial) {\n var options = this.options\n\n this.debug('matchOne',\n { 'this': this, file: file, pattern: pattern })\n\n this.debug('matchOne', file.length, pattern.length)\n\n for (var fi = 0,\n pi = 0,\n fl = file.length,\n pl = pattern.length\n ; (fi < fl) && (pi < pl)\n ; fi++, pi++) {\n this.debug('matchOne loop')\n var p = pattern[pi]\n var f = file[fi]\n\n this.debug(pattern, p, f)\n\n // should be impossible.\n // some invalid regexp stuff in the set.\n if (p === false) return false\n\n if (p === GLOBSTAR) {\n this.debug('GLOBSTAR', [pattern, p, f])\n\n // \"**\"\n // a/**/b/**/c would match the following:\n // a/b/x/y/z/c\n // a/x/y/z/b/c\n // a/b/x/b/x/c\n // a/b/c\n // To do this, take the rest of the pattern after\n // the **, and see if it would match the file remainder.\n // If so, return success.\n // If not, the ** \"swallows\" a segment, and try again.\n // This is recursively awful.\n //\n // a/**/b/**/c matching a/b/x/y/z/c\n // - a matches a\n // - doublestar\n // - matchOne(b/x/y/z/c, b/**/c)\n // - b matches b\n // - doublestar\n // - matchOne(x/y/z/c, c) -> no\n // - matchOne(y/z/c, c) -> no\n // - matchOne(z/c, c) -> no\n // - matchOne(c, c) yes, hit\n var fr = fi\n var pr = pi + 1\n if (pr === pl) {\n this.debug('** at the end')\n // a ** at the end will just swallow the rest.\n // We have found a match.\n // however, it will not swallow /.x, unless\n // options.dot is set.\n // . and .. are *never* matched by **, for explosively\n // exponential reasons.\n for (; fi < fl; fi++) {\n if (file[fi] === '.' || file[fi] === '..' ||\n (!options.dot && file[fi].charAt(0) === '.')) return false\n }\n return true\n }\n\n // ok, let's see if we can swallow whatever we can.\n while (fr < fl) {\n var swallowee = file[fr]\n\n this.debug('\\nglobstar while', file, fr, pattern, pr, swallowee)\n\n // XXX remove this slice. Just pass the start index.\n if (this.matchOne(file.slice(fr), pattern.slice(pr), partial)) {\n this.debug('globstar found match!', fr, fl, swallowee)\n // found a match.\n return true\n } else {\n // can't swallow \".\" or \"..\" ever.\n // can only swallow \".foo\" when explicitly asked.\n if (swallowee === '.' || swallowee === '..' ||\n (!options.dot && swallowee.charAt(0) === '.')) {\n this.debug('dot detected!', file, fr, pattern, pr)\n break\n }\n\n // ** swallows a segment, and continue.\n this.debug('globstar swallow a segment, and continue')\n fr++\n }\n }\n\n // no match was found.\n // However, in partial mode, we can't say this is necessarily over.\n // If there's more *pattern* left, then\n if (partial) {\n // ran out of file\n this.debug('\\n>>> no match, partial?', file, fr, pattern, pr)\n if (fr === fl) return true\n }\n return false\n }\n\n // something other than **\n // non-magic patterns just have to match exactly\n // patterns with magic have been turned into regexps.\n var hit\n if (typeof p === 'string') {\n if (options.nocase) {\n hit = f.toLowerCase() === p.toLowerCase()\n } else {\n hit = f === p\n }\n this.debug('string match', p, f, hit)\n } else {\n hit = f.match(p)\n this.debug('pattern match', p, f, hit)\n }\n\n if (!hit) return false\n }\n\n // Note: ending in / means that we'll get a final \"\"\n // at the end of the pattern. This can only match a\n // corresponding \"\" at the end of the file.\n // If the file ends in /, then it can only match a\n // a pattern that ends in /, unless the pattern just\n // doesn't have any more for it. But, a/b/ should *not*\n // match \"a/b/*\", even though \"\" matches against the\n // [^/]*? pattern, except in partial mode, where it might\n // simply not be reached yet.\n // However, a/b/ should still satisfy a/*\n\n // now either we fell off the end of the pattern, or we're done.\n if (fi === fl && pi === pl) {\n // ran out of pattern and filename at the same time.\n // an exact hit!\n return true\n } else if (fi === fl) {\n // ran out of file, but still had pattern left.\n // this is ok if we're doing the match as part of\n // a glob fs traversal.\n return partial\n } else if (pi === pl) {\n // ran out of pattern, still have file left.\n // this is only acceptable if we're on the very last\n // empty segment of a file with a trailing slash.\n // a/* should match a/b/\n var emptyFileEnd = (fi === fl - 1) && (file[fi] === '')\n return emptyFileEnd\n }\n\n // should be unreachable.\n throw new Error('wtf?')\n}\n\n// replace stuff like \\* with *\nfunction globUnescape (s) {\n return s.replace(/\\\\(.)/g, '$1')\n}\n\nfunction regExpEscape (s) {\n return s.replace(/[-[\\]{}()*+?.,\\\\^$|#\\s]/g, '\\\\$&')\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/minimatch/minimatch.js\n ** module id = 244\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/minimatch/minimatch.js?"); /***/ }, /* 245 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("if (typeof Object.create === 'function') {\n // implementation from standard node.js 'util' module\n module.exports = function inherits(ctor, superCtor) {\n ctor.super_ = superCtor\n ctor.prototype = Object.create(superCtor.prototype, {\n constructor: {\n value: ctor,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n };\n} else {\n // old school shim for old browsers\n module.exports = function inherits(ctor, superCtor) {\n ctor.super_ = superCtor\n var TempCtor = function () {}\n TempCtor.prototype = superCtor.prototype\n ctor.prototype = new TempCtor()\n ctor.prototype.constructor = ctor\n }\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/ordered-read-streams/~/readable-stream/~/inherits/inherits_browser.js\n ** module id = 245\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/ordered-read-streams/~/readable-stream/~/inherits/inherits_browser.js?"); + eval("var concatMap = __webpack_require__(246);\nvar balanced = __webpack_require__(247);\n\nmodule.exports = expandTop;\n\nvar escSlash = '\\0SLASH'+Math.random()+'\\0';\nvar escOpen = '\\0OPEN'+Math.random()+'\\0';\nvar escClose = '\\0CLOSE'+Math.random()+'\\0';\nvar escComma = '\\0COMMA'+Math.random()+'\\0';\nvar escPeriod = '\\0PERIOD'+Math.random()+'\\0';\n\nfunction numeric(str) {\n return parseInt(str, 10) == str\n ? parseInt(str, 10)\n : str.charCodeAt(0);\n}\n\nfunction escapeBraces(str) {\n return str.split('\\\\\\\\').join(escSlash)\n .split('\\\\{').join(escOpen)\n .split('\\\\}').join(escClose)\n .split('\\\\,').join(escComma)\n .split('\\\\.').join(escPeriod);\n}\n\nfunction unescapeBraces(str) {\n return str.split(escSlash).join('\\\\')\n .split(escOpen).join('{')\n .split(escClose).join('}')\n .split(escComma).join(',')\n .split(escPeriod).join('.');\n}\n\n\n// Basically just str.split(\",\"), but handling cases\n// where we have nested braced sections, which should be\n// treated as individual members, like {a,{b,c},d}\nfunction parseCommaParts(str) {\n if (!str)\n return [''];\n\n var parts = [];\n var m = balanced('{', '}', str);\n\n if (!m)\n return str.split(',');\n\n var pre = m.pre;\n var body = m.body;\n var post = m.post;\n var p = pre.split(',');\n\n p[p.length-1] += '{' + body + '}';\n var postParts = parseCommaParts(post);\n if (post.length) {\n p[p.length-1] += postParts.shift();\n p.push.apply(p, postParts);\n }\n\n parts.push.apply(parts, p);\n\n return parts;\n}\n\nfunction expandTop(str) {\n if (!str)\n return [];\n\n return expand(escapeBraces(str), true).map(unescapeBraces);\n}\n\nfunction identity(e) {\n return e;\n}\n\nfunction embrace(str) {\n return '{' + str + '}';\n}\nfunction isPadded(el) {\n return /^-?0\\d/.test(el);\n}\n\nfunction lte(i, y) {\n return i <= y;\n}\nfunction gte(i, y) {\n return i >= y;\n}\n\nfunction expand(str, isTop) {\n var expansions = [];\n\n var m = balanced('{', '}', str);\n if (!m || /\\$$/.test(m.pre)) return [str];\n\n var isNumericSequence = /^-?\\d+\\.\\.-?\\d+(?:\\.\\.-?\\d+)?$/.test(m.body);\n var isAlphaSequence = /^[a-zA-Z]\\.\\.[a-zA-Z](?:\\.\\.-?\\d+)?$/.test(m.body);\n var isSequence = isNumericSequence || isAlphaSequence;\n var isOptions = /^(.*,)+(.+)?$/.test(m.body);\n if (!isSequence && !isOptions) {\n // {a},b}\n if (m.post.match(/,.*}/)) {\n str = m.pre + '{' + m.body + escClose + m.post;\n return expand(str);\n }\n return [str];\n }\n\n var n;\n if (isSequence) {\n n = m.body.split(/\\.\\./);\n } else {\n n = parseCommaParts(m.body);\n if (n.length === 1) {\n // x{{a,b}}y ==> x{a}y x{b}y\n n = expand(n[0], false).map(embrace);\n if (n.length === 1) {\n var post = m.post.length\n ? expand(m.post, false)\n : [''];\n return post.map(function(p) {\n return m.pre + n[0] + p;\n });\n }\n }\n }\n\n // at this point, n is the parts, and we know it's not a comma set\n // with a single entry.\n\n // no need to expand pre, since it is guaranteed to be free of brace-sets\n var pre = m.pre;\n var post = m.post.length\n ? expand(m.post, false)\n : [''];\n\n var N;\n\n if (isSequence) {\n var x = numeric(n[0]);\n var y = numeric(n[1]);\n var width = Math.max(n[0].length, n[1].length)\n var incr = n.length == 3\n ? Math.abs(numeric(n[2]))\n : 1;\n var test = lte;\n var reverse = y < x;\n if (reverse) {\n incr *= -1;\n test = gte;\n }\n var pad = n.some(isPadded);\n\n N = [];\n\n for (var i = x; test(i, y); i += incr) {\n var c;\n if (isAlphaSequence) {\n c = String.fromCharCode(i);\n if (c === '\\\\')\n c = '';\n } else {\n c = String(i);\n if (pad) {\n var need = width - c.length;\n if (need > 0) {\n var z = new Array(need + 1).join('0');\n if (i < 0)\n c = '-' + z + c.slice(1);\n else\n c = z + c;\n }\n }\n }\n N.push(c);\n }\n } else {\n N = concatMap(n, function(el) { return expand(el, false) });\n }\n\n for (var j = 0; j < N.length; j++) {\n for (var k = 0; k < post.length; k++) {\n var expansion = pre + N[j] + post[k];\n if (!isTop || isSequence || expansion)\n expansions.push(expansion);\n }\n }\n\n return expansions;\n}\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/brace-expansion/index.js\n ** module id = 245\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/brace-expansion/index.js?"); /***/ }, /* 246 */ /***/ function(module, exports) { - eval("/* (ignored) */\n\n/*****************\n ** WEBPACK FOOTER\n ** util (ignored)\n ** module id = 246\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///util_(ignored)?"); + eval("module.exports = function (xs, fn) {\n var res = [];\n for (var i = 0; i < xs.length; i++) {\n var x = fn(xs[i], i);\n if (isArray(x)) res.push.apply(res, x);\n else res.push(x);\n }\n return res;\n};\n\nvar isArray = Array.isArray || function (xs) {\n return Object.prototype.toString.call(xs) === '[object Array]';\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/concat-map/index.js\n ** module id = 246\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/concat-map/index.js?"); /***/ }, /* 247 */ -/***/ function(module, exports, __webpack_require__) { +/***/ function(module, exports) { - eval("// a duplex stream is just a stream that is both readable and writable.\n// Since JS doesn't have multiple prototypal inheritance, this class\n// prototypally inherits from Readable, and then parasitically from\n// Writable.\n\n'use strict';\n\n/**/\nvar objectKeys = Object.keys || function (obj) {\n var keys = [];\n for (var key in obj) keys.push(key);\n return keys;\n}\n/**/\n\n\nmodule.exports = Duplex;\n\n/**/\nvar processNextTick = __webpack_require__(242);\n/**/\n\n\n\n/**/\nvar util = __webpack_require__(244);\nutil.inherits = __webpack_require__(245);\n/**/\n\nvar Readable = __webpack_require__(241);\nvar Writable = __webpack_require__(248);\n\nutil.inherits(Duplex, Readable);\n\nvar keys = objectKeys(Writable.prototype);\nfor (var v = 0; v < keys.length; v++) {\n var method = keys[v];\n if (!Duplex.prototype[method])\n Duplex.prototype[method] = Writable.prototype[method];\n}\n\nfunction Duplex(options) {\n if (!(this instanceof Duplex))\n return new Duplex(options);\n\n Readable.call(this, options);\n Writable.call(this, options);\n\n if (options && options.readable === false)\n this.readable = false;\n\n if (options && options.writable === false)\n this.writable = false;\n\n this.allowHalfOpen = true;\n if (options && options.allowHalfOpen === false)\n this.allowHalfOpen = false;\n\n this.once('end', onend);\n}\n\n// the no-half-open enforcer\nfunction onend() {\n // if we allow half-open state, or if the writable side ended,\n // then we're ok.\n if (this.allowHalfOpen || this._writableState.ended)\n return;\n\n // no more data can be written.\n // But allow more writes to happen in this tick.\n processNextTick(onEndNT, this);\n}\n\nfunction onEndNT(self) {\n self.end();\n}\n\nfunction forEach (xs, f) {\n for (var i = 0, l = xs.length; i < l; i++) {\n f(xs[i], i);\n }\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/ordered-read-streams/~/readable-stream/lib/_stream_duplex.js\n ** module id = 247\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/ordered-read-streams/~/readable-stream/lib/_stream_duplex.js?"); + eval("module.exports = balanced;\nfunction balanced(a, b, str) {\n var r = range(a, b, str);\n\n return r && {\n start: r[0],\n end: r[1],\n pre: str.slice(0, r[0]),\n body: str.slice(r[0] + a.length, r[1]),\n post: str.slice(r[1] + b.length)\n };\n}\n\nbalanced.range = range;\nfunction range(a, b, str) {\n var begs, beg, left, right, result;\n var ai = str.indexOf(a);\n var bi = str.indexOf(b, ai + 1);\n var i = ai;\n\n if (ai >= 0 && bi > 0) {\n begs = [];\n left = str.length;\n\n while (i < str.length && i >= 0 && ! result) {\n if (i == ai) {\n begs.push(i);\n ai = str.indexOf(a, i + 1);\n } else if (begs.length == 1) {\n result = [ begs.pop(), bi ];\n } else {\n beg = begs.pop();\n if (beg < left) {\n left = beg;\n right = bi;\n }\n\n bi = str.indexOf(b, i + 1);\n }\n\n i = ai < bi && ai >= 0 ? ai : bi;\n }\n\n if (begs.length) {\n result = [ left, right ];\n }\n }\n\n return result;\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/balanced-match/index.js\n ** module id = 247\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/balanced-match/index.js?"); /***/ }, /* 248 */ /***/ function(module, exports, __webpack_require__) { - eval("// A bit simpler than readable streams.\n// Implement an async ._write(chunk, encoding, cb), and it'll handle all\n// the drain event emission and buffering.\n\n'use strict';\n\nmodule.exports = Writable;\n\n/**/\nvar processNextTick = __webpack_require__(242);\n/**/\n\n\n/**/\nvar Buffer = __webpack_require__(1).Buffer;\n/**/\n\nWritable.WritableState = WritableState;\n\n\n/**/\nvar util = __webpack_require__(244);\nutil.inherits = __webpack_require__(245);\n/**/\n\n\n/**/\nvar internalUtil = {\n deprecate: __webpack_require__(249)\n};\n/**/\n\n\n\n/**/\nvar Stream;\n(function (){try{\n Stream = __webpack_require__(96);\n}catch(_){}finally{\n if (!Stream)\n Stream = __webpack_require__(84).EventEmitter;\n}}())\n/**/\n\nvar Buffer = __webpack_require__(1).Buffer;\n\nutil.inherits(Writable, Stream);\n\nfunction nop() {}\n\nfunction WriteReq(chunk, encoding, cb) {\n this.chunk = chunk;\n this.encoding = encoding;\n this.callback = cb;\n this.next = null;\n}\n\nvar Duplex;\nfunction WritableState(options, stream) {\n Duplex = Duplex || __webpack_require__(247);\n\n options = options || {};\n\n // object stream flag to indicate whether or not this stream\n // contains buffers or objects.\n this.objectMode = !!options.objectMode;\n\n if (stream instanceof Duplex)\n this.objectMode = this.objectMode || !!options.writableObjectMode;\n\n // the point at which write() starts returning false\n // Note: 0 is a valid value, means that we always return false if\n // the entire buffer is not flushed immediately on write()\n var hwm = options.highWaterMark;\n var defaultHwm = this.objectMode ? 16 : 16 * 1024;\n this.highWaterMark = (hwm || hwm === 0) ? hwm : defaultHwm;\n\n // cast to ints.\n this.highWaterMark = ~~this.highWaterMark;\n\n this.needDrain = false;\n // at the start of calling end()\n this.ending = false;\n // when end() has been called, and returned\n this.ended = false;\n // when 'finish' is emitted\n this.finished = false;\n\n // should we decode strings into buffers before passing to _write?\n // this is here so that some node-core streams can optimize string\n // handling at a lower level.\n var noDecode = options.decodeStrings === false;\n this.decodeStrings = !noDecode;\n\n // Crypto is kind of old and crusty. Historically, its default string\n // encoding is 'binary' so we have to make this configurable.\n // Everything else in the universe uses 'utf8', though.\n this.defaultEncoding = options.defaultEncoding || 'utf8';\n\n // not an actual buffer we keep track of, but a measurement\n // of how much we're waiting to get pushed to some underlying\n // socket or file.\n this.length = 0;\n\n // a flag to see when we're in the middle of a write.\n this.writing = false;\n\n // when true all writes will be buffered until .uncork() call\n this.corked = 0;\n\n // a flag to be able to tell if the onwrite cb is called immediately,\n // or on a later tick. We set this to true at first, because any\n // actions that shouldn't happen until \"later\" should generally also\n // not happen before the first write call.\n this.sync = true;\n\n // a flag to know if we're processing previously buffered items, which\n // may call the _write() callback in the same tick, so that we don't\n // end up in an overlapped onwrite situation.\n this.bufferProcessing = false;\n\n // the callback that's passed to _write(chunk,cb)\n this.onwrite = function(er) {\n onwrite(stream, er);\n };\n\n // the callback that the user supplies to write(chunk,encoding,cb)\n this.writecb = null;\n\n // the amount that is being written when _write is called.\n this.writelen = 0;\n\n this.bufferedRequest = null;\n this.lastBufferedRequest = null;\n\n // number of pending user-supplied write callbacks\n // this must be 0 before 'finish' can be emitted\n this.pendingcb = 0;\n\n // emit prefinish if the only thing we're waiting for is _write cbs\n // This is relevant for synchronous Transform streams\n this.prefinished = false;\n\n // True if the error was already emitted and should not be thrown again\n this.errorEmitted = false;\n}\n\nWritableState.prototype.getBuffer = function writableStateGetBuffer() {\n var current = this.bufferedRequest;\n var out = [];\n while (current) {\n out.push(current);\n current = current.next;\n }\n return out;\n};\n\n(function (){try {\nObject.defineProperty(WritableState.prototype, 'buffer', {\n get: internalUtil.deprecate(function() {\n return this.getBuffer();\n }, '_writableState.buffer is deprecated. Use _writableState.getBuffer ' +\n 'instead.')\n});\n}catch(_){}}());\n\n\nvar Duplex;\nfunction Writable(options) {\n Duplex = Duplex || __webpack_require__(247);\n\n // Writable ctor is applied to Duplexes, though they're not\n // instanceof Writable, they're instanceof Readable.\n if (!(this instanceof Writable) && !(this instanceof Duplex))\n return new Writable(options);\n\n this._writableState = new WritableState(options, this);\n\n // legacy.\n this.writable = true;\n\n if (options) {\n if (typeof options.write === 'function')\n this._write = options.write;\n\n if (typeof options.writev === 'function')\n this._writev = options.writev;\n }\n\n Stream.call(this);\n}\n\n// Otherwise people can pipe Writable streams, which is just wrong.\nWritable.prototype.pipe = function() {\n this.emit('error', new Error('Cannot pipe. Not readable.'));\n};\n\n\nfunction writeAfterEnd(stream, cb) {\n var er = new Error('write after end');\n // TODO: defer error events consistently everywhere, not just the cb\n stream.emit('error', er);\n processNextTick(cb, er);\n}\n\n// If we get something that is not a buffer, string, null, or undefined,\n// and we're not in objectMode, then that's an error.\n// Otherwise stream chunks are all considered to be of length=1, and the\n// watermarks determine how many objects to keep in the buffer, rather than\n// how many bytes or characters.\nfunction validChunk(stream, state, chunk, cb) {\n var valid = true;\n\n if (!(Buffer.isBuffer(chunk)) &&\n typeof chunk !== 'string' &&\n chunk !== null &&\n chunk !== undefined &&\n !state.objectMode) {\n var er = new TypeError('Invalid non-string/buffer chunk');\n stream.emit('error', er);\n processNextTick(cb, er);\n valid = false;\n }\n return valid;\n}\n\nWritable.prototype.write = function(chunk, encoding, cb) {\n var state = this._writableState;\n var ret = false;\n\n if (typeof encoding === 'function') {\n cb = encoding;\n encoding = null;\n }\n\n if (Buffer.isBuffer(chunk))\n encoding = 'buffer';\n else if (!encoding)\n encoding = state.defaultEncoding;\n\n if (typeof cb !== 'function')\n cb = nop;\n\n if (state.ended)\n writeAfterEnd(this, cb);\n else if (validChunk(this, state, chunk, cb)) {\n state.pendingcb++;\n ret = writeOrBuffer(this, state, chunk, encoding, cb);\n }\n\n return ret;\n};\n\nWritable.prototype.cork = function() {\n var state = this._writableState;\n\n state.corked++;\n};\n\nWritable.prototype.uncork = function() {\n var state = this._writableState;\n\n if (state.corked) {\n state.corked--;\n\n if (!state.writing &&\n !state.corked &&\n !state.finished &&\n !state.bufferProcessing &&\n state.bufferedRequest)\n clearBuffer(this, state);\n }\n};\n\nWritable.prototype.setDefaultEncoding = function setDefaultEncoding(encoding) {\n // node::ParseEncoding() requires lower case.\n if (typeof encoding === 'string')\n encoding = encoding.toLowerCase();\n if (!(['hex', 'utf8', 'utf-8', 'ascii', 'binary', 'base64',\n'ucs2', 'ucs-2','utf16le', 'utf-16le', 'raw']\n.indexOf((encoding + '').toLowerCase()) > -1))\n throw new TypeError('Unknown encoding: ' + encoding);\n this._writableState.defaultEncoding = encoding;\n};\n\nfunction decodeChunk(state, chunk, encoding) {\n if (!state.objectMode &&\n state.decodeStrings !== false &&\n typeof chunk === 'string') {\n chunk = new Buffer(chunk, encoding);\n }\n return chunk;\n}\n\n// if we're already writing something, then just put this\n// in the queue, and wait our turn. Otherwise, call _write\n// If we return false, then we need a drain event, so set that flag.\nfunction writeOrBuffer(stream, state, chunk, encoding, cb) {\n chunk = decodeChunk(state, chunk, encoding);\n\n if (Buffer.isBuffer(chunk))\n encoding = 'buffer';\n var len = state.objectMode ? 1 : chunk.length;\n\n state.length += len;\n\n var ret = state.length < state.highWaterMark;\n // we must ensure that previous needDrain will not be reset to false.\n if (!ret)\n state.needDrain = true;\n\n if (state.writing || state.corked) {\n var last = state.lastBufferedRequest;\n state.lastBufferedRequest = new WriteReq(chunk, encoding, cb);\n if (last) {\n last.next = state.lastBufferedRequest;\n } else {\n state.bufferedRequest = state.lastBufferedRequest;\n }\n } else {\n doWrite(stream, state, false, len, chunk, encoding, cb);\n }\n\n return ret;\n}\n\nfunction doWrite(stream, state, writev, len, chunk, encoding, cb) {\n state.writelen = len;\n state.writecb = cb;\n state.writing = true;\n state.sync = true;\n if (writev)\n stream._writev(chunk, state.onwrite);\n else\n stream._write(chunk, encoding, state.onwrite);\n state.sync = false;\n}\n\nfunction onwriteError(stream, state, sync, er, cb) {\n --state.pendingcb;\n if (sync)\n processNextTick(cb, er);\n else\n cb(er);\n\n stream._writableState.errorEmitted = true;\n stream.emit('error', er);\n}\n\nfunction onwriteStateUpdate(state) {\n state.writing = false;\n state.writecb = null;\n state.length -= state.writelen;\n state.writelen = 0;\n}\n\nfunction onwrite(stream, er) {\n var state = stream._writableState;\n var sync = state.sync;\n var cb = state.writecb;\n\n onwriteStateUpdate(state);\n\n if (er)\n onwriteError(stream, state, sync, er, cb);\n else {\n // Check if we're actually ready to finish, but don't emit yet\n var finished = needFinish(state);\n\n if (!finished &&\n !state.corked &&\n !state.bufferProcessing &&\n state.bufferedRequest) {\n clearBuffer(stream, state);\n }\n\n if (sync) {\n processNextTick(afterWrite, stream, state, finished, cb);\n } else {\n afterWrite(stream, state, finished, cb);\n }\n }\n}\n\nfunction afterWrite(stream, state, finished, cb) {\n if (!finished)\n onwriteDrain(stream, state);\n state.pendingcb--;\n cb();\n finishMaybe(stream, state);\n}\n\n// Must force callback to be called on nextTick, so that we don't\n// emit 'drain' before the write() consumer gets the 'false' return\n// value, and has a chance to attach a 'drain' listener.\nfunction onwriteDrain(stream, state) {\n if (state.length === 0 && state.needDrain) {\n state.needDrain = false;\n stream.emit('drain');\n }\n}\n\n\n// if there's something in the buffer waiting, then process it\nfunction clearBuffer(stream, state) {\n state.bufferProcessing = true;\n var entry = state.bufferedRequest;\n\n if (stream._writev && entry && entry.next) {\n // Fast case, write everything using _writev()\n var buffer = [];\n var cbs = [];\n while (entry) {\n cbs.push(entry.callback);\n buffer.push(entry);\n entry = entry.next;\n }\n\n // count the one we are adding, as well.\n // TODO(isaacs) clean this up\n state.pendingcb++;\n state.lastBufferedRequest = null;\n doWrite(stream, state, true, state.length, buffer, '', function(err) {\n for (var i = 0; i < cbs.length; i++) {\n state.pendingcb--;\n cbs[i](err);\n }\n });\n\n // Clear buffer\n } else {\n // Slow case, write chunks one-by-one\n while (entry) {\n var chunk = entry.chunk;\n var encoding = entry.encoding;\n var cb = entry.callback;\n var len = state.objectMode ? 1 : chunk.length;\n\n doWrite(stream, state, false, len, chunk, encoding, cb);\n entry = entry.next;\n // if we didn't call the onwrite immediately, then\n // it means that we need to wait until it does.\n // also, that means that the chunk and cb are currently\n // being processed, so move the buffer counter past them.\n if (state.writing) {\n break;\n }\n }\n\n if (entry === null)\n state.lastBufferedRequest = null;\n }\n state.bufferedRequest = entry;\n state.bufferProcessing = false;\n}\n\nWritable.prototype._write = function(chunk, encoding, cb) {\n cb(new Error('not implemented'));\n};\n\nWritable.prototype._writev = null;\n\nWritable.prototype.end = function(chunk, encoding, cb) {\n var state = this._writableState;\n\n if (typeof chunk === 'function') {\n cb = chunk;\n chunk = null;\n encoding = null;\n } else if (typeof encoding === 'function') {\n cb = encoding;\n encoding = null;\n }\n\n if (chunk !== null && chunk !== undefined)\n this.write(chunk, encoding);\n\n // .end() fully uncorks\n if (state.corked) {\n state.corked = 1;\n this.uncork();\n }\n\n // ignore unnecessary end() calls.\n if (!state.ending && !state.finished)\n endWritable(this, state, cb);\n};\n\n\nfunction needFinish(state) {\n return (state.ending &&\n state.length === 0 &&\n state.bufferedRequest === null &&\n !state.finished &&\n !state.writing);\n}\n\nfunction prefinish(stream, state) {\n if (!state.prefinished) {\n state.prefinished = true;\n stream.emit('prefinish');\n }\n}\n\nfunction finishMaybe(stream, state) {\n var need = needFinish(state);\n if (need) {\n if (state.pendingcb === 0) {\n prefinish(stream, state);\n state.finished = true;\n stream.emit('finish');\n } else {\n prefinish(stream, state);\n }\n }\n return need;\n}\n\nfunction endWritable(stream, state, cb) {\n state.ending = true;\n finishMaybe(stream, state);\n if (cb) {\n if (state.finished)\n processNextTick(cb);\n else\n stream.once('finish', cb);\n }\n state.ended = true;\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/ordered-read-streams/~/readable-stream/lib/_stream_writable.js\n ** module id = 248\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/ordered-read-streams/~/readable-stream/lib/_stream_writable.js?"); + eval("// http://wiki.commonjs.org/wiki/Unit_Testing/1.0\n//\n// THIS IS NOT TESTED NOR LIKELY TO WORK OUTSIDE V8!\n//\n// Originally from narwhal.js (http://narwhaljs.org)\n// Copyright (c) 2009 Thomas Robinson <280north.com>\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the 'Software'), to\n// deal in the Software without restriction, including without limitation the\n// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n// sell copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN\n// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\n// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// when used in node, this will actually load the util module we depend on\n// versus loading the builtin util module as happens otherwise\n// this is a bug in node module loading as far as I am concerned\nvar util = __webpack_require__(139);\n\nvar pSlice = Array.prototype.slice;\nvar hasOwn = Object.prototype.hasOwnProperty;\n\n// 1. The assert module provides functions that throw\n// AssertionError's when particular conditions are not met. The\n// assert module must conform to the following interface.\n\nvar assert = module.exports = ok;\n\n// 2. The AssertionError is defined in assert.\n// new assert.AssertionError({ message: message,\n// actual: actual,\n// expected: expected })\n\nassert.AssertionError = function AssertionError(options) {\n this.name = 'AssertionError';\n this.actual = options.actual;\n this.expected = options.expected;\n this.operator = options.operator;\n if (options.message) {\n this.message = options.message;\n this.generatedMessage = false;\n } else {\n this.message = getMessage(this);\n this.generatedMessage = true;\n }\n var stackStartFunction = options.stackStartFunction || fail;\n\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, stackStartFunction);\n }\n else {\n // non v8 browsers so we can have a stacktrace\n var err = new Error();\n if (err.stack) {\n var out = err.stack;\n\n // try to strip useless frames\n var fn_name = stackStartFunction.name;\n var idx = out.indexOf('\\n' + fn_name);\n if (idx >= 0) {\n // once we have located the function frame\n // we need to strip out everything before it (and its line)\n var next_line = out.indexOf('\\n', idx + 1);\n out = out.substring(next_line + 1);\n }\n\n this.stack = out;\n }\n }\n};\n\n// assert.AssertionError instanceof Error\nutil.inherits(assert.AssertionError, Error);\n\nfunction replacer(key, value) {\n if (util.isUndefined(value)) {\n return '' + value;\n }\n if (util.isNumber(value) && !isFinite(value)) {\n return value.toString();\n }\n if (util.isFunction(value) || util.isRegExp(value)) {\n return value.toString();\n }\n return value;\n}\n\nfunction truncate(s, n) {\n if (util.isString(s)) {\n return s.length < n ? s : s.slice(0, n);\n } else {\n return s;\n }\n}\n\nfunction getMessage(self) {\n return truncate(JSON.stringify(self.actual, replacer), 128) + ' ' +\n self.operator + ' ' +\n truncate(JSON.stringify(self.expected, replacer), 128);\n}\n\n// At present only the three keys mentioned above are used and\n// understood by the spec. Implementations or sub modules can pass\n// other keys to the AssertionError's constructor - they will be\n// ignored.\n\n// 3. All of the following functions must throw an AssertionError\n// when a corresponding condition is not met, with a message that\n// may be undefined if not provided. All assertion methods provide\n// both the actual and expected values to the assertion error for\n// display purposes.\n\nfunction fail(actual, expected, message, operator, stackStartFunction) {\n throw new assert.AssertionError({\n message: message,\n actual: actual,\n expected: expected,\n operator: operator,\n stackStartFunction: stackStartFunction\n });\n}\n\n// EXTENSION! allows for well behaved errors defined elsewhere.\nassert.fail = fail;\n\n// 4. Pure assertion tests whether a value is truthy, as determined\n// by !!guard.\n// assert.ok(guard, message_opt);\n// This statement is equivalent to assert.equal(true, !!guard,\n// message_opt);. To test strictly for the value true, use\n// assert.strictEqual(true, guard, message_opt);.\n\nfunction ok(value, message) {\n if (!value) fail(value, true, message, '==', assert.ok);\n}\nassert.ok = ok;\n\n// 5. The equality assertion tests shallow, coercive equality with\n// ==.\n// assert.equal(actual, expected, message_opt);\n\nassert.equal = function equal(actual, expected, message) {\n if (actual != expected) fail(actual, expected, message, '==', assert.equal);\n};\n\n// 6. The non-equality assertion tests for whether two objects are not equal\n// with != assert.notEqual(actual, expected, message_opt);\n\nassert.notEqual = function notEqual(actual, expected, message) {\n if (actual == expected) {\n fail(actual, expected, message, '!=', assert.notEqual);\n }\n};\n\n// 7. The equivalence assertion tests a deep equality relation.\n// assert.deepEqual(actual, expected, message_opt);\n\nassert.deepEqual = function deepEqual(actual, expected, message) {\n if (!_deepEqual(actual, expected)) {\n fail(actual, expected, message, 'deepEqual', assert.deepEqual);\n }\n};\n\nfunction _deepEqual(actual, expected) {\n // 7.1. All identical values are equivalent, as determined by ===.\n if (actual === expected) {\n return true;\n\n } else if (util.isBuffer(actual) && util.isBuffer(expected)) {\n if (actual.length != expected.length) return false;\n\n for (var i = 0; i < actual.length; i++) {\n if (actual[i] !== expected[i]) return false;\n }\n\n return true;\n\n // 7.2. If the expected value is a Date object, the actual value is\n // equivalent if it is also a Date object that refers to the same time.\n } else if (util.isDate(actual) && util.isDate(expected)) {\n return actual.getTime() === expected.getTime();\n\n // 7.3 If the expected value is a RegExp object, the actual value is\n // equivalent if it is also a RegExp object with the same source and\n // properties (`global`, `multiline`, `lastIndex`, `ignoreCase`).\n } else if (util.isRegExp(actual) && util.isRegExp(expected)) {\n return actual.source === expected.source &&\n actual.global === expected.global &&\n actual.multiline === expected.multiline &&\n actual.lastIndex === expected.lastIndex &&\n actual.ignoreCase === expected.ignoreCase;\n\n // 7.4. Other pairs that do not both pass typeof value == 'object',\n // equivalence is determined by ==.\n } else if (!util.isObject(actual) && !util.isObject(expected)) {\n return actual == expected;\n\n // 7.5 For all other Object pairs, including Array objects, equivalence is\n // determined by having the same number of owned properties (as verified\n // with Object.prototype.hasOwnProperty.call), the same set of keys\n // (although not necessarily the same order), equivalent values for every\n // corresponding key, and an identical 'prototype' property. Note: this\n // accounts for both named and indexed properties on Arrays.\n } else {\n return objEquiv(actual, expected);\n }\n}\n\nfunction isArguments(object) {\n return Object.prototype.toString.call(object) == '[object Arguments]';\n}\n\nfunction objEquiv(a, b) {\n if (util.isNullOrUndefined(a) || util.isNullOrUndefined(b))\n return false;\n // an identical 'prototype' property.\n if (a.prototype !== b.prototype) return false;\n // if one is a primitive, the other must be same\n if (util.isPrimitive(a) || util.isPrimitive(b)) {\n return a === b;\n }\n var aIsArgs = isArguments(a),\n bIsArgs = isArguments(b);\n if ((aIsArgs && !bIsArgs) || (!aIsArgs && bIsArgs))\n return false;\n if (aIsArgs) {\n a = pSlice.call(a);\n b = pSlice.call(b);\n return _deepEqual(a, b);\n }\n var ka = objectKeys(a),\n kb = objectKeys(b),\n key, i;\n // having the same number of owned properties (keys incorporates\n // hasOwnProperty)\n if (ka.length != kb.length)\n return false;\n //the same set of keys (although not necessarily the same order),\n ka.sort();\n kb.sort();\n //~~~cheap key test\n for (i = ka.length - 1; i >= 0; i--) {\n if (ka[i] != kb[i])\n return false;\n }\n //equivalent values for every corresponding key, and\n //~~~possibly expensive deep test\n for (i = ka.length - 1; i >= 0; i--) {\n key = ka[i];\n if (!_deepEqual(a[key], b[key])) return false;\n }\n return true;\n}\n\n// 8. The non-equivalence assertion tests for any deep inequality.\n// assert.notDeepEqual(actual, expected, message_opt);\n\nassert.notDeepEqual = function notDeepEqual(actual, expected, message) {\n if (_deepEqual(actual, expected)) {\n fail(actual, expected, message, 'notDeepEqual', assert.notDeepEqual);\n }\n};\n\n// 9. The strict equality assertion tests strict equality, as determined by ===.\n// assert.strictEqual(actual, expected, message_opt);\n\nassert.strictEqual = function strictEqual(actual, expected, message) {\n if (actual !== expected) {\n fail(actual, expected, message, '===', assert.strictEqual);\n }\n};\n\n// 10. The strict non-equality assertion tests for strict inequality, as\n// determined by !==. assert.notStrictEqual(actual, expected, message_opt);\n\nassert.notStrictEqual = function notStrictEqual(actual, expected, message) {\n if (actual === expected) {\n fail(actual, expected, message, '!==', assert.notStrictEqual);\n }\n};\n\nfunction expectedException(actual, expected) {\n if (!actual || !expected) {\n return false;\n }\n\n if (Object.prototype.toString.call(expected) == '[object RegExp]') {\n return expected.test(actual);\n } else if (actual instanceof expected) {\n return true;\n } else if (expected.call({}, actual) === true) {\n return true;\n }\n\n return false;\n}\n\nfunction _throws(shouldThrow, block, expected, message) {\n var actual;\n\n if (util.isString(expected)) {\n message = expected;\n expected = null;\n }\n\n try {\n block();\n } catch (e) {\n actual = e;\n }\n\n message = (expected && expected.name ? ' (' + expected.name + ').' : '.') +\n (message ? ' ' + message : '.');\n\n if (shouldThrow && !actual) {\n fail(actual, expected, 'Missing expected exception' + message);\n }\n\n if (!shouldThrow && expectedException(actual, expected)) {\n fail(actual, expected, 'Got unwanted exception' + message);\n }\n\n if ((shouldThrow && actual && expected &&\n !expectedException(actual, expected)) || (!shouldThrow && actual)) {\n throw actual;\n }\n}\n\n// 11. Expected to throw an error:\n// assert.throws(block, Error_opt, message_opt);\n\nassert.throws = function(block, /*optional*/error, /*optional*/message) {\n _throws.apply(this, [true].concat(pSlice.call(arguments)));\n};\n\n// EXTENSION! This is annoying to write outside this module.\nassert.doesNotThrow = function(block, /*optional*/message) {\n _throws.apply(this, [false].concat(pSlice.call(arguments)));\n};\n\nassert.ifError = function(err) { if (err) {throw err;}};\n\nvar objectKeys = Object.keys || function (obj) {\n var keys = [];\n for (var key in obj) {\n if (hasOwn.call(obj, key)) keys.push(key);\n }\n return keys;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/assert/assert.js\n ** module id = 248\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/assert/assert.js?"); /***/ }, /* 249 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(global) {\n/**\n * Module exports.\n */\n\nmodule.exports = deprecate;\n\n/**\n * Mark that a method should not be used.\n * Returns a modified function which warns once by default.\n *\n * If `localStorage.noDeprecation = true` is set, then it is a no-op.\n *\n * If `localStorage.throwDeprecation = true` is set, then deprecated functions\n * will throw an Error when invoked.\n *\n * If `localStorage.traceDeprecation = true` is set, then deprecated functions\n * will invoke `console.trace()` instead of `console.error()`.\n *\n * @param {Function} fn - the function to deprecate\n * @param {String} msg - the string to print to the console when `fn` is invoked\n * @returns {Function} a new \"deprecated\" version of `fn`\n * @api public\n */\n\nfunction deprecate (fn, msg) {\n if (config('noDeprecation')) {\n return fn;\n }\n\n var warned = false;\n function deprecated() {\n if (!warned) {\n if (config('throwDeprecation')) {\n throw new Error(msg);\n } else if (config('traceDeprecation')) {\n console.trace(msg);\n } else {\n console.warn(msg);\n }\n warned = true;\n }\n return fn.apply(this, arguments);\n }\n\n return deprecated;\n}\n\n/**\n * Checks `localStorage` for boolean values for the given `name`.\n *\n * @param {String} name\n * @returns {Boolean}\n * @api private\n */\n\nfunction config (name) {\n // accessing global.localStorage can trigger a DOMException in sandboxed iframes\n try {\n if (!global.localStorage) return false;\n } catch (_) {\n return false;\n }\n var val = global.localStorage[name];\n if (null == val) return false;\n return String(val).toLowerCase() === 'true';\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/ordered-read-streams/~/readable-stream/~/util-deprecate/browser.js\n ** module id = 249\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/ordered-read-streams/~/readable-stream/~/util-deprecate/browser.js?"); + eval("/* WEBPACK VAR INJECTION */(function(process) {'use strict';\n\nfunction posix(path) {\n\treturn path.charAt(0) === '/';\n};\n\nfunction win32(path) {\n\t// https://github.com/joyent/node/blob/b3fcc245fb25539909ef1d5eaa01dbf92e168633/lib/path.js#L56\n\tvar splitDeviceRe = /^([a-zA-Z]:|[\\\\\\/]{2}[^\\\\\\/]+[\\\\\\/]+[^\\\\\\/]+)?([\\\\\\/])?([\\s\\S]*?)$/;\n\tvar result = splitDeviceRe.exec(path);\n\tvar device = result[1] || '';\n\tvar isUnc = !!device && device.charAt(1) !== ':';\n\n\t// UNC paths are always absolute\n\treturn !!result[2] || isUnc;\n};\n\nmodule.exports = process.platform === 'win32' ? win32 : posix;\nmodule.exports.posix = posix;\nmodule.exports.win32 = win32;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/path-is-absolute/index.js\n ** module id = 249\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/path-is-absolute/index.js?"); /***/ }, /* 250 */ /***/ function(module, exports, __webpack_require__) { - eval("// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nvar Buffer = __webpack_require__(1).Buffer;\n\nvar isBufferEncoding = Buffer.isEncoding\n || function(encoding) {\n switch (encoding && encoding.toLowerCase()) {\n case 'hex': case 'utf8': case 'utf-8': case 'ascii': case 'binary': case 'base64': case 'ucs2': case 'ucs-2': case 'utf16le': case 'utf-16le': case 'raw': return true;\n default: return false;\n }\n }\n\n\nfunction assertEncoding(encoding) {\n if (encoding && !isBufferEncoding(encoding)) {\n throw new Error('Unknown encoding: ' + encoding);\n }\n}\n\n// StringDecoder provides an interface for efficiently splitting a series of\n// buffers into a series of JS strings without breaking apart multi-byte\n// characters. CESU-8 is handled as part of the UTF-8 encoding.\n//\n// @TODO Handling all encodings inside a single object makes it very difficult\n// to reason about this code, so it should be split up in the future.\n// @TODO There should be a utf8-strict encoding that rejects invalid UTF-8 code\n// points as used by CESU-8.\nvar StringDecoder = exports.StringDecoder = function(encoding) {\n this.encoding = (encoding || 'utf8').toLowerCase().replace(/[-_]/, '');\n assertEncoding(encoding);\n switch (this.encoding) {\n case 'utf8':\n // CESU-8 represents each of Surrogate Pair by 3-bytes\n this.surrogateSize = 3;\n break;\n case 'ucs2':\n case 'utf16le':\n // UTF-16 represents each of Surrogate Pair by 2-bytes\n this.surrogateSize = 2;\n this.detectIncompleteChar = utf16DetectIncompleteChar;\n break;\n case 'base64':\n // Base-64 stores 3 bytes in 4 chars, and pads the remainder.\n this.surrogateSize = 3;\n this.detectIncompleteChar = base64DetectIncompleteChar;\n break;\n default:\n this.write = passThroughWrite;\n return;\n }\n\n // Enough space to store all bytes of a single character. UTF-8 needs 4\n // bytes, but CESU-8 may require up to 6 (3 bytes per surrogate).\n this.charBuffer = new Buffer(6);\n // Number of bytes received for the current incomplete multi-byte character.\n this.charReceived = 0;\n // Number of bytes expected for the current incomplete multi-byte character.\n this.charLength = 0;\n};\n\n\n// write decodes the given buffer and returns it as JS string that is\n// guaranteed to not contain any partial multi-byte characters. Any partial\n// character found at the end of the buffer is buffered up, and will be\n// returned when calling write again with the remaining bytes.\n//\n// Note: Converting a Buffer containing an orphan surrogate to a String\n// currently works, but converting a String to a Buffer (via `new Buffer`, or\n// Buffer#write) will replace incomplete surrogates with the unicode\n// replacement character. See https://codereview.chromium.org/121173009/ .\nStringDecoder.prototype.write = function(buffer) {\n var charStr = '';\n // if our last write ended with an incomplete multibyte character\n while (this.charLength) {\n // determine how many remaining bytes this buffer has to offer for this char\n var available = (buffer.length >= this.charLength - this.charReceived) ?\n this.charLength - this.charReceived :\n buffer.length;\n\n // add the new bytes to the char buffer\n buffer.copy(this.charBuffer, this.charReceived, 0, available);\n this.charReceived += available;\n\n if (this.charReceived < this.charLength) {\n // still not enough chars in this buffer? wait for more ...\n return '';\n }\n\n // remove bytes belonging to the current character from the buffer\n buffer = buffer.slice(available, buffer.length);\n\n // get the character that was split\n charStr = this.charBuffer.slice(0, this.charLength).toString(this.encoding);\n\n // CESU-8: lead surrogate (D800-DBFF) is also the incomplete character\n var charCode = charStr.charCodeAt(charStr.length - 1);\n if (charCode >= 0xD800 && charCode <= 0xDBFF) {\n this.charLength += this.surrogateSize;\n charStr = '';\n continue;\n }\n this.charReceived = this.charLength = 0;\n\n // if there are no more bytes in this buffer, just emit our char\n if (buffer.length === 0) {\n return charStr;\n }\n break;\n }\n\n // determine and set charLength / charReceived\n this.detectIncompleteChar(buffer);\n\n var end = buffer.length;\n if (this.charLength) {\n // buffer the incomplete character bytes we got\n buffer.copy(this.charBuffer, 0, buffer.length - this.charReceived, end);\n end -= this.charReceived;\n }\n\n charStr += buffer.toString(this.encoding, 0, end);\n\n var end = charStr.length - 1;\n var charCode = charStr.charCodeAt(end);\n // CESU-8: lead surrogate (D800-DBFF) is also the incomplete character\n if (charCode >= 0xD800 && charCode <= 0xDBFF) {\n var size = this.surrogateSize;\n this.charLength += size;\n this.charReceived += size;\n this.charBuffer.copy(this.charBuffer, size, 0, size);\n buffer.copy(this.charBuffer, 0, 0, size);\n return charStr.substring(0, end);\n }\n\n // or just emit the charStr\n return charStr;\n};\n\n// detectIncompleteChar determines if there is an incomplete UTF-8 character at\n// the end of the given buffer. If so, it sets this.charLength to the byte\n// length that character, and sets this.charReceived to the number of bytes\n// that are available for this character.\nStringDecoder.prototype.detectIncompleteChar = function(buffer) {\n // determine how many bytes we have to check at the end of this buffer\n var i = (buffer.length >= 3) ? 3 : buffer.length;\n\n // Figure out if one of the last i bytes of our buffer announces an\n // incomplete char.\n for (; i > 0; i--) {\n var c = buffer[buffer.length - i];\n\n // See http://en.wikipedia.org/wiki/UTF-8#Description\n\n // 110XXXXX\n if (i == 1 && c >> 5 == 0x06) {\n this.charLength = 2;\n break;\n }\n\n // 1110XXXX\n if (i <= 2 && c >> 4 == 0x0E) {\n this.charLength = 3;\n break;\n }\n\n // 11110XXX\n if (i <= 3 && c >> 3 == 0x1E) {\n this.charLength = 4;\n break;\n }\n }\n this.charReceived = i;\n};\n\nStringDecoder.prototype.end = function(buffer) {\n var res = '';\n if (buffer && buffer.length)\n res = this.write(buffer);\n\n if (this.charReceived) {\n var cr = this.charReceived;\n var buf = this.charBuffer;\n var enc = this.encoding;\n res += buf.slice(0, cr).toString(enc);\n }\n\n return res;\n};\n\nfunction passThroughWrite(buffer) {\n return buffer.toString(this.encoding);\n}\n\nfunction utf16DetectIncompleteChar(buffer) {\n this.charReceived = buffer.length % 2;\n this.charLength = this.charReceived ? 2 : 0;\n}\n\nfunction base64DetectIncompleteChar(buffer) {\n this.charReceived = buffer.length % 3;\n this.charLength = this.charReceived ? 3 : 0;\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/ordered-read-streams/~/readable-stream/~/string_decoder/index.js\n ** module id = 250\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/ordered-read-streams/~/readable-stream/~/string_decoder/index.js?"); + eval("/* WEBPACK VAR INJECTION */(function(process) {module.exports = globSync\nglobSync.GlobSync = GlobSync\n\nvar fs = __webpack_require__(82)\nvar minimatch = __webpack_require__(244)\nvar Minimatch = minimatch.Minimatch\nvar Glob = __webpack_require__(243).Glob\nvar util = __webpack_require__(139)\nvar path = __webpack_require__(149)\nvar assert = __webpack_require__(248)\nvar isAbsolute = __webpack_require__(249)\nvar common = __webpack_require__(251)\nvar alphasort = common.alphasort\nvar alphasorti = common.alphasorti\nvar setopts = common.setopts\nvar ownProp = common.ownProp\nvar childrenIgnored = common.childrenIgnored\n\nfunction globSync (pattern, options) {\n if (typeof options === 'function' || arguments.length === 3)\n throw new TypeError('callback provided to sync glob\\n'+\n 'See: https://github.com/isaacs/node-glob/issues/167')\n\n return new GlobSync(pattern, options).found\n}\n\nfunction GlobSync (pattern, options) {\n if (!pattern)\n throw new Error('must provide pattern')\n\n if (typeof options === 'function' || arguments.length === 3)\n throw new TypeError('callback provided to sync glob\\n'+\n 'See: https://github.com/isaacs/node-glob/issues/167')\n\n if (!(this instanceof GlobSync))\n return new GlobSync(pattern, options)\n\n setopts(this, pattern, options)\n\n if (this.noprocess)\n return this\n\n var n = this.minimatch.set.length\n this.matches = new Array(n)\n for (var i = 0; i < n; i ++) {\n this._process(this.minimatch.set[i], i, false)\n }\n this._finish()\n}\n\nGlobSync.prototype._finish = function () {\n assert(this instanceof GlobSync)\n if (this.realpath) {\n var self = this\n this.matches.forEach(function (matchset, index) {\n var set = self.matches[index] = Object.create(null)\n for (var p in matchset) {\n try {\n p = self._makeAbs(p)\n var real = fs.realpathSync(p, self.realpathCache)\n set[real] = true\n } catch (er) {\n if (er.syscall === 'stat')\n set[self._makeAbs(p)] = true\n else\n throw er\n }\n }\n })\n }\n common.finish(this)\n}\n\n\nGlobSync.prototype._process = function (pattern, index, inGlobStar) {\n assert(this instanceof GlobSync)\n\n // Get the first [n] parts of pattern that are all strings.\n var n = 0\n while (typeof pattern[n] === 'string') {\n n ++\n }\n // now n is the index of the first one that is *not* a string.\n\n // See if there's anything else\n var prefix\n switch (n) {\n // if not, then this is rather simple\n case pattern.length:\n this._processSimple(pattern.join('/'), index)\n return\n\n case 0:\n // pattern *starts* with some non-trivial item.\n // going to readdir(cwd), but not include the prefix in matches.\n prefix = null\n break\n\n default:\n // pattern has some string bits in the front.\n // whatever it starts with, whether that's 'absolute' like /foo/bar,\n // or 'relative' like '../baz'\n prefix = pattern.slice(0, n).join('/')\n break\n }\n\n var remain = pattern.slice(n)\n\n // get the list of entries.\n var read\n if (prefix === null)\n read = '.'\n else if (isAbsolute(prefix) || isAbsolute(pattern.join('/'))) {\n if (!prefix || !isAbsolute(prefix))\n prefix = '/' + prefix\n read = prefix\n } else\n read = prefix\n\n var abs = this._makeAbs(read)\n\n //if ignored, skip processing\n if (childrenIgnored(this, read))\n return\n\n var isGlobStar = remain[0] === minimatch.GLOBSTAR\n if (isGlobStar)\n this._processGlobStar(prefix, read, abs, remain, index, inGlobStar)\n else\n this._processReaddir(prefix, read, abs, remain, index, inGlobStar)\n}\n\n\nGlobSync.prototype._processReaddir = function (prefix, read, abs, remain, index, inGlobStar) {\n var entries = this._readdir(abs, inGlobStar)\n\n // if the abs isn't a dir, then nothing can match!\n if (!entries)\n return\n\n // It will only match dot entries if it starts with a dot, or if\n // dot is set. Stuff like @(.foo|.bar) isn't allowed.\n var pn = remain[0]\n var negate = !!this.minimatch.negate\n var rawGlob = pn._glob\n var dotOk = this.dot || rawGlob.charAt(0) === '.'\n\n var matchedEntries = []\n for (var i = 0; i < entries.length; i++) {\n var e = entries[i]\n if (e.charAt(0) !== '.' || dotOk) {\n var m\n if (negate && !prefix) {\n m = !e.match(pn)\n } else {\n m = e.match(pn)\n }\n if (m)\n matchedEntries.push(e)\n }\n }\n\n var len = matchedEntries.length\n // If there are no matched entries, then nothing matches.\n if (len === 0)\n return\n\n // if this is the last remaining pattern bit, then no need for\n // an additional stat *unless* the user has specified mark or\n // stat explicitly. We know they exist, since readdir returned\n // them.\n\n if (remain.length === 1 && !this.mark && !this.stat) {\n if (!this.matches[index])\n this.matches[index] = Object.create(null)\n\n for (var i = 0; i < len; i ++) {\n var e = matchedEntries[i]\n if (prefix) {\n if (prefix.slice(-1) !== '/')\n e = prefix + '/' + e\n else\n e = prefix + e\n }\n\n if (e.charAt(0) === '/' && !this.nomount) {\n e = path.join(this.root, e)\n }\n this.matches[index][e] = true\n }\n // This was the last one, and no stats were needed\n return\n }\n\n // now test all matched entries as stand-ins for that part\n // of the pattern.\n remain.shift()\n for (var i = 0; i < len; i ++) {\n var e = matchedEntries[i]\n var newPattern\n if (prefix)\n newPattern = [prefix, e]\n else\n newPattern = [e]\n this._process(newPattern.concat(remain), index, inGlobStar)\n }\n}\n\n\nGlobSync.prototype._emitMatch = function (index, e) {\n var abs = this._makeAbs(e)\n if (this.mark)\n e = this._mark(e)\n\n if (this.matches[index][e])\n return\n\n if (this.nodir) {\n var c = this.cache[this._makeAbs(e)]\n if (c === 'DIR' || Array.isArray(c))\n return\n }\n\n this.matches[index][e] = true\n if (this.stat)\n this._stat(e)\n}\n\n\nGlobSync.prototype._readdirInGlobStar = function (abs) {\n // follow all symlinked directories forever\n // just proceed as if this is a non-globstar situation\n if (this.follow)\n return this._readdir(abs, false)\n\n var entries\n var lstat\n var stat\n try {\n lstat = fs.lstatSync(abs)\n } catch (er) {\n // lstat failed, doesn't exist\n return null\n }\n\n var isSym = lstat.isSymbolicLink()\n this.symlinks[abs] = isSym\n\n // If it's not a symlink or a dir, then it's definitely a regular file.\n // don't bother doing a readdir in that case.\n if (!isSym && !lstat.isDirectory())\n this.cache[abs] = 'FILE'\n else\n entries = this._readdir(abs, false)\n\n return entries\n}\n\nGlobSync.prototype._readdir = function (abs, inGlobStar) {\n var entries\n\n if (inGlobStar && !ownProp(this.symlinks, abs))\n return this._readdirInGlobStar(abs)\n\n if (ownProp(this.cache, abs)) {\n var c = this.cache[abs]\n if (!c || c === 'FILE')\n return null\n\n if (Array.isArray(c))\n return c\n }\n\n try {\n return this._readdirEntries(abs, fs.readdirSync(abs))\n } catch (er) {\n this._readdirError(abs, er)\n return null\n }\n}\n\nGlobSync.prototype._readdirEntries = function (abs, entries) {\n // if we haven't asked to stat everything, then just\n // assume that everything in there exists, so we can avoid\n // having to stat it a second time.\n if (!this.mark && !this.stat) {\n for (var i = 0; i < entries.length; i ++) {\n var e = entries[i]\n if (abs === '/')\n e = abs + e\n else\n e = abs + '/' + e\n this.cache[e] = true\n }\n }\n\n this.cache[abs] = entries\n\n // mark and cache dir-ness\n return entries\n}\n\nGlobSync.prototype._readdirError = function (f, er) {\n // handle errors, and cache the information\n switch (er.code) {\n case 'ENOTSUP': // https://github.com/isaacs/node-glob/issues/205\n case 'ENOTDIR': // totally normal. means it *does* exist.\n this.cache[this._makeAbs(f)] = 'FILE'\n break\n\n case 'ENOENT': // not terribly unusual\n case 'ELOOP':\n case 'ENAMETOOLONG':\n case 'UNKNOWN':\n this.cache[this._makeAbs(f)] = false\n break\n\n default: // some unusual error. Treat as failure.\n this.cache[this._makeAbs(f)] = false\n if (this.strict)\n throw er\n if (!this.silent)\n console.error('glob error', er)\n break\n }\n}\n\nGlobSync.prototype._processGlobStar = function (prefix, read, abs, remain, index, inGlobStar) {\n\n var entries = this._readdir(abs, inGlobStar)\n\n // no entries means not a dir, so it can never have matches\n // foo.txt/** doesn't match foo.txt\n if (!entries)\n return\n\n // test without the globstar, and with every child both below\n // and replacing the globstar.\n var remainWithoutGlobStar = remain.slice(1)\n var gspref = prefix ? [ prefix ] : []\n var noGlobStar = gspref.concat(remainWithoutGlobStar)\n\n // the noGlobStar pattern exits the inGlobStar state\n this._process(noGlobStar, index, false)\n\n var len = entries.length\n var isSym = this.symlinks[abs]\n\n // If it's a symlink, and we're in a globstar, then stop\n if (isSym && inGlobStar)\n return\n\n for (var i = 0; i < len; i++) {\n var e = entries[i]\n if (e.charAt(0) === '.' && !this.dot)\n continue\n\n // these two cases enter the inGlobStar state\n var instead = gspref.concat(entries[i], remainWithoutGlobStar)\n this._process(instead, index, true)\n\n var below = gspref.concat(entries[i], remain)\n this._process(below, index, true)\n }\n}\n\nGlobSync.prototype._processSimple = function (prefix, index) {\n // XXX review this. Shouldn't it be doing the mounting etc\n // before doing stat? kinda weird?\n var exists = this._stat(prefix)\n\n if (!this.matches[index])\n this.matches[index] = Object.create(null)\n\n // If it doesn't exist, then just mark the lack of results\n if (!exists)\n return\n\n if (prefix && isAbsolute(prefix) && !this.nomount) {\n var trail = /[\\/\\\\]$/.test(prefix)\n if (prefix.charAt(0) === '/') {\n prefix = path.join(this.root, prefix)\n } else {\n prefix = path.resolve(this.root, prefix)\n if (trail)\n prefix += '/'\n }\n }\n\n if (process.platform === 'win32')\n prefix = prefix.replace(/\\\\/g, '/')\n\n // Mark this as a match\n this.matches[index][prefix] = true\n}\n\n// Returns either 'DIR', 'FILE', or false\nGlobSync.prototype._stat = function (f) {\n var abs = this._makeAbs(f)\n var needDir = f.slice(-1) === '/'\n\n if (f.length > this.maxLength)\n return false\n\n if (!this.stat && ownProp(this.cache, abs)) {\n var c = this.cache[abs]\n\n if (Array.isArray(c))\n c = 'DIR'\n\n // It exists, but maybe not how we need it\n if (!needDir || c === 'DIR')\n return c\n\n if (needDir && c === 'FILE')\n return false\n\n // otherwise we have to stat, because maybe c=true\n // if we know it exists, but not what it is.\n }\n\n var exists\n var stat = this.statCache[abs]\n if (!stat) {\n var lstat\n try {\n lstat = fs.lstatSync(abs)\n } catch (er) {\n return false\n }\n\n if (lstat.isSymbolicLink()) {\n try {\n stat = fs.statSync(abs)\n } catch (er) {\n stat = lstat\n }\n } else {\n stat = lstat\n }\n }\n\n this.statCache[abs] = stat\n\n var c = stat.isDirectory() ? 'DIR' : 'FILE'\n this.cache[abs] = this.cache[abs] || c\n\n if (needDir && c !== 'DIR')\n return false\n\n return c\n}\n\nGlobSync.prototype._mark = function (p) {\n return common.mark(this, p)\n}\n\nGlobSync.prototype._makeAbs = function (f) {\n return common.makeAbs(this, f)\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob/sync.js\n ** module id = 250\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob/sync.js?"); /***/ }, /* 251 */ /***/ function(module, exports, __webpack_require__) { - eval("// a transform stream is a readable/writable stream where you do\n// something with the data. Sometimes it's called a \"filter\",\n// but that's not a great name for it, since that implies a thing where\n// some bits pass through, and others are simply ignored. (That would\n// be a valid example of a transform, of course.)\n//\n// While the output is causally related to the input, it's not a\n// necessarily symmetric or synchronous transformation. For example,\n// a zlib stream might take multiple plain-text writes(), and then\n// emit a single compressed chunk some time in the future.\n//\n// Here's how this works:\n//\n// The Transform stream has all the aspects of the readable and writable\n// stream classes. When you write(chunk), that calls _write(chunk,cb)\n// internally, and returns false if there's a lot of pending writes\n// buffered up. When you call read(), that calls _read(n) until\n// there's enough pending readable data buffered up.\n//\n// In a transform stream, the written data is placed in a buffer. When\n// _read(n) is called, it transforms the queued up data, calling the\n// buffered _write cb's as it consumes chunks. If consuming a single\n// written chunk would result in multiple output chunks, then the first\n// outputted bit calls the readcb, and subsequent chunks just go into\n// the read buffer, and will cause it to emit 'readable' if necessary.\n//\n// This way, back-pressure is actually determined by the reading side,\n// since _read has to be called to start processing a new chunk. However,\n// a pathological inflate type of transform can cause excessive buffering\n// here. For example, imagine a stream where every byte of input is\n// interpreted as an integer from 0-255, and then results in that many\n// bytes of output. Writing the 4 bytes {ff,ff,ff,ff} would result in\n// 1kb of data being output. In this case, you could write a very small\n// amount of input, and end up with a very large amount of output. In\n// such a pathological inflating mechanism, there'd be no way to tell\n// the system to stop doing the transform. A single 4MB write could\n// cause the system to run out of memory.\n//\n// However, even in such a pathological case, only a single written chunk\n// would be consumed, and then the rest would wait (un-transformed) until\n// the results of the previous transformed chunk were consumed.\n\n'use strict';\n\nmodule.exports = Transform;\n\nvar Duplex = __webpack_require__(247);\n\n/**/\nvar util = __webpack_require__(244);\nutil.inherits = __webpack_require__(245);\n/**/\n\nutil.inherits(Transform, Duplex);\n\n\nfunction TransformState(stream) {\n this.afterTransform = function(er, data) {\n return afterTransform(stream, er, data);\n };\n\n this.needTransform = false;\n this.transforming = false;\n this.writecb = null;\n this.writechunk = null;\n}\n\nfunction afterTransform(stream, er, data) {\n var ts = stream._transformState;\n ts.transforming = false;\n\n var cb = ts.writecb;\n\n if (!cb)\n return stream.emit('error', new Error('no writecb in Transform class'));\n\n ts.writechunk = null;\n ts.writecb = null;\n\n if (data !== null && data !== undefined)\n stream.push(data);\n\n if (cb)\n cb(er);\n\n var rs = stream._readableState;\n rs.reading = false;\n if (rs.needReadable || rs.length < rs.highWaterMark) {\n stream._read(rs.highWaterMark);\n }\n}\n\n\nfunction Transform(options) {\n if (!(this instanceof Transform))\n return new Transform(options);\n\n Duplex.call(this, options);\n\n this._transformState = new TransformState(this);\n\n // when the writable side finishes, then flush out anything remaining.\n var stream = this;\n\n // start out asking for a readable event once data is transformed.\n this._readableState.needReadable = true;\n\n // we have implemented the _read method, and done the other things\n // that Readable wants before the first _read call, so unset the\n // sync guard flag.\n this._readableState.sync = false;\n\n if (options) {\n if (typeof options.transform === 'function')\n this._transform = options.transform;\n\n if (typeof options.flush === 'function')\n this._flush = options.flush;\n }\n\n this.once('prefinish', function() {\n if (typeof this._flush === 'function')\n this._flush(function(er) {\n done(stream, er);\n });\n else\n done(stream);\n });\n}\n\nTransform.prototype.push = function(chunk, encoding) {\n this._transformState.needTransform = false;\n return Duplex.prototype.push.call(this, chunk, encoding);\n};\n\n// This is the part where you do stuff!\n// override this function in implementation classes.\n// 'chunk' is an input chunk.\n//\n// Call `push(newChunk)` to pass along transformed output\n// to the readable side. You may call 'push' zero or more times.\n//\n// Call `cb(err)` when you are done with this chunk. If you pass\n// an error, then that'll put the hurt on the whole operation. If you\n// never call cb(), then you'll never get another chunk.\nTransform.prototype._transform = function(chunk, encoding, cb) {\n throw new Error('not implemented');\n};\n\nTransform.prototype._write = function(chunk, encoding, cb) {\n var ts = this._transformState;\n ts.writecb = cb;\n ts.writechunk = chunk;\n ts.writeencoding = encoding;\n if (!ts.transforming) {\n var rs = this._readableState;\n if (ts.needTransform ||\n rs.needReadable ||\n rs.length < rs.highWaterMark)\n this._read(rs.highWaterMark);\n }\n};\n\n// Doesn't matter what the args are here.\n// _transform does all the work.\n// That we got here means that the readable side wants more data.\nTransform.prototype._read = function(n) {\n var ts = this._transformState;\n\n if (ts.writechunk !== null && ts.writecb && !ts.transforming) {\n ts.transforming = true;\n this._transform(ts.writechunk, ts.writeencoding, ts.afterTransform);\n } else {\n // mark that we need a transform, so that any data that comes in\n // will get processed, now that we've asked for it.\n ts.needTransform = true;\n }\n};\n\n\nfunction done(stream, er) {\n if (er)\n return stream.emit('error', er);\n\n // if there's nothing in the write buffer, then that means\n // that nothing more will ever be provided\n var ws = stream._writableState;\n var ts = stream._transformState;\n\n if (ws.length)\n throw new Error('calling transform done when ws.length != 0');\n\n if (ts.transforming)\n throw new Error('calling transform done when still transforming');\n\n return stream.push(null);\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/ordered-read-streams/~/readable-stream/lib/_stream_transform.js\n ** module id = 251\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/ordered-read-streams/~/readable-stream/lib/_stream_transform.js?"); + eval("/* WEBPACK VAR INJECTION */(function(process) {exports.alphasort = alphasort\nexports.alphasorti = alphasorti\nexports.setopts = setopts\nexports.ownProp = ownProp\nexports.makeAbs = makeAbs\nexports.finish = finish\nexports.mark = mark\nexports.isIgnored = isIgnored\nexports.childrenIgnored = childrenIgnored\n\nfunction ownProp (obj, field) {\n return Object.prototype.hasOwnProperty.call(obj, field)\n}\n\nvar path = __webpack_require__(149)\nvar minimatch = __webpack_require__(244)\nvar isAbsolute = __webpack_require__(249)\nvar Minimatch = minimatch.Minimatch\n\nfunction alphasorti (a, b) {\n return a.toLowerCase().localeCompare(b.toLowerCase())\n}\n\nfunction alphasort (a, b) {\n return a.localeCompare(b)\n}\n\nfunction setupIgnores (self, options) {\n self.ignore = options.ignore || []\n\n if (!Array.isArray(self.ignore))\n self.ignore = [self.ignore]\n\n if (self.ignore.length) {\n self.ignore = self.ignore.map(ignoreMap)\n }\n}\n\nfunction ignoreMap (pattern) {\n var gmatcher = null\n if (pattern.slice(-3) === '/**') {\n var gpattern = pattern.replace(/(\\/\\*\\*)+$/, '')\n gmatcher = new Minimatch(gpattern)\n }\n\n return {\n matcher: new Minimatch(pattern),\n gmatcher: gmatcher\n }\n}\n\nfunction setopts (self, pattern, options) {\n if (!options)\n options = {}\n\n // base-matching: just use globstar for that.\n if (options.matchBase && -1 === pattern.indexOf(\"/\")) {\n if (options.noglobstar) {\n throw new Error(\"base matching requires globstar\")\n }\n pattern = \"**/\" + pattern\n }\n\n self.silent = !!options.silent\n self.pattern = pattern\n self.strict = options.strict !== false\n self.realpath = !!options.realpath\n self.realpathCache = options.realpathCache || Object.create(null)\n self.follow = !!options.follow\n self.dot = !!options.dot\n self.mark = !!options.mark\n self.nodir = !!options.nodir\n if (self.nodir)\n self.mark = true\n self.sync = !!options.sync\n self.nounique = !!options.nounique\n self.nonull = !!options.nonull\n self.nosort = !!options.nosort\n self.nocase = !!options.nocase\n self.stat = !!options.stat\n self.noprocess = !!options.noprocess\n\n self.maxLength = options.maxLength || Infinity\n self.cache = options.cache || Object.create(null)\n self.statCache = options.statCache || Object.create(null)\n self.symlinks = options.symlinks || Object.create(null)\n\n setupIgnores(self, options)\n\n self.changedCwd = false\n var cwd = process.cwd()\n if (!ownProp(options, \"cwd\"))\n self.cwd = cwd\n else {\n self.cwd = options.cwd\n self.changedCwd = path.resolve(options.cwd) !== cwd\n }\n\n self.root = options.root || path.resolve(self.cwd, \"/\")\n self.root = path.resolve(self.root)\n if (process.platform === \"win32\")\n self.root = self.root.replace(/\\\\/g, \"/\")\n\n self.nomount = !!options.nomount\n\n // disable comments and negation unless the user explicitly\n // passes in false as the option.\n options.nonegate = options.nonegate === false ? false : true\n options.nocomment = options.nocomment === false ? false : true\n deprecationWarning(options)\n\n self.minimatch = new Minimatch(pattern, options)\n self.options = self.minimatch.options\n}\n\n// TODO(isaacs): remove entirely in v6\n// exported to reset in tests\nexports.deprecationWarned\nfunction deprecationWarning(options) {\n if (!options.nonegate || !options.nocomment) {\n if (process.noDeprecation !== true && !exports.deprecationWarned) {\n var msg = 'glob WARNING: comments and negation will be disabled in v6'\n if (process.throwDeprecation)\n throw new Error(msg)\n else if (process.traceDeprecation)\n console.trace(msg)\n else\n console.error(msg)\n\n exports.deprecationWarned = true\n }\n }\n}\n\nfunction finish (self) {\n var nou = self.nounique\n var all = nou ? [] : Object.create(null)\n\n for (var i = 0, l = self.matches.length; i < l; i ++) {\n var matches = self.matches[i]\n if (!matches || Object.keys(matches).length === 0) {\n if (self.nonull) {\n // do like the shell, and spit out the literal glob\n var literal = self.minimatch.globSet[i]\n if (nou)\n all.push(literal)\n else\n all[literal] = true\n }\n } else {\n // had matches\n var m = Object.keys(matches)\n if (nou)\n all.push.apply(all, m)\n else\n m.forEach(function (m) {\n all[m] = true\n })\n }\n }\n\n if (!nou)\n all = Object.keys(all)\n\n if (!self.nosort)\n all = all.sort(self.nocase ? alphasorti : alphasort)\n\n // at *some* point we statted all of these\n if (self.mark) {\n for (var i = 0; i < all.length; i++) {\n all[i] = self._mark(all[i])\n }\n if (self.nodir) {\n all = all.filter(function (e) {\n return !(/\\/$/.test(e))\n })\n }\n }\n\n if (self.ignore.length)\n all = all.filter(function(m) {\n return !isIgnored(self, m)\n })\n\n self.found = all\n}\n\nfunction mark (self, p) {\n var abs = makeAbs(self, p)\n var c = self.cache[abs]\n var m = p\n if (c) {\n var isDir = c === 'DIR' || Array.isArray(c)\n var slash = p.slice(-1) === '/'\n\n if (isDir && !slash)\n m += '/'\n else if (!isDir && slash)\n m = m.slice(0, -1)\n\n if (m !== p) {\n var mabs = makeAbs(self, m)\n self.statCache[mabs] = self.statCache[abs]\n self.cache[mabs] = self.cache[abs]\n }\n }\n\n return m\n}\n\n// lotta situps...\nfunction makeAbs (self, f) {\n var abs = f\n if (f.charAt(0) === '/') {\n abs = path.join(self.root, f)\n } else if (isAbsolute(f) || f === '') {\n abs = f\n } else if (self.changedCwd) {\n abs = path.resolve(self.cwd, f)\n } else {\n abs = path.resolve(f)\n }\n return abs\n}\n\n\n// Return true, if pattern ends with globstar '**', for the accompanying parent directory.\n// Ex:- If node_modules/** is the pattern, add 'node_modules' to ignore list along with it's contents\nfunction isIgnored (self, path) {\n if (!self.ignore.length)\n return false\n\n return self.ignore.some(function(item) {\n return item.matcher.match(path) || !!(item.gmatcher && item.gmatcher.match(path))\n })\n}\n\nfunction childrenIgnored (self, path) {\n if (!self.ignore.length)\n return false\n\n return self.ignore.some(function(item) {\n return !!(item.gmatcher && item.gmatcher.match(path))\n })\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob/common.js\n ** module id = 251\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob/common.js?"); /***/ }, /* 252 */ /***/ function(module, exports, __webpack_require__) { - eval("// a passthrough stream.\n// basically just the most minimal sort of Transform stream.\n// Every written chunk gets output as-is.\n\n'use strict';\n\nmodule.exports = PassThrough;\n\nvar Transform = __webpack_require__(251);\n\n/**/\nvar util = __webpack_require__(244);\nutil.inherits = __webpack_require__(245);\n/**/\n\nutil.inherits(PassThrough, Transform);\n\nfunction PassThrough(options) {\n if (!(this instanceof PassThrough))\n return new PassThrough(options);\n\n Transform.call(this, options);\n}\n\nPassThrough.prototype._transform = function(chunk, encoding, cb) {\n cb(null, chunk);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/ordered-read-streams/~/readable-stream/lib/_stream_passthrough.js\n ** module id = 252\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/ordered-read-streams/~/readable-stream/lib/_stream_passthrough.js?"); + eval("/* WEBPACK VAR INJECTION */(function(process) {var wrappy = __webpack_require__(253)\nvar reqs = Object.create(null)\nvar once = __webpack_require__(254)\n\nmodule.exports = wrappy(inflight)\n\nfunction inflight (key, cb) {\n if (reqs[key]) {\n reqs[key].push(cb)\n return null\n } else {\n reqs[key] = [cb]\n return makeres(key)\n }\n}\n\nfunction makeres (key) {\n return once(function RES () {\n var cbs = reqs[key]\n var len = cbs.length\n var args = slice(arguments)\n for (var i = 0; i < len; i++) {\n cbs[i].apply(null, args)\n }\n if (cbs.length > len) {\n // added more in the interim.\n // de-zalgo, just in case, but don't call again.\n cbs.splice(0, len)\n process.nextTick(function () {\n RES.apply(null, args)\n })\n } else {\n delete reqs[key]\n }\n })\n}\n\nfunction slice (args) {\n var length = args.length\n var array = []\n\n for (var i = 0; i < length; i++) array[i] = args[i]\n return array\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/inflight/inflight.js\n ** module id = 252\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/inflight/inflight.js?"); /***/ }, /* 253 */ /***/ function(module, exports) { - eval("'use strict';\n\nvar isStream = module.exports = function (stream) {\n\treturn stream !== null && typeof stream === 'object' && typeof stream.pipe === 'function';\n};\n\nisStream.writable = function (stream) {\n\treturn isStream(stream) && stream.writable !== false && typeof stream._write == 'function' && typeof stream._writableState == 'object';\n};\n\nisStream.readable = function (stream) {\n\treturn isStream(stream) && stream.readable !== false && typeof stream._read == 'function' && typeof stream._readableState == 'object';\n};\n\nisStream.duplex = function (stream) {\n\treturn isStream.writable(stream) && isStream.readable(stream);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/ordered-read-streams/~/is-stream/index.js\n ** module id = 253\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/ordered-read-streams/~/is-stream/index.js?"); + eval("// Returns a wrapper function that returns a wrapped callback\n// The wrapper function should do some stuff, and return a\n// presumably different callback function.\n// This makes sure that own properties are retained, so that\n// decorations and such are not lost along the way.\nmodule.exports = wrappy\nfunction wrappy (fn, cb) {\n if (fn && cb) return wrappy(fn)(cb)\n\n if (typeof fn !== 'function')\n throw new TypeError('need wrapper function')\n\n Object.keys(fn).forEach(function (k) {\n wrapper[k] = fn[k]\n })\n\n return wrapper\n\n function wrapper() {\n var args = new Array(arguments.length)\n for (var i = 0; i < args.length; i++) {\n args[i] = arguments[i]\n }\n var ret = fn.apply(this, args)\n var cb = args[args.length-1]\n if (typeof ret === 'function' && ret !== cb) {\n Object.keys(cb).forEach(function (k) {\n ret[k] = cb[k]\n })\n }\n return ret\n }\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/wrappy/wrappy.js\n ** module id = 253\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/wrappy/wrappy.js?"); /***/ }, /* 254 */ /***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(global) {'use strict';\n\nvar filter = __webpack_require__(255).obj;\nvar ES6Set;\nif (typeof global.Set === 'function') {\n ES6Set = global.Set;\n} else {\n ES6Set = function() {\n this.keys = [];\n this.has = function(val) {\n return this.keys.indexOf(val) !== -1;\n },\n this.add = function(val) {\n this.keys.push(val);\n }\n }\n}\n\nfunction prop(propName) {\n return function (data) {\n return data[propName];\n };\n}\n\nmodule.exports = unique;\nfunction unique(propName, keyStore) {\n keyStore = keyStore || new ES6Set();\n\n var keyfn = JSON.stringify;\n if (typeof propName === 'string') {\n keyfn = prop(propName);\n } else if (typeof propName === 'function') {\n keyfn = propName;\n }\n\n return filter(function (data) {\n var key = keyfn(data);\n\n if (keyStore.has(key)) {\n return false;\n }\n\n keyStore.add(key);\n return true;\n });\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/unique-stream/index.js\n ** module id = 254\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/unique-stream/index.js?"); + eval("var wrappy = __webpack_require__(253)\nmodule.exports = wrappy(once)\n\nonce.proto = once(function () {\n Object.defineProperty(Function.prototype, 'once', {\n value: function () {\n return once(this)\n },\n configurable: true\n })\n})\n\nfunction once (fn) {\n var f = function () {\n if (f.called) return f.value\n f.called = true\n return f.value = fn.apply(this, arguments)\n }\n f.called = false\n return f\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/once/once.js\n ** module id = 254\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/once/once.js?"); /***/ }, /* 255 */ /***/ function(module, exports, __webpack_require__) { - eval("\"use strict\";\n\nmodule.exports = make\nmodule.exports.ctor = ctor\nmodule.exports.objCtor = objCtor\nmodule.exports.obj = obj\n\nvar through2 = __webpack_require__(256)\nvar xtend = __webpack_require__(269)\n\nfunction ctor(options, fn) {\n if (typeof options == \"function\") {\n fn = options\n options = {}\n }\n\n var Filter = through2.ctor(options, function (chunk, encoding, callback) {\n if (this.options.wantStrings) chunk = chunk.toString()\n if (fn.call(this, chunk, this._index++)) this.push(chunk)\n return callback()\n })\n Filter.prototype._index = 0\n return Filter\n}\n\nfunction objCtor(options, fn) {\n if (typeof options === \"function\") {\n fn = options\n options = {}\n }\n options = xtend({objectMode: true, highWaterMark: 16}, options)\n return ctor(options, fn)\n}\n\nfunction make(options, fn) {\n return ctor(options, fn)()\n}\n\nfunction obj(options, fn) {\n if (typeof options === \"function\") {\n fn = options\n options = {}\n }\n options = xtend({objectMode: true, highWaterMark: 16}, options)\n return make(options, fn)\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/unique-stream/~/through2-filter/index.js\n ** module id = 255\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/unique-stream/~/through2-filter/index.js?"); + eval("/*!\n * micromatch \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nvar expand = __webpack_require__(256);\nvar utils = __webpack_require__(257);\n\n/**\n * The main function. Pass an array of filepaths,\n * and a string or array of glob patterns\n *\n * @param {Array|String} `files`\n * @param {Array|String} `patterns`\n * @param {Object} `opts`\n * @return {Array} Array of matches\n */\n\nfunction micromatch(files, patterns, opts) {\n if (!files || !patterns) return [];\n opts = opts || {};\n\n if (typeof opts.cache === 'undefined') {\n opts.cache = true;\n }\n\n if (!Array.isArray(patterns)) {\n return match(files, patterns, opts);\n }\n\n var len = patterns.length, i = 0;\n var omit = [], keep = [];\n\n while (len--) {\n var glob = patterns[i++];\n if (typeof glob === 'string' && glob.charCodeAt(0) === 33 /* ! */) {\n omit.push.apply(omit, match(files, glob.slice(1), opts));\n } else {\n keep.push.apply(keep, match(files, glob, opts));\n }\n }\n return utils.diff(keep, omit);\n}\n\n/**\n * Pass an array of files and a glob pattern as a string.\n *\n * This function is called by the main `micromatch` function\n * If you only need to pass a single pattern you might get\n * very minor speed improvements using this function.\n *\n * @param {Array} `files`\n * @param {Array} `pattern`\n * @param {Object} `options`\n * @return {Array}\n */\n\nfunction match(files, pattern, opts) {\n if (utils.typeOf(files) !== 'string' && !Array.isArray(files)) {\n throw new Error(msg('match', 'files', 'a string or array'));\n }\n\n files = utils.arrayify(files);\n opts = opts || {};\n\n var negate = opts.negate || false;\n var orig = pattern;\n\n if (typeof pattern === 'string') {\n negate = pattern.charAt(0) === '!';\n if (negate) {\n pattern = pattern.slice(1);\n }\n\n // we need to remove the character regardless,\n // so the above logic is still needed\n if (opts.nonegate === true) {\n negate = false;\n }\n }\n\n var _isMatch = matcher(pattern, opts);\n var len = files.length, i = 0;\n var res = [];\n\n while (i < len) {\n var file = files[i++];\n var fp = utils.unixify(file, opts);\n\n if (!_isMatch(fp)) { continue; }\n res.push(fp);\n }\n\n if (res.length === 0) {\n if (opts.failglob === true) {\n throw new Error('micromatch.match() found no matches for: \"' + orig + '\".');\n }\n\n if (opts.nonull || opts.nullglob) {\n res.push(utils.unescapeGlob(orig));\n }\n }\n\n // if `negate` was defined, diff negated files\n if (negate) { res = utils.diff(files, res); }\n\n // if `ignore` was defined, diff ignored filed\n if (opts.ignore && opts.ignore.length) {\n pattern = opts.ignore;\n opts = utils.omit(opts, ['ignore']);\n res = utils.diff(res, micromatch(res, pattern, opts));\n }\n\n if (opts.nodupes) {\n return utils.unique(res);\n }\n return res;\n}\n\n/**\n * Returns a function that takes a glob pattern or array of glob patterns\n * to be used with `Array#filter()`. (Internally this function generates\n * the matching function using the [matcher] method).\n *\n * ```js\n * var fn = mm.filter('[a-c]');\n * ['a', 'b', 'c', 'd', 'e'].filter(fn);\n * //=> ['a', 'b', 'c']\n * ```\n *\n * @param {String|Array} `patterns` Can be a glob or array of globs.\n * @param {Options} `opts` Options to pass to the [matcher] method.\n * @return {Function} Filter function to be passed to `Array#filter()`.\n */\n\nfunction filter(patterns, opts) {\n if (!Array.isArray(patterns) && typeof patterns !== 'string') {\n throw new TypeError(msg('filter', 'patterns', 'a string or array'));\n }\n\n patterns = utils.arrayify(patterns);\n var len = patterns.length, i = 0;\n var patternMatchers = Array(len);\n while (i < len) {\n patternMatchers[i] = matcher(patterns[i++], opts);\n }\n\n return function(fp) {\n if (fp == null) return [];\n var len = patternMatchers.length, i = 0;\n var res = true;\n\n fp = utils.unixify(fp, opts);\n while (i < len) {\n var fn = patternMatchers[i++];\n if (!fn(fp)) {\n res = false;\n break;\n }\n }\n return res;\n };\n}\n\n/**\n * Returns true if the filepath contains the given\n * pattern. Can also return a function for matching.\n *\n * ```js\n * isMatch('foo.md', '*.md', {});\n * //=> true\n *\n * isMatch('*.md', {})('foo.md')\n * //=> true\n * ```\n *\n * @param {String} `fp`\n * @param {String} `pattern`\n * @param {Object} `opts`\n * @return {Boolean}\n */\n\nfunction isMatch(fp, pattern, opts) {\n if (typeof fp !== 'string') {\n throw new TypeError(msg('isMatch', 'filepath', 'a string'));\n }\n\n fp = utils.unixify(fp, opts);\n if (utils.typeOf(pattern) === 'object') {\n return matcher(fp, pattern);\n }\n return matcher(pattern, opts)(fp);\n}\n\n/**\n * Returns true if the filepath matches the\n * given pattern.\n */\n\nfunction contains(fp, pattern, opts) {\n if (typeof fp !== 'string') {\n throw new TypeError(msg('contains', 'pattern', 'a string'));\n }\n\n opts = opts || {};\n opts.contains = (pattern !== '');\n fp = utils.unixify(fp, opts);\n\n if (opts.contains && !utils.isGlob(pattern)) {\n return fp.indexOf(pattern) !== -1;\n }\n return matcher(pattern, opts)(fp);\n}\n\n/**\n * Returns true if a file path matches any of the\n * given patterns.\n *\n * @param {String} `fp` The filepath to test.\n * @param {String|Array} `patterns` Glob patterns to use.\n * @param {Object} `opts` Options to pass to the `matcher()` function.\n * @return {String}\n */\n\nfunction any(fp, patterns, opts) {\n if (!Array.isArray(patterns) && typeof patterns !== 'string') {\n throw new TypeError(msg('any', 'patterns', 'a string or array'));\n }\n\n patterns = utils.arrayify(patterns);\n var len = patterns.length;\n\n fp = utils.unixify(fp, opts);\n while (len--) {\n var isMatch = matcher(patterns[len], opts);\n if (isMatch(fp)) {\n return true;\n }\n }\n return false;\n}\n\n/**\n * Filter the keys of an object with the given `glob` pattern\n * and `options`\n *\n * @param {Object} `object`\n * @param {Pattern} `object`\n * @return {Array}\n */\n\nfunction matchKeys(obj, glob, options) {\n if (utils.typeOf(obj) !== 'object') {\n throw new TypeError(msg('matchKeys', 'first argument', 'an object'));\n }\n\n var fn = matcher(glob, options);\n var res = {};\n\n for (var key in obj) {\n if (obj.hasOwnProperty(key) && fn(key)) {\n res[key] = obj[key];\n }\n }\n return res;\n}\n\n/**\n * Return a function for matching based on the\n * given `pattern` and `options`.\n *\n * @param {String} `pattern`\n * @param {Object} `options`\n * @return {Function}\n */\n\nfunction matcher(pattern, opts) {\n // pattern is a function\n if (typeof pattern === 'function') {\n return pattern;\n }\n // pattern is a regex\n if (pattern instanceof RegExp) {\n return function(fp) {\n return pattern.test(fp);\n };\n }\n\n if (typeof pattern !== 'string') {\n throw new TypeError(msg('matcher', 'pattern', 'a string, regex, or function'));\n }\n\n // strings, all the way down...\n pattern = utils.unixify(pattern, opts);\n\n // pattern is a non-glob string\n if (!utils.isGlob(pattern)) {\n return utils.matchPath(pattern, opts);\n }\n // pattern is a glob string\n var re = makeRe(pattern, opts);\n\n // `matchBase` is defined\n if (opts && opts.matchBase) {\n return utils.hasFilename(re, opts);\n }\n // `matchBase` is not defined\n return function(fp) {\n fp = utils.unixify(fp, opts);\n return re.test(fp);\n };\n}\n\n/**\n * Create and cache a regular expression for matching\n * file paths.\n *\n * If the leading character in the `glob` is `!`, a negation\n * regex is returned.\n *\n * @param {String} `glob`\n * @param {Object} `options`\n * @return {RegExp}\n */\n\nfunction toRegex(glob, options) {\n // clone options to prevent mutating the original object\n var opts = Object.create(options || {});\n var flags = opts.flags || '';\n if (opts.nocase && flags.indexOf('i') === -1) {\n flags += 'i';\n }\n\n var parsed = expand(glob, opts);\n\n // pass in tokens to avoid parsing more than once\n opts.negated = opts.negated || parsed.negated;\n opts.negate = opts.negated;\n glob = wrapGlob(parsed.pattern, opts);\n var re;\n\n try {\n re = new RegExp(glob, flags);\n return re;\n } catch (err) {\n err.reason = 'micromatch invalid regex: (' + re + ')';\n if (opts.strict) throw new SyntaxError(err);\n }\n\n // we're only here if a bad pattern was used and the user\n // passed `options.silent`, so match nothing\n return /$^/;\n}\n\n/**\n * Create the regex to do the matching. If the leading\n * character in the `glob` is `!` a negation regex is returned.\n *\n * @param {String} `glob`\n * @param {Boolean} `negate`\n */\n\nfunction wrapGlob(glob, opts) {\n var prefix = (opts && !opts.contains) ? '^' : '';\n var after = (opts && !opts.contains) ? '$' : '';\n glob = ('(?:' + glob + ')' + after);\n if (opts && opts.negate) {\n return prefix + ('(?!^' + glob + ').*$');\n }\n return prefix + glob;\n}\n\n/**\n * Wrap `toRegex` to memoize the generated regex when\n * the string and options don't change\n */\n\nfunction makeRe(glob, opts) {\n if (utils.typeOf(glob) !== 'string') {\n throw new Error(msg('makeRe', 'glob', 'a string'));\n }\n return utils.cache(toRegex, glob, opts);\n}\n\n/**\n * Make error messages consistent. Follows this format:\n *\n * ```js\n * msg(methodName, argNumber, nativeType);\n * // example:\n * msg('matchKeys', 'first', 'an object');\n * ```\n *\n * @param {String} `method`\n * @param {String} `num`\n * @param {String} `type`\n * @return {String}\n */\n\nfunction msg(method, what, type) {\n return 'micromatch.' + method + '(): ' + what + ' should be ' + type + '.';\n}\n\n/**\n * Public methods\n */\n\n/* eslint no-multi-spaces: 0 */\nmicromatch.any = any;\nmicromatch.braces = micromatch.braceExpand = utils.braces;\nmicromatch.contains = contains;\nmicromatch.expand = expand;\nmicromatch.filter = filter;\nmicromatch.isMatch = isMatch;\nmicromatch.makeRe = makeRe;\nmicromatch.match = match;\nmicromatch.matcher = matcher;\nmicromatch.matchKeys = matchKeys;\n\n/**\n * Expose `micromatch`\n */\n\nmodule.exports = micromatch;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/micromatch/index.js\n ** module id = 255\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/micromatch/index.js?"); /***/ }, /* 256 */ /***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(process) {var Transform = __webpack_require__(257)\n , inherits = __webpack_require__(140).inherits\n , xtend = __webpack_require__(269)\n\nfunction DestroyableTransform(opts) {\n Transform.call(this, opts)\n this._destroyed = false\n}\n\ninherits(DestroyableTransform, Transform)\n\nDestroyableTransform.prototype.destroy = function(err) {\n if (this._destroyed) return\n this._destroyed = true\n \n var self = this\n process.nextTick(function() {\n if (err)\n self.emit('error', err)\n self.emit('close')\n })\n}\n\n// a noop _transform function\nfunction noop (chunk, enc, callback) {\n callback(null, chunk)\n}\n\n\n// create a new export function, used by both the main export and\n// the .ctor export, contains common logic for dealing with arguments\nfunction through2 (construct) {\n return function (options, transform, flush) {\n if (typeof options == 'function') {\n flush = transform\n transform = options\n options = {}\n }\n\n if (typeof transform != 'function')\n transform = noop\n\n if (typeof flush != 'function')\n flush = null\n\n return construct(options, transform, flush)\n }\n}\n\n\n// main export, just make me a transform stream!\nmodule.exports = through2(function (options, transform, flush) {\n var t2 = new DestroyableTransform(options)\n\n t2._transform = transform\n\n if (flush)\n t2._flush = flush\n\n return t2\n})\n\n\n// make me a reusable prototype that I can `new`, or implicitly `new`\n// with a constructor call\nmodule.exports.ctor = through2(function (options, transform, flush) {\n function Through2 (override) {\n if (!(this instanceof Through2))\n return new Through2(override)\n\n this.options = xtend(options, override)\n\n DestroyableTransform.call(this, this.options)\n }\n\n inherits(Through2, DestroyableTransform)\n\n Through2.prototype._transform = transform\n\n if (flush)\n Through2.prototype._flush = flush\n\n return Through2\n})\n\n\nmodule.exports.obj = through2(function (options, transform, flush) {\n var t2 = new DestroyableTransform(xtend({ objectMode: true, highWaterMark: 16 }, options))\n\n t2._transform = transform\n\n if (flush)\n t2._flush = flush\n\n return t2\n})\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(83)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/unique-stream/~/through2-filter/~/through2/through2.js\n ** module id = 256\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/unique-stream/~/through2-filter/~/through2/through2.js?"); + eval("/*!\n * micromatch \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nvar utils = __webpack_require__(257);\nvar Glob = __webpack_require__(289);\n\n/**\n * Expose `expand`\n */\n\nmodule.exports = expand;\n\n/**\n * Expand a glob pattern to resolve braces and\n * similar patterns before converting to regex.\n *\n * @param {String|Array} `pattern`\n * @param {Array} `files`\n * @param {Options} `opts`\n * @return {Array}\n */\n\nfunction expand(pattern, options) {\n if (typeof pattern !== 'string') {\n throw new TypeError('micromatch.expand(): argument should be a string.');\n }\n\n var glob = new Glob(pattern, options || {});\n var opts = glob.options;\n\n if (!utils.isGlob(pattern)) {\n glob.pattern = glob.pattern.replace(/([\\/.])/g, '\\\\$1');\n return glob;\n }\n\n glob.pattern = glob.pattern.replace(/(\\+)(?!\\()/g, '\\\\$1');\n glob.pattern = glob.pattern.split('$').join('\\\\$');\n\n if (typeof opts.braces !== 'boolean' && typeof opts.nobraces !== 'boolean') {\n opts.braces = true;\n }\n\n if (glob.pattern === '.*') {\n return {\n pattern: '\\\\.' + star,\n tokens: tok,\n options: opts\n };\n }\n\n if (glob.pattern === '*') {\n return {\n pattern: oneStar(opts.dot),\n tokens: tok,\n options: opts\n };\n }\n\n // parse the glob pattern into tokens\n glob.parse();\n var tok = glob.tokens;\n tok.is.negated = opts.negated;\n\n // dotfile handling\n if ((opts.dotfiles === true || tok.is.dotfile) && opts.dot !== false) {\n opts.dotfiles = true;\n opts.dot = true;\n }\n\n if ((opts.dotdirs === true || tok.is.dotdir) && opts.dot !== false) {\n opts.dotdirs = true;\n opts.dot = true;\n }\n\n // check for braces with a dotfile pattern\n if (/[{,]\\./.test(glob.pattern)) {\n opts.makeRe = false;\n opts.dot = true;\n }\n\n if (opts.nonegate !== true) {\n opts.negated = glob.negated;\n }\n\n // if the leading character is a dot or a slash, escape it\n if (glob.pattern.charAt(0) === '.' && glob.pattern.charAt(1) !== '/') {\n glob.pattern = '\\\\' + glob.pattern;\n }\n\n /**\n * Extended globs\n */\n\n // expand braces, e.g `{1..5}`\n glob.track('before braces');\n if (tok.is.braces) {\n glob.braces();\n }\n glob.track('after braces');\n\n // expand extglobs, e.g `foo/!(a|b)`\n glob.track('before extglob');\n if (tok.is.extglob) {\n glob.extglob();\n }\n glob.track('after extglob');\n\n // expand brackets, e.g `[[:alpha:]]`\n glob.track('before brackets');\n if (tok.is.brackets) {\n glob.brackets();\n }\n glob.track('after brackets');\n\n // special patterns\n glob._replace('[!', '[^');\n glob._replace('(?', '(%~');\n glob._replace(/\\[\\]/, '\\\\[\\\\]');\n glob._replace('/[', '/' + (opts.dot ? dotfiles : nodot) + '[', true);\n glob._replace('/?', '/' + (opts.dot ? dotfiles : nodot) + '[^/]', true);\n glob._replace('/.', '/(?=.)\\\\.', true);\n\n // windows drives\n glob._replace(/^(\\w):([\\\\\\/]+?)/gi, '(?=.)$1:$2', true);\n\n // negate slashes in exclusion ranges\n if (glob.pattern.indexOf('[^') !== -1) {\n glob.pattern = negateSlash(glob.pattern);\n }\n\n if (opts.globstar !== false && glob.pattern === '**') {\n glob.pattern = globstar(opts.dot);\n\n } else {\n // '/*/*/*' => '(?:/*){3}'\n glob._replace(/(\\/\\*)+/g, function(match) {\n var len = match.length / 2;\n if (len === 1) { return match; }\n return '(?:\\\\/*){' + len + '}';\n });\n\n glob.pattern = balance(glob.pattern, '[', ']');\n glob.escape(glob.pattern);\n\n // if the pattern has `**`\n if (tok.is.globstar) {\n glob.pattern = collapse(glob.pattern, '/**');\n glob.pattern = collapse(glob.pattern, '**/');\n glob._replace('/**/', '(?:/' + globstar(opts.dot) + '/|/)', true);\n glob._replace(/\\*{2,}/g, '**');\n\n // 'foo/*'\n glob._replace(/(\\w+)\\*(?!\\/)/g, '$1[^/]*?', true);\n glob._replace(/\\*\\*\\/\\*(\\w)/g, globstar(opts.dot) + '\\\\/' + (opts.dot ? dotfiles : nodot) + '[^/]*?$1', true);\n\n if (opts.dot !== true) {\n glob._replace(/\\*\\*\\/(.)/g, '(?:**\\\\/|)$1');\n }\n\n // 'foo/**' or '{**,*}', but not 'foo**'\n if (tok.path.dirname !== '' || /,\\*\\*|\\*\\*,/.test(glob.orig)) {\n glob._replace('**', globstar(opts.dot), true);\n }\n }\n\n // ends with /*\n glob._replace(/\\/\\*$/, '\\\\/' + oneStar(opts.dot), true);\n // ends with *, no slashes\n glob._replace(/(?!\\/)\\*$/, star, true);\n // has 'n*.' (partial wildcard w/ file extension)\n glob._replace(/([^\\/]+)\\*/, '$1' + oneStar(true), true);\n // has '*'\n glob._replace('*', oneStar(opts.dot), true);\n glob._replace('?.', '?\\\\.', true);\n glob._replace('?:', '?:', true);\n\n glob._replace(/\\?+/g, function(match) {\n var len = match.length;\n if (len === 1) {\n return qmark;\n }\n return qmark + '{' + len + '}';\n });\n\n // escape '.abc' => '\\\\.abc'\n glob._replace(/\\.([*\\w]+)/g, '\\\\.$1');\n // fix '[^\\\\\\\\/]'\n glob._replace(/\\[\\^[\\\\\\/]+\\]/g, qmark);\n // '///' => '\\/'\n glob._replace(/\\/+/g, '\\\\/');\n // '\\\\\\\\\\\\' => '\\\\'\n glob._replace(/\\\\{2,}/g, '\\\\');\n }\n\n // unescape previously escaped patterns\n glob.unescape(glob.pattern);\n glob._replace('__UNESC_STAR__', '*');\n\n // escape dots that follow qmarks\n glob._replace('?.', '?\\\\.');\n\n // remove unnecessary slashes in character classes\n glob._replace('[^\\\\/]', qmark);\n\n if (glob.pattern.length > 1) {\n if (/^[\\[?*]/.test(glob.pattern)) {\n // only prepend the string if we don't want to match dotfiles\n glob.pattern = (opts.dot ? dotfiles : nodot) + glob.pattern;\n }\n }\n\n return glob;\n}\n\n/**\n * Collapse repeated character sequences.\n *\n * ```js\n * collapse('a/../../../b', '../');\n * //=> 'a/../b'\n * ```\n *\n * @param {String} `str`\n * @param {String} `ch` Character sequence to collapse\n * @return {String}\n */\n\nfunction collapse(str, ch) {\n var res = str.split(ch);\n var isFirst = res[0] === '';\n var isLast = res[res.length - 1] === '';\n res = res.filter(Boolean);\n if (isFirst) res.unshift('');\n if (isLast) res.push('');\n return res.join(ch);\n}\n\n/**\n * Negate slashes in exclusion ranges, per glob spec:\n *\n * ```js\n * negateSlash('[^foo]');\n * //=> '[^\\\\/foo]'\n * ```\n *\n * @param {String} `str` glob pattern\n * @return {String}\n */\n\nfunction negateSlash(str) {\n return str.replace(/\\[\\^([^\\]]*?)\\]/g, function(match, inner) {\n if (inner.indexOf('/') === -1) {\n inner = '\\\\/' + inner;\n }\n return '[^' + inner + ']';\n });\n}\n\n/**\n * Escape imbalanced braces/bracket. This is a very\n * basic, naive implementation that only does enough\n * to serve the purpose.\n */\n\nfunction balance(str, a, b) {\n var aarr = str.split(a);\n var alen = aarr.join('').length;\n var blen = str.split(b).join('').length;\n\n if (alen !== blen) {\n str = aarr.join('\\\\' + a);\n return str.split(b).join('\\\\' + b);\n }\n return str;\n}\n\n/**\n * Special patterns to be converted to regex.\n * Heuristics are used to simplify patterns\n * and speed up processing.\n */\n\n/* eslint no-multi-spaces: 0 */\nvar qmark = '[^/]';\nvar star = qmark + '*?';\nvar nodot = '(?!\\\\.)(?=.)';\nvar dotfileGlob = '(?:\\\\/|^)\\\\.{1,2}($|\\\\/)';\nvar dotfiles = '(?!' + dotfileGlob + ')(?=.)';\nvar twoStarDot = '(?:(?!' + dotfileGlob + ').)*?';\n\n/**\n * Create a regex for `*`.\n *\n * If `dot` is true, or the pattern does not begin with\n * a leading star, then return the simpler regex.\n */\n\nfunction oneStar(dotfile) {\n return dotfile ? '(?!' + dotfileGlob + ')(?=.)' + star : (nodot + star);\n}\n\nfunction globstar(dotfile) {\n if (dotfile) { return twoStarDot; }\n return '(?:(?!(?:\\\\/|^)\\\\.).)*?';\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/micromatch/lib/expand.js\n ** module id = 256\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/micromatch/lib/expand.js?"); /***/ }, /* 257 */ /***/ function(module, exports, __webpack_require__) { - eval("module.exports = __webpack_require__(258)\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/unique-stream/~/through2-filter/~/through2/~/readable-stream/transform.js\n ** module id = 257\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/unique-stream/~/through2-filter/~/through2/~/readable-stream/transform.js?"); + eval("/* WEBPACK VAR INJECTION */(function(process) {'use strict';\n\nvar win32 = process && process.platform === 'win32';\nvar path = __webpack_require__(149);\nvar fileRe = __webpack_require__(258);\nvar utils = module.exports;\n\n/**\n * Module dependencies\n */\n\nutils.diff = __webpack_require__(259);\nutils.unique = __webpack_require__(261);\nutils.braces = __webpack_require__(262);\nutils.brackets = __webpack_require__(273);\nutils.extglob = __webpack_require__(274);\nutils.isExtglob = __webpack_require__(275);\nutils.isGlob = __webpack_require__(276);\nutils.typeOf = __webpack_require__(267);\nutils.normalize = __webpack_require__(277);\nutils.omit = __webpack_require__(278);\nutils.parseGlob = __webpack_require__(282);\nutils.cache = __webpack_require__(286);\n\n/**\n * Get the filename of a filepath\n *\n * @param {String} `string`\n * @return {String}\n */\n\nutils.filename = function filename(fp) {\n var seg = fp.match(fileRe());\n return seg && seg[0];\n};\n\n/**\n * Returns a function that returns true if the given\n * pattern is the same as a given `filepath`\n *\n * @param {String} `pattern`\n * @return {Function}\n */\n\nutils.isPath = function isPath(pattern, opts) {\n return function(fp) {\n return pattern === utils.unixify(fp, opts);\n };\n};\n\n/**\n * Returns a function that returns true if the given\n * pattern contains a `filepath`\n *\n * @param {String} `pattern`\n * @return {Function}\n */\n\nutils.hasPath = function hasPath(pattern, opts) {\n return function(fp) {\n return utils.unixify(pattern, opts).indexOf(fp) !== -1;\n };\n};\n\n/**\n * Returns a function that returns true if the given\n * pattern matches or contains a `filepath`\n *\n * @param {String} `pattern`\n * @return {Function}\n */\n\nutils.matchPath = function matchPath(pattern, opts) {\n var fn = (opts && opts.contains)\n ? utils.hasPath(pattern, opts)\n : utils.isPath(pattern, opts);\n return fn;\n};\n\n/**\n * Returns a function that returns true if the given\n * regex matches the `filename` of a file path.\n *\n * @param {RegExp} `re`\n * @return {Boolean}\n */\n\nutils.hasFilename = function hasFilename(re) {\n return function(fp) {\n var name = utils.filename(fp);\n return name && re.test(name);\n };\n};\n\n/**\n * Coerce `val` to an array\n *\n * @param {*} val\n * @return {Array}\n */\n\nutils.arrayify = function arrayify(val) {\n return !Array.isArray(val)\n ? [val]\n : val;\n};\n\n/**\n * Normalize all slashes in a file path or glob pattern to\n * forward slashes.\n */\n\nutils.unixify = function unixify(fp, opts) {\n if (opts && opts.unixify === false) return fp;\n if (opts && opts.unixify === true || win32 || path.sep === '\\\\') {\n return utils.normalize(fp, false);\n }\n if (opts && opts.unescape === true) {\n return fp ? fp.toString().replace(/\\\\(\\w)/g, '$1') : '';\n }\n return fp;\n};\n\n/**\n * Escape/unescape utils\n */\n\nutils.escapePath = function escapePath(fp) {\n return fp.replace(/[\\\\.]/g, '\\\\$&');\n};\n\nutils.unescapeGlob = function unescapeGlob(fp) {\n return fp.replace(/[\\\\\"']/g, '');\n};\n\nutils.escapeRe = function escapeRe(str) {\n return str.replace(/[-[\\\\$*+?.#^\\s{}(|)\\]]/g, '\\\\$&');\n};\n\n/**\n * Expose `utils`\n */\n\nmodule.exports = utils;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/micromatch/lib/utils.js\n ** module id = 257\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/micromatch/lib/utils.js?"); /***/ }, /* 258 */ -/***/ function(module, exports, __webpack_require__) { +/***/ function(module, exports) { - eval("// a transform stream is a readable/writable stream where you do\n// something with the data. Sometimes it's called a \"filter\",\n// but that's not a great name for it, since that implies a thing where\n// some bits pass through, and others are simply ignored. (That would\n// be a valid example of a transform, of course.)\n//\n// While the output is causally related to the input, it's not a\n// necessarily symmetric or synchronous transformation. For example,\n// a zlib stream might take multiple plain-text writes(), and then\n// emit a single compressed chunk some time in the future.\n//\n// Here's how this works:\n//\n// The Transform stream has all the aspects of the readable and writable\n// stream classes. When you write(chunk), that calls _write(chunk,cb)\n// internally, and returns false if there's a lot of pending writes\n// buffered up. When you call read(), that calls _read(n) until\n// there's enough pending readable data buffered up.\n//\n// In a transform stream, the written data is placed in a buffer. When\n// _read(n) is called, it transforms the queued up data, calling the\n// buffered _write cb's as it consumes chunks. If consuming a single\n// written chunk would result in multiple output chunks, then the first\n// outputted bit calls the readcb, and subsequent chunks just go into\n// the read buffer, and will cause it to emit 'readable' if necessary.\n//\n// This way, back-pressure is actually determined by the reading side,\n// since _read has to be called to start processing a new chunk. However,\n// a pathological inflate type of transform can cause excessive buffering\n// here. For example, imagine a stream where every byte of input is\n// interpreted as an integer from 0-255, and then results in that many\n// bytes of output. Writing the 4 bytes {ff,ff,ff,ff} would result in\n// 1kb of data being output. In this case, you could write a very small\n// amount of input, and end up with a very large amount of output. In\n// such a pathological inflating mechanism, there'd be no way to tell\n// the system to stop doing the transform. A single 4MB write could\n// cause the system to run out of memory.\n//\n// However, even in such a pathological case, only a single written chunk\n// would be consumed, and then the rest would wait (un-transformed) until\n// the results of the previous transformed chunk were consumed.\n\n'use strict';\n\nmodule.exports = Transform;\n\nvar Duplex = __webpack_require__(259);\n\n/**/\nvar util = __webpack_require__(261);\nutil.inherits = __webpack_require__(262);\n/**/\n\nutil.inherits(Transform, Duplex);\n\n\nfunction TransformState(stream) {\n this.afterTransform = function(er, data) {\n return afterTransform(stream, er, data);\n };\n\n this.needTransform = false;\n this.transforming = false;\n this.writecb = null;\n this.writechunk = null;\n}\n\nfunction afterTransform(stream, er, data) {\n var ts = stream._transformState;\n ts.transforming = false;\n\n var cb = ts.writecb;\n\n if (!cb)\n return stream.emit('error', new Error('no writecb in Transform class'));\n\n ts.writechunk = null;\n ts.writecb = null;\n\n if (data !== null && data !== undefined)\n stream.push(data);\n\n if (cb)\n cb(er);\n\n var rs = stream._readableState;\n rs.reading = false;\n if (rs.needReadable || rs.length < rs.highWaterMark) {\n stream._read(rs.highWaterMark);\n }\n}\n\n\nfunction Transform(options) {\n if (!(this instanceof Transform))\n return new Transform(options);\n\n Duplex.call(this, options);\n\n this._transformState = new TransformState(this);\n\n // when the writable side finishes, then flush out anything remaining.\n var stream = this;\n\n // start out asking for a readable event once data is transformed.\n this._readableState.needReadable = true;\n\n // we have implemented the _read method, and done the other things\n // that Readable wants before the first _read call, so unset the\n // sync guard flag.\n this._readableState.sync = false;\n\n if (options) {\n if (typeof options.transform === 'function')\n this._transform = options.transform;\n\n if (typeof options.flush === 'function')\n this._flush = options.flush;\n }\n\n this.once('prefinish', function() {\n if (typeof this._flush === 'function')\n this._flush(function(er) {\n done(stream, er);\n });\n else\n done(stream);\n });\n}\n\nTransform.prototype.push = function(chunk, encoding) {\n this._transformState.needTransform = false;\n return Duplex.prototype.push.call(this, chunk, encoding);\n};\n\n// This is the part where you do stuff!\n// override this function in implementation classes.\n// 'chunk' is an input chunk.\n//\n// Call `push(newChunk)` to pass along transformed output\n// to the readable side. You may call 'push' zero or more times.\n//\n// Call `cb(err)` when you are done with this chunk. If you pass\n// an error, then that'll put the hurt on the whole operation. If you\n// never call cb(), then you'll never get another chunk.\nTransform.prototype._transform = function(chunk, encoding, cb) {\n throw new Error('not implemented');\n};\n\nTransform.prototype._write = function(chunk, encoding, cb) {\n var ts = this._transformState;\n ts.writecb = cb;\n ts.writechunk = chunk;\n ts.writeencoding = encoding;\n if (!ts.transforming) {\n var rs = this._readableState;\n if (ts.needTransform ||\n rs.needReadable ||\n rs.length < rs.highWaterMark)\n this._read(rs.highWaterMark);\n }\n};\n\n// Doesn't matter what the args are here.\n// _transform does all the work.\n// That we got here means that the readable side wants more data.\nTransform.prototype._read = function(n) {\n var ts = this._transformState;\n\n if (ts.writechunk !== null && ts.writecb && !ts.transforming) {\n ts.transforming = true;\n this._transform(ts.writechunk, ts.writeencoding, ts.afterTransform);\n } else {\n // mark that we need a transform, so that any data that comes in\n // will get processed, now that we've asked for it.\n ts.needTransform = true;\n }\n};\n\n\nfunction done(stream, er) {\n if (er)\n return stream.emit('error', er);\n\n // if there's nothing in the write buffer, then that means\n // that nothing more will ever be provided\n var ws = stream._writableState;\n var ts = stream._transformState;\n\n if (ws.length)\n throw new Error('calling transform done when ws.length != 0');\n\n if (ts.transforming)\n throw new Error('calling transform done when still transforming');\n\n return stream.push(null);\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/unique-stream/~/through2-filter/~/through2/~/readable-stream/lib/_stream_transform.js\n ** module id = 258\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/unique-stream/~/through2-filter/~/through2/~/readable-stream/lib/_stream_transform.js?"); + eval("/*!\n * filename-regex \n *\n * Copyright (c) 2014-2015, Jon Schlinkert\n * Licensed under the MIT license.\n */\n\nmodule.exports = function filenameRegex() {\n return /([^\\\\\\/]+)$/;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/filename-regex/index.js\n ** module id = 258\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/filename-regex/index.js?"); /***/ }, /* 259 */ /***/ function(module, exports, __webpack_require__) { - eval("// a duplex stream is just a stream that is both readable and writable.\n// Since JS doesn't have multiple prototypal inheritance, this class\n// prototypally inherits from Readable, and then parasitically from\n// Writable.\n\n'use strict';\n\n/**/\nvar objectKeys = Object.keys || function (obj) {\n var keys = [];\n for (var key in obj) keys.push(key);\n return keys;\n}\n/**/\n\n\nmodule.exports = Duplex;\n\n/**/\nvar processNextTick = __webpack_require__(260);\n/**/\n\n\n\n/**/\nvar util = __webpack_require__(261);\nutil.inherits = __webpack_require__(262);\n/**/\n\nvar Readable = __webpack_require__(263);\nvar Writable = __webpack_require__(267);\n\nutil.inherits(Duplex, Readable);\n\nvar keys = objectKeys(Writable.prototype);\nfor (var v = 0; v < keys.length; v++) {\n var method = keys[v];\n if (!Duplex.prototype[method])\n Duplex.prototype[method] = Writable.prototype[method];\n}\n\nfunction Duplex(options) {\n if (!(this instanceof Duplex))\n return new Duplex(options);\n\n Readable.call(this, options);\n Writable.call(this, options);\n\n if (options && options.readable === false)\n this.readable = false;\n\n if (options && options.writable === false)\n this.writable = false;\n\n this.allowHalfOpen = true;\n if (options && options.allowHalfOpen === false)\n this.allowHalfOpen = false;\n\n this.once('end', onend);\n}\n\n// the no-half-open enforcer\nfunction onend() {\n // if we allow half-open state, or if the writable side ended,\n // then we're ok.\n if (this.allowHalfOpen || this._writableState.ended)\n return;\n\n // no more data can be written.\n // But allow more writes to happen in this tick.\n processNextTick(onEndNT, this);\n}\n\nfunction onEndNT(self) {\n self.end();\n}\n\nfunction forEach (xs, f) {\n for (var i = 0, l = xs.length; i < l; i++) {\n f(xs[i], i);\n }\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/unique-stream/~/through2-filter/~/through2/~/readable-stream/lib/_stream_duplex.js\n ** module id = 259\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/unique-stream/~/through2-filter/~/through2/~/readable-stream/lib/_stream_duplex.js?"); + eval("/*!\n * arr-diff \n *\n * Copyright (c) 2014 Jon Schlinkert, contributors.\n * Licensed under the MIT License\n */\n\n'use strict';\n\nvar flatten = __webpack_require__(260);\nvar slice = [].slice;\n\n/**\n * Return the difference between the first array and\n * additional arrays.\n *\n * ```js\n * var diff = require('{%= name %}');\n *\n * var a = ['a', 'b', 'c', 'd'];\n * var b = ['b', 'c'];\n *\n * console.log(diff(a, b))\n * //=> ['a', 'd']\n * ```\n *\n * @param {Array} `a`\n * @param {Array} `b`\n * @return {Array}\n * @api public\n */\n\nfunction diff(arr, arrays) {\n var argsLen = arguments.length;\n var len = arr.length, i = -1;\n var res = [], arrays;\n\n if (argsLen === 1) {\n return arr;\n }\n\n if (argsLen > 2) {\n arrays = flatten(slice.call(arguments, 1));\n }\n\n while (++i < len) {\n if (!~arrays.indexOf(arr[i])) {\n res.push(arr[i]);\n }\n }\n return res;\n}\n\n/**\n * Expose `diff`\n */\n\nmodule.exports = diff;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/arr-diff/index.js\n ** module id = 259\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/arr-diff/index.js?"); /***/ }, /* 260 */ -/***/ function(module, exports, __webpack_require__) { +/***/ function(module, exports) { - eval("/* WEBPACK VAR INJECTION */(function(process) {'use strict';\n\nif (!process.version ||\n process.version.indexOf('v0.') === 0 ||\n process.version.indexOf('v1.') === 0 && process.version.indexOf('v1.8.') !== 0) {\n module.exports = nextTick;\n} else {\n module.exports = process.nextTick;\n}\n\nfunction nextTick(fn) {\n var args = new Array(arguments.length - 1);\n var i = 0;\n while (i < args.length) {\n args[i++] = arguments[i];\n }\n process.nextTick(function afterTick() {\n fn.apply(null, args);\n });\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(83)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/unique-stream/~/through2-filter/~/through2/~/readable-stream/~/process-nextick-args/index.js\n ** module id = 260\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/unique-stream/~/through2-filter/~/through2/~/readable-stream/~/process-nextick-args/index.js?"); + eval("/*!\n * arr-flatten \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nmodule.exports = function flatten(arr) {\n return flat(arr, []);\n};\n\nfunction flat(arr, res) {\n var len = arr.length;\n var i = -1;\n\n while (len--) {\n var cur = arr[++i];\n if (Array.isArray(cur)) {\n flat(cur, res);\n } else {\n res.push(cur);\n }\n }\n return res;\n}\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/arr-flatten/index.js\n ** module id = 260\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/arr-flatten/index.js?"); /***/ }, /* 261 */ -/***/ function(module, exports, __webpack_require__) { +/***/ function(module, exports) { - eval("/* WEBPACK VAR INJECTION */(function(Buffer) {// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// NOTE: These type checking functions intentionally don't use `instanceof`\n// because it is fragile and can be easily faked with `Object.create()`.\n\nfunction isArray(arg) {\n if (Array.isArray) {\n return Array.isArray(arg);\n }\n return objectToString(arg) === '[object Array]';\n}\nexports.isArray = isArray;\n\nfunction isBoolean(arg) {\n return typeof arg === 'boolean';\n}\nexports.isBoolean = isBoolean;\n\nfunction isNull(arg) {\n return arg === null;\n}\nexports.isNull = isNull;\n\nfunction isNullOrUndefined(arg) {\n return arg == null;\n}\nexports.isNullOrUndefined = isNullOrUndefined;\n\nfunction isNumber(arg) {\n return typeof arg === 'number';\n}\nexports.isNumber = isNumber;\n\nfunction isString(arg) {\n return typeof arg === 'string';\n}\nexports.isString = isString;\n\nfunction isSymbol(arg) {\n return typeof arg === 'symbol';\n}\nexports.isSymbol = isSymbol;\n\nfunction isUndefined(arg) {\n return arg === void 0;\n}\nexports.isUndefined = isUndefined;\n\nfunction isRegExp(re) {\n return objectToString(re) === '[object RegExp]';\n}\nexports.isRegExp = isRegExp;\n\nfunction isObject(arg) {\n return typeof arg === 'object' && arg !== null;\n}\nexports.isObject = isObject;\n\nfunction isDate(d) {\n return objectToString(d) === '[object Date]';\n}\nexports.isDate = isDate;\n\nfunction isError(e) {\n return (objectToString(e) === '[object Error]' || e instanceof Error);\n}\nexports.isError = isError;\n\nfunction isFunction(arg) {\n return typeof arg === 'function';\n}\nexports.isFunction = isFunction;\n\nfunction isPrimitive(arg) {\n return arg === null ||\n typeof arg === 'boolean' ||\n typeof arg === 'number' ||\n typeof arg === 'string' ||\n typeof arg === 'symbol' || // ES6 symbol\n typeof arg === 'undefined';\n}\nexports.isPrimitive = isPrimitive;\n\nexports.isBuffer = Buffer.isBuffer;\n\nfunction objectToString(o) {\n return Object.prototype.toString.call(o);\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1).Buffer))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/unique-stream/~/through2-filter/~/through2/~/readable-stream/~/core-util-is/lib/util.js\n ** module id = 261\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/unique-stream/~/through2-filter/~/through2/~/readable-stream/~/core-util-is/lib/util.js?"); + eval("/*!\n * array-unique \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nmodule.exports = function unique(arr) {\n if (!Array.isArray(arr)) {\n throw new TypeError('array-unique expects an array.');\n }\n\n var len = arr.length;\n var i = -1;\n\n while (i++ < len) {\n var j = i + 1;\n\n for (; j < arr.length; ++j) {\n if (arr[i] === arr[j]) {\n arr.splice(j--, 1);\n }\n }\n }\n return arr;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/array-unique/index.js\n ** module id = 261\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/array-unique/index.js?"); /***/ }, /* 262 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("if (typeof Object.create === 'function') {\n // implementation from standard node.js 'util' module\n module.exports = function inherits(ctor, superCtor) {\n ctor.super_ = superCtor\n ctor.prototype = Object.create(superCtor.prototype, {\n constructor: {\n value: ctor,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n };\n} else {\n // old school shim for old browsers\n module.exports = function inherits(ctor, superCtor) {\n ctor.super_ = superCtor\n var TempCtor = function () {}\n TempCtor.prototype = superCtor.prototype\n ctor.prototype = new TempCtor()\n ctor.prototype.constructor = ctor\n }\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/unique-stream/~/through2-filter/~/through2/~/readable-stream/~/inherits/inherits_browser.js\n ** module id = 262\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/unique-stream/~/through2-filter/~/through2/~/readable-stream/~/inherits/inherits_browser.js?"); + eval("/*!\n * braces \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT license.\n */\n\n'use strict';\n\n/**\n * Module dependencies\n */\n\nvar expand = __webpack_require__(263);\nvar repeat = __webpack_require__(271);\nvar tokens = __webpack_require__(272);\n\n/**\n * Expose `braces`\n */\n\nmodule.exports = function (str, options) {\n if (typeof str !== 'string') {\n throw new Error('braces expects a string');\n }\n return braces(str, options);\n};\n\n/**\n * Expand `{foo,bar}` or `{1..5}` braces in the\n * given `string`.\n *\n * @param {String} `str`\n * @param {Array} `arr`\n * @param {Object} `options`\n * @return {Array}\n */\n\nfunction braces(str, arr, options) {\n if (str === '') {\n return [];\n }\n\n if (!Array.isArray(arr)) {\n options = arr;\n arr = [];\n }\n\n var opts = options || {};\n arr = arr || [];\n\n if (typeof opts.nodupes === 'undefined') {\n opts.nodupes = true;\n }\n\n var fn = opts.fn;\n var es6;\n\n if (typeof opts === 'function') {\n fn = opts;\n opts = {};\n }\n\n if (!(patternRe instanceof RegExp)) {\n patternRe = patternRegex();\n }\n\n var matches = str.match(patternRe) || [];\n var m = matches[0];\n\n switch(m) {\n case '\\\\,':\n return escapeCommas(str, arr, opts);\n case '\\\\.':\n return escapeDots(str, arr, opts);\n case '\\/.':\n return escapePaths(str, arr, opts);\n case ' ':\n return splitWhitespace(str);\n case '{,}':\n return exponential(str, opts, braces);\n case '{}':\n return emptyBraces(str, arr, opts);\n case '\\\\{':\n case '\\\\}':\n return escapeBraces(str, arr, opts);\n case '${':\n if (!/\\{[^{]+\\{/.test(str)) {\n return arr.concat(str);\n } else {\n es6 = true;\n str = tokens.before(str, es6Regex());\n }\n }\n\n if (!(braceRe instanceof RegExp)) {\n braceRe = braceRegex();\n }\n\n var match = braceRe.exec(str);\n if (match == null) {\n return [str];\n }\n\n var outter = match[1];\n var inner = match[2];\n if (inner === '') { return [str]; }\n\n var segs, segsLength;\n\n if (inner.indexOf('..') !== -1) {\n segs = expand(inner, opts, fn) || inner.split(',');\n segsLength = segs.length;\n\n } else if (inner[0] === '\"' || inner[0] === '\\'') {\n return arr.concat(str.split(/['\"]/).join(''));\n\n } else {\n segs = inner.split(',');\n if (opts.makeRe) {\n return braces(str.replace(outter, wrap(segs, '|')), opts);\n }\n\n segsLength = segs.length;\n if (segsLength === 1 && opts.bash) {\n segs[0] = wrap(segs[0], '\\\\');\n }\n }\n\n var len = segs.length;\n var i = 0, val;\n\n while (len--) {\n var path = segs[i++];\n\n if (/(\\.[^.\\/])/.test(path)) {\n if (segsLength > 1) {\n return segs;\n } else {\n return [str];\n }\n }\n\n val = splice(str, outter, path);\n\n if (/\\{[^{}]+?\\}/.test(val)) {\n arr = braces(val, arr, opts);\n } else if (val !== '') {\n if (opts.nodupes && arr.indexOf(val) !== -1) { continue; }\n arr.push(es6 ? tokens.after(val) : val);\n }\n }\n\n if (opts.strict) { return filter(arr, filterEmpty); }\n return arr;\n}\n\n/**\n * Expand exponential ranges\n *\n * `a{,}{,}` => ['a', 'a', 'a', 'a']\n */\n\nfunction exponential(str, options, fn) {\n if (typeof options === 'function') {\n fn = options;\n options = null;\n }\n\n var opts = options || {};\n var esc = '__ESC_EXP__';\n var exp = 0;\n var res;\n\n var parts = str.split('{,}');\n if (opts.nodupes) {\n return fn(parts.join(''), opts);\n }\n\n exp = parts.length - 1;\n res = fn(parts.join(esc), opts);\n var len = res.length;\n var arr = [];\n var i = 0;\n\n while (len--) {\n var ele = res[i++];\n var idx = ele.indexOf(esc);\n\n if (idx === -1) {\n arr.push(ele);\n\n } else {\n ele = ele.split('__ESC_EXP__').join('');\n if (!!ele && opts.nodupes !== false) {\n arr.push(ele);\n\n } else {\n var num = Math.pow(2, exp);\n arr.push.apply(arr, repeat(ele, num));\n }\n }\n }\n return arr;\n}\n\n/**\n * Wrap a value with parens, brackets or braces,\n * based on the given character/separator.\n *\n * @param {String|Array} `val`\n * @param {String} `ch`\n * @return {String}\n */\n\nfunction wrap(val, ch) {\n if (ch === '|') {\n return '(' + val.join(ch) + ')';\n }\n if (ch === ',') {\n return '{' + val.join(ch) + '}';\n }\n if (ch === '-') {\n return '[' + val.join(ch) + ']';\n }\n if (ch === '\\\\') {\n return '\\\\{' + val + '\\\\}';\n }\n}\n\n/**\n * Handle empty braces: `{}`\n */\n\nfunction emptyBraces(str, arr, opts) {\n return braces(str.split('{}').join('\\\\{\\\\}'), arr, opts);\n}\n\n/**\n * Filter out empty-ish values\n */\n\nfunction filterEmpty(ele) {\n return !!ele && ele !== '\\\\';\n}\n\n/**\n * Handle patterns with whitespace\n */\n\nfunction splitWhitespace(str) {\n var segs = str.split(' ');\n var len = segs.length;\n var res = [];\n var i = 0;\n\n while (len--) {\n res.push.apply(res, braces(segs[i++]));\n }\n return res;\n}\n\n/**\n * Handle escaped braces: `\\\\{foo,bar}`\n */\n\nfunction escapeBraces(str, arr, opts) {\n if (!/\\{[^{]+\\{/.test(str)) {\n return arr.concat(str.split('\\\\').join(''));\n } else {\n str = str.split('\\\\{').join('__LT_BRACE__');\n str = str.split('\\\\}').join('__RT_BRACE__');\n return map(braces(str, arr, opts), function (ele) {\n ele = ele.split('__LT_BRACE__').join('{');\n return ele.split('__RT_BRACE__').join('}');\n });\n }\n}\n\n/**\n * Handle escaped dots: `{1\\\\.2}`\n */\n\nfunction escapeDots(str, arr, opts) {\n if (!/[^\\\\]\\..+\\\\\\./.test(str)) {\n return arr.concat(str.split('\\\\').join(''));\n } else {\n str = str.split('\\\\.').join('__ESC_DOT__');\n return map(braces(str, arr, opts), function (ele) {\n return ele.split('__ESC_DOT__').join('.');\n });\n }\n}\n\n/**\n * Handle escaped dots: `{1\\\\.2}`\n */\n\nfunction escapePaths(str, arr, opts) {\n str = str.split('\\/.').join('__ESC_PATH__');\n return map(braces(str, arr, opts), function (ele) {\n return ele.split('__ESC_PATH__').join('\\/.');\n });\n}\n\n/**\n * Handle escaped commas: `{a\\\\,b}`\n */\n\nfunction escapeCommas(str, arr, opts) {\n if (!/\\w,/.test(str)) {\n return arr.concat(str.split('\\\\').join(''));\n } else {\n str = str.split('\\\\,').join('__ESC_COMMA__');\n return map(braces(str, arr, opts), function (ele) {\n return ele.split('__ESC_COMMA__').join(',');\n });\n }\n}\n\n/**\n * Regex for common patterns\n */\n\nfunction patternRegex() {\n return /\\$\\{|[ \\t]|{}|{,}|\\\\,(?=.*[{}])|\\/\\.(?=.*[{}])|\\\\\\.(?={)|\\\\{|\\\\}/;\n}\n\n/**\n * Braces regex.\n */\n\nfunction braceRegex() {\n return /.*(\\\\?\\{([^}]+)\\})/;\n}\n\n/**\n * es6 delimiter regex.\n */\n\nfunction es6Regex() {\n return /\\$\\{([^}]+)\\}/;\n}\n\nvar braceRe;\nvar patternRe;\n\n/**\n * Faster alternative to `String.replace()` when the\n * index of the token to be replaces can't be supplied\n */\n\nfunction splice(str, token, replacement) {\n var i = str.indexOf(token);\n return str.substr(0, i) + replacement\n + str.substr(i + token.length);\n}\n\n/**\n * Fast array map\n */\n\nfunction map(arr, fn) {\n if (arr == null) {\n return [];\n }\n\n var len = arr.length;\n var res = new Array(len);\n var i = -1;\n\n while (++i < len) {\n res[i] = fn(arr[i], i, arr);\n }\n\n return res;\n}\n\n/**\n * Fast array filter\n */\n\nfunction filter(arr, cb) {\n if (arr == null) return [];\n if (typeof cb !== 'function') {\n throw new TypeError('braces: filter expects a callback function.');\n }\n\n var len = arr.length;\n var res = arr.slice();\n var i = 0;\n\n while (len--) {\n if (!cb(arr[len], i++)) {\n res.splice(len, 1);\n }\n }\n return res;\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/braces/index.js\n ** module id = 262\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/braces/index.js?"); /***/ }, /* 263 */ /***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(process) {'use strict';\n\nmodule.exports = Readable;\n\n/**/\nvar processNextTick = __webpack_require__(260);\n/**/\n\n\n/**/\nvar isArray = __webpack_require__(264);\n/**/\n\n\n/**/\nvar Buffer = __webpack_require__(1).Buffer;\n/**/\n\nReadable.ReadableState = ReadableState;\n\nvar EE = __webpack_require__(84);\n\n/**/\nvar EElistenerCount = function(emitter, type) {\n return emitter.listeners(type).length;\n};\n/**/\n\n\n\n/**/\nvar Stream;\n(function (){try{\n Stream = __webpack_require__(96);\n}catch(_){}finally{\n if (!Stream)\n Stream = __webpack_require__(84).EventEmitter;\n}}())\n/**/\n\nvar Buffer = __webpack_require__(1).Buffer;\n\n/**/\nvar util = __webpack_require__(261);\nutil.inherits = __webpack_require__(262);\n/**/\n\n\n\n/**/\nvar debugUtil = __webpack_require__(265);\nvar debug;\nif (debugUtil && debugUtil.debuglog) {\n debug = debugUtil.debuglog('stream');\n} else {\n debug = function () {};\n}\n/**/\n\nvar StringDecoder;\n\nutil.inherits(Readable, Stream);\n\nvar Duplex;\nfunction ReadableState(options, stream) {\n Duplex = Duplex || __webpack_require__(259);\n\n options = options || {};\n\n // object stream flag. Used to make read(n) ignore n and to\n // make all the buffer merging and length checks go away\n this.objectMode = !!options.objectMode;\n\n if (stream instanceof Duplex)\n this.objectMode = this.objectMode || !!options.readableObjectMode;\n\n // the point at which it stops calling _read() to fill the buffer\n // Note: 0 is a valid value, means \"don't call _read preemptively ever\"\n var hwm = options.highWaterMark;\n var defaultHwm = this.objectMode ? 16 : 16 * 1024;\n this.highWaterMark = (hwm || hwm === 0) ? hwm : defaultHwm;\n\n // cast to ints.\n this.highWaterMark = ~~this.highWaterMark;\n\n this.buffer = [];\n this.length = 0;\n this.pipes = null;\n this.pipesCount = 0;\n this.flowing = null;\n this.ended = false;\n this.endEmitted = false;\n this.reading = false;\n\n // a flag to be able to tell if the onwrite cb is called immediately,\n // or on a later tick. We set this to true at first, because any\n // actions that shouldn't happen until \"later\" should generally also\n // not happen before the first write call.\n this.sync = true;\n\n // whenever we return null, then we set a flag to say\n // that we're awaiting a 'readable' event emission.\n this.needReadable = false;\n this.emittedReadable = false;\n this.readableListening = false;\n\n // Crypto is kind of old and crusty. Historically, its default string\n // encoding is 'binary' so we have to make this configurable.\n // Everything else in the universe uses 'utf8', though.\n this.defaultEncoding = options.defaultEncoding || 'utf8';\n\n // when piping, we only care about 'readable' events that happen\n // after read()ing all the bytes and not getting any pushback.\n this.ranOut = false;\n\n // the number of writers that are awaiting a drain event in .pipe()s\n this.awaitDrain = 0;\n\n // if true, a maybeReadMore has been scheduled\n this.readingMore = false;\n\n this.decoder = null;\n this.encoding = null;\n if (options.encoding) {\n if (!StringDecoder)\n StringDecoder = __webpack_require__(266).StringDecoder;\n this.decoder = new StringDecoder(options.encoding);\n this.encoding = options.encoding;\n }\n}\n\nvar Duplex;\nfunction Readable(options) {\n Duplex = Duplex || __webpack_require__(259);\n\n if (!(this instanceof Readable))\n return new Readable(options);\n\n this._readableState = new ReadableState(options, this);\n\n // legacy\n this.readable = true;\n\n if (options && typeof options.read === 'function')\n this._read = options.read;\n\n Stream.call(this);\n}\n\n// Manually shove something into the read() buffer.\n// This returns true if the highWaterMark has not been hit yet,\n// similar to how Writable.write() returns true if you should\n// write() some more.\nReadable.prototype.push = function(chunk, encoding) {\n var state = this._readableState;\n\n if (!state.objectMode && typeof chunk === 'string') {\n encoding = encoding || state.defaultEncoding;\n if (encoding !== state.encoding) {\n chunk = new Buffer(chunk, encoding);\n encoding = '';\n }\n }\n\n return readableAddChunk(this, state, chunk, encoding, false);\n};\n\n// Unshift should *always* be something directly out of read()\nReadable.prototype.unshift = function(chunk) {\n var state = this._readableState;\n return readableAddChunk(this, state, chunk, '', true);\n};\n\nReadable.prototype.isPaused = function() {\n return this._readableState.flowing === false;\n};\n\nfunction readableAddChunk(stream, state, chunk, encoding, addToFront) {\n var er = chunkInvalid(state, chunk);\n if (er) {\n stream.emit('error', er);\n } else if (chunk === null) {\n state.reading = false;\n onEofChunk(stream, state);\n } else if (state.objectMode || chunk && chunk.length > 0) {\n if (state.ended && !addToFront) {\n var e = new Error('stream.push() after EOF');\n stream.emit('error', e);\n } else if (state.endEmitted && addToFront) {\n var e = new Error('stream.unshift() after end event');\n stream.emit('error', e);\n } else {\n if (state.decoder && !addToFront && !encoding)\n chunk = state.decoder.write(chunk);\n\n if (!addToFront)\n state.reading = false;\n\n // if we want the data now, just emit it.\n if (state.flowing && state.length === 0 && !state.sync) {\n stream.emit('data', chunk);\n stream.read(0);\n } else {\n // update the buffer info.\n state.length += state.objectMode ? 1 : chunk.length;\n if (addToFront)\n state.buffer.unshift(chunk);\n else\n state.buffer.push(chunk);\n\n if (state.needReadable)\n emitReadable(stream);\n }\n\n maybeReadMore(stream, state);\n }\n } else if (!addToFront) {\n state.reading = false;\n }\n\n return needMoreData(state);\n}\n\n\n// if it's past the high water mark, we can push in some more.\n// Also, if we have no data yet, we can stand some\n// more bytes. This is to work around cases where hwm=0,\n// such as the repl. Also, if the push() triggered a\n// readable event, and the user called read(largeNumber) such that\n// needReadable was set, then we ought to push more, so that another\n// 'readable' event will be triggered.\nfunction needMoreData(state) {\n return !state.ended &&\n (state.needReadable ||\n state.length < state.highWaterMark ||\n state.length === 0);\n}\n\n// backwards compatibility.\nReadable.prototype.setEncoding = function(enc) {\n if (!StringDecoder)\n StringDecoder = __webpack_require__(266).StringDecoder;\n this._readableState.decoder = new StringDecoder(enc);\n this._readableState.encoding = enc;\n return this;\n};\n\n// Don't raise the hwm > 8MB\nvar MAX_HWM = 0x800000;\nfunction computeNewHighWaterMark(n) {\n if (n >= MAX_HWM) {\n n = MAX_HWM;\n } else {\n // Get the next highest power of 2\n n--;\n n |= n >>> 1;\n n |= n >>> 2;\n n |= n >>> 4;\n n |= n >>> 8;\n n |= n >>> 16;\n n++;\n }\n return n;\n}\n\nfunction howMuchToRead(n, state) {\n if (state.length === 0 && state.ended)\n return 0;\n\n if (state.objectMode)\n return n === 0 ? 0 : 1;\n\n if (n === null || isNaN(n)) {\n // only flow one buffer at a time\n if (state.flowing && state.buffer.length)\n return state.buffer[0].length;\n else\n return state.length;\n }\n\n if (n <= 0)\n return 0;\n\n // If we're asking for more than the target buffer level,\n // then raise the water mark. Bump up to the next highest\n // power of 2, to prevent increasing it excessively in tiny\n // amounts.\n if (n > state.highWaterMark)\n state.highWaterMark = computeNewHighWaterMark(n);\n\n // don't have that much. return null, unless we've ended.\n if (n > state.length) {\n if (!state.ended) {\n state.needReadable = true;\n return 0;\n } else {\n return state.length;\n }\n }\n\n return n;\n}\n\n// you can override either this method, or the async _read(n) below.\nReadable.prototype.read = function(n) {\n debug('read', n);\n var state = this._readableState;\n var nOrig = n;\n\n if (typeof n !== 'number' || n > 0)\n state.emittedReadable = false;\n\n // if we're doing read(0) to trigger a readable event, but we\n // already have a bunch of data in the buffer, then just trigger\n // the 'readable' event and move on.\n if (n === 0 &&\n state.needReadable &&\n (state.length >= state.highWaterMark || state.ended)) {\n debug('read: emitReadable', state.length, state.ended);\n if (state.length === 0 && state.ended)\n endReadable(this);\n else\n emitReadable(this);\n return null;\n }\n\n n = howMuchToRead(n, state);\n\n // if we've ended, and we're now clear, then finish it up.\n if (n === 0 && state.ended) {\n if (state.length === 0)\n endReadable(this);\n return null;\n }\n\n // All the actual chunk generation logic needs to be\n // *below* the call to _read. The reason is that in certain\n // synthetic stream cases, such as passthrough streams, _read\n // may be a completely synchronous operation which may change\n // the state of the read buffer, providing enough data when\n // before there was *not* enough.\n //\n // So, the steps are:\n // 1. Figure out what the state of things will be after we do\n // a read from the buffer.\n //\n // 2. If that resulting state will trigger a _read, then call _read.\n // Note that this may be asynchronous, or synchronous. Yes, it is\n // deeply ugly to write APIs this way, but that still doesn't mean\n // that the Readable class should behave improperly, as streams are\n // designed to be sync/async agnostic.\n // Take note if the _read call is sync or async (ie, if the read call\n // has returned yet), so that we know whether or not it's safe to emit\n // 'readable' etc.\n //\n // 3. Actually pull the requested chunks out of the buffer and return.\n\n // if we need a readable event, then we need to do some reading.\n var doRead = state.needReadable;\n debug('need readable', doRead);\n\n // if we currently have less than the highWaterMark, then also read some\n if (state.length === 0 || state.length - n < state.highWaterMark) {\n doRead = true;\n debug('length less than watermark', doRead);\n }\n\n // however, if we've ended, then there's no point, and if we're already\n // reading, then it's unnecessary.\n if (state.ended || state.reading) {\n doRead = false;\n debug('reading or ended', doRead);\n }\n\n if (doRead) {\n debug('do read');\n state.reading = true;\n state.sync = true;\n // if the length is currently zero, then we *need* a readable event.\n if (state.length === 0)\n state.needReadable = true;\n // call internal read method\n this._read(state.highWaterMark);\n state.sync = false;\n }\n\n // If _read pushed data synchronously, then `reading` will be false,\n // and we need to re-evaluate how much data we can return to the user.\n if (doRead && !state.reading)\n n = howMuchToRead(nOrig, state);\n\n var ret;\n if (n > 0)\n ret = fromList(n, state);\n else\n ret = null;\n\n if (ret === null) {\n state.needReadable = true;\n n = 0;\n }\n\n state.length -= n;\n\n // If we have nothing in the buffer, then we want to know\n // as soon as we *do* get something into the buffer.\n if (state.length === 0 && !state.ended)\n state.needReadable = true;\n\n // If we tried to read() past the EOF, then emit end on the next tick.\n if (nOrig !== n && state.ended && state.length === 0)\n endReadable(this);\n\n if (ret !== null)\n this.emit('data', ret);\n\n return ret;\n};\n\nfunction chunkInvalid(state, chunk) {\n var er = null;\n if (!(Buffer.isBuffer(chunk)) &&\n typeof chunk !== 'string' &&\n chunk !== null &&\n chunk !== undefined &&\n !state.objectMode) {\n er = new TypeError('Invalid non-string/buffer chunk');\n }\n return er;\n}\n\n\nfunction onEofChunk(stream, state) {\n if (state.ended) return;\n if (state.decoder) {\n var chunk = state.decoder.end();\n if (chunk && chunk.length) {\n state.buffer.push(chunk);\n state.length += state.objectMode ? 1 : chunk.length;\n }\n }\n state.ended = true;\n\n // emit 'readable' now to make sure it gets picked up.\n emitReadable(stream);\n}\n\n// Don't emit readable right away in sync mode, because this can trigger\n// another read() call => stack overflow. This way, it might trigger\n// a nextTick recursion warning, but that's not so bad.\nfunction emitReadable(stream) {\n var state = stream._readableState;\n state.needReadable = false;\n if (!state.emittedReadable) {\n debug('emitReadable', state.flowing);\n state.emittedReadable = true;\n if (state.sync)\n processNextTick(emitReadable_, stream);\n else\n emitReadable_(stream);\n }\n}\n\nfunction emitReadable_(stream) {\n debug('emit readable');\n stream.emit('readable');\n flow(stream);\n}\n\n\n// at this point, the user has presumably seen the 'readable' event,\n// and called read() to consume some data. that may have triggered\n// in turn another _read(n) call, in which case reading = true if\n// it's in progress.\n// However, if we're not ended, or reading, and the length < hwm,\n// then go ahead and try to read some more preemptively.\nfunction maybeReadMore(stream, state) {\n if (!state.readingMore) {\n state.readingMore = true;\n processNextTick(maybeReadMore_, stream, state);\n }\n}\n\nfunction maybeReadMore_(stream, state) {\n var len = state.length;\n while (!state.reading && !state.flowing && !state.ended &&\n state.length < state.highWaterMark) {\n debug('maybeReadMore read 0');\n stream.read(0);\n if (len === state.length)\n // didn't get any data, stop spinning.\n break;\n else\n len = state.length;\n }\n state.readingMore = false;\n}\n\n// abstract method. to be overridden in specific implementation classes.\n// call cb(er, data) where data is <= n in length.\n// for virtual (non-string, non-buffer) streams, \"length\" is somewhat\n// arbitrary, and perhaps not very meaningful.\nReadable.prototype._read = function(n) {\n this.emit('error', new Error('not implemented'));\n};\n\nReadable.prototype.pipe = function(dest, pipeOpts) {\n var src = this;\n var state = this._readableState;\n\n switch (state.pipesCount) {\n case 0:\n state.pipes = dest;\n break;\n case 1:\n state.pipes = [state.pipes, dest];\n break;\n default:\n state.pipes.push(dest);\n break;\n }\n state.pipesCount += 1;\n debug('pipe count=%d opts=%j', state.pipesCount, pipeOpts);\n\n var doEnd = (!pipeOpts || pipeOpts.end !== false) &&\n dest !== process.stdout &&\n dest !== process.stderr;\n\n var endFn = doEnd ? onend : cleanup;\n if (state.endEmitted)\n processNextTick(endFn);\n else\n src.once('end', endFn);\n\n dest.on('unpipe', onunpipe);\n function onunpipe(readable) {\n debug('onunpipe');\n if (readable === src) {\n cleanup();\n }\n }\n\n function onend() {\n debug('onend');\n dest.end();\n }\n\n // when the dest drains, it reduces the awaitDrain counter\n // on the source. This would be more elegant with a .once()\n // handler in flow(), but adding and removing repeatedly is\n // too slow.\n var ondrain = pipeOnDrain(src);\n dest.on('drain', ondrain);\n\n var cleanedUp = false;\n function cleanup() {\n debug('cleanup');\n // cleanup event handlers once the pipe is broken\n dest.removeListener('close', onclose);\n dest.removeListener('finish', onfinish);\n dest.removeListener('drain', ondrain);\n dest.removeListener('error', onerror);\n dest.removeListener('unpipe', onunpipe);\n src.removeListener('end', onend);\n src.removeListener('end', cleanup);\n src.removeListener('data', ondata);\n\n cleanedUp = true;\n\n // if the reader is waiting for a drain event from this\n // specific writer, then it would cause it to never start\n // flowing again.\n // So, if this is awaiting a drain, then we just call it now.\n // If we don't know, then assume that we are waiting for one.\n if (state.awaitDrain &&\n (!dest._writableState || dest._writableState.needDrain))\n ondrain();\n }\n\n src.on('data', ondata);\n function ondata(chunk) {\n debug('ondata');\n var ret = dest.write(chunk);\n if (false === ret) {\n // If the user unpiped during `dest.write()`, it is possible\n // to get stuck in a permanently paused state if that write\n // also returned false.\n if (state.pipesCount === 1 &&\n state.pipes[0] === dest &&\n src.listenerCount('data') === 1 &&\n !cleanedUp) {\n debug('false write response, pause', src._readableState.awaitDrain);\n src._readableState.awaitDrain++;\n }\n src.pause();\n }\n }\n\n // if the dest has an error, then stop piping into it.\n // however, don't suppress the throwing behavior for this.\n function onerror(er) {\n debug('onerror', er);\n unpipe();\n dest.removeListener('error', onerror);\n if (EElistenerCount(dest, 'error') === 0)\n dest.emit('error', er);\n }\n // This is a brutally ugly hack to make sure that our error handler\n // is attached before any userland ones. NEVER DO THIS.\n if (!dest._events || !dest._events.error)\n dest.on('error', onerror);\n else if (isArray(dest._events.error))\n dest._events.error.unshift(onerror);\n else\n dest._events.error = [onerror, dest._events.error];\n\n\n // Both close and finish should trigger unpipe, but only once.\n function onclose() {\n dest.removeListener('finish', onfinish);\n unpipe();\n }\n dest.once('close', onclose);\n function onfinish() {\n debug('onfinish');\n dest.removeListener('close', onclose);\n unpipe();\n }\n dest.once('finish', onfinish);\n\n function unpipe() {\n debug('unpipe');\n src.unpipe(dest);\n }\n\n // tell the dest that it's being piped to\n dest.emit('pipe', src);\n\n // start the flow if it hasn't been started already.\n if (!state.flowing) {\n debug('pipe resume');\n src.resume();\n }\n\n return dest;\n};\n\nfunction pipeOnDrain(src) {\n return function() {\n var state = src._readableState;\n debug('pipeOnDrain', state.awaitDrain);\n if (state.awaitDrain)\n state.awaitDrain--;\n if (state.awaitDrain === 0 && EElistenerCount(src, 'data')) {\n state.flowing = true;\n flow(src);\n }\n };\n}\n\n\nReadable.prototype.unpipe = function(dest) {\n var state = this._readableState;\n\n // if we're not piping anywhere, then do nothing.\n if (state.pipesCount === 0)\n return this;\n\n // just one destination. most common case.\n if (state.pipesCount === 1) {\n // passed in one, but it's not the right one.\n if (dest && dest !== state.pipes)\n return this;\n\n if (!dest)\n dest = state.pipes;\n\n // got a match.\n state.pipes = null;\n state.pipesCount = 0;\n state.flowing = false;\n if (dest)\n dest.emit('unpipe', this);\n return this;\n }\n\n // slow case. multiple pipe destinations.\n\n if (!dest) {\n // remove all.\n var dests = state.pipes;\n var len = state.pipesCount;\n state.pipes = null;\n state.pipesCount = 0;\n state.flowing = false;\n\n for (var i = 0; i < len; i++)\n dests[i].emit('unpipe', this);\n return this;\n }\n\n // try to find the right one.\n var i = indexOf(state.pipes, dest);\n if (i === -1)\n return this;\n\n state.pipes.splice(i, 1);\n state.pipesCount -= 1;\n if (state.pipesCount === 1)\n state.pipes = state.pipes[0];\n\n dest.emit('unpipe', this);\n\n return this;\n};\n\n// set up data events if they are asked for\n// Ensure readable listeners eventually get something\nReadable.prototype.on = function(ev, fn) {\n var res = Stream.prototype.on.call(this, ev, fn);\n\n // If listening to data, and it has not explicitly been paused,\n // then call resume to start the flow of data on the next tick.\n if (ev === 'data' && false !== this._readableState.flowing) {\n this.resume();\n }\n\n if (ev === 'readable' && this.readable) {\n var state = this._readableState;\n if (!state.readableListening) {\n state.readableListening = true;\n state.emittedReadable = false;\n state.needReadable = true;\n if (!state.reading) {\n processNextTick(nReadingNextTick, this);\n } else if (state.length) {\n emitReadable(this, state);\n }\n }\n }\n\n return res;\n};\nReadable.prototype.addListener = Readable.prototype.on;\n\nfunction nReadingNextTick(self) {\n debug('readable nexttick read 0');\n self.read(0);\n}\n\n// pause() and resume() are remnants of the legacy readable stream API\n// If the user uses them, then switch into old mode.\nReadable.prototype.resume = function() {\n var state = this._readableState;\n if (!state.flowing) {\n debug('resume');\n state.flowing = true;\n resume(this, state);\n }\n return this;\n};\n\nfunction resume(stream, state) {\n if (!state.resumeScheduled) {\n state.resumeScheduled = true;\n processNextTick(resume_, stream, state);\n }\n}\n\nfunction resume_(stream, state) {\n if (!state.reading) {\n debug('resume read 0');\n stream.read(0);\n }\n\n state.resumeScheduled = false;\n stream.emit('resume');\n flow(stream);\n if (state.flowing && !state.reading)\n stream.read(0);\n}\n\nReadable.prototype.pause = function() {\n debug('call pause flowing=%j', this._readableState.flowing);\n if (false !== this._readableState.flowing) {\n debug('pause');\n this._readableState.flowing = false;\n this.emit('pause');\n }\n return this;\n};\n\nfunction flow(stream) {\n var state = stream._readableState;\n debug('flow', state.flowing);\n if (state.flowing) {\n do {\n var chunk = stream.read();\n } while (null !== chunk && state.flowing);\n }\n}\n\n// wrap an old-style stream as the async data source.\n// This is *not* part of the readable stream interface.\n// It is an ugly unfortunate mess of history.\nReadable.prototype.wrap = function(stream) {\n var state = this._readableState;\n var paused = false;\n\n var self = this;\n stream.on('end', function() {\n debug('wrapped end');\n if (state.decoder && !state.ended) {\n var chunk = state.decoder.end();\n if (chunk && chunk.length)\n self.push(chunk);\n }\n\n self.push(null);\n });\n\n stream.on('data', function(chunk) {\n debug('wrapped data');\n if (state.decoder)\n chunk = state.decoder.write(chunk);\n\n // don't skip over falsy values in objectMode\n if (state.objectMode && (chunk === null || chunk === undefined))\n return;\n else if (!state.objectMode && (!chunk || !chunk.length))\n return;\n\n var ret = self.push(chunk);\n if (!ret) {\n paused = true;\n stream.pause();\n }\n });\n\n // proxy all the other methods.\n // important when wrapping filters and duplexes.\n for (var i in stream) {\n if (this[i] === undefined && typeof stream[i] === 'function') {\n this[i] = function(method) { return function() {\n return stream[method].apply(stream, arguments);\n }; }(i);\n }\n }\n\n // proxy certain important events.\n var events = ['error', 'close', 'destroy', 'pause', 'resume'];\n forEach(events, function(ev) {\n stream.on(ev, self.emit.bind(self, ev));\n });\n\n // when we try to consume some more bytes, simply unpause the\n // underlying stream.\n self._read = function(n) {\n debug('wrapped _read', n);\n if (paused) {\n paused = false;\n stream.resume();\n }\n };\n\n return self;\n};\n\n\n// exposed for testing purposes only.\nReadable._fromList = fromList;\n\n// Pluck off n bytes from an array of buffers.\n// Length is the combined lengths of all the buffers in the list.\nfunction fromList(n, state) {\n var list = state.buffer;\n var length = state.length;\n var stringMode = !!state.decoder;\n var objectMode = !!state.objectMode;\n var ret;\n\n // nothing in the list, definitely empty.\n if (list.length === 0)\n return null;\n\n if (length === 0)\n ret = null;\n else if (objectMode)\n ret = list.shift();\n else if (!n || n >= length) {\n // read it all, truncate the array.\n if (stringMode)\n ret = list.join('');\n else if (list.length === 1)\n ret = list[0];\n else\n ret = Buffer.concat(list, length);\n list.length = 0;\n } else {\n // read just some of it.\n if (n < list[0].length) {\n // just take a part of the first list item.\n // slice is the same for buffers and strings.\n var buf = list[0];\n ret = buf.slice(0, n);\n list[0] = buf.slice(n);\n } else if (n === list[0].length) {\n // first list is a perfect match\n ret = list.shift();\n } else {\n // complex case.\n // we have enough to cover it, but it spans past the first buffer.\n if (stringMode)\n ret = '';\n else\n ret = new Buffer(n);\n\n var c = 0;\n for (var i = 0, l = list.length; i < l && c < n; i++) {\n var buf = list[0];\n var cpy = Math.min(n - c, buf.length);\n\n if (stringMode)\n ret += buf.slice(0, cpy);\n else\n buf.copy(ret, c, 0, cpy);\n\n if (cpy < buf.length)\n list[0] = buf.slice(cpy);\n else\n list.shift();\n\n c += cpy;\n }\n }\n }\n\n return ret;\n}\n\nfunction endReadable(stream) {\n var state = stream._readableState;\n\n // If we get here before consuming all the bytes, then that is a\n // bug in node. Should never happen.\n if (state.length > 0)\n throw new Error('endReadable called on non-empty stream');\n\n if (!state.endEmitted) {\n state.ended = true;\n processNextTick(endReadableNT, state, stream);\n }\n}\n\nfunction endReadableNT(state, stream) {\n // Check that we didn't get one last unshift.\n if (!state.endEmitted && state.length === 0) {\n state.endEmitted = true;\n stream.readable = false;\n stream.emit('end');\n }\n}\n\nfunction forEach (xs, f) {\n for (var i = 0, l = xs.length; i < l; i++) {\n f(xs[i], i);\n }\n}\n\nfunction indexOf (xs, x) {\n for (var i = 0, l = xs.length; i < l; i++) {\n if (xs[i] === x) return i;\n }\n return -1;\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(83)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/unique-stream/~/through2-filter/~/through2/~/readable-stream/lib/_stream_readable.js\n ** module id = 263\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/unique-stream/~/through2-filter/~/through2/~/readable-stream/lib/_stream_readable.js?"); + eval("/*!\n * expand-range \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT license.\n */\n\n'use strict';\n\nvar fill = __webpack_require__(264);\n\nmodule.exports = function expandRange(str, options, fn) {\n if (typeof str !== 'string') {\n throw new TypeError('expand-range expects a string.');\n }\n\n if (typeof options === 'function') {\n fn = options;\n options = {};\n }\n\n if (typeof options === 'boolean') {\n options = {};\n options.makeRe = true;\n }\n\n // create arguments to pass to fill-range\n var opts = options || {};\n var args = str.split('..');\n var len = args.length;\n if (len > 3) { return str; }\n\n // if only one argument, it can't expand so return it\n if (len === 1) { return args; }\n\n // if `true`, tell fill-range to regexify the string\n if (typeof fn === 'boolean' && fn === true) {\n opts.makeRe = true;\n }\n\n args.push(opts);\n return fill.apply(fill, args.concat(fn));\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/expand-range/index.js\n ** module id = 263\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/expand-range/index.js?"); /***/ }, /* 264 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("module.exports = Array.isArray || function (arr) {\n return Object.prototype.toString.call(arr) == '[object Array]';\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/unique-stream/~/through2-filter/~/through2/~/readable-stream/~/isarray/index.js\n ** module id = 264\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/unique-stream/~/through2-filter/~/through2/~/readable-stream/~/isarray/index.js?"); + eval("/*!\n * fill-range \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nvar isObject = __webpack_require__(265);\nvar isNumber = __webpack_require__(266);\nvar randomize = __webpack_require__(269);\nvar repeatStr = __webpack_require__(270);\nvar repeat = __webpack_require__(271);\n\n/**\n * Expose `fillRange`\n */\n\nmodule.exports = fillRange;\n\n/**\n * Return a range of numbers or letters.\n *\n * @param {String} `a` Start of the range\n * @param {String} `b` End of the range\n * @param {String} `step` Increment or decrement to use.\n * @param {Function} `fn` Custom function to modify each element in the range.\n * @return {Array}\n */\n\nfunction fillRange(a, b, step, options, fn) {\n if (a == null || b == null) {\n throw new Error('fill-range expects the first and second args to be strings.');\n }\n\n if (typeof step === 'function') {\n fn = step; options = {}; step = null;\n }\n\n if (typeof options === 'function') {\n fn = options; options = {};\n }\n\n if (isObject(step)) {\n options = step; step = '';\n }\n\n var expand, regex = false, sep = '';\n var opts = options || {};\n\n if (typeof opts.silent === 'undefined') {\n opts.silent = true;\n }\n\n step = step || opts.step;\n\n // store a ref to unmodified arg\n var origA = a, origB = b;\n\n b = (b.toString() === '-0') ? 0 : b;\n\n if (opts.optimize || opts.makeRe) {\n step = step ? (step += '~') : step;\n expand = true;\n regex = true;\n sep = '~';\n }\n\n // handle special step characters\n if (typeof step === 'string') {\n var match = stepRe().exec(step);\n\n if (match) {\n var i = match.index;\n var m = match[0];\n\n // repeat string\n if (m === '+') {\n return repeat(a, b);\n\n // randomize a, `b` times\n } else if (m === '?') {\n return [randomize(a, b)];\n\n // expand right, no regex reduction\n } else if (m === '>') {\n step = step.substr(0, i) + step.substr(i + 1);\n expand = true;\n\n // expand to an array, or if valid create a reduced\n // string for a regex logic `or`\n } else if (m === '|') {\n step = step.substr(0, i) + step.substr(i + 1);\n expand = true;\n regex = true;\n sep = m;\n\n // expand to an array, or if valid create a reduced\n // string for a regex range\n } else if (m === '~') {\n step = step.substr(0, i) + step.substr(i + 1);\n expand = true;\n regex = true;\n sep = m;\n }\n } else if (!isNumber(step)) {\n if (!opts.silent) {\n throw new TypeError('fill-range: invalid step.');\n }\n return null;\n }\n }\n\n if (/[.&*()[\\]^%$#@!]/.test(a) || /[.&*()[\\]^%$#@!]/.test(b)) {\n if (!opts.silent) {\n throw new RangeError('fill-range: invalid range arguments.');\n }\n return null;\n }\n\n // has neither a letter nor number, or has both letters and numbers\n // this needs to be after the step logic\n if (!noAlphaNum(a) || !noAlphaNum(b) || hasBoth(a) || hasBoth(b)) {\n if (!opts.silent) {\n throw new RangeError('fill-range: invalid range arguments.');\n }\n return null;\n }\n\n // validate arguments\n var isNumA = isNumber(zeros(a));\n var isNumB = isNumber(zeros(b));\n\n if ((!isNumA && isNumB) || (isNumA && !isNumB)) {\n if (!opts.silent) {\n throw new TypeError('fill-range: first range argument is incompatible with second.');\n }\n return null;\n }\n\n // by this point both are the same, so we\n // can use A to check going forward.\n var isNum = isNumA;\n var num = formatStep(step);\n\n // is the range alphabetical? or numeric?\n if (isNum) {\n // if numeric, coerce to an integer\n a = +a; b = +b;\n } else {\n // otherwise, get the charCode to expand alpha ranges\n a = a.charCodeAt(0);\n b = b.charCodeAt(0);\n }\n\n // is the pattern descending?\n var isDescending = a > b;\n\n // don't create a character class if the args are < 0\n if (a < 0 || b < 0) {\n expand = false;\n regex = false;\n }\n\n // detect padding\n var padding = isPadded(origA, origB);\n var res, pad, arr = [];\n var ii = 0;\n\n // character classes, ranges and logical `or`\n if (regex) {\n if (shouldExpand(a, b, num, isNum, padding, opts)) {\n // make sure the correct separator is used\n if (sep === '|' || sep === '~') {\n sep = detectSeparator(a, b, num, isNum, isDescending);\n }\n return wrap([origA, origB], sep, opts);\n }\n }\n\n while (isDescending ? (a >= b) : (a <= b)) {\n if (padding && isNum) {\n pad = padding(a);\n }\n\n // custom function\n if (typeof fn === 'function') {\n res = fn(a, isNum, pad, ii++);\n\n // letters\n } else if (!isNum) {\n if (regex && isInvalidChar(a)) {\n res = null;\n } else {\n res = String.fromCharCode(a);\n }\n\n // numbers\n } else {\n res = formatPadding(a, pad);\n }\n\n // add result to the array, filtering any nulled values\n if (res !== null) arr.push(res);\n\n // increment or decrement\n if (isDescending) {\n a -= num;\n } else {\n a += num;\n }\n }\n\n // now that the array is expanded, we need to handle regex\n // character classes, ranges or logical `or` that wasn't\n // already handled before the loop\n if ((regex || expand) && !opts.noexpand) {\n // make sure the correct separator is used\n if (sep === '|' || sep === '~') {\n sep = detectSeparator(a, b, num, isNum, isDescending);\n }\n if (arr.length === 1 || a < 0 || b < 0) { return arr; }\n return wrap(arr, sep, opts);\n }\n\n return arr;\n}\n\n/**\n * Wrap the string with the correct regex\n * syntax.\n */\n\nfunction wrap(arr, sep, opts) {\n if (sep === '~') { sep = '-'; }\n var str = arr.join(sep);\n var pre = opts && opts.regexPrefix;\n\n // regex logical `or`\n if (sep === '|') {\n str = pre ? pre + str : str;\n str = '(' + str + ')';\n }\n\n // regex character class\n if (sep === '-') {\n str = (pre && pre === '^')\n ? pre + str\n : str;\n str = '[' + str + ']';\n }\n return [str];\n}\n\n/**\n * Check for invalid characters\n */\n\nfunction isCharClass(a, b, step, isNum, isDescending) {\n if (isDescending) { return false; }\n if (isNum) { return a <= 9 && b <= 9; }\n if (a < b) { return step === 1; }\n return false;\n}\n\n/**\n * Detect the correct separator to use\n */\n\nfunction shouldExpand(a, b, num, isNum, padding, opts) {\n if (isNum && (a > 9 || b > 9)) { return false; }\n return !padding && num === 1 && a < b;\n}\n\n/**\n * Detect the correct separator to use\n */\n\nfunction detectSeparator(a, b, step, isNum, isDescending) {\n var isChar = isCharClass(a, b, step, isNum, isDescending);\n if (!isChar) {\n return '|';\n }\n return '~';\n}\n\n/**\n * Correctly format the step based on type\n */\n\nfunction formatStep(step) {\n return Math.abs(step >> 0) || 1;\n}\n\n/**\n * Format padding, taking leading `-` into account\n */\n\nfunction formatPadding(ch, pad) {\n var res = pad ? pad + ch : ch;\n if (pad && ch.toString().charAt(0) === '-') {\n res = '-' + pad + ch.toString().substr(1);\n }\n return res.toString();\n}\n\n/**\n * Check for invalid characters\n */\n\nfunction isInvalidChar(str) {\n var ch = toStr(str);\n return ch === '\\\\'\n || ch === '['\n || ch === ']'\n || ch === '^'\n || ch === '('\n || ch === ')'\n || ch === '`';\n}\n\n/**\n * Convert to a string from a charCode\n */\n\nfunction toStr(ch) {\n return String.fromCharCode(ch);\n}\n\n\n/**\n * Step regex\n */\n\nfunction stepRe() {\n return /\\?|>|\\||\\+|\\~/g;\n}\n\n/**\n * Return true if `val` has either a letter\n * or a number\n */\n\nfunction noAlphaNum(val) {\n return /[a-z0-9]/i.test(val);\n}\n\n/**\n * Return true if `val` has both a letter and\n * a number (invalid)\n */\n\nfunction hasBoth(val) {\n return /[a-z][0-9]|[0-9][a-z]/i.test(val);\n}\n\n/**\n * Normalize zeros for checks\n */\n\nfunction zeros(val) {\n if (/^-*0+$/.test(val.toString())) {\n return '0';\n }\n return val;\n}\n\n/**\n * Return true if `val` has leading zeros,\n * or a similar valid pattern.\n */\n\nfunction hasZeros(val) {\n return /[^.]\\.|^-*0+[0-9]/.test(val);\n}\n\n/**\n * If the string is padded, returns a curried function with\n * the a cached padding string, or `false` if no padding.\n *\n * @param {*} `origA` String or number.\n * @return {String|Boolean}\n */\n\nfunction isPadded(origA, origB) {\n if (hasZeros(origA) || hasZeros(origB)) {\n var alen = length(origA);\n var blen = length(origB);\n\n var len = alen >= blen\n ? alen\n : blen;\n\n return function (a) {\n return repeatStr('0', len - length(a));\n };\n }\n return false;\n}\n\n/**\n * Get the string length of `val`\n */\n\nfunction length(val) {\n return val.toString().length;\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/fill-range/index.js\n ** module id = 264\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/fill-range/index.js?"); /***/ }, /* 265 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("/* (ignored) */\n\n/*****************\n ** WEBPACK FOOTER\n ** util (ignored)\n ** module id = 265\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///util_(ignored)?"); + eval("/*!\n * isobject \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nvar isArray = __webpack_require__(101);\n\nmodule.exports = function isObject(o) {\n return o != null && typeof o === 'object' && !isArray(o);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/isobject/index.js\n ** module id = 265\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/isobject/index.js?"); /***/ }, /* 266 */ /***/ function(module, exports, __webpack_require__) { - eval("// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nvar Buffer = __webpack_require__(1).Buffer;\n\nvar isBufferEncoding = Buffer.isEncoding\n || function(encoding) {\n switch (encoding && encoding.toLowerCase()) {\n case 'hex': case 'utf8': case 'utf-8': case 'ascii': case 'binary': case 'base64': case 'ucs2': case 'ucs-2': case 'utf16le': case 'utf-16le': case 'raw': return true;\n default: return false;\n }\n }\n\n\nfunction assertEncoding(encoding) {\n if (encoding && !isBufferEncoding(encoding)) {\n throw new Error('Unknown encoding: ' + encoding);\n }\n}\n\n// StringDecoder provides an interface for efficiently splitting a series of\n// buffers into a series of JS strings without breaking apart multi-byte\n// characters. CESU-8 is handled as part of the UTF-8 encoding.\n//\n// @TODO Handling all encodings inside a single object makes it very difficult\n// to reason about this code, so it should be split up in the future.\n// @TODO There should be a utf8-strict encoding that rejects invalid UTF-8 code\n// points as used by CESU-8.\nvar StringDecoder = exports.StringDecoder = function(encoding) {\n this.encoding = (encoding || 'utf8').toLowerCase().replace(/[-_]/, '');\n assertEncoding(encoding);\n switch (this.encoding) {\n case 'utf8':\n // CESU-8 represents each of Surrogate Pair by 3-bytes\n this.surrogateSize = 3;\n break;\n case 'ucs2':\n case 'utf16le':\n // UTF-16 represents each of Surrogate Pair by 2-bytes\n this.surrogateSize = 2;\n this.detectIncompleteChar = utf16DetectIncompleteChar;\n break;\n case 'base64':\n // Base-64 stores 3 bytes in 4 chars, and pads the remainder.\n this.surrogateSize = 3;\n this.detectIncompleteChar = base64DetectIncompleteChar;\n break;\n default:\n this.write = passThroughWrite;\n return;\n }\n\n // Enough space to store all bytes of a single character. UTF-8 needs 4\n // bytes, but CESU-8 may require up to 6 (3 bytes per surrogate).\n this.charBuffer = new Buffer(6);\n // Number of bytes received for the current incomplete multi-byte character.\n this.charReceived = 0;\n // Number of bytes expected for the current incomplete multi-byte character.\n this.charLength = 0;\n};\n\n\n// write decodes the given buffer and returns it as JS string that is\n// guaranteed to not contain any partial multi-byte characters. Any partial\n// character found at the end of the buffer is buffered up, and will be\n// returned when calling write again with the remaining bytes.\n//\n// Note: Converting a Buffer containing an orphan surrogate to a String\n// currently works, but converting a String to a Buffer (via `new Buffer`, or\n// Buffer#write) will replace incomplete surrogates with the unicode\n// replacement character. See https://codereview.chromium.org/121173009/ .\nStringDecoder.prototype.write = function(buffer) {\n var charStr = '';\n // if our last write ended with an incomplete multibyte character\n while (this.charLength) {\n // determine how many remaining bytes this buffer has to offer for this char\n var available = (buffer.length >= this.charLength - this.charReceived) ?\n this.charLength - this.charReceived :\n buffer.length;\n\n // add the new bytes to the char buffer\n buffer.copy(this.charBuffer, this.charReceived, 0, available);\n this.charReceived += available;\n\n if (this.charReceived < this.charLength) {\n // still not enough chars in this buffer? wait for more ...\n return '';\n }\n\n // remove bytes belonging to the current character from the buffer\n buffer = buffer.slice(available, buffer.length);\n\n // get the character that was split\n charStr = this.charBuffer.slice(0, this.charLength).toString(this.encoding);\n\n // CESU-8: lead surrogate (D800-DBFF) is also the incomplete character\n var charCode = charStr.charCodeAt(charStr.length - 1);\n if (charCode >= 0xD800 && charCode <= 0xDBFF) {\n this.charLength += this.surrogateSize;\n charStr = '';\n continue;\n }\n this.charReceived = this.charLength = 0;\n\n // if there are no more bytes in this buffer, just emit our char\n if (buffer.length === 0) {\n return charStr;\n }\n break;\n }\n\n // determine and set charLength / charReceived\n this.detectIncompleteChar(buffer);\n\n var end = buffer.length;\n if (this.charLength) {\n // buffer the incomplete character bytes we got\n buffer.copy(this.charBuffer, 0, buffer.length - this.charReceived, end);\n end -= this.charReceived;\n }\n\n charStr += buffer.toString(this.encoding, 0, end);\n\n var end = charStr.length - 1;\n var charCode = charStr.charCodeAt(end);\n // CESU-8: lead surrogate (D800-DBFF) is also the incomplete character\n if (charCode >= 0xD800 && charCode <= 0xDBFF) {\n var size = this.surrogateSize;\n this.charLength += size;\n this.charReceived += size;\n this.charBuffer.copy(this.charBuffer, size, 0, size);\n buffer.copy(this.charBuffer, 0, 0, size);\n return charStr.substring(0, end);\n }\n\n // or just emit the charStr\n return charStr;\n};\n\n// detectIncompleteChar determines if there is an incomplete UTF-8 character at\n// the end of the given buffer. If so, it sets this.charLength to the byte\n// length that character, and sets this.charReceived to the number of bytes\n// that are available for this character.\nStringDecoder.prototype.detectIncompleteChar = function(buffer) {\n // determine how many bytes we have to check at the end of this buffer\n var i = (buffer.length >= 3) ? 3 : buffer.length;\n\n // Figure out if one of the last i bytes of our buffer announces an\n // incomplete char.\n for (; i > 0; i--) {\n var c = buffer[buffer.length - i];\n\n // See http://en.wikipedia.org/wiki/UTF-8#Description\n\n // 110XXXXX\n if (i == 1 && c >> 5 == 0x06) {\n this.charLength = 2;\n break;\n }\n\n // 1110XXXX\n if (i <= 2 && c >> 4 == 0x0E) {\n this.charLength = 3;\n break;\n }\n\n // 11110XXX\n if (i <= 3 && c >> 3 == 0x1E) {\n this.charLength = 4;\n break;\n }\n }\n this.charReceived = i;\n};\n\nStringDecoder.prototype.end = function(buffer) {\n var res = '';\n if (buffer && buffer.length)\n res = this.write(buffer);\n\n if (this.charReceived) {\n var cr = this.charReceived;\n var buf = this.charBuffer;\n var enc = this.encoding;\n res += buf.slice(0, cr).toString(enc);\n }\n\n return res;\n};\n\nfunction passThroughWrite(buffer) {\n return buffer.toString(this.encoding);\n}\n\nfunction utf16DetectIncompleteChar(buffer) {\n this.charReceived = buffer.length % 2;\n this.charLength = this.charReceived ? 2 : 0;\n}\n\nfunction base64DetectIncompleteChar(buffer) {\n this.charReceived = buffer.length % 3;\n this.charLength = this.charReceived ? 3 : 0;\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/unique-stream/~/through2-filter/~/through2/~/readable-stream/~/string_decoder/index.js\n ** module id = 266\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/unique-stream/~/through2-filter/~/through2/~/readable-stream/~/string_decoder/index.js?"); + eval("/*!\n * is-number \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nvar typeOf = __webpack_require__(267);\n\nmodule.exports = function isNumber(num) {\n var type = typeOf(num);\n if (type !== 'number' && type !== 'string') {\n return false;\n }\n var n = +num;\n return (n - n + 1) >= 0 && num !== '';\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/is-number/index.js\n ** module id = 266\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/is-number/index.js?"); /***/ }, /* 267 */ /***/ function(module, exports, __webpack_require__) { - eval("// A bit simpler than readable streams.\n// Implement an async ._write(chunk, encoding, cb), and it'll handle all\n// the drain event emission and buffering.\n\n'use strict';\n\nmodule.exports = Writable;\n\n/**/\nvar processNextTick = __webpack_require__(260);\n/**/\n\n\n/**/\nvar Buffer = __webpack_require__(1).Buffer;\n/**/\n\nWritable.WritableState = WritableState;\n\n\n/**/\nvar util = __webpack_require__(261);\nutil.inherits = __webpack_require__(262);\n/**/\n\n\n/**/\nvar internalUtil = {\n deprecate: __webpack_require__(268)\n};\n/**/\n\n\n\n/**/\nvar Stream;\n(function (){try{\n Stream = __webpack_require__(96);\n}catch(_){}finally{\n if (!Stream)\n Stream = __webpack_require__(84).EventEmitter;\n}}())\n/**/\n\nvar Buffer = __webpack_require__(1).Buffer;\n\nutil.inherits(Writable, Stream);\n\nfunction nop() {}\n\nfunction WriteReq(chunk, encoding, cb) {\n this.chunk = chunk;\n this.encoding = encoding;\n this.callback = cb;\n this.next = null;\n}\n\nvar Duplex;\nfunction WritableState(options, stream) {\n Duplex = Duplex || __webpack_require__(259);\n\n options = options || {};\n\n // object stream flag to indicate whether or not this stream\n // contains buffers or objects.\n this.objectMode = !!options.objectMode;\n\n if (stream instanceof Duplex)\n this.objectMode = this.objectMode || !!options.writableObjectMode;\n\n // the point at which write() starts returning false\n // Note: 0 is a valid value, means that we always return false if\n // the entire buffer is not flushed immediately on write()\n var hwm = options.highWaterMark;\n var defaultHwm = this.objectMode ? 16 : 16 * 1024;\n this.highWaterMark = (hwm || hwm === 0) ? hwm : defaultHwm;\n\n // cast to ints.\n this.highWaterMark = ~~this.highWaterMark;\n\n this.needDrain = false;\n // at the start of calling end()\n this.ending = false;\n // when end() has been called, and returned\n this.ended = false;\n // when 'finish' is emitted\n this.finished = false;\n\n // should we decode strings into buffers before passing to _write?\n // this is here so that some node-core streams can optimize string\n // handling at a lower level.\n var noDecode = options.decodeStrings === false;\n this.decodeStrings = !noDecode;\n\n // Crypto is kind of old and crusty. Historically, its default string\n // encoding is 'binary' so we have to make this configurable.\n // Everything else in the universe uses 'utf8', though.\n this.defaultEncoding = options.defaultEncoding || 'utf8';\n\n // not an actual buffer we keep track of, but a measurement\n // of how much we're waiting to get pushed to some underlying\n // socket or file.\n this.length = 0;\n\n // a flag to see when we're in the middle of a write.\n this.writing = false;\n\n // when true all writes will be buffered until .uncork() call\n this.corked = 0;\n\n // a flag to be able to tell if the onwrite cb is called immediately,\n // or on a later tick. We set this to true at first, because any\n // actions that shouldn't happen until \"later\" should generally also\n // not happen before the first write call.\n this.sync = true;\n\n // a flag to know if we're processing previously buffered items, which\n // may call the _write() callback in the same tick, so that we don't\n // end up in an overlapped onwrite situation.\n this.bufferProcessing = false;\n\n // the callback that's passed to _write(chunk,cb)\n this.onwrite = function(er) {\n onwrite(stream, er);\n };\n\n // the callback that the user supplies to write(chunk,encoding,cb)\n this.writecb = null;\n\n // the amount that is being written when _write is called.\n this.writelen = 0;\n\n this.bufferedRequest = null;\n this.lastBufferedRequest = null;\n\n // number of pending user-supplied write callbacks\n // this must be 0 before 'finish' can be emitted\n this.pendingcb = 0;\n\n // emit prefinish if the only thing we're waiting for is _write cbs\n // This is relevant for synchronous Transform streams\n this.prefinished = false;\n\n // True if the error was already emitted and should not be thrown again\n this.errorEmitted = false;\n}\n\nWritableState.prototype.getBuffer = function writableStateGetBuffer() {\n var current = this.bufferedRequest;\n var out = [];\n while (current) {\n out.push(current);\n current = current.next;\n }\n return out;\n};\n\n(function (){try {\nObject.defineProperty(WritableState.prototype, 'buffer', {\n get: internalUtil.deprecate(function() {\n return this.getBuffer();\n }, '_writableState.buffer is deprecated. Use _writableState.getBuffer ' +\n 'instead.')\n});\n}catch(_){}}());\n\n\nvar Duplex;\nfunction Writable(options) {\n Duplex = Duplex || __webpack_require__(259);\n\n // Writable ctor is applied to Duplexes, though they're not\n // instanceof Writable, they're instanceof Readable.\n if (!(this instanceof Writable) && !(this instanceof Duplex))\n return new Writable(options);\n\n this._writableState = new WritableState(options, this);\n\n // legacy.\n this.writable = true;\n\n if (options) {\n if (typeof options.write === 'function')\n this._write = options.write;\n\n if (typeof options.writev === 'function')\n this._writev = options.writev;\n }\n\n Stream.call(this);\n}\n\n// Otherwise people can pipe Writable streams, which is just wrong.\nWritable.prototype.pipe = function() {\n this.emit('error', new Error('Cannot pipe. Not readable.'));\n};\n\n\nfunction writeAfterEnd(stream, cb) {\n var er = new Error('write after end');\n // TODO: defer error events consistently everywhere, not just the cb\n stream.emit('error', er);\n processNextTick(cb, er);\n}\n\n// If we get something that is not a buffer, string, null, or undefined,\n// and we're not in objectMode, then that's an error.\n// Otherwise stream chunks are all considered to be of length=1, and the\n// watermarks determine how many objects to keep in the buffer, rather than\n// how many bytes or characters.\nfunction validChunk(stream, state, chunk, cb) {\n var valid = true;\n\n if (!(Buffer.isBuffer(chunk)) &&\n typeof chunk !== 'string' &&\n chunk !== null &&\n chunk !== undefined &&\n !state.objectMode) {\n var er = new TypeError('Invalid non-string/buffer chunk');\n stream.emit('error', er);\n processNextTick(cb, er);\n valid = false;\n }\n return valid;\n}\n\nWritable.prototype.write = function(chunk, encoding, cb) {\n var state = this._writableState;\n var ret = false;\n\n if (typeof encoding === 'function') {\n cb = encoding;\n encoding = null;\n }\n\n if (Buffer.isBuffer(chunk))\n encoding = 'buffer';\n else if (!encoding)\n encoding = state.defaultEncoding;\n\n if (typeof cb !== 'function')\n cb = nop;\n\n if (state.ended)\n writeAfterEnd(this, cb);\n else if (validChunk(this, state, chunk, cb)) {\n state.pendingcb++;\n ret = writeOrBuffer(this, state, chunk, encoding, cb);\n }\n\n return ret;\n};\n\nWritable.prototype.cork = function() {\n var state = this._writableState;\n\n state.corked++;\n};\n\nWritable.prototype.uncork = function() {\n var state = this._writableState;\n\n if (state.corked) {\n state.corked--;\n\n if (!state.writing &&\n !state.corked &&\n !state.finished &&\n !state.bufferProcessing &&\n state.bufferedRequest)\n clearBuffer(this, state);\n }\n};\n\nWritable.prototype.setDefaultEncoding = function setDefaultEncoding(encoding) {\n // node::ParseEncoding() requires lower case.\n if (typeof encoding === 'string')\n encoding = encoding.toLowerCase();\n if (!(['hex', 'utf8', 'utf-8', 'ascii', 'binary', 'base64',\n'ucs2', 'ucs-2','utf16le', 'utf-16le', 'raw']\n.indexOf((encoding + '').toLowerCase()) > -1))\n throw new TypeError('Unknown encoding: ' + encoding);\n this._writableState.defaultEncoding = encoding;\n};\n\nfunction decodeChunk(state, chunk, encoding) {\n if (!state.objectMode &&\n state.decodeStrings !== false &&\n typeof chunk === 'string') {\n chunk = new Buffer(chunk, encoding);\n }\n return chunk;\n}\n\n// if we're already writing something, then just put this\n// in the queue, and wait our turn. Otherwise, call _write\n// If we return false, then we need a drain event, so set that flag.\nfunction writeOrBuffer(stream, state, chunk, encoding, cb) {\n chunk = decodeChunk(state, chunk, encoding);\n\n if (Buffer.isBuffer(chunk))\n encoding = 'buffer';\n var len = state.objectMode ? 1 : chunk.length;\n\n state.length += len;\n\n var ret = state.length < state.highWaterMark;\n // we must ensure that previous needDrain will not be reset to false.\n if (!ret)\n state.needDrain = true;\n\n if (state.writing || state.corked) {\n var last = state.lastBufferedRequest;\n state.lastBufferedRequest = new WriteReq(chunk, encoding, cb);\n if (last) {\n last.next = state.lastBufferedRequest;\n } else {\n state.bufferedRequest = state.lastBufferedRequest;\n }\n } else {\n doWrite(stream, state, false, len, chunk, encoding, cb);\n }\n\n return ret;\n}\n\nfunction doWrite(stream, state, writev, len, chunk, encoding, cb) {\n state.writelen = len;\n state.writecb = cb;\n state.writing = true;\n state.sync = true;\n if (writev)\n stream._writev(chunk, state.onwrite);\n else\n stream._write(chunk, encoding, state.onwrite);\n state.sync = false;\n}\n\nfunction onwriteError(stream, state, sync, er, cb) {\n --state.pendingcb;\n if (sync)\n processNextTick(cb, er);\n else\n cb(er);\n\n stream._writableState.errorEmitted = true;\n stream.emit('error', er);\n}\n\nfunction onwriteStateUpdate(state) {\n state.writing = false;\n state.writecb = null;\n state.length -= state.writelen;\n state.writelen = 0;\n}\n\nfunction onwrite(stream, er) {\n var state = stream._writableState;\n var sync = state.sync;\n var cb = state.writecb;\n\n onwriteStateUpdate(state);\n\n if (er)\n onwriteError(stream, state, sync, er, cb);\n else {\n // Check if we're actually ready to finish, but don't emit yet\n var finished = needFinish(state);\n\n if (!finished &&\n !state.corked &&\n !state.bufferProcessing &&\n state.bufferedRequest) {\n clearBuffer(stream, state);\n }\n\n if (sync) {\n processNextTick(afterWrite, stream, state, finished, cb);\n } else {\n afterWrite(stream, state, finished, cb);\n }\n }\n}\n\nfunction afterWrite(stream, state, finished, cb) {\n if (!finished)\n onwriteDrain(stream, state);\n state.pendingcb--;\n cb();\n finishMaybe(stream, state);\n}\n\n// Must force callback to be called on nextTick, so that we don't\n// emit 'drain' before the write() consumer gets the 'false' return\n// value, and has a chance to attach a 'drain' listener.\nfunction onwriteDrain(stream, state) {\n if (state.length === 0 && state.needDrain) {\n state.needDrain = false;\n stream.emit('drain');\n }\n}\n\n\n// if there's something in the buffer waiting, then process it\nfunction clearBuffer(stream, state) {\n state.bufferProcessing = true;\n var entry = state.bufferedRequest;\n\n if (stream._writev && entry && entry.next) {\n // Fast case, write everything using _writev()\n var buffer = [];\n var cbs = [];\n while (entry) {\n cbs.push(entry.callback);\n buffer.push(entry);\n entry = entry.next;\n }\n\n // count the one we are adding, as well.\n // TODO(isaacs) clean this up\n state.pendingcb++;\n state.lastBufferedRequest = null;\n doWrite(stream, state, true, state.length, buffer, '', function(err) {\n for (var i = 0; i < cbs.length; i++) {\n state.pendingcb--;\n cbs[i](err);\n }\n });\n\n // Clear buffer\n } else {\n // Slow case, write chunks one-by-one\n while (entry) {\n var chunk = entry.chunk;\n var encoding = entry.encoding;\n var cb = entry.callback;\n var len = state.objectMode ? 1 : chunk.length;\n\n doWrite(stream, state, false, len, chunk, encoding, cb);\n entry = entry.next;\n // if we didn't call the onwrite immediately, then\n // it means that we need to wait until it does.\n // also, that means that the chunk and cb are currently\n // being processed, so move the buffer counter past them.\n if (state.writing) {\n break;\n }\n }\n\n if (entry === null)\n state.lastBufferedRequest = null;\n }\n state.bufferedRequest = entry;\n state.bufferProcessing = false;\n}\n\nWritable.prototype._write = function(chunk, encoding, cb) {\n cb(new Error('not implemented'));\n};\n\nWritable.prototype._writev = null;\n\nWritable.prototype.end = function(chunk, encoding, cb) {\n var state = this._writableState;\n\n if (typeof chunk === 'function') {\n cb = chunk;\n chunk = null;\n encoding = null;\n } else if (typeof encoding === 'function') {\n cb = encoding;\n encoding = null;\n }\n\n if (chunk !== null && chunk !== undefined)\n this.write(chunk, encoding);\n\n // .end() fully uncorks\n if (state.corked) {\n state.corked = 1;\n this.uncork();\n }\n\n // ignore unnecessary end() calls.\n if (!state.ending && !state.finished)\n endWritable(this, state, cb);\n};\n\n\nfunction needFinish(state) {\n return (state.ending &&\n state.length === 0 &&\n state.bufferedRequest === null &&\n !state.finished &&\n !state.writing);\n}\n\nfunction prefinish(stream, state) {\n if (!state.prefinished) {\n state.prefinished = true;\n stream.emit('prefinish');\n }\n}\n\nfunction finishMaybe(stream, state) {\n var need = needFinish(state);\n if (need) {\n if (state.pendingcb === 0) {\n prefinish(stream, state);\n state.finished = true;\n stream.emit('finish');\n } else {\n prefinish(stream, state);\n }\n }\n return need;\n}\n\nfunction endWritable(stream, state, cb) {\n state.ending = true;\n finishMaybe(stream, state);\n if (cb) {\n if (state.finished)\n processNextTick(cb);\n else\n stream.once('finish', cb);\n }\n state.ended = true;\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/unique-stream/~/through2-filter/~/through2/~/readable-stream/lib/_stream_writable.js\n ** module id = 267\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/unique-stream/~/through2-filter/~/through2/~/readable-stream/lib/_stream_writable.js?"); + eval("/* WEBPACK VAR INJECTION */(function(Buffer) {var isBuffer = __webpack_require__(268);\nvar toString = Object.prototype.toString;\n\n/**\n * Get the native `typeof` a value.\n *\n * @param {*} `val`\n * @return {*} Native javascript type\n */\n\nmodule.exports = function kindOf(val) {\n // primitivies\n if (typeof val === 'undefined') {\n return 'undefined';\n }\n if (val === null) {\n return 'null';\n }\n if (val === true || val === false || val instanceof Boolean) {\n return 'boolean';\n }\n if (typeof val === 'string' || val instanceof String) {\n return 'string';\n }\n if (typeof val === 'number' || val instanceof Number) {\n return 'number';\n }\n\n // functions\n if (typeof val === 'function' || val instanceof Function) {\n return 'function';\n }\n\n // array\n if (typeof Array.isArray !== 'undefined' && Array.isArray(val)) {\n return 'array';\n }\n\n // check for instances of RegExp and Date before calling `toString`\n if (val instanceof RegExp) {\n return 'regexp';\n }\n if (val instanceof Date) {\n return 'date';\n }\n\n // other objects\n var type = toString.call(val);\n\n if (type === '[object RegExp]') {\n return 'regexp';\n }\n if (type === '[object Date]') {\n return 'date';\n }\n if (type === '[object Arguments]') {\n return 'arguments';\n }\n\n // buffer\n if (typeof Buffer !== 'undefined' && isBuffer(val)) {\n return 'buffer';\n }\n\n // es6: Map, WeakMap, Set, WeakSet\n if (type === '[object Set]') {\n return 'set';\n }\n if (type === '[object WeakSet]') {\n return 'weakset';\n }\n if (type === '[object Map]') {\n return 'map';\n }\n if (type === '[object WeakMap]') {\n return 'weakmap';\n }\n if (type === '[object Symbol]') {\n return 'symbol';\n }\n\n // typed arrays\n if (type === '[object Int8Array]') {\n return 'int8array';\n }\n if (type === '[object Uint8Array]') {\n return 'uint8array';\n }\n if (type === '[object Uint8ClampedArray]') {\n return 'uint8clampedarray';\n }\n if (type === '[object Int16Array]') {\n return 'int16array';\n }\n if (type === '[object Uint16Array]') {\n return 'uint16array';\n }\n if (type === '[object Int32Array]') {\n return 'int32array';\n }\n if (type === '[object Uint32Array]') {\n return 'uint32array';\n }\n if (type === '[object Float32Array]') {\n return 'float32array';\n }\n if (type === '[object Float64Array]') {\n return 'float64array';\n }\n\n // must be a plain object\n return 'object';\n};\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1).Buffer))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/kind-of/index.js\n ** module id = 267\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/kind-of/index.js?"); /***/ }, /* 268 */ /***/ function(module, exports) { - eval("/* WEBPACK VAR INJECTION */(function(global) {\n/**\n * Module exports.\n */\n\nmodule.exports = deprecate;\n\n/**\n * Mark that a method should not be used.\n * Returns a modified function which warns once by default.\n *\n * If `localStorage.noDeprecation = true` is set, then it is a no-op.\n *\n * If `localStorage.throwDeprecation = true` is set, then deprecated functions\n * will throw an Error when invoked.\n *\n * If `localStorage.traceDeprecation = true` is set, then deprecated functions\n * will invoke `console.trace()` instead of `console.error()`.\n *\n * @param {Function} fn - the function to deprecate\n * @param {String} msg - the string to print to the console when `fn` is invoked\n * @returns {Function} a new \"deprecated\" version of `fn`\n * @api public\n */\n\nfunction deprecate (fn, msg) {\n if (config('noDeprecation')) {\n return fn;\n }\n\n var warned = false;\n function deprecated() {\n if (!warned) {\n if (config('throwDeprecation')) {\n throw new Error(msg);\n } else if (config('traceDeprecation')) {\n console.trace(msg);\n } else {\n console.warn(msg);\n }\n warned = true;\n }\n return fn.apply(this, arguments);\n }\n\n return deprecated;\n}\n\n/**\n * Checks `localStorage` for boolean values for the given `name`.\n *\n * @param {String} name\n * @returns {Boolean}\n * @api private\n */\n\nfunction config (name) {\n // accessing global.localStorage can trigger a DOMException in sandboxed iframes\n try {\n if (!global.localStorage) return false;\n } catch (_) {\n return false;\n }\n var val = global.localStorage[name];\n if (null == val) return false;\n return String(val).toLowerCase() === 'true';\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/unique-stream/~/through2-filter/~/through2/~/readable-stream/~/util-deprecate/browser.js\n ** module id = 268\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/unique-stream/~/through2-filter/~/through2/~/readable-stream/~/util-deprecate/browser.js?"); + eval("/**\n * Determine if an object is Buffer\n *\n * Author: Feross Aboukhadijeh \n * License: MIT\n *\n * `npm install is-buffer`\n */\n\nmodule.exports = function (obj) {\n return !!(obj != null &&\n (obj._isBuffer || // For Safari 5-7 (missing Object.prototype.constructor)\n (obj.constructor &&\n typeof obj.constructor.isBuffer === 'function' &&\n obj.constructor.isBuffer(obj))\n ))\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/is-buffer/index.js\n ** module id = 268\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/is-buffer/index.js?"); /***/ }, /* 269 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("module.exports = extend\n\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\nfunction extend() {\n var target = {}\n\n for (var i = 0; i < arguments.length; i++) {\n var source = arguments[i]\n\n for (var key in source) {\n if (hasOwnProperty.call(source, key)) {\n target[key] = source[key]\n }\n }\n }\n\n return target\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/unique-stream/~/through2-filter/~/xtend/immutable.js\n ** module id = 269\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/unique-stream/~/through2-filter/~/xtend/immutable.js?"); + eval("/*!\n * randomatic \n *\n * This was originally inspired by \n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License (MIT)\n */\n\n'use strict';\n\nvar isNumber = __webpack_require__(266);\nvar typeOf = __webpack_require__(267);\n\n/**\n * Expose `randomatic`\n */\n\nmodule.exports = randomatic;\n\n/**\n * Available mask characters\n */\n\nvar type = {\n lower: 'abcdefghijklmnopqrstuvwxyz',\n upper: 'ABCDEFGHIJKLMNOPQRSTUVWXYZ',\n number: '0123456789',\n special: '~!@#$%^&()_+-={}[];\\',.'\n};\n\ntype.all = type.lower + type.upper + type.number;\n\n/**\n * Generate random character sequences of a specified `length`,\n * based on the given `pattern`.\n *\n * @param {String} `pattern` The pattern to use for generating the random string.\n * @param {String} `length` The length of the string to generate.\n * @param {String} `options`\n * @return {String}\n * @api public\n */\n\nfunction randomatic(pattern, length, options) {\n if (typeof pattern === 'undefined') {\n throw new Error('randomatic expects a string or number.');\n }\n\n var custom = false;\n if (arguments.length === 1) {\n if (typeof pattern === 'string') {\n length = pattern.length;\n\n } else if (isNumber(pattern)) {\n options = {}; length = pattern; pattern = '*';\n }\n }\n\n if (typeOf(length) === 'object' && length.hasOwnProperty('chars')) {\n options = length;\n pattern = options.chars;\n length = pattern.length;\n custom = true;\n }\n\n var opts = options || {};\n var mask = '';\n var res = '';\n\n // Characters to be used\n if (pattern.indexOf('?') !== -1) mask += opts.chars;\n if (pattern.indexOf('a') !== -1) mask += type.lower;\n if (pattern.indexOf('A') !== -1) mask += type.upper;\n if (pattern.indexOf('0') !== -1) mask += type.number;\n if (pattern.indexOf('!') !== -1) mask += type.special;\n if (pattern.indexOf('*') !== -1) mask += type.all;\n if (custom) mask += pattern;\n\n while (length--) {\n res += mask.charAt(parseInt(Math.random() * mask.length, 10));\n }\n return res;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/randomatic/index.js\n ** module id = 269\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/randomatic/index.js?"); /***/ }, /* 270 */ -/***/ function(module, exports, __webpack_require__) { +/***/ function(module, exports) { - eval("/* WEBPACK VAR INJECTION */(function(process) {// Approach:\n//\n// 1. Get the minimatch set\n// 2. For each pattern in the set, PROCESS(pattern, false)\n// 3. Store matches per-set, then uniq them\n//\n// PROCESS(pattern, inGlobStar)\n// Get the first [n] items from pattern that are all strings\n// Join these together. This is PREFIX.\n// If there is no more remaining, then stat(PREFIX) and\n// add to matches if it succeeds. END.\n//\n// If inGlobStar and PREFIX is symlink and points to dir\n// set ENTRIES = []\n// else readdir(PREFIX) as ENTRIES\n// If fail, END\n//\n// with ENTRIES\n// If pattern[n] is GLOBSTAR\n// // handle the case where the globstar match is empty\n// // by pruning it out, and testing the resulting pattern\n// PROCESS(pattern[0..n] + pattern[n+1 .. $], false)\n// // handle other cases.\n// for ENTRY in ENTRIES (not dotfiles)\n// // attach globstar + tail onto the entry\n// // Mark that this entry is a globstar match\n// PROCESS(pattern[0..n] + ENTRY + pattern[n .. $], true)\n//\n// else // not globstar\n// for ENTRY in ENTRIES (not dotfiles, unless pattern[n] is dot)\n// Test ENTRY against pattern[n]\n// If fails, continue\n// If passes, PROCESS(pattern[0..n] + item + pattern[n+1 .. $])\n//\n// Caveat:\n// Cache all stats and readdirs results to minimize syscall. Since all\n// we ever care about is existence and directory-ness, we can just keep\n// `true` for files, and [children,...] for directories, or `false` for\n// things that don't exist.\n\nmodule.exports = glob\n\nvar fs = __webpack_require__(80)\nvar minimatch = __webpack_require__(271)\nvar Minimatch = minimatch.Minimatch\nvar inherits = __webpack_require__(275)\nvar EE = __webpack_require__(84).EventEmitter\nvar path = __webpack_require__(151)\nvar assert = __webpack_require__(276)\nvar isAbsolute = __webpack_require__(277)\nvar globSync = __webpack_require__(278)\nvar common = __webpack_require__(279)\nvar alphasort = common.alphasort\nvar alphasorti = common.alphasorti\nvar setopts = common.setopts\nvar ownProp = common.ownProp\nvar inflight = __webpack_require__(280)\nvar util = __webpack_require__(140)\nvar childrenIgnored = common.childrenIgnored\nvar isIgnored = common.isIgnored\n\nvar once = __webpack_require__(282)\n\nfunction glob (pattern, options, cb) {\n if (typeof options === 'function') cb = options, options = {}\n if (!options) options = {}\n\n if (options.sync) {\n if (cb)\n throw new TypeError('callback provided to sync glob')\n return globSync(pattern, options)\n }\n\n return new Glob(pattern, options, cb)\n}\n\nglob.sync = globSync\nvar GlobSync = glob.GlobSync = globSync.GlobSync\n\n// old api surface\nglob.glob = glob\n\nglob.hasMagic = function (pattern, options_) {\n var options = util._extend({}, options_)\n options.noprocess = true\n\n var g = new Glob(pattern, options)\n var set = g.minimatch.set\n if (set.length > 1)\n return true\n\n for (var j = 0; j < set[0].length; j++) {\n if (typeof set[0][j] !== 'string')\n return true\n }\n\n return false\n}\n\nglob.Glob = Glob\ninherits(Glob, EE)\nfunction Glob (pattern, options, cb) {\n if (typeof options === 'function') {\n cb = options\n options = null\n }\n\n if (options && options.sync) {\n if (cb)\n throw new TypeError('callback provided to sync glob')\n return new GlobSync(pattern, options)\n }\n\n if (!(this instanceof Glob))\n return new Glob(pattern, options, cb)\n\n setopts(this, pattern, options)\n this._didRealPath = false\n\n // process each pattern in the minimatch set\n var n = this.minimatch.set.length\n\n // The matches are stored as {: true,...} so that\n // duplicates are automagically pruned.\n // Later, we do an Object.keys() on these.\n // Keep them as a list so we can fill in when nonull is set.\n this.matches = new Array(n)\n\n if (typeof cb === 'function') {\n cb = once(cb)\n this.on('error', cb)\n this.on('end', function (matches) {\n cb(null, matches)\n })\n }\n\n var self = this\n var n = this.minimatch.set.length\n this._processing = 0\n this.matches = new Array(n)\n\n this._emitQueue = []\n this._processQueue = []\n this.paused = false\n\n if (this.noprocess)\n return this\n\n if (n === 0)\n return done()\n\n for (var i = 0; i < n; i ++) {\n this._process(this.minimatch.set[i], i, false, done)\n }\n\n function done () {\n --self._processing\n if (self._processing <= 0)\n self._finish()\n }\n}\n\nGlob.prototype._finish = function () {\n assert(this instanceof Glob)\n if (this.aborted)\n return\n\n if (this.realpath && !this._didRealpath)\n return this._realpath()\n\n common.finish(this)\n this.emit('end', this.found)\n}\n\nGlob.prototype._realpath = function () {\n if (this._didRealpath)\n return\n\n this._didRealpath = true\n\n var n = this.matches.length\n if (n === 0)\n return this._finish()\n\n var self = this\n for (var i = 0; i < this.matches.length; i++)\n this._realpathSet(i, next)\n\n function next () {\n if (--n === 0)\n self._finish()\n }\n}\n\nGlob.prototype._realpathSet = function (index, cb) {\n var matchset = this.matches[index]\n if (!matchset)\n return cb()\n\n var found = Object.keys(matchset)\n var self = this\n var n = found.length\n\n if (n === 0)\n return cb()\n\n var set = this.matches[index] = Object.create(null)\n found.forEach(function (p, i) {\n // If there's a problem with the stat, then it means that\n // one or more of the links in the realpath couldn't be\n // resolved. just return the abs value in that case.\n p = self._makeAbs(p)\n fs.realpath(p, self.realpathCache, function (er, real) {\n if (!er)\n set[real] = true\n else if (er.syscall === 'stat')\n set[p] = true\n else\n self.emit('error', er) // srsly wtf right here\n\n if (--n === 0) {\n self.matches[index] = set\n cb()\n }\n })\n })\n}\n\nGlob.prototype._mark = function (p) {\n return common.mark(this, p)\n}\n\nGlob.prototype._makeAbs = function (f) {\n return common.makeAbs(this, f)\n}\n\nGlob.prototype.abort = function () {\n this.aborted = true\n this.emit('abort')\n}\n\nGlob.prototype.pause = function () {\n if (!this.paused) {\n this.paused = true\n this.emit('pause')\n }\n}\n\nGlob.prototype.resume = function () {\n if (this.paused) {\n this.emit('resume')\n this.paused = false\n if (this._emitQueue.length) {\n var eq = this._emitQueue.slice(0)\n this._emitQueue.length = 0\n for (var i = 0; i < eq.length; i ++) {\n var e = eq[i]\n this._emitMatch(e[0], e[1])\n }\n }\n if (this._processQueue.length) {\n var pq = this._processQueue.slice(0)\n this._processQueue.length = 0\n for (var i = 0; i < pq.length; i ++) {\n var p = pq[i]\n this._processing--\n this._process(p[0], p[1], p[2], p[3])\n }\n }\n }\n}\n\nGlob.prototype._process = function (pattern, index, inGlobStar, cb) {\n assert(this instanceof Glob)\n assert(typeof cb === 'function')\n\n if (this.aborted)\n return\n\n this._processing++\n if (this.paused) {\n this._processQueue.push([pattern, index, inGlobStar, cb])\n return\n }\n\n //console.error('PROCESS %d', this._processing, pattern)\n\n // Get the first [n] parts of pattern that are all strings.\n var n = 0\n while (typeof pattern[n] === 'string') {\n n ++\n }\n // now n is the index of the first one that is *not* a string.\n\n // see if there's anything else\n var prefix\n switch (n) {\n // if not, then this is rather simple\n case pattern.length:\n this._processSimple(pattern.join('/'), index, cb)\n return\n\n case 0:\n // pattern *starts* with some non-trivial item.\n // going to readdir(cwd), but not include the prefix in matches.\n prefix = null\n break\n\n default:\n // pattern has some string bits in the front.\n // whatever it starts with, whether that's 'absolute' like /foo/bar,\n // or 'relative' like '../baz'\n prefix = pattern.slice(0, n).join('/')\n break\n }\n\n var remain = pattern.slice(n)\n\n // get the list of entries.\n var read\n if (prefix === null)\n read = '.'\n else if (isAbsolute(prefix) || isAbsolute(pattern.join('/'))) {\n if (!prefix || !isAbsolute(prefix))\n prefix = '/' + prefix\n read = prefix\n } else\n read = prefix\n\n var abs = this._makeAbs(read)\n\n //if ignored, skip _processing\n if (childrenIgnored(this, read))\n return cb()\n\n var isGlobStar = remain[0] === minimatch.GLOBSTAR\n if (isGlobStar)\n this._processGlobStar(prefix, read, abs, remain, index, inGlobStar, cb)\n else\n this._processReaddir(prefix, read, abs, remain, index, inGlobStar, cb)\n}\n\nGlob.prototype._processReaddir = function (prefix, read, abs, remain, index, inGlobStar, cb) {\n var self = this\n this._readdir(abs, inGlobStar, function (er, entries) {\n return self._processReaddir2(prefix, read, abs, remain, index, inGlobStar, entries, cb)\n })\n}\n\nGlob.prototype._processReaddir2 = function (prefix, read, abs, remain, index, inGlobStar, entries, cb) {\n\n // if the abs isn't a dir, then nothing can match!\n if (!entries)\n return cb()\n\n // It will only match dot entries if it starts with a dot, or if\n // dot is set. Stuff like @(.foo|.bar) isn't allowed.\n var pn = remain[0]\n var negate = !!this.minimatch.negate\n var rawGlob = pn._glob\n var dotOk = this.dot || rawGlob.charAt(0) === '.'\n\n var matchedEntries = []\n for (var i = 0; i < entries.length; i++) {\n var e = entries[i]\n if (e.charAt(0) !== '.' || dotOk) {\n var m\n if (negate && !prefix) {\n m = !e.match(pn)\n } else {\n m = e.match(pn)\n }\n if (m)\n matchedEntries.push(e)\n }\n }\n\n //console.error('prd2', prefix, entries, remain[0]._glob, matchedEntries)\n\n var len = matchedEntries.length\n // If there are no matched entries, then nothing matches.\n if (len === 0)\n return cb()\n\n // if this is the last remaining pattern bit, then no need for\n // an additional stat *unless* the user has specified mark or\n // stat explicitly. We know they exist, since readdir returned\n // them.\n\n if (remain.length === 1 && !this.mark && !this.stat) {\n if (!this.matches[index])\n this.matches[index] = Object.create(null)\n\n for (var i = 0; i < len; i ++) {\n var e = matchedEntries[i]\n if (prefix) {\n if (prefix !== '/')\n e = prefix + '/' + e\n else\n e = prefix + e\n }\n\n if (e.charAt(0) === '/' && !this.nomount) {\n e = path.join(this.root, e)\n }\n this._emitMatch(index, e)\n }\n // This was the last one, and no stats were needed\n return cb()\n }\n\n // now test all matched entries as stand-ins for that part\n // of the pattern.\n remain.shift()\n for (var i = 0; i < len; i ++) {\n var e = matchedEntries[i]\n var newPattern\n if (prefix) {\n if (prefix !== '/')\n e = prefix + '/' + e\n else\n e = prefix + e\n }\n this._process([e].concat(remain), index, inGlobStar, cb)\n }\n cb()\n}\n\nGlob.prototype._emitMatch = function (index, e) {\n if (this.aborted)\n return\n\n if (this.matches[index][e])\n return\n\n if (isIgnored(this, e))\n return\n\n if (this.paused) {\n this._emitQueue.push([index, e])\n return\n }\n\n var abs = this._makeAbs(e)\n\n if (this.nodir) {\n var c = this.cache[abs]\n if (c === 'DIR' || Array.isArray(c))\n return\n }\n\n if (this.mark)\n e = this._mark(e)\n\n this.matches[index][e] = true\n\n var st = this.statCache[abs]\n if (st)\n this.emit('stat', e, st)\n\n this.emit('match', e)\n}\n\nGlob.prototype._readdirInGlobStar = function (abs, cb) {\n if (this.aborted)\n return\n\n // follow all symlinked directories forever\n // just proceed as if this is a non-globstar situation\n if (this.follow)\n return this._readdir(abs, false, cb)\n\n var lstatkey = 'lstat\\0' + abs\n var self = this\n var lstatcb = inflight(lstatkey, lstatcb_)\n\n if (lstatcb)\n fs.lstat(abs, lstatcb)\n\n function lstatcb_ (er, lstat) {\n if (er)\n return cb()\n\n var isSym = lstat.isSymbolicLink()\n self.symlinks[abs] = isSym\n\n // If it's not a symlink or a dir, then it's definitely a regular file.\n // don't bother doing a readdir in that case.\n if (!isSym && !lstat.isDirectory()) {\n self.cache[abs] = 'FILE'\n cb()\n } else\n self._readdir(abs, false, cb)\n }\n}\n\nGlob.prototype._readdir = function (abs, inGlobStar, cb) {\n if (this.aborted)\n return\n\n cb = inflight('readdir\\0'+abs+'\\0'+inGlobStar, cb)\n if (!cb)\n return\n\n //console.error('RD %j %j', +inGlobStar, abs)\n if (inGlobStar && !ownProp(this.symlinks, abs))\n return this._readdirInGlobStar(abs, cb)\n\n if (ownProp(this.cache, abs)) {\n var c = this.cache[abs]\n if (!c || c === 'FILE')\n return cb()\n\n if (Array.isArray(c))\n return cb(null, c)\n }\n\n var self = this\n fs.readdir(abs, readdirCb(this, abs, cb))\n}\n\nfunction readdirCb (self, abs, cb) {\n return function (er, entries) {\n if (er)\n self._readdirError(abs, er, cb)\n else\n self._readdirEntries(abs, entries, cb)\n }\n}\n\nGlob.prototype._readdirEntries = function (abs, entries, cb) {\n if (this.aborted)\n return\n\n // if we haven't asked to stat everything, then just\n // assume that everything in there exists, so we can avoid\n // having to stat it a second time.\n if (!this.mark && !this.stat) {\n for (var i = 0; i < entries.length; i ++) {\n var e = entries[i]\n if (abs === '/')\n e = abs + e\n else\n e = abs + '/' + e\n this.cache[e] = true\n }\n }\n\n this.cache[abs] = entries\n return cb(null, entries)\n}\n\nGlob.prototype._readdirError = function (f, er, cb) {\n if (this.aborted)\n return\n\n // handle errors, and cache the information\n switch (er.code) {\n case 'ENOTSUP': // https://github.com/isaacs/node-glob/issues/205\n case 'ENOTDIR': // totally normal. means it *does* exist.\n this.cache[this._makeAbs(f)] = 'FILE'\n break\n\n case 'ENOENT': // not terribly unusual\n case 'ELOOP':\n case 'ENAMETOOLONG':\n case 'UNKNOWN':\n this.cache[this._makeAbs(f)] = false\n break\n\n default: // some unusual error. Treat as failure.\n this.cache[this._makeAbs(f)] = false\n if (this.strict) {\n this.emit('error', er)\n // If the error is handled, then we abort\n // if not, we threw out of here\n this.abort()\n }\n if (!this.silent)\n console.error('glob error', er)\n break\n }\n\n return cb()\n}\n\nGlob.prototype._processGlobStar = function (prefix, read, abs, remain, index, inGlobStar, cb) {\n var self = this\n this._readdir(abs, inGlobStar, function (er, entries) {\n self._processGlobStar2(prefix, read, abs, remain, index, inGlobStar, entries, cb)\n })\n}\n\n\nGlob.prototype._processGlobStar2 = function (prefix, read, abs, remain, index, inGlobStar, entries, cb) {\n //console.error('pgs2', prefix, remain[0], entries)\n\n // no entries means not a dir, so it can never have matches\n // foo.txt/** doesn't match foo.txt\n if (!entries)\n return cb()\n\n // test without the globstar, and with every child both below\n // and replacing the globstar.\n var remainWithoutGlobStar = remain.slice(1)\n var gspref = prefix ? [ prefix ] : []\n var noGlobStar = gspref.concat(remainWithoutGlobStar)\n\n // the noGlobStar pattern exits the inGlobStar state\n this._process(noGlobStar, index, false, cb)\n\n var isSym = this.symlinks[abs]\n var len = entries.length\n\n // If it's a symlink, and we're in a globstar, then stop\n if (isSym && inGlobStar)\n return cb()\n\n for (var i = 0; i < len; i++) {\n var e = entries[i]\n if (e.charAt(0) === '.' && !this.dot)\n continue\n\n // these two cases enter the inGlobStar state\n var instead = gspref.concat(entries[i], remainWithoutGlobStar)\n this._process(instead, index, true, cb)\n\n var below = gspref.concat(entries[i], remain)\n this._process(below, index, true, cb)\n }\n\n cb()\n}\n\nGlob.prototype._processSimple = function (prefix, index, cb) {\n // XXX review this. Shouldn't it be doing the mounting etc\n // before doing stat? kinda weird?\n var self = this\n this._stat(prefix, function (er, exists) {\n self._processSimple2(prefix, index, er, exists, cb)\n })\n}\nGlob.prototype._processSimple2 = function (prefix, index, er, exists, cb) {\n\n //console.error('ps2', prefix, exists)\n\n if (!this.matches[index])\n this.matches[index] = Object.create(null)\n\n // If it doesn't exist, then just mark the lack of results\n if (!exists)\n return cb()\n\n if (prefix && isAbsolute(prefix) && !this.nomount) {\n var trail = /[\\/\\\\]$/.test(prefix)\n if (prefix.charAt(0) === '/') {\n prefix = path.join(this.root, prefix)\n } else {\n prefix = path.resolve(this.root, prefix)\n if (trail)\n prefix += '/'\n }\n }\n\n if (process.platform === 'win32')\n prefix = prefix.replace(/\\\\/g, '/')\n\n // Mark this as a match\n this._emitMatch(index, prefix)\n cb()\n}\n\n// Returns either 'DIR', 'FILE', or false\nGlob.prototype._stat = function (f, cb) {\n var abs = this._makeAbs(f)\n var needDir = f.slice(-1) === '/'\n\n if (f.length > this.maxLength)\n return cb()\n\n if (!this.stat && ownProp(this.cache, abs)) {\n var c = this.cache[abs]\n\n if (Array.isArray(c))\n c = 'DIR'\n\n // It exists, but maybe not how we need it\n if (!needDir || c === 'DIR')\n return cb(null, c)\n\n if (needDir && c === 'FILE')\n return cb()\n\n // otherwise we have to stat, because maybe c=true\n // if we know it exists, but not what it is.\n }\n\n var exists\n var stat = this.statCache[abs]\n if (stat !== undefined) {\n if (stat === false)\n return cb(null, stat)\n else {\n var type = stat.isDirectory() ? 'DIR' : 'FILE'\n if (needDir && type === 'FILE')\n return cb()\n else\n return cb(null, type, stat)\n }\n }\n\n var self = this\n var statcb = inflight('stat\\0' + abs, lstatcb_)\n if (statcb)\n fs.lstat(abs, statcb)\n\n function lstatcb_ (er, lstat) {\n if (lstat && lstat.isSymbolicLink()) {\n // If it's a symlink, then treat it as the target, unless\n // the target does not exist, then treat it as a file.\n return fs.stat(abs, function (er, stat) {\n if (er)\n self._stat2(f, abs, null, lstat, cb)\n else\n self._stat2(f, abs, er, stat, cb)\n })\n } else {\n self._stat2(f, abs, er, lstat, cb)\n }\n }\n}\n\nGlob.prototype._stat2 = function (f, abs, er, stat, cb) {\n if (er) {\n this.statCache[abs] = false\n return cb()\n }\n\n var needDir = f.slice(-1) === '/'\n this.statCache[abs] = stat\n\n if (abs.slice(-1) === '/' && !stat.isDirectory())\n return cb(null, false, stat)\n\n var c = stat.isDirectory() ? 'DIR' : 'FILE'\n this.cache[abs] = this.cache[abs] || c\n\n if (needDir && c !== 'DIR')\n return cb()\n\n return cb(null, c, stat)\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(83)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/glob/glob.js\n ** module id = 270\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/glob/glob.js?"); + eval("/*!\n * repeat-string \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\n/**\n * Expose `repeat`\n */\n\nmodule.exports = repeat;\n\n/**\n * Repeat the given `string` the specified `number`\n * of times.\n *\n * **Example:**\n *\n * ```js\n * var repeat = require('repeat-string');\n * repeat('A', 5);\n * //=> AAAAA\n * ```\n *\n * @param {String} `string` The string to repeat\n * @param {Number} `number` The number of times to repeat the string\n * @return {String} Repeated string\n * @api public\n */\n\nfunction repeat(str, num) {\n if (typeof str !== 'string') {\n throw new TypeError('repeat-string expects a string.');\n }\n\n if (num === 1) return str;\n if (num === 2) return str + str;\n\n var max = str.length * num;\n if (cache !== str || typeof cache === 'undefined') {\n cache = str;\n res = '';\n }\n\n while (max > res.length && num > 0) {\n if (num & 1) {\n res += str;\n }\n\n num >>= 1;\n if (!num) break;\n str += str;\n }\n\n return res.substr(0, max);\n}\n\n/**\n * Results cache\n */\n\nvar res = '';\nvar cache;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/repeat-string/index.js\n ** module id = 270\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/repeat-string/index.js?"); /***/ }, /* 271 */ -/***/ function(module, exports, __webpack_require__) { +/***/ function(module, exports) { - eval("module.exports = minimatch\nminimatch.Minimatch = Minimatch\n\nvar path = { sep: '/' }\ntry {\n path = __webpack_require__(151)\n} catch (er) {}\n\nvar GLOBSTAR = minimatch.GLOBSTAR = Minimatch.GLOBSTAR = {}\nvar expand = __webpack_require__(272)\n\n// any single thing other than /\n// don't need to escape / when using new RegExp()\nvar qmark = '[^/]'\n\n// * => any number of characters\nvar star = qmark + '*?'\n\n// ** when dots are allowed. Anything goes, except .. and .\n// not (^ or / followed by one or two dots followed by $ or /),\n// followed by anything, any number of times.\nvar twoStarDot = '(?:(?!(?:\\\\\\/|^)(?:\\\\.{1,2})($|\\\\\\/)).)*?'\n\n// not a ^ or / followed by a dot,\n// followed by anything, any number of times.\nvar twoStarNoDot = '(?:(?!(?:\\\\\\/|^)\\\\.).)*?'\n\n// characters that need to be escaped in RegExp.\nvar reSpecials = charSet('().*{}+?[]^$\\\\!')\n\n// \"abc\" -> { a:true, b:true, c:true }\nfunction charSet (s) {\n return s.split('').reduce(function (set, c) {\n set[c] = true\n return set\n }, {})\n}\n\n// normalizes slashes.\nvar slashSplit = /\\/+/\n\nminimatch.filter = filter\nfunction filter (pattern, options) {\n options = options || {}\n return function (p, i, list) {\n return minimatch(p, pattern, options)\n }\n}\n\nfunction ext (a, b) {\n a = a || {}\n b = b || {}\n var t = {}\n Object.keys(b).forEach(function (k) {\n t[k] = b[k]\n })\n Object.keys(a).forEach(function (k) {\n t[k] = a[k]\n })\n return t\n}\n\nminimatch.defaults = function (def) {\n if (!def || !Object.keys(def).length) return minimatch\n\n var orig = minimatch\n\n var m = function minimatch (p, pattern, options) {\n return orig.minimatch(p, pattern, ext(def, options))\n }\n\n m.Minimatch = function Minimatch (pattern, options) {\n return new orig.Minimatch(pattern, ext(def, options))\n }\n\n return m\n}\n\nMinimatch.defaults = function (def) {\n if (!def || !Object.keys(def).length) return Minimatch\n return minimatch.defaults(def).Minimatch\n}\n\nfunction minimatch (p, pattern, options) {\n if (typeof pattern !== 'string') {\n throw new TypeError('glob pattern string required')\n }\n\n if (!options) options = {}\n\n // shortcut: comments match nothing.\n if (!options.nocomment && pattern.charAt(0) === '#') {\n return false\n }\n\n // \"\" only matches \"\"\n if (pattern.trim() === '') return p === ''\n\n return new Minimatch(pattern, options).match(p)\n}\n\nfunction Minimatch (pattern, options) {\n if (!(this instanceof Minimatch)) {\n return new Minimatch(pattern, options)\n }\n\n if (typeof pattern !== 'string') {\n throw new TypeError('glob pattern string required')\n }\n\n if (!options) options = {}\n pattern = pattern.trim()\n\n // windows support: need to use /, not \\\n if (path.sep !== '/') {\n pattern = pattern.split(path.sep).join('/')\n }\n\n this.options = options\n this.set = []\n this.pattern = pattern\n this.regexp = null\n this.negate = false\n this.comment = false\n this.empty = false\n\n // make the set of regexps etc.\n this.make()\n}\n\nMinimatch.prototype.debug = function () {}\n\nMinimatch.prototype.make = make\nfunction make () {\n // don't do it more than once.\n if (this._made) return\n\n var pattern = this.pattern\n var options = this.options\n\n // empty patterns and comments match nothing.\n if (!options.nocomment && pattern.charAt(0) === '#') {\n this.comment = true\n return\n }\n if (!pattern) {\n this.empty = true\n return\n }\n\n // step 1: figure out negation, etc.\n this.parseNegate()\n\n // step 2: expand braces\n var set = this.globSet = this.braceExpand()\n\n if (options.debug) this.debug = console.error\n\n this.debug(this.pattern, set)\n\n // step 3: now we have a set, so turn each one into a series of path-portion\n // matching patterns.\n // These will be regexps, except in the case of \"**\", which is\n // set to the GLOBSTAR object for globstar behavior,\n // and will not contain any / characters\n set = this.globParts = set.map(function (s) {\n return s.split(slashSplit)\n })\n\n this.debug(this.pattern, set)\n\n // glob --> regexps\n set = set.map(function (s, si, set) {\n return s.map(this.parse, this)\n }, this)\n\n this.debug(this.pattern, set)\n\n // filter out everything that didn't compile properly.\n set = set.filter(function (s) {\n return s.indexOf(false) === -1\n })\n\n this.debug(this.pattern, set)\n\n this.set = set\n}\n\nMinimatch.prototype.parseNegate = parseNegate\nfunction parseNegate () {\n var pattern = this.pattern\n var negate = false\n var options = this.options\n var negateOffset = 0\n\n if (options.nonegate) return\n\n for (var i = 0, l = pattern.length\n ; i < l && pattern.charAt(i) === '!'\n ; i++) {\n negate = !negate\n negateOffset++\n }\n\n if (negateOffset) this.pattern = pattern.substr(negateOffset)\n this.negate = negate\n}\n\n// Brace expansion:\n// a{b,c}d -> abd acd\n// a{b,}c -> abc ac\n// a{0..3}d -> a0d a1d a2d a3d\n// a{b,c{d,e}f}g -> abg acdfg acefg\n// a{b,c}d{e,f}g -> abdeg acdeg abdeg abdfg\n//\n// Invalid sets are not expanded.\n// a{2..}b -> a{2..}b\n// a{b}c -> a{b}c\nminimatch.braceExpand = function (pattern, options) {\n return braceExpand(pattern, options)\n}\n\nMinimatch.prototype.braceExpand = braceExpand\n\nfunction braceExpand (pattern, options) {\n if (!options) {\n if (this instanceof Minimatch) {\n options = this.options\n } else {\n options = {}\n }\n }\n\n pattern = typeof pattern === 'undefined'\n ? this.pattern : pattern\n\n if (typeof pattern === 'undefined') {\n throw new Error('undefined pattern')\n }\n\n if (options.nobrace ||\n !pattern.match(/\\{.*\\}/)) {\n // shortcut. no need to expand.\n return [pattern]\n }\n\n return expand(pattern)\n}\n\n// parse a component of the expanded set.\n// At this point, no pattern may contain \"/\" in it\n// so we're going to return a 2d array, where each entry is the full\n// pattern, split on '/', and then turned into a regular expression.\n// A regexp is made at the end which joins each array with an\n// escaped /, and another full one which joins each regexp with |.\n//\n// Following the lead of Bash 4.1, note that \"**\" only has special meaning\n// when it is the *only* thing in a path portion. Otherwise, any series\n// of * is equivalent to a single *. Globstar behavior is enabled by\n// default, and can be disabled by setting options.noglobstar.\nMinimatch.prototype.parse = parse\nvar SUBPARSE = {}\nfunction parse (pattern, isSub) {\n var options = this.options\n\n // shortcuts\n if (!options.noglobstar && pattern === '**') return GLOBSTAR\n if (pattern === '') return ''\n\n var re = ''\n var hasMagic = !!options.nocase\n var escaping = false\n // ? => one single character\n var patternListStack = []\n var negativeLists = []\n var plType\n var stateChar\n var inClass = false\n var reClassStart = -1\n var classStart = -1\n // . and .. never match anything that doesn't start with .,\n // even when options.dot is set.\n var patternStart = pattern.charAt(0) === '.' ? '' // anything\n // not (start or / followed by . or .. followed by / or end)\n : options.dot ? '(?!(?:^|\\\\\\/)\\\\.{1,2}(?:$|\\\\\\/))'\n : '(?!\\\\.)'\n var self = this\n\n function clearStateChar () {\n if (stateChar) {\n // we had some state-tracking character\n // that wasn't consumed by this pass.\n switch (stateChar) {\n case '*':\n re += star\n hasMagic = true\n break\n case '?':\n re += qmark\n hasMagic = true\n break\n default:\n re += '\\\\' + stateChar\n break\n }\n self.debug('clearStateChar %j %j', stateChar, re)\n stateChar = false\n }\n }\n\n for (var i = 0, len = pattern.length, c\n ; (i < len) && (c = pattern.charAt(i))\n ; i++) {\n this.debug('%s\\t%s %s %j', pattern, i, re, c)\n\n // skip over any that are escaped.\n if (escaping && reSpecials[c]) {\n re += '\\\\' + c\n escaping = false\n continue\n }\n\n switch (c) {\n case '/':\n // completely not allowed, even escaped.\n // Should already be path-split by now.\n return false\n\n case '\\\\':\n clearStateChar()\n escaping = true\n continue\n\n // the various stateChar values\n // for the \"extglob\" stuff.\n case '?':\n case '*':\n case '+':\n case '@':\n case '!':\n this.debug('%s\\t%s %s %j <-- stateChar', pattern, i, re, c)\n\n // all of those are literals inside a class, except that\n // the glob [!a] means [^a] in regexp\n if (inClass) {\n this.debug(' in class')\n if (c === '!' && i === classStart + 1) c = '^'\n re += c\n continue\n }\n\n // if we already have a stateChar, then it means\n // that there was something like ** or +? in there.\n // Handle the stateChar, then proceed with this one.\n self.debug('call clearStateChar %j', stateChar)\n clearStateChar()\n stateChar = c\n // if extglob is disabled, then +(asdf|foo) isn't a thing.\n // just clear the statechar *now*, rather than even diving into\n // the patternList stuff.\n if (options.noext) clearStateChar()\n continue\n\n case '(':\n if (inClass) {\n re += '('\n continue\n }\n\n if (!stateChar) {\n re += '\\\\('\n continue\n }\n\n plType = stateChar\n patternListStack.push({\n type: plType,\n start: i - 1,\n reStart: re.length\n })\n // negation is (?:(?!js)[^/]*)\n re += stateChar === '!' ? '(?:(?!(?:' : '(?:'\n this.debug('plType %j %j', stateChar, re)\n stateChar = false\n continue\n\n case ')':\n if (inClass || !patternListStack.length) {\n re += '\\\\)'\n continue\n }\n\n clearStateChar()\n hasMagic = true\n re += ')'\n var pl = patternListStack.pop()\n plType = pl.type\n // negation is (?:(?!js)[^/]*)\n // The others are (?:)\n switch (plType) {\n case '!':\n negativeLists.push(pl)\n re += ')[^/]*?)'\n pl.reEnd = re.length\n break\n case '?':\n case '+':\n case '*':\n re += plType\n break\n case '@': break // the default anyway\n }\n continue\n\n case '|':\n if (inClass || !patternListStack.length || escaping) {\n re += '\\\\|'\n escaping = false\n continue\n }\n\n clearStateChar()\n re += '|'\n continue\n\n // these are mostly the same in regexp and glob\n case '[':\n // swallow any state-tracking char before the [\n clearStateChar()\n\n if (inClass) {\n re += '\\\\' + c\n continue\n }\n\n inClass = true\n classStart = i\n reClassStart = re.length\n re += c\n continue\n\n case ']':\n // a right bracket shall lose its special\n // meaning and represent itself in\n // a bracket expression if it occurs\n // first in the list. -- POSIX.2 2.8.3.2\n if (i === classStart + 1 || !inClass) {\n re += '\\\\' + c\n escaping = false\n continue\n }\n\n // handle the case where we left a class open.\n // \"[z-a]\" is valid, equivalent to \"\\[z-a\\]\"\n if (inClass) {\n // split where the last [ was, make sure we don't have\n // an invalid re. if so, re-walk the contents of the\n // would-be class to re-translate any characters that\n // were passed through as-is\n // TODO: It would probably be faster to determine this\n // without a try/catch and a new RegExp, but it's tricky\n // to do safely. For now, this is safe and works.\n var cs = pattern.substring(classStart + 1, i)\n try {\n RegExp('[' + cs + ']')\n } catch (er) {\n // not a valid class!\n var sp = this.parse(cs, SUBPARSE)\n re = re.substr(0, reClassStart) + '\\\\[' + sp[0] + '\\\\]'\n hasMagic = hasMagic || sp[1]\n inClass = false\n continue\n }\n }\n\n // finish up the class.\n hasMagic = true\n inClass = false\n re += c\n continue\n\n default:\n // swallow any state char that wasn't consumed\n clearStateChar()\n\n if (escaping) {\n // no need\n escaping = false\n } else if (reSpecials[c]\n && !(c === '^' && inClass)) {\n re += '\\\\'\n }\n\n re += c\n\n } // switch\n } // for\n\n // handle the case where we left a class open.\n // \"[abc\" is valid, equivalent to \"\\[abc\"\n if (inClass) {\n // split where the last [ was, and escape it\n // this is a huge pita. We now have to re-walk\n // the contents of the would-be class to re-translate\n // any characters that were passed through as-is\n cs = pattern.substr(classStart + 1)\n sp = this.parse(cs, SUBPARSE)\n re = re.substr(0, reClassStart) + '\\\\[' + sp[0]\n hasMagic = hasMagic || sp[1]\n }\n\n // handle the case where we had a +( thing at the *end*\n // of the pattern.\n // each pattern list stack adds 3 chars, and we need to go through\n // and escape any | chars that were passed through as-is for the regexp.\n // Go through and escape them, taking care not to double-escape any\n // | chars that were already escaped.\n for (pl = patternListStack.pop(); pl; pl = patternListStack.pop()) {\n var tail = re.slice(pl.reStart + 3)\n // maybe some even number of \\, then maybe 1 \\, followed by a |\n tail = tail.replace(/((?:\\\\{2})*)(\\\\?)\\|/g, function (_, $1, $2) {\n if (!$2) {\n // the | isn't already escaped, so escape it.\n $2 = '\\\\'\n }\n\n // need to escape all those slashes *again*, without escaping the\n // one that we need for escaping the | character. As it works out,\n // escaping an even number of slashes can be done by simply repeating\n // it exactly after itself. That's why this trick works.\n //\n // I am sorry that you have to see this.\n return $1 + $1 + $2 + '|'\n })\n\n this.debug('tail=%j\\n %s', tail, tail)\n var t = pl.type === '*' ? star\n : pl.type === '?' ? qmark\n : '\\\\' + pl.type\n\n hasMagic = true\n re = re.slice(0, pl.reStart) + t + '\\\\(' + tail\n }\n\n // handle trailing things that only matter at the very end.\n clearStateChar()\n if (escaping) {\n // trailing \\\\\n re += '\\\\\\\\'\n }\n\n // only need to apply the nodot start if the re starts with\n // something that could conceivably capture a dot\n var addPatternStart = false\n switch (re.charAt(0)) {\n case '.':\n case '[':\n case '(': addPatternStart = true\n }\n\n // Hack to work around lack of negative lookbehind in JS\n // A pattern like: *.!(x).!(y|z) needs to ensure that a name\n // like 'a.xyz.yz' doesn't match. So, the first negative\n // lookahead, has to look ALL the way ahead, to the end of\n // the pattern.\n for (var n = negativeLists.length - 1; n > -1; n--) {\n var nl = negativeLists[n]\n\n var nlBefore = re.slice(0, nl.reStart)\n var nlFirst = re.slice(nl.reStart, nl.reEnd - 8)\n var nlLast = re.slice(nl.reEnd - 8, nl.reEnd)\n var nlAfter = re.slice(nl.reEnd)\n\n nlLast += nlAfter\n\n // Handle nested stuff like *(*.js|!(*.json)), where open parens\n // mean that we should *not* include the ) in the bit that is considered\n // \"after\" the negated section.\n var openParensBefore = nlBefore.split('(').length - 1\n var cleanAfter = nlAfter\n for (i = 0; i < openParensBefore; i++) {\n cleanAfter = cleanAfter.replace(/\\)[+*?]?/, '')\n }\n nlAfter = cleanAfter\n\n var dollar = ''\n if (nlAfter === '' && isSub !== SUBPARSE) {\n dollar = '$'\n }\n var newRe = nlBefore + nlFirst + nlAfter + dollar + nlLast\n re = newRe\n }\n\n // if the re is not \"\" at this point, then we need to make sure\n // it doesn't match against an empty path part.\n // Otherwise a/* will match a/, which it should not.\n if (re !== '' && hasMagic) {\n re = '(?=.)' + re\n }\n\n if (addPatternStart) {\n re = patternStart + re\n }\n\n // parsing just a piece of a larger pattern.\n if (isSub === SUBPARSE) {\n return [re, hasMagic]\n }\n\n // skip the regexp for non-magical patterns\n // unescape anything in it, though, so that it'll be\n // an exact match against a file etc.\n if (!hasMagic) {\n return globUnescape(pattern)\n }\n\n var flags = options.nocase ? 'i' : ''\n var regExp = new RegExp('^' + re + '$', flags)\n\n regExp._glob = pattern\n regExp._src = re\n\n return regExp\n}\n\nminimatch.makeRe = function (pattern, options) {\n return new Minimatch(pattern, options || {}).makeRe()\n}\n\nMinimatch.prototype.makeRe = makeRe\nfunction makeRe () {\n if (this.regexp || this.regexp === false) return this.regexp\n\n // at this point, this.set is a 2d array of partial\n // pattern strings, or \"**\".\n //\n // It's better to use .match(). This function shouldn't\n // be used, really, but it's pretty convenient sometimes,\n // when you just want to work with a regex.\n var set = this.set\n\n if (!set.length) {\n this.regexp = false\n return this.regexp\n }\n var options = this.options\n\n var twoStar = options.noglobstar ? star\n : options.dot ? twoStarDot\n : twoStarNoDot\n var flags = options.nocase ? 'i' : ''\n\n var re = set.map(function (pattern) {\n return pattern.map(function (p) {\n return (p === GLOBSTAR) ? twoStar\n : (typeof p === 'string') ? regExpEscape(p)\n : p._src\n }).join('\\\\\\/')\n }).join('|')\n\n // must match entire pattern\n // ending in a * or ** will make it less strict.\n re = '^(?:' + re + ')$'\n\n // can match anything, as long as it's not this.\n if (this.negate) re = '^(?!' + re + ').*$'\n\n try {\n this.regexp = new RegExp(re, flags)\n } catch (ex) {\n this.regexp = false\n }\n return this.regexp\n}\n\nminimatch.match = function (list, pattern, options) {\n options = options || {}\n var mm = new Minimatch(pattern, options)\n list = list.filter(function (f) {\n return mm.match(f)\n })\n if (mm.options.nonull && !list.length) {\n list.push(pattern)\n }\n return list\n}\n\nMinimatch.prototype.match = match\nfunction match (f, partial) {\n this.debug('match', f, this.pattern)\n // short-circuit in the case of busted things.\n // comments, etc.\n if (this.comment) return false\n if (this.empty) return f === ''\n\n if (f === '/' && partial) return true\n\n var options = this.options\n\n // windows: need to use /, not \\\n if (path.sep !== '/') {\n f = f.split(path.sep).join('/')\n }\n\n // treat the test path as a set of pathparts.\n f = f.split(slashSplit)\n this.debug(this.pattern, 'split', f)\n\n // just ONE of the pattern sets in this.set needs to match\n // in order for it to be valid. If negating, then just one\n // match means that we have failed.\n // Either way, return on the first hit.\n\n var set = this.set\n this.debug(this.pattern, 'set', set)\n\n // Find the basename of the path by looking for the last non-empty segment\n var filename\n var i\n for (i = f.length - 1; i >= 0; i--) {\n filename = f[i]\n if (filename) break\n }\n\n for (i = 0; i < set.length; i++) {\n var pattern = set[i]\n var file = f\n if (options.matchBase && pattern.length === 1) {\n file = [filename]\n }\n var hit = this.matchOne(file, pattern, partial)\n if (hit) {\n if (options.flipNegate) return true\n return !this.negate\n }\n }\n\n // didn't get any hits. this is success if it's a negative\n // pattern, failure otherwise.\n if (options.flipNegate) return false\n return this.negate\n}\n\n// set partial to true to test if, for example,\n// \"/a/b\" matches the start of \"/*/b/*/d\"\n// Partial means, if you run out of file before you run\n// out of pattern, then that's fine, as long as all\n// the parts match.\nMinimatch.prototype.matchOne = function (file, pattern, partial) {\n var options = this.options\n\n this.debug('matchOne',\n { 'this': this, file: file, pattern: pattern })\n\n this.debug('matchOne', file.length, pattern.length)\n\n for (var fi = 0,\n pi = 0,\n fl = file.length,\n pl = pattern.length\n ; (fi < fl) && (pi < pl)\n ; fi++, pi++) {\n this.debug('matchOne loop')\n var p = pattern[pi]\n var f = file[fi]\n\n this.debug(pattern, p, f)\n\n // should be impossible.\n // some invalid regexp stuff in the set.\n if (p === false) return false\n\n if (p === GLOBSTAR) {\n this.debug('GLOBSTAR', [pattern, p, f])\n\n // \"**\"\n // a/**/b/**/c would match the following:\n // a/b/x/y/z/c\n // a/x/y/z/b/c\n // a/b/x/b/x/c\n // a/b/c\n // To do this, take the rest of the pattern after\n // the **, and see if it would match the file remainder.\n // If so, return success.\n // If not, the ** \"swallows\" a segment, and try again.\n // This is recursively awful.\n //\n // a/**/b/**/c matching a/b/x/y/z/c\n // - a matches a\n // - doublestar\n // - matchOne(b/x/y/z/c, b/**/c)\n // - b matches b\n // - doublestar\n // - matchOne(x/y/z/c, c) -> no\n // - matchOne(y/z/c, c) -> no\n // - matchOne(z/c, c) -> no\n // - matchOne(c, c) yes, hit\n var fr = fi\n var pr = pi + 1\n if (pr === pl) {\n this.debug('** at the end')\n // a ** at the end will just swallow the rest.\n // We have found a match.\n // however, it will not swallow /.x, unless\n // options.dot is set.\n // . and .. are *never* matched by **, for explosively\n // exponential reasons.\n for (; fi < fl; fi++) {\n if (file[fi] === '.' || file[fi] === '..' ||\n (!options.dot && file[fi].charAt(0) === '.')) return false\n }\n return true\n }\n\n // ok, let's see if we can swallow whatever we can.\n while (fr < fl) {\n var swallowee = file[fr]\n\n this.debug('\\nglobstar while', file, fr, pattern, pr, swallowee)\n\n // XXX remove this slice. Just pass the start index.\n if (this.matchOne(file.slice(fr), pattern.slice(pr), partial)) {\n this.debug('globstar found match!', fr, fl, swallowee)\n // found a match.\n return true\n } else {\n // can't swallow \".\" or \"..\" ever.\n // can only swallow \".foo\" when explicitly asked.\n if (swallowee === '.' || swallowee === '..' ||\n (!options.dot && swallowee.charAt(0) === '.')) {\n this.debug('dot detected!', file, fr, pattern, pr)\n break\n }\n\n // ** swallows a segment, and continue.\n this.debug('globstar swallow a segment, and continue')\n fr++\n }\n }\n\n // no match was found.\n // However, in partial mode, we can't say this is necessarily over.\n // If there's more *pattern* left, then\n if (partial) {\n // ran out of file\n this.debug('\\n>>> no match, partial?', file, fr, pattern, pr)\n if (fr === fl) return true\n }\n return false\n }\n\n // something other than **\n // non-magic patterns just have to match exactly\n // patterns with magic have been turned into regexps.\n var hit\n if (typeof p === 'string') {\n if (options.nocase) {\n hit = f.toLowerCase() === p.toLowerCase()\n } else {\n hit = f === p\n }\n this.debug('string match', p, f, hit)\n } else {\n hit = f.match(p)\n this.debug('pattern match', p, f, hit)\n }\n\n if (!hit) return false\n }\n\n // Note: ending in / means that we'll get a final \"\"\n // at the end of the pattern. This can only match a\n // corresponding \"\" at the end of the file.\n // If the file ends in /, then it can only match a\n // a pattern that ends in /, unless the pattern just\n // doesn't have any more for it. But, a/b/ should *not*\n // match \"a/b/*\", even though \"\" matches against the\n // [^/]*? pattern, except in partial mode, where it might\n // simply not be reached yet.\n // However, a/b/ should still satisfy a/*\n\n // now either we fell off the end of the pattern, or we're done.\n if (fi === fl && pi === pl) {\n // ran out of pattern and filename at the same time.\n // an exact hit!\n return true\n } else if (fi === fl) {\n // ran out of file, but still had pattern left.\n // this is ok if we're doing the match as part of\n // a glob fs traversal.\n return partial\n } else if (pi === pl) {\n // ran out of pattern, still have file left.\n // this is only acceptable if we're on the very last\n // empty segment of a file with a trailing slash.\n // a/* should match a/b/\n var emptyFileEnd = (fi === fl - 1) && (file[fi] === '')\n return emptyFileEnd\n }\n\n // should be unreachable.\n throw new Error('wtf?')\n}\n\n// replace stuff like \\* with *\nfunction globUnescape (s) {\n return s.replace(/\\\\(.)/g, '$1')\n}\n\nfunction regExpEscape (s) {\n return s.replace(/[-[\\]{}()*+?.,\\\\^$|#\\s]/g, '\\\\$&')\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/glob/~/minimatch/minimatch.js\n ** module id = 271\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/glob/~/minimatch/minimatch.js?"); + eval("/*!\n * repeat-element \n *\n * Copyright (c) 2015 Jon Schlinkert.\n * Licensed under the MIT license.\n */\n\n'use strict';\n\nmodule.exports = function repeat(ele, num) {\n var arr = new Array(num);\n\n for (var i = 0; i < num; i++) {\n arr[i] = ele;\n }\n\n return arr;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/repeat-element/index.js\n ** module id = 271\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/repeat-element/index.js?"); /***/ }, /* 272 */ -/***/ function(module, exports, __webpack_require__) { +/***/ function(module, exports) { - eval("var concatMap = __webpack_require__(273);\nvar balanced = __webpack_require__(274);\n\nmodule.exports = expandTop;\n\nvar escSlash = '\\0SLASH'+Math.random()+'\\0';\nvar escOpen = '\\0OPEN'+Math.random()+'\\0';\nvar escClose = '\\0CLOSE'+Math.random()+'\\0';\nvar escComma = '\\0COMMA'+Math.random()+'\\0';\nvar escPeriod = '\\0PERIOD'+Math.random()+'\\0';\n\nfunction numeric(str) {\n return parseInt(str, 10) == str\n ? parseInt(str, 10)\n : str.charCodeAt(0);\n}\n\nfunction escapeBraces(str) {\n return str.split('\\\\\\\\').join(escSlash)\n .split('\\\\{').join(escOpen)\n .split('\\\\}').join(escClose)\n .split('\\\\,').join(escComma)\n .split('\\\\.').join(escPeriod);\n}\n\nfunction unescapeBraces(str) {\n return str.split(escSlash).join('\\\\')\n .split(escOpen).join('{')\n .split(escClose).join('}')\n .split(escComma).join(',')\n .split(escPeriod).join('.');\n}\n\n\n// Basically just str.split(\",\"), but handling cases\n// where we have nested braced sections, which should be\n// treated as individual members, like {a,{b,c},d}\nfunction parseCommaParts(str) {\n if (!str)\n return [''];\n\n var parts = [];\n var m = balanced('{', '}', str);\n\n if (!m)\n return str.split(',');\n\n var pre = m.pre;\n var body = m.body;\n var post = m.post;\n var p = pre.split(',');\n\n p[p.length-1] += '{' + body + '}';\n var postParts = parseCommaParts(post);\n if (post.length) {\n p[p.length-1] += postParts.shift();\n p.push.apply(p, postParts);\n }\n\n parts.push.apply(parts, p);\n\n return parts;\n}\n\nfunction expandTop(str) {\n if (!str)\n return [];\n\n return expand(escapeBraces(str), true).map(unescapeBraces);\n}\n\nfunction identity(e) {\n return e;\n}\n\nfunction embrace(str) {\n return '{' + str + '}';\n}\nfunction isPadded(el) {\n return /^-?0\\d/.test(el);\n}\n\nfunction lte(i, y) {\n return i <= y;\n}\nfunction gte(i, y) {\n return i >= y;\n}\n\nfunction expand(str, isTop) {\n var expansions = [];\n\n var m = balanced('{', '}', str);\n if (!m || /\\$$/.test(m.pre)) return [str];\n\n var isNumericSequence = /^-?\\d+\\.\\.-?\\d+(?:\\.\\.-?\\d+)?$/.test(m.body);\n var isAlphaSequence = /^[a-zA-Z]\\.\\.[a-zA-Z](?:\\.\\.-?\\d+)?$/.test(m.body);\n var isSequence = isNumericSequence || isAlphaSequence;\n var isOptions = /^(.*,)+(.+)?$/.test(m.body);\n if (!isSequence && !isOptions) {\n // {a},b}\n if (m.post.match(/,.*}/)) {\n str = m.pre + '{' + m.body + escClose + m.post;\n return expand(str);\n }\n return [str];\n }\n\n var n;\n if (isSequence) {\n n = m.body.split(/\\.\\./);\n } else {\n n = parseCommaParts(m.body);\n if (n.length === 1) {\n // x{{a,b}}y ==> x{a}y x{b}y\n n = expand(n[0], false).map(embrace);\n if (n.length === 1) {\n var post = m.post.length\n ? expand(m.post, false)\n : [''];\n return post.map(function(p) {\n return m.pre + n[0] + p;\n });\n }\n }\n }\n\n // at this point, n is the parts, and we know it's not a comma set\n // with a single entry.\n\n // no need to expand pre, since it is guaranteed to be free of brace-sets\n var pre = m.pre;\n var post = m.post.length\n ? expand(m.post, false)\n : [''];\n\n var N;\n\n if (isSequence) {\n var x = numeric(n[0]);\n var y = numeric(n[1]);\n var width = Math.max(n[0].length, n[1].length)\n var incr = n.length == 3\n ? Math.abs(numeric(n[2]))\n : 1;\n var test = lte;\n var reverse = y < x;\n if (reverse) {\n incr *= -1;\n test = gte;\n }\n var pad = n.some(isPadded);\n\n N = [];\n\n for (var i = x; test(i, y); i += incr) {\n var c;\n if (isAlphaSequence) {\n c = String.fromCharCode(i);\n if (c === '\\\\')\n c = '';\n } else {\n c = String(i);\n if (pad) {\n var need = width - c.length;\n if (need > 0) {\n var z = new Array(need + 1).join('0');\n if (i < 0)\n c = '-' + z + c.slice(1);\n else\n c = z + c;\n }\n }\n }\n N.push(c);\n }\n } else {\n N = concatMap(n, function(el) { return expand(el, false) });\n }\n\n for (var j = 0; j < N.length; j++) {\n for (var k = 0; k < post.length; k++) {\n var expansion = pre + N[j] + post[k];\n if (!isTop || isSequence || expansion)\n expansions.push(expansion);\n }\n }\n\n return expansions;\n}\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/glob/~/minimatch/~/brace-expansion/index.js\n ** module id = 272\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/glob/~/minimatch/~/brace-expansion/index.js?"); + eval("/*!\n * preserve \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT license.\n */\n\n'use strict';\n\n/**\n * Replace tokens in `str` with a temporary, heuristic placeholder.\n *\n * ```js\n * tokens.before('{a\\\\,b}');\n * //=> '{__ID1__}'\n * ```\n *\n * @param {String} `str`\n * @return {String} String with placeholders.\n * @api public\n */\n\nexports.before = function before(str, re) {\n return str.replace(re, function (match) {\n var id = randomize();\n cache[id] = match;\n return '__ID' + id + '__';\n });\n};\n\n/**\n * Replace placeholders in `str` with original tokens.\n *\n * ```js\n * tokens.after('{__ID1__}');\n * //=> '{a\\\\,b}'\n * ```\n *\n * @param {String} `str` String with placeholders\n * @return {String} `str` String with original tokens.\n * @api public\n */\n\nexports.after = function after(str) {\n return str.replace(/__ID(.{5})__/g, function (_, id) {\n return cache[id];\n });\n};\n\nfunction randomize() {\n return Math.random().toString().slice(2, 7);\n}\n\nvar cache = {};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/preserve/index.js\n ** module id = 272\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/preserve/index.js?"); /***/ }, /* 273 */ /***/ function(module, exports) { - eval("module.exports = function (xs, fn) {\n var res = [];\n for (var i = 0; i < xs.length; i++) {\n var x = fn(xs[i], i);\n if (isArray(x)) res.push.apply(res, x);\n else res.push(x);\n }\n return res;\n};\n\nvar isArray = Array.isArray || function (xs) {\n return Object.prototype.toString.call(xs) === '[object Array]';\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/glob/~/minimatch/~/brace-expansion/~/concat-map/index.js\n ** module id = 273\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/glob/~/minimatch/~/brace-expansion/~/concat-map/index.js?"); + eval("/*!\n * expand-brackets \n *\n * Copyright (c) 2015 Jon Schlinkert.\n * Licensed under the MIT license.\n */\n\n'use strict';\n\n/**\n * POSIX character classes\n */\n\nvar POSIX = {\n alnum: 'a-zA-Z0-9',\n alpha: 'a-zA-Z',\n blank: ' \\\\t',\n cntrl: '\\\\x00-\\\\x1F\\\\x7F',\n digit: '0-9',\n graph: '\\\\x21-\\\\x7E',\n lower: 'a-z',\n print: '\\\\x20-\\\\x7E',\n punct: '!\"#$%&\\'()\\\\*+,-./:;<=>?@[\\\\]^_`{|}~',\n space: ' \\\\t\\\\r\\\\n\\\\v\\\\f',\n upper: 'A-Z',\n word: 'A-Za-z0-9_',\n xdigit: 'A-Fa-f0-9',\n};\n\n/**\n * Expose `brackets`\n */\n\nmodule.exports = brackets;\n\nfunction brackets(str) {\n var negated = false;\n if (str.indexOf('[^') !== -1) {\n negated = true;\n str = str.split('[^').join('[');\n }\n if (str.indexOf('[!') !== -1) {\n negated = true;\n str = str.split('[!').join('[');\n }\n\n var a = str.split('[');\n var b = str.split(']');\n var imbalanced = a.length !== b.length;\n\n var parts = str.split(/(?::\\]\\[:|\\[?\\[:|:\\]\\]?)/);\n var len = parts.length, i = 0;\n var end = '', beg = '';\n var res = [];\n\n // start at the end (innermost) first\n while (len--) {\n var inner = parts[i++];\n if (inner === '^[!' || inner === '[!') {\n inner = '';\n negated = true;\n }\n\n var prefix = negated ? '^' : '';\n var ch = POSIX[inner];\n\n if (ch) {\n res.push('[' + prefix + ch + ']');\n } else if (inner) {\n if (/^\\[?\\w-\\w\\]?$/.test(inner)) {\n if (i === parts.length) {\n res.push('[' + prefix + inner);\n } else if (i === 1) {\n res.push(prefix + inner + ']');\n } else {\n res.push(prefix + inner);\n }\n } else {\n if (i === 1) {\n beg += inner;\n } else if (i === parts.length) {\n end += inner;\n } else {\n res.push('[' + prefix + inner + ']');\n }\n }\n }\n }\n\n var result = res.join('|');\n var rlen = res.length || 1;\n if (rlen > 1) {\n result = '(?:' + result + ')';\n rlen = 1;\n }\n if (beg) {\n rlen++;\n if (beg.charAt(0) === '[') {\n if (imbalanced) {\n beg = '\\\\[' + beg.slice(1);\n } else {\n beg += ']';\n }\n }\n result = beg + result;\n }\n if (end) {\n rlen++;\n if (end.slice(-1) === ']') {\n if (imbalanced) {\n end = end.slice(0, end.length - 1) + '\\\\]';\n } else {\n end = '[' + end;\n }\n }\n result += end;\n }\n\n if (rlen > 1) {\n result = result.split('][').join(']|[');\n if (result.indexOf('|') !== -1 && !/\\(\\?/.test(result)) {\n result = '(?:' + result + ')';\n }\n }\n\n result = result.replace(/\\[+=|=\\]+/g, '\\\\b');\n return result;\n}\n\nbrackets.makeRe = function (pattern) {\n try {\n return new RegExp(brackets(pattern));\n } catch (err) {}\n};\n\nbrackets.isMatch = function (str, pattern) {\n try {\n return brackets.makeRe(pattern).test(str);\n } catch (err) {\n return false;\n }\n};\n\nbrackets.match = function (arr, pattern) {\n var len = arr.length, i = 0;\n var res = arr.slice();\n\n var re = brackets.makeRe(pattern);\n while (i < len) {\n var ele = arr[i++];\n if (!re.test(ele)) {\n continue;\n }\n res.splice(i, 1);\n }\n return res;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/expand-brackets/index.js\n ** module id = 273\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/expand-brackets/index.js?"); /***/ }, /* 274 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("module.exports = balanced;\nfunction balanced(a, b, str) {\n var r = range(a, b, str);\n\n return r && {\n start: r[0],\n end: r[1],\n pre: str.slice(0, r[0]),\n body: str.slice(r[0] + a.length, r[1]),\n post: str.slice(r[1] + b.length)\n };\n}\n\nbalanced.range = range;\nfunction range(a, b, str) {\n var begs, beg, left, right, result;\n var ai = str.indexOf(a);\n var bi = str.indexOf(b, ai + 1);\n var i = ai;\n\n if (ai >= 0 && bi > 0) {\n begs = [];\n left = str.length;\n\n while (i < str.length && i >= 0 && ! result) {\n if (i == ai) {\n begs.push(i);\n ai = str.indexOf(a, i + 1);\n } else if (begs.length == 1) {\n result = [ begs.pop(), bi ];\n } else {\n beg = begs.pop();\n if (beg < left) {\n left = beg;\n right = bi;\n }\n\n bi = str.indexOf(b, i + 1);\n }\n\n i = ai < bi && ai >= 0 ? ai : bi;\n }\n\n if (begs.length) {\n result = [ left, right ];\n }\n }\n\n return result;\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/glob/~/minimatch/~/brace-expansion/~/balanced-match/index.js\n ** module id = 274\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/glob/~/minimatch/~/brace-expansion/~/balanced-match/index.js?"); + eval("/*!\n * extglob \n *\n * Copyright (c) 2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\n/**\n * Module dependencies\n */\n\nvar isExtglob = __webpack_require__(275);\nvar re, cache = {};\n\n/**\n * Expose `extglob`\n */\n\nmodule.exports = extglob;\n\n/**\n * Convert the given extglob `string` to a regex-compatible\n * string.\n *\n * ```js\n * var extglob = require('extglob');\n * extglob('!(a?(b))');\n * //=> '(?!a(?:b)?)[^/]*?'\n * ```\n *\n * @param {String} `str` The string to convert.\n * @param {Object} `options`\n * @option {Boolean} [options] `esc` If `false` special characters will not be escaped. Defaults to `true`.\n * @option {Boolean} [options] `regex` If `true` a regular expression is returned instead of a string.\n * @return {String}\n * @api public\n */\n\n\nfunction extglob(str, opts) {\n opts = opts || {};\n var o = {}, i = 0;\n\n // fix common character reversals\n // '*!(.js)' => '*.!(js)'\n str = str.replace(/!\\(([^\\w*()])/g, '$1!(');\n\n // support file extension negation\n str = str.replace(/([*\\/])\\.!\\([*]\\)/g, function (m, ch) {\n if (ch === '/') {\n return escape('\\\\/[^.]+');\n }\n return escape('[^.]+');\n });\n\n // create a unique key for caching by\n // combining the string and options\n var key = str\n + String(!!opts.regex)\n + String(!!opts.contains)\n + String(!!opts.escape);\n\n if (cache.hasOwnProperty(key)) {\n return cache[key];\n }\n\n if (!(re instanceof RegExp)) {\n re = regex();\n }\n\n opts.negate = false;\n var m;\n\n while (m = re.exec(str)) {\n var prefix = m[1];\n var inner = m[3];\n if (prefix === '!') {\n opts.negate = true;\n }\n\n var id = '__EXTGLOB_' + (i++) + '__';\n // use the prefix of the _last_ (outtermost) pattern\n o[id] = wrap(inner, prefix, opts.escape);\n str = str.split(m[0]).join(id);\n }\n\n var keys = Object.keys(o);\n var len = keys.length;\n\n // we have to loop again to allow us to convert\n // patterns in reverse order (starting with the\n // innermost/last pattern first)\n while (len--) {\n var prop = keys[len];\n str = str.split(prop).join(o[prop]);\n }\n\n var result = opts.regex\n ? toRegex(str, opts.contains, opts.negate)\n : str;\n\n result = result.split('.').join('\\\\.');\n\n // cache the result and return it\n return (cache[key] = result);\n}\n\n/**\n * Convert `string` to a regex string.\n *\n * @param {String} `str`\n * @param {String} `prefix` Character that determines how to wrap the string.\n * @param {Boolean} `esc` If `false` special characters will not be escaped. Defaults to `true`.\n * @return {String}\n */\n\nfunction wrap(inner, prefix, esc) {\n if (esc) inner = escape(inner);\n\n switch (prefix) {\n case '!':\n return '(?!' + inner + ')[^/]' + (esc ? '%%%~' : '*?');\n case '@':\n return '(?:' + inner + ')';\n case '+':\n return '(?:' + inner + ')+';\n case '*':\n return '(?:' + inner + ')' + (esc ? '%%' : '*')\n case '?':\n return '(?:' + inner + '|)';\n default:\n return inner;\n }\n}\n\nfunction escape(str) {\n str = str.split('*').join('[^/]%%%~');\n str = str.split('.').join('\\\\.');\n return str;\n}\n\n/**\n * extglob regex.\n */\n\nfunction regex() {\n return /(\\\\?[@?!+*$]\\\\?)(\\(([^()]*?)\\))/;\n}\n\n/**\n * Negation regex\n */\n\nfunction negate(str) {\n return '(?!^' + str + ').*$';\n}\n\n/**\n * Create the regex to do the matching. If\n * the leading character in the `pattern` is `!`\n * a negation regex is returned.\n *\n * @param {String} `pattern`\n * @param {Boolean} `contains` Allow loose matching.\n * @param {Boolean} `isNegated` True if the pattern is a negation pattern.\n */\n\nfunction toRegex(pattern, contains, isNegated) {\n var prefix = contains ? '^' : '';\n var after = contains ? '$' : '';\n pattern = ('(?:' + pattern + ')' + after);\n if (isNegated) {\n pattern = prefix + negate(pattern);\n }\n return new RegExp(prefix + pattern);\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/extglob/index.js\n ** module id = 274\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/extglob/index.js?"); /***/ }, /* 275 */ /***/ function(module, exports) { - eval("if (typeof Object.create === 'function') {\n // implementation from standard node.js 'util' module\n module.exports = function inherits(ctor, superCtor) {\n ctor.super_ = superCtor\n ctor.prototype = Object.create(superCtor.prototype, {\n constructor: {\n value: ctor,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n };\n} else {\n // old school shim for old browsers\n module.exports = function inherits(ctor, superCtor) {\n ctor.super_ = superCtor\n var TempCtor = function () {}\n TempCtor.prototype = superCtor.prototype\n ctor.prototype = new TempCtor()\n ctor.prototype.constructor = ctor\n }\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/glob/~/inherits/inherits_browser.js\n ** module id = 275\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/glob/~/inherits/inherits_browser.js?"); + eval("/*!\n * is-extglob \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\nmodule.exports = function isExtglob(str) {\n return typeof str === 'string'\n && /[@?!+*]\\(/.test(str);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/is-extglob/index.js\n ** module id = 275\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/is-extglob/index.js?"); /***/ }, /* 276 */ /***/ function(module, exports, __webpack_require__) { - eval("// http://wiki.commonjs.org/wiki/Unit_Testing/1.0\n//\n// THIS IS NOT TESTED NOR LIKELY TO WORK OUTSIDE V8!\n//\n// Originally from narwhal.js (http://narwhaljs.org)\n// Copyright (c) 2009 Thomas Robinson <280north.com>\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the 'Software'), to\n// deal in the Software without restriction, including without limitation the\n// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n// sell copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN\n// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\n// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// when used in node, this will actually load the util module we depend on\n// versus loading the builtin util module as happens otherwise\n// this is a bug in node module loading as far as I am concerned\nvar util = __webpack_require__(140);\n\nvar pSlice = Array.prototype.slice;\nvar hasOwn = Object.prototype.hasOwnProperty;\n\n// 1. The assert module provides functions that throw\n// AssertionError's when particular conditions are not met. The\n// assert module must conform to the following interface.\n\nvar assert = module.exports = ok;\n\n// 2. The AssertionError is defined in assert.\n// new assert.AssertionError({ message: message,\n// actual: actual,\n// expected: expected })\n\nassert.AssertionError = function AssertionError(options) {\n this.name = 'AssertionError';\n this.actual = options.actual;\n this.expected = options.expected;\n this.operator = options.operator;\n if (options.message) {\n this.message = options.message;\n this.generatedMessage = false;\n } else {\n this.message = getMessage(this);\n this.generatedMessage = true;\n }\n var stackStartFunction = options.stackStartFunction || fail;\n\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, stackStartFunction);\n }\n else {\n // non v8 browsers so we can have a stacktrace\n var err = new Error();\n if (err.stack) {\n var out = err.stack;\n\n // try to strip useless frames\n var fn_name = stackStartFunction.name;\n var idx = out.indexOf('\\n' + fn_name);\n if (idx >= 0) {\n // once we have located the function frame\n // we need to strip out everything before it (and its line)\n var next_line = out.indexOf('\\n', idx + 1);\n out = out.substring(next_line + 1);\n }\n\n this.stack = out;\n }\n }\n};\n\n// assert.AssertionError instanceof Error\nutil.inherits(assert.AssertionError, Error);\n\nfunction replacer(key, value) {\n if (util.isUndefined(value)) {\n return '' + value;\n }\n if (util.isNumber(value) && !isFinite(value)) {\n return value.toString();\n }\n if (util.isFunction(value) || util.isRegExp(value)) {\n return value.toString();\n }\n return value;\n}\n\nfunction truncate(s, n) {\n if (util.isString(s)) {\n return s.length < n ? s : s.slice(0, n);\n } else {\n return s;\n }\n}\n\nfunction getMessage(self) {\n return truncate(JSON.stringify(self.actual, replacer), 128) + ' ' +\n self.operator + ' ' +\n truncate(JSON.stringify(self.expected, replacer), 128);\n}\n\n// At present only the three keys mentioned above are used and\n// understood by the spec. Implementations or sub modules can pass\n// other keys to the AssertionError's constructor - they will be\n// ignored.\n\n// 3. All of the following functions must throw an AssertionError\n// when a corresponding condition is not met, with a message that\n// may be undefined if not provided. All assertion methods provide\n// both the actual and expected values to the assertion error for\n// display purposes.\n\nfunction fail(actual, expected, message, operator, stackStartFunction) {\n throw new assert.AssertionError({\n message: message,\n actual: actual,\n expected: expected,\n operator: operator,\n stackStartFunction: stackStartFunction\n });\n}\n\n// EXTENSION! allows for well behaved errors defined elsewhere.\nassert.fail = fail;\n\n// 4. Pure assertion tests whether a value is truthy, as determined\n// by !!guard.\n// assert.ok(guard, message_opt);\n// This statement is equivalent to assert.equal(true, !!guard,\n// message_opt);. To test strictly for the value true, use\n// assert.strictEqual(true, guard, message_opt);.\n\nfunction ok(value, message) {\n if (!value) fail(value, true, message, '==', assert.ok);\n}\nassert.ok = ok;\n\n// 5. The equality assertion tests shallow, coercive equality with\n// ==.\n// assert.equal(actual, expected, message_opt);\n\nassert.equal = function equal(actual, expected, message) {\n if (actual != expected) fail(actual, expected, message, '==', assert.equal);\n};\n\n// 6. The non-equality assertion tests for whether two objects are not equal\n// with != assert.notEqual(actual, expected, message_opt);\n\nassert.notEqual = function notEqual(actual, expected, message) {\n if (actual == expected) {\n fail(actual, expected, message, '!=', assert.notEqual);\n }\n};\n\n// 7. The equivalence assertion tests a deep equality relation.\n// assert.deepEqual(actual, expected, message_opt);\n\nassert.deepEqual = function deepEqual(actual, expected, message) {\n if (!_deepEqual(actual, expected)) {\n fail(actual, expected, message, 'deepEqual', assert.deepEqual);\n }\n};\n\nfunction _deepEqual(actual, expected) {\n // 7.1. All identical values are equivalent, as determined by ===.\n if (actual === expected) {\n return true;\n\n } else if (util.isBuffer(actual) && util.isBuffer(expected)) {\n if (actual.length != expected.length) return false;\n\n for (var i = 0; i < actual.length; i++) {\n if (actual[i] !== expected[i]) return false;\n }\n\n return true;\n\n // 7.2. If the expected value is a Date object, the actual value is\n // equivalent if it is also a Date object that refers to the same time.\n } else if (util.isDate(actual) && util.isDate(expected)) {\n return actual.getTime() === expected.getTime();\n\n // 7.3 If the expected value is a RegExp object, the actual value is\n // equivalent if it is also a RegExp object with the same source and\n // properties (`global`, `multiline`, `lastIndex`, `ignoreCase`).\n } else if (util.isRegExp(actual) && util.isRegExp(expected)) {\n return actual.source === expected.source &&\n actual.global === expected.global &&\n actual.multiline === expected.multiline &&\n actual.lastIndex === expected.lastIndex &&\n actual.ignoreCase === expected.ignoreCase;\n\n // 7.4. Other pairs that do not both pass typeof value == 'object',\n // equivalence is determined by ==.\n } else if (!util.isObject(actual) && !util.isObject(expected)) {\n return actual == expected;\n\n // 7.5 For all other Object pairs, including Array objects, equivalence is\n // determined by having the same number of owned properties (as verified\n // with Object.prototype.hasOwnProperty.call), the same set of keys\n // (although not necessarily the same order), equivalent values for every\n // corresponding key, and an identical 'prototype' property. Note: this\n // accounts for both named and indexed properties on Arrays.\n } else {\n return objEquiv(actual, expected);\n }\n}\n\nfunction isArguments(object) {\n return Object.prototype.toString.call(object) == '[object Arguments]';\n}\n\nfunction objEquiv(a, b) {\n if (util.isNullOrUndefined(a) || util.isNullOrUndefined(b))\n return false;\n // an identical 'prototype' property.\n if (a.prototype !== b.prototype) return false;\n // if one is a primitive, the other must be same\n if (util.isPrimitive(a) || util.isPrimitive(b)) {\n return a === b;\n }\n var aIsArgs = isArguments(a),\n bIsArgs = isArguments(b);\n if ((aIsArgs && !bIsArgs) || (!aIsArgs && bIsArgs))\n return false;\n if (aIsArgs) {\n a = pSlice.call(a);\n b = pSlice.call(b);\n return _deepEqual(a, b);\n }\n var ka = objectKeys(a),\n kb = objectKeys(b),\n key, i;\n // having the same number of owned properties (keys incorporates\n // hasOwnProperty)\n if (ka.length != kb.length)\n return false;\n //the same set of keys (although not necessarily the same order),\n ka.sort();\n kb.sort();\n //~~~cheap key test\n for (i = ka.length - 1; i >= 0; i--) {\n if (ka[i] != kb[i])\n return false;\n }\n //equivalent values for every corresponding key, and\n //~~~possibly expensive deep test\n for (i = ka.length - 1; i >= 0; i--) {\n key = ka[i];\n if (!_deepEqual(a[key], b[key])) return false;\n }\n return true;\n}\n\n// 8. The non-equivalence assertion tests for any deep inequality.\n// assert.notDeepEqual(actual, expected, message_opt);\n\nassert.notDeepEqual = function notDeepEqual(actual, expected, message) {\n if (_deepEqual(actual, expected)) {\n fail(actual, expected, message, 'notDeepEqual', assert.notDeepEqual);\n }\n};\n\n// 9. The strict equality assertion tests strict equality, as determined by ===.\n// assert.strictEqual(actual, expected, message_opt);\n\nassert.strictEqual = function strictEqual(actual, expected, message) {\n if (actual !== expected) {\n fail(actual, expected, message, '===', assert.strictEqual);\n }\n};\n\n// 10. The strict non-equality assertion tests for strict inequality, as\n// determined by !==. assert.notStrictEqual(actual, expected, message_opt);\n\nassert.notStrictEqual = function notStrictEqual(actual, expected, message) {\n if (actual === expected) {\n fail(actual, expected, message, '!==', assert.notStrictEqual);\n }\n};\n\nfunction expectedException(actual, expected) {\n if (!actual || !expected) {\n return false;\n }\n\n if (Object.prototype.toString.call(expected) == '[object RegExp]') {\n return expected.test(actual);\n } else if (actual instanceof expected) {\n return true;\n } else if (expected.call({}, actual) === true) {\n return true;\n }\n\n return false;\n}\n\nfunction _throws(shouldThrow, block, expected, message) {\n var actual;\n\n if (util.isString(expected)) {\n message = expected;\n expected = null;\n }\n\n try {\n block();\n } catch (e) {\n actual = e;\n }\n\n message = (expected && expected.name ? ' (' + expected.name + ').' : '.') +\n (message ? ' ' + message : '.');\n\n if (shouldThrow && !actual) {\n fail(actual, expected, 'Missing expected exception' + message);\n }\n\n if (!shouldThrow && expectedException(actual, expected)) {\n fail(actual, expected, 'Got unwanted exception' + message);\n }\n\n if ((shouldThrow && actual && expected &&\n !expectedException(actual, expected)) || (!shouldThrow && actual)) {\n throw actual;\n }\n}\n\n// 11. Expected to throw an error:\n// assert.throws(block, Error_opt, message_opt);\n\nassert.throws = function(block, /*optional*/error, /*optional*/message) {\n _throws.apply(this, [true].concat(pSlice.call(arguments)));\n};\n\n// EXTENSION! This is annoying to write outside this module.\nassert.doesNotThrow = function(block, /*optional*/message) {\n _throws.apply(this, [false].concat(pSlice.call(arguments)));\n};\n\nassert.ifError = function(err) { if (err) {throw err;}};\n\nvar objectKeys = Object.keys || function (obj) {\n var keys = [];\n for (var key in obj) {\n if (hasOwn.call(obj, key)) keys.push(key);\n }\n return keys;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** (webpack)/~/node-libs-browser/~/assert/assert.js\n ** module id = 276\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///(webpack)/~/node-libs-browser/~/assert/assert.js?"); + eval("/*!\n * is-glob \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\nvar isExtglob = __webpack_require__(275);\n\nmodule.exports = function isGlob(str) {\n return typeof str === 'string'\n && (/[*!?{}(|)[\\]]/.test(str)\n || isExtglob(str));\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/is-glob/index.js\n ** module id = 276\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/is-glob/index.js?"); /***/ }, /* 277 */ -/***/ function(module, exports, __webpack_require__) { +/***/ function(module, exports) { - eval("/* WEBPACK VAR INJECTION */(function(process) {'use strict';\n\nfunction posix(path) {\n\treturn path.charAt(0) === '/';\n};\n\nfunction win32(path) {\n\t// https://github.com/joyent/node/blob/b3fcc245fb25539909ef1d5eaa01dbf92e168633/lib/path.js#L56\n\tvar splitDeviceRe = /^([a-zA-Z]:|[\\\\\\/]{2}[^\\\\\\/]+[\\\\\\/]+[^\\\\\\/]+)?([\\\\\\/])?([\\s\\S]*?)$/;\n\tvar result = splitDeviceRe.exec(path);\n\tvar device = result[1] || '';\n\tvar isUnc = !!device && device.charAt(1) !== ':';\n\n\t// UNC paths are always absolute\n\treturn !!result[2] || isUnc;\n};\n\nmodule.exports = process.platform === 'win32' ? win32 : posix;\nmodule.exports.posix = posix;\nmodule.exports.win32 = win32;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(83)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/glob/~/path-is-absolute/index.js\n ** module id = 277\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/glob/~/path-is-absolute/index.js?"); + eval("/*!\n * normalize-path \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License\n */\n\nmodule.exports = function normalizePath(str, stripTrailing) {\n if (typeof str !== 'string') {\n throw new TypeError('expected a string');\n }\n str = str.replace(/[\\\\\\/]+/g, '/');\n if (stripTrailing !== false) {\n str = str.replace(/\\/$/, '');\n }\n return str;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/normalize-path/index.js\n ** module id = 277\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/normalize-path/index.js?"); /***/ }, /* 278 */ /***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(process) {module.exports = globSync\nglobSync.GlobSync = GlobSync\n\nvar fs = __webpack_require__(80)\nvar minimatch = __webpack_require__(271)\nvar Minimatch = minimatch.Minimatch\nvar Glob = __webpack_require__(270).Glob\nvar util = __webpack_require__(140)\nvar path = __webpack_require__(151)\nvar assert = __webpack_require__(276)\nvar isAbsolute = __webpack_require__(277)\nvar common = __webpack_require__(279)\nvar alphasort = common.alphasort\nvar alphasorti = common.alphasorti\nvar setopts = common.setopts\nvar ownProp = common.ownProp\nvar childrenIgnored = common.childrenIgnored\n\nfunction globSync (pattern, options) {\n if (typeof options === 'function' || arguments.length === 3)\n throw new TypeError('callback provided to sync glob\\n'+\n 'See: https://github.com/isaacs/node-glob/issues/167')\n\n return new GlobSync(pattern, options).found\n}\n\nfunction GlobSync (pattern, options) {\n if (!pattern)\n throw new Error('must provide pattern')\n\n if (typeof options === 'function' || arguments.length === 3)\n throw new TypeError('callback provided to sync glob\\n'+\n 'See: https://github.com/isaacs/node-glob/issues/167')\n\n if (!(this instanceof GlobSync))\n return new GlobSync(pattern, options)\n\n setopts(this, pattern, options)\n\n if (this.noprocess)\n return this\n\n var n = this.minimatch.set.length\n this.matches = new Array(n)\n for (var i = 0; i < n; i ++) {\n this._process(this.minimatch.set[i], i, false)\n }\n this._finish()\n}\n\nGlobSync.prototype._finish = function () {\n assert(this instanceof GlobSync)\n if (this.realpath) {\n var self = this\n this.matches.forEach(function (matchset, index) {\n var set = self.matches[index] = Object.create(null)\n for (var p in matchset) {\n try {\n p = self._makeAbs(p)\n var real = fs.realpathSync(p, self.realpathCache)\n set[real] = true\n } catch (er) {\n if (er.syscall === 'stat')\n set[self._makeAbs(p)] = true\n else\n throw er\n }\n }\n })\n }\n common.finish(this)\n}\n\n\nGlobSync.prototype._process = function (pattern, index, inGlobStar) {\n assert(this instanceof GlobSync)\n\n // Get the first [n] parts of pattern that are all strings.\n var n = 0\n while (typeof pattern[n] === 'string') {\n n ++\n }\n // now n is the index of the first one that is *not* a string.\n\n // See if there's anything else\n var prefix\n switch (n) {\n // if not, then this is rather simple\n case pattern.length:\n this._processSimple(pattern.join('/'), index)\n return\n\n case 0:\n // pattern *starts* with some non-trivial item.\n // going to readdir(cwd), but not include the prefix in matches.\n prefix = null\n break\n\n default:\n // pattern has some string bits in the front.\n // whatever it starts with, whether that's 'absolute' like /foo/bar,\n // or 'relative' like '../baz'\n prefix = pattern.slice(0, n).join('/')\n break\n }\n\n var remain = pattern.slice(n)\n\n // get the list of entries.\n var read\n if (prefix === null)\n read = '.'\n else if (isAbsolute(prefix) || isAbsolute(pattern.join('/'))) {\n if (!prefix || !isAbsolute(prefix))\n prefix = '/' + prefix\n read = prefix\n } else\n read = prefix\n\n var abs = this._makeAbs(read)\n\n //if ignored, skip processing\n if (childrenIgnored(this, read))\n return\n\n var isGlobStar = remain[0] === minimatch.GLOBSTAR\n if (isGlobStar)\n this._processGlobStar(prefix, read, abs, remain, index, inGlobStar)\n else\n this._processReaddir(prefix, read, abs, remain, index, inGlobStar)\n}\n\n\nGlobSync.prototype._processReaddir = function (prefix, read, abs, remain, index, inGlobStar) {\n var entries = this._readdir(abs, inGlobStar)\n\n // if the abs isn't a dir, then nothing can match!\n if (!entries)\n return\n\n // It will only match dot entries if it starts with a dot, or if\n // dot is set. Stuff like @(.foo|.bar) isn't allowed.\n var pn = remain[0]\n var negate = !!this.minimatch.negate\n var rawGlob = pn._glob\n var dotOk = this.dot || rawGlob.charAt(0) === '.'\n\n var matchedEntries = []\n for (var i = 0; i < entries.length; i++) {\n var e = entries[i]\n if (e.charAt(0) !== '.' || dotOk) {\n var m\n if (negate && !prefix) {\n m = !e.match(pn)\n } else {\n m = e.match(pn)\n }\n if (m)\n matchedEntries.push(e)\n }\n }\n\n var len = matchedEntries.length\n // If there are no matched entries, then nothing matches.\n if (len === 0)\n return\n\n // if this is the last remaining pattern bit, then no need for\n // an additional stat *unless* the user has specified mark or\n // stat explicitly. We know they exist, since readdir returned\n // them.\n\n if (remain.length === 1 && !this.mark && !this.stat) {\n if (!this.matches[index])\n this.matches[index] = Object.create(null)\n\n for (var i = 0; i < len; i ++) {\n var e = matchedEntries[i]\n if (prefix) {\n if (prefix.slice(-1) !== '/')\n e = prefix + '/' + e\n else\n e = prefix + e\n }\n\n if (e.charAt(0) === '/' && !this.nomount) {\n e = path.join(this.root, e)\n }\n this.matches[index][e] = true\n }\n // This was the last one, and no stats were needed\n return\n }\n\n // now test all matched entries as stand-ins for that part\n // of the pattern.\n remain.shift()\n for (var i = 0; i < len; i ++) {\n var e = matchedEntries[i]\n var newPattern\n if (prefix)\n newPattern = [prefix, e]\n else\n newPattern = [e]\n this._process(newPattern.concat(remain), index, inGlobStar)\n }\n}\n\n\nGlobSync.prototype._emitMatch = function (index, e) {\n var abs = this._makeAbs(e)\n if (this.mark)\n e = this._mark(e)\n\n if (this.matches[index][e])\n return\n\n if (this.nodir) {\n var c = this.cache[this._makeAbs(e)]\n if (c === 'DIR' || Array.isArray(c))\n return\n }\n\n this.matches[index][e] = true\n if (this.stat)\n this._stat(e)\n}\n\n\nGlobSync.prototype._readdirInGlobStar = function (abs) {\n // follow all symlinked directories forever\n // just proceed as if this is a non-globstar situation\n if (this.follow)\n return this._readdir(abs, false)\n\n var entries\n var lstat\n var stat\n try {\n lstat = fs.lstatSync(abs)\n } catch (er) {\n // lstat failed, doesn't exist\n return null\n }\n\n var isSym = lstat.isSymbolicLink()\n this.symlinks[abs] = isSym\n\n // If it's not a symlink or a dir, then it's definitely a regular file.\n // don't bother doing a readdir in that case.\n if (!isSym && !lstat.isDirectory())\n this.cache[abs] = 'FILE'\n else\n entries = this._readdir(abs, false)\n\n return entries\n}\n\nGlobSync.prototype._readdir = function (abs, inGlobStar) {\n var entries\n\n if (inGlobStar && !ownProp(this.symlinks, abs))\n return this._readdirInGlobStar(abs)\n\n if (ownProp(this.cache, abs)) {\n var c = this.cache[abs]\n if (!c || c === 'FILE')\n return null\n\n if (Array.isArray(c))\n return c\n }\n\n try {\n return this._readdirEntries(abs, fs.readdirSync(abs))\n } catch (er) {\n this._readdirError(abs, er)\n return null\n }\n}\n\nGlobSync.prototype._readdirEntries = function (abs, entries) {\n // if we haven't asked to stat everything, then just\n // assume that everything in there exists, so we can avoid\n // having to stat it a second time.\n if (!this.mark && !this.stat) {\n for (var i = 0; i < entries.length; i ++) {\n var e = entries[i]\n if (abs === '/')\n e = abs + e\n else\n e = abs + '/' + e\n this.cache[e] = true\n }\n }\n\n this.cache[abs] = entries\n\n // mark and cache dir-ness\n return entries\n}\n\nGlobSync.prototype._readdirError = function (f, er) {\n // handle errors, and cache the information\n switch (er.code) {\n case 'ENOTSUP': // https://github.com/isaacs/node-glob/issues/205\n case 'ENOTDIR': // totally normal. means it *does* exist.\n this.cache[this._makeAbs(f)] = 'FILE'\n break\n\n case 'ENOENT': // not terribly unusual\n case 'ELOOP':\n case 'ENAMETOOLONG':\n case 'UNKNOWN':\n this.cache[this._makeAbs(f)] = false\n break\n\n default: // some unusual error. Treat as failure.\n this.cache[this._makeAbs(f)] = false\n if (this.strict)\n throw er\n if (!this.silent)\n console.error('glob error', er)\n break\n }\n}\n\nGlobSync.prototype._processGlobStar = function (prefix, read, abs, remain, index, inGlobStar) {\n\n var entries = this._readdir(abs, inGlobStar)\n\n // no entries means not a dir, so it can never have matches\n // foo.txt/** doesn't match foo.txt\n if (!entries)\n return\n\n // test without the globstar, and with every child both below\n // and replacing the globstar.\n var remainWithoutGlobStar = remain.slice(1)\n var gspref = prefix ? [ prefix ] : []\n var noGlobStar = gspref.concat(remainWithoutGlobStar)\n\n // the noGlobStar pattern exits the inGlobStar state\n this._process(noGlobStar, index, false)\n\n var len = entries.length\n var isSym = this.symlinks[abs]\n\n // If it's a symlink, and we're in a globstar, then stop\n if (isSym && inGlobStar)\n return\n\n for (var i = 0; i < len; i++) {\n var e = entries[i]\n if (e.charAt(0) === '.' && !this.dot)\n continue\n\n // these two cases enter the inGlobStar state\n var instead = gspref.concat(entries[i], remainWithoutGlobStar)\n this._process(instead, index, true)\n\n var below = gspref.concat(entries[i], remain)\n this._process(below, index, true)\n }\n}\n\nGlobSync.prototype._processSimple = function (prefix, index) {\n // XXX review this. Shouldn't it be doing the mounting etc\n // before doing stat? kinda weird?\n var exists = this._stat(prefix)\n\n if (!this.matches[index])\n this.matches[index] = Object.create(null)\n\n // If it doesn't exist, then just mark the lack of results\n if (!exists)\n return\n\n if (prefix && isAbsolute(prefix) && !this.nomount) {\n var trail = /[\\/\\\\]$/.test(prefix)\n if (prefix.charAt(0) === '/') {\n prefix = path.join(this.root, prefix)\n } else {\n prefix = path.resolve(this.root, prefix)\n if (trail)\n prefix += '/'\n }\n }\n\n if (process.platform === 'win32')\n prefix = prefix.replace(/\\\\/g, '/')\n\n // Mark this as a match\n this.matches[index][prefix] = true\n}\n\n// Returns either 'DIR', 'FILE', or false\nGlobSync.prototype._stat = function (f) {\n var abs = this._makeAbs(f)\n var needDir = f.slice(-1) === '/'\n\n if (f.length > this.maxLength)\n return false\n\n if (!this.stat && ownProp(this.cache, abs)) {\n var c = this.cache[abs]\n\n if (Array.isArray(c))\n c = 'DIR'\n\n // It exists, but maybe not how we need it\n if (!needDir || c === 'DIR')\n return c\n\n if (needDir && c === 'FILE')\n return false\n\n // otherwise we have to stat, because maybe c=true\n // if we know it exists, but not what it is.\n }\n\n var exists\n var stat = this.statCache[abs]\n if (!stat) {\n var lstat\n try {\n lstat = fs.lstatSync(abs)\n } catch (er) {\n return false\n }\n\n if (lstat.isSymbolicLink()) {\n try {\n stat = fs.statSync(abs)\n } catch (er) {\n stat = lstat\n }\n } else {\n stat = lstat\n }\n }\n\n this.statCache[abs] = stat\n\n var c = stat.isDirectory() ? 'DIR' : 'FILE'\n this.cache[abs] = this.cache[abs] || c\n\n if (needDir && c !== 'DIR')\n return false\n\n return c\n}\n\nGlobSync.prototype._mark = function (p) {\n return common.mark(this, p)\n}\n\nGlobSync.prototype._makeAbs = function (f) {\n return common.makeAbs(this, f)\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(83)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/glob/sync.js\n ** module id = 278\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/glob/sync.js?"); + eval("/*!\n * object.omit \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nvar isObject = __webpack_require__(279);\nvar forOwn = __webpack_require__(280);\n\nmodule.exports = function omit(obj, keys) {\n if (!isObject(obj)) return {};\n\n var keys = [].concat.apply([], [].slice.call(arguments, 1));\n var last = keys[keys.length - 1];\n var res = {}, fn;\n\n if (typeof last === 'function') {\n fn = keys.pop();\n }\n\n var isFunction = typeof fn === 'function';\n if (!keys.length && !isFunction) {\n return obj;\n }\n\n forOwn(obj, function (value, key) {\n if (keys.indexOf(key) === -1) {\n\n if (!isFunction) {\n res[key] = value;\n } else if (fn(value, key, obj)) {\n res[key] = value;\n }\n }\n });\n return res;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/object.omit/index.js\n ** module id = 278\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/object.omit/index.js?"); /***/ }, /* 279 */ -/***/ function(module, exports, __webpack_require__) { +/***/ function(module, exports) { - eval("/* WEBPACK VAR INJECTION */(function(process) {exports.alphasort = alphasort\nexports.alphasorti = alphasorti\nexports.setopts = setopts\nexports.ownProp = ownProp\nexports.makeAbs = makeAbs\nexports.finish = finish\nexports.mark = mark\nexports.isIgnored = isIgnored\nexports.childrenIgnored = childrenIgnored\n\nfunction ownProp (obj, field) {\n return Object.prototype.hasOwnProperty.call(obj, field)\n}\n\nvar path = __webpack_require__(151)\nvar minimatch = __webpack_require__(271)\nvar isAbsolute = __webpack_require__(277)\nvar Minimatch = minimatch.Minimatch\n\nfunction alphasorti (a, b) {\n return a.toLowerCase().localeCompare(b.toLowerCase())\n}\n\nfunction alphasort (a, b) {\n return a.localeCompare(b)\n}\n\nfunction setupIgnores (self, options) {\n self.ignore = options.ignore || []\n\n if (!Array.isArray(self.ignore))\n self.ignore = [self.ignore]\n\n if (self.ignore.length) {\n self.ignore = self.ignore.map(ignoreMap)\n }\n}\n\nfunction ignoreMap (pattern) {\n var gmatcher = null\n if (pattern.slice(-3) === '/**') {\n var gpattern = pattern.replace(/(\\/\\*\\*)+$/, '')\n gmatcher = new Minimatch(gpattern)\n }\n\n return {\n matcher: new Minimatch(pattern),\n gmatcher: gmatcher\n }\n}\n\nfunction setopts (self, pattern, options) {\n if (!options)\n options = {}\n\n // base-matching: just use globstar for that.\n if (options.matchBase && -1 === pattern.indexOf(\"/\")) {\n if (options.noglobstar) {\n throw new Error(\"base matching requires globstar\")\n }\n pattern = \"**/\" + pattern\n }\n\n self.silent = !!options.silent\n self.pattern = pattern\n self.strict = options.strict !== false\n self.realpath = !!options.realpath\n self.realpathCache = options.realpathCache || Object.create(null)\n self.follow = !!options.follow\n self.dot = !!options.dot\n self.mark = !!options.mark\n self.nodir = !!options.nodir\n if (self.nodir)\n self.mark = true\n self.sync = !!options.sync\n self.nounique = !!options.nounique\n self.nonull = !!options.nonull\n self.nosort = !!options.nosort\n self.nocase = !!options.nocase\n self.stat = !!options.stat\n self.noprocess = !!options.noprocess\n\n self.maxLength = options.maxLength || Infinity\n self.cache = options.cache || Object.create(null)\n self.statCache = options.statCache || Object.create(null)\n self.symlinks = options.symlinks || Object.create(null)\n\n setupIgnores(self, options)\n\n self.changedCwd = false\n var cwd = process.cwd()\n if (!ownProp(options, \"cwd\"))\n self.cwd = cwd\n else {\n self.cwd = options.cwd\n self.changedCwd = path.resolve(options.cwd) !== cwd\n }\n\n self.root = options.root || path.resolve(self.cwd, \"/\")\n self.root = path.resolve(self.root)\n if (process.platform === \"win32\")\n self.root = self.root.replace(/\\\\/g, \"/\")\n\n self.nomount = !!options.nomount\n\n // disable comments and negation unless the user explicitly\n // passes in false as the option.\n options.nonegate = options.nonegate === false ? false : true\n options.nocomment = options.nocomment === false ? false : true\n deprecationWarning(options)\n\n self.minimatch = new Minimatch(pattern, options)\n self.options = self.minimatch.options\n}\n\n// TODO(isaacs): remove entirely in v6\n// exported to reset in tests\nexports.deprecationWarned\nfunction deprecationWarning(options) {\n if (!options.nonegate || !options.nocomment) {\n if (process.noDeprecation !== true && !exports.deprecationWarned) {\n var msg = 'glob WARNING: comments and negation will be disabled in v6'\n if (process.throwDeprecation)\n throw new Error(msg)\n else if (process.traceDeprecation)\n console.trace(msg)\n else\n console.error(msg)\n\n exports.deprecationWarned = true\n }\n }\n}\n\nfunction finish (self) {\n var nou = self.nounique\n var all = nou ? [] : Object.create(null)\n\n for (var i = 0, l = self.matches.length; i < l; i ++) {\n var matches = self.matches[i]\n if (!matches || Object.keys(matches).length === 0) {\n if (self.nonull) {\n // do like the shell, and spit out the literal glob\n var literal = self.minimatch.globSet[i]\n if (nou)\n all.push(literal)\n else\n all[literal] = true\n }\n } else {\n // had matches\n var m = Object.keys(matches)\n if (nou)\n all.push.apply(all, m)\n else\n m.forEach(function (m) {\n all[m] = true\n })\n }\n }\n\n if (!nou)\n all = Object.keys(all)\n\n if (!self.nosort)\n all = all.sort(self.nocase ? alphasorti : alphasort)\n\n // at *some* point we statted all of these\n if (self.mark) {\n for (var i = 0; i < all.length; i++) {\n all[i] = self._mark(all[i])\n }\n if (self.nodir) {\n all = all.filter(function (e) {\n return !(/\\/$/.test(e))\n })\n }\n }\n\n if (self.ignore.length)\n all = all.filter(function(m) {\n return !isIgnored(self, m)\n })\n\n self.found = all\n}\n\nfunction mark (self, p) {\n var abs = makeAbs(self, p)\n var c = self.cache[abs]\n var m = p\n if (c) {\n var isDir = c === 'DIR' || Array.isArray(c)\n var slash = p.slice(-1) === '/'\n\n if (isDir && !slash)\n m += '/'\n else if (!isDir && slash)\n m = m.slice(0, -1)\n\n if (m !== p) {\n var mabs = makeAbs(self, m)\n self.statCache[mabs] = self.statCache[abs]\n self.cache[mabs] = self.cache[abs]\n }\n }\n\n return m\n}\n\n// lotta situps...\nfunction makeAbs (self, f) {\n var abs = f\n if (f.charAt(0) === '/') {\n abs = path.join(self.root, f)\n } else if (isAbsolute(f) || f === '') {\n abs = f\n } else if (self.changedCwd) {\n abs = path.resolve(self.cwd, f)\n } else {\n abs = path.resolve(f)\n }\n return abs\n}\n\n\n// Return true, if pattern ends with globstar '**', for the accompanying parent directory.\n// Ex:- If node_modules/** is the pattern, add 'node_modules' to ignore list along with it's contents\nfunction isIgnored (self, path) {\n if (!self.ignore.length)\n return false\n\n return self.ignore.some(function(item) {\n return item.matcher.match(path) || !!(item.gmatcher && item.gmatcher.match(path))\n })\n}\n\nfunction childrenIgnored (self, path) {\n if (!self.ignore.length)\n return false\n\n return self.ignore.some(function(item) {\n return !!(item.gmatcher && item.gmatcher.match(path))\n })\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(83)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/glob/common.js\n ** module id = 279\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/glob/common.js?"); + eval("/*!\n * is-extendable \n *\n * Copyright (c) 2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nmodule.exports = function isExtendable(val) {\n return typeof val !== 'undefined' && val !== null\n && (typeof val === 'object' || typeof val === 'function');\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/is-extendable/index.js\n ** module id = 279\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/is-extendable/index.js?"); /***/ }, /* 280 */ /***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(process) {var wrappy = __webpack_require__(281)\nvar reqs = Object.create(null)\nvar once = __webpack_require__(282)\n\nmodule.exports = wrappy(inflight)\n\nfunction inflight (key, cb) {\n if (reqs[key]) {\n reqs[key].push(cb)\n return null\n } else {\n reqs[key] = [cb]\n return makeres(key)\n }\n}\n\nfunction makeres (key) {\n return once(function RES () {\n var cbs = reqs[key]\n var len = cbs.length\n var args = slice(arguments)\n for (var i = 0; i < len; i++) {\n cbs[i].apply(null, args)\n }\n if (cbs.length > len) {\n // added more in the interim.\n // de-zalgo, just in case, but don't call again.\n cbs.splice(0, len)\n process.nextTick(function () {\n RES.apply(null, args)\n })\n } else {\n delete reqs[key]\n }\n })\n}\n\nfunction slice (args) {\n var length = args.length\n var array = []\n\n for (var i = 0; i < length; i++) array[i] = args[i]\n return array\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(83)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/glob/~/inflight/inflight.js\n ** module id = 280\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/glob/~/inflight/inflight.js?"); + eval("/*!\n * for-own \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nvar forIn = __webpack_require__(281);\nvar hasOwn = Object.prototype.hasOwnProperty;\n\nmodule.exports = function forOwn(o, fn, thisArg) {\n forIn(o, function (val, key) {\n if (hasOwn.call(o, key)) {\n return fn.call(thisArg, o[key], key, o);\n }\n });\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/for-own/index.js\n ** module id = 280\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/for-own/index.js?"); /***/ }, /* 281 */ /***/ function(module, exports) { - eval("// Returns a wrapper function that returns a wrapped callback\n// The wrapper function should do some stuff, and return a\n// presumably different callback function.\n// This makes sure that own properties are retained, so that\n// decorations and such are not lost along the way.\nmodule.exports = wrappy\nfunction wrappy (fn, cb) {\n if (fn && cb) return wrappy(fn)(cb)\n\n if (typeof fn !== 'function')\n throw new TypeError('need wrapper function')\n\n Object.keys(fn).forEach(function (k) {\n wrapper[k] = fn[k]\n })\n\n return wrapper\n\n function wrapper() {\n var args = new Array(arguments.length)\n for (var i = 0; i < args.length; i++) {\n args[i] = arguments[i]\n }\n var ret = fn.apply(this, args)\n var cb = args[args.length-1]\n if (typeof ret === 'function' && ret !== cb) {\n Object.keys(cb).forEach(function (k) {\n ret[k] = cb[k]\n })\n }\n return ret\n }\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/glob/~/inflight/~/wrappy/wrappy.js\n ** module id = 281\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/glob/~/inflight/~/wrappy/wrappy.js?"); + eval("/*!\n * for-in \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nmodule.exports = function forIn(o, fn, thisArg) {\n for (var key in o) {\n if (fn.call(thisArg, o[key], key, o) === false) {\n break;\n }\n }\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/for-in/index.js\n ** module id = 281\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/for-in/index.js?"); /***/ }, /* 282 */ /***/ function(module, exports, __webpack_require__) { - eval("var wrappy = __webpack_require__(283)\nmodule.exports = wrappy(once)\n\nonce.proto = once(function () {\n Object.defineProperty(Function.prototype, 'once', {\n value: function () {\n return once(this)\n },\n configurable: true\n })\n})\n\nfunction once (fn) {\n var f = function () {\n if (f.called) return f.value\n f.called = true\n return f.value = fn.apply(this, arguments)\n }\n f.called = false\n return f\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/glob/~/once/once.js\n ** module id = 282\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/glob/~/once/once.js?"); + eval("/*!\n * parse-glob \n *\n * Copyright (c) 2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nvar isGlob = __webpack_require__(276);\nvar findBase = __webpack_require__(283);\nvar extglob = __webpack_require__(275);\nvar dotfile = __webpack_require__(285);\n\n/**\n * Expose `cache`\n */\n\nvar cache = module.exports.cache = {};\n\n/**\n * Parse a glob pattern into tokens.\n *\n * When no paths or '**' are in the glob, we use a\n * different strategy for parsing the filename, since\n * file names can contain braces and other difficult\n * patterns. such as:\n *\n * - `*.{a,b}`\n * - `(**|*.js)`\n */\n\nmodule.exports = function parseGlob(glob) {\n if (cache.hasOwnProperty(glob)) {\n return cache[glob];\n }\n\n var tok = {};\n tok.orig = glob;\n tok.is = {};\n\n // unescape dots and slashes in braces/brackets\n glob = escape(glob);\n\n var parsed = findBase(glob);\n tok.is.glob = parsed.isGlob;\n\n tok.glob = parsed.glob;\n tok.base = parsed.base;\n var segs = /([^\\/]*)$/.exec(glob);\n\n tok.path = {};\n tok.path.dirname = '';\n tok.path.basename = segs[1] || '';\n tok.path.dirname = glob.split(tok.path.basename).join('') || '';\n var basename = (tok.path.basename || '').split('.') || '';\n tok.path.filename = basename[0] || '';\n tok.path.extname = basename.slice(1).join('.') || '';\n tok.path.ext = '';\n\n if (isGlob(tok.path.dirname) && !tok.path.basename) {\n if (!/\\/$/.test(tok.glob)) {\n tok.path.basename = tok.glob;\n }\n tok.path.dirname = tok.base;\n }\n\n if (glob.indexOf('/') === -1 && !tok.is.globstar) {\n tok.path.dirname = '';\n tok.path.basename = tok.orig;\n }\n\n var dot = tok.path.basename.indexOf('.');\n if (dot !== -1) {\n tok.path.filename = tok.path.basename.slice(0, dot);\n tok.path.extname = tok.path.basename.slice(dot);\n }\n\n if (tok.path.extname.charAt(0) === '.') {\n var exts = tok.path.extname.split('.');\n tok.path.ext = exts[exts.length - 1];\n }\n\n // unescape dots and slashes in braces/brackets\n tok.glob = unescape(tok.glob);\n tok.path.dirname = unescape(tok.path.dirname);\n tok.path.basename = unescape(tok.path.basename);\n tok.path.filename = unescape(tok.path.filename);\n tok.path.extname = unescape(tok.path.extname);\n\n // Booleans\n var is = (glob && tok.is.glob);\n tok.is.negated = glob && glob.charAt(0) === '!';\n tok.is.extglob = glob && extglob(glob);\n tok.is.braces = has(is, glob, '{');\n tok.is.brackets = has(is, glob, '[:');\n tok.is.globstar = has(is, glob, '**');\n tok.is.dotfile = dotfile(tok.path.basename) || dotfile(tok.path.filename);\n tok.is.dotdir = dotdir(tok.path.dirname);\n return (cache[glob] = tok);\n}\n\n/**\n * Returns true if the glob matches dot-directories.\n *\n * @param {Object} `tok` The tokens object\n * @param {Object} `path` The path object\n * @return {Object}\n */\n\nfunction dotdir(base) {\n if (base.indexOf('/.') !== -1) {\n return true;\n }\n if (base.charAt(0) === '.' && base.charAt(1) !== '/') {\n return true;\n }\n return false;\n}\n\n/**\n * Returns true if the pattern has the given `ch`aracter(s)\n *\n * @param {Object} `glob` The glob pattern.\n * @param {Object} `ch` The character to test for\n * @return {Object}\n */\n\nfunction has(is, glob, ch) {\n return is && glob.indexOf(ch) !== -1;\n}\n\n/**\n * Escape/unescape utils\n */\n\nfunction escape(str) {\n var re = /\\{([^{}]*?)}|\\(([^()]*?)\\)|\\[([^\\[\\]]*?)\\]/g;\n return str.replace(re, function (outter, braces, parens, brackets) {\n var inner = braces || parens || brackets;\n if (!inner) { return outter; }\n return outter.split(inner).join(esc(inner));\n });\n}\n\nfunction esc(str) {\n str = str.split('/').join('__SLASH__');\n str = str.split('.').join('__DOT__');\n return str;\n}\n\nfunction unescape(str) {\n str = str.split('__SLASH__').join('/');\n str = str.split('__DOT__').join('.');\n return str;\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/parse-glob/index.js\n ** module id = 282\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/parse-glob/index.js?"); /***/ }, /* 283 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("// Returns a wrapper function that returns a wrapped callback\n// The wrapper function should do some stuff, and return a\n// presumably different callback function.\n// This makes sure that own properties are retained, so that\n// decorations and such are not lost along the way.\nmodule.exports = wrappy\nfunction wrappy (fn, cb) {\n if (fn && cb) return wrappy(fn)(cb)\n\n if (typeof fn !== 'function')\n throw new TypeError('need wrapper function')\n\n Object.keys(fn).forEach(function (k) {\n wrapper[k] = fn[k]\n })\n\n return wrapper\n\n function wrapper() {\n var args = new Array(arguments.length)\n for (var i = 0; i < args.length; i++) {\n args[i] = arguments[i]\n }\n var ret = fn.apply(this, args)\n var cb = args[args.length-1]\n if (typeof ret === 'function' && ret !== cb) {\n Object.keys(cb).forEach(function (k) {\n ret[k] = cb[k]\n })\n }\n return ret\n }\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/glob/~/once/~/wrappy/wrappy.js\n ** module id = 283\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/glob/~/once/~/wrappy/wrappy.js?"); + eval("/*!\n * glob-base \n *\n * Copyright (c) 2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nvar path = __webpack_require__(149);\nvar parent = __webpack_require__(284);\nvar isGlob = __webpack_require__(276);\n\nmodule.exports = function globBase(pattern) {\n if (typeof pattern !== 'string') {\n throw new TypeError('glob-base expects a string.');\n }\n\n var res = {};\n res.base = parent(pattern);\n res.isGlob = isGlob(pattern);\n\n if (res.base !== '.') {\n res.glob = pattern.substr(res.base.length);\n if (res.glob.charAt(0) === '/') {\n res.glob = res.glob.substr(1);\n }\n } else {\n res.glob = pattern;\n }\n\n if (!res.isGlob) {\n res.base = dirname(pattern);\n res.glob = res.base !== '.'\n ? pattern.substr(res.base.length)\n : pattern;\n }\n\n if (res.glob.substr(0, 2) === './') {\n res.glob = res.glob.substr(2);\n }\n if (res.glob.charAt(0) === '/') {\n res.glob = res.glob.substr(1);\n }\n return res;\n};\n\nfunction dirname(glob) {\n if (glob.slice(-1) === '/') return glob;\n return path.dirname(glob);\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-base/index.js\n ** module id = 283\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-base/index.js?"); /***/ }, /* 284 */ /***/ function(module, exports, __webpack_require__) { - eval("/*!\n * micromatch \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nvar expand = __webpack_require__(285);\nvar utils = __webpack_require__(286);\n\n/**\n * The main function. Pass an array of filepaths,\n * and a string or array of glob patterns\n *\n * @param {Array|String} `files`\n * @param {Array|String} `patterns`\n * @param {Object} `opts`\n * @return {Array} Array of matches\n */\n\nfunction micromatch(files, patterns, opts) {\n if (!files || !patterns) return [];\n opts = opts || {};\n\n if (typeof opts.cache === 'undefined') {\n opts.cache = true;\n }\n\n if (!Array.isArray(patterns)) {\n return match(files, patterns, opts);\n }\n\n var len = patterns.length, i = 0;\n var omit = [], keep = [];\n\n while (len--) {\n var glob = patterns[i++];\n if (typeof glob === 'string' && glob.charCodeAt(0) === 33 /* ! */) {\n omit.push.apply(omit, match(files, glob.slice(1), opts));\n } else {\n keep.push.apply(keep, match(files, glob, opts));\n }\n }\n return utils.diff(keep, omit);\n}\n\n/**\n * Pass an array of files and a glob pattern as a string.\n *\n * This function is called by the main `micromatch` function\n * If you only need to pass a single pattern you might get\n * very minor speed improvements using this function.\n *\n * @param {Array} `files`\n * @param {Array} `pattern`\n * @param {Object} `options`\n * @return {Array}\n */\n\nfunction match(files, pattern, opts) {\n if (utils.typeOf(files) !== 'string' && !Array.isArray(files)) {\n throw new Error(msg('match', 'files', 'a string or array'));\n }\n\n files = utils.arrayify(files);\n opts = opts || {};\n\n var negate = opts.negate || false;\n var orig = pattern;\n\n if (typeof pattern === 'string') {\n negate = pattern.charAt(0) === '!';\n if (negate) {\n pattern = pattern.slice(1);\n }\n\n // we need to remove the character regardless,\n // so the above logic is still needed\n if (opts.nonegate === true) {\n negate = false;\n }\n }\n\n var _isMatch = matcher(pattern, opts);\n var len = files.length, i = 0;\n var res = [];\n\n while (i < len) {\n var file = files[i++];\n var fp = utils.unixify(file, opts);\n\n if (!_isMatch(fp)) { continue; }\n res.push(fp);\n }\n\n if (res.length === 0) {\n if (opts.failglob === true) {\n throw new Error('micromatch.match() found no matches for: \"' + orig + '\".');\n }\n\n if (opts.nonull || opts.nullglob) {\n res.push(utils.unescapeGlob(orig));\n }\n }\n\n // if `negate` was defined, diff negated files\n if (negate) { res = utils.diff(files, res); }\n\n // if `ignore` was defined, diff ignored filed\n if (opts.ignore && opts.ignore.length) {\n pattern = opts.ignore;\n opts = utils.omit(opts, ['ignore']);\n res = utils.diff(res, micromatch(res, pattern, opts));\n }\n\n if (opts.nodupes) {\n return utils.unique(res);\n }\n return res;\n}\n\n/**\n * Returns a function that takes a glob pattern or array of glob patterns\n * to be used with `Array#filter()`. (Internally this function generates\n * the matching function using the [matcher] method).\n *\n * ```js\n * var fn = mm.filter('[a-c]');\n * ['a', 'b', 'c', 'd', 'e'].filter(fn);\n * //=> ['a', 'b', 'c']\n * ```\n *\n * @param {String|Array} `patterns` Can be a glob or array of globs.\n * @param {Options} `opts` Options to pass to the [matcher] method.\n * @return {Function} Filter function to be passed to `Array#filter()`.\n */\n\nfunction filter(patterns, opts) {\n if (!Array.isArray(patterns) && typeof patterns !== 'string') {\n throw new TypeError(msg('filter', 'patterns', 'a string or array'));\n }\n\n patterns = utils.arrayify(patterns);\n var len = patterns.length, i = 0;\n var patternMatchers = Array(len);\n while (i < len) {\n patternMatchers[i] = matcher(patterns[i++], opts);\n }\n\n return function(fp) {\n if (fp == null) return [];\n var len = patternMatchers.length, i = 0;\n var res = true;\n\n fp = utils.unixify(fp, opts);\n while (i < len) {\n var fn = patternMatchers[i++];\n if (!fn(fp)) {\n res = false;\n break;\n }\n }\n return res;\n };\n}\n\n/**\n * Returns true if the filepath contains the given\n * pattern. Can also return a function for matching.\n *\n * ```js\n * isMatch('foo.md', '*.md', {});\n * //=> true\n *\n * isMatch('*.md', {})('foo.md')\n * //=> true\n * ```\n *\n * @param {String} `fp`\n * @param {String} `pattern`\n * @param {Object} `opts`\n * @return {Boolean}\n */\n\nfunction isMatch(fp, pattern, opts) {\n if (typeof fp !== 'string') {\n throw new TypeError(msg('isMatch', 'filepath', 'a string'));\n }\n\n fp = utils.unixify(fp, opts);\n if (utils.typeOf(pattern) === 'object') {\n return matcher(fp, pattern);\n }\n return matcher(pattern, opts)(fp);\n}\n\n/**\n * Returns true if the filepath matches the\n * given pattern.\n */\n\nfunction contains(fp, pattern, opts) {\n if (typeof fp !== 'string') {\n throw new TypeError(msg('contains', 'pattern', 'a string'));\n }\n\n opts = opts || {};\n opts.contains = (pattern !== '');\n fp = utils.unixify(fp, opts);\n\n if (opts.contains && !utils.isGlob(pattern)) {\n return fp.indexOf(pattern) !== -1;\n }\n return matcher(pattern, opts)(fp);\n}\n\n/**\n * Returns true if a file path matches any of the\n * given patterns.\n *\n * @param {String} `fp` The filepath to test.\n * @param {String|Array} `patterns` Glob patterns to use.\n * @param {Object} `opts` Options to pass to the `matcher()` function.\n * @return {String}\n */\n\nfunction any(fp, patterns, opts) {\n if (!Array.isArray(patterns) && typeof patterns !== 'string') {\n throw new TypeError(msg('any', 'patterns', 'a string or array'));\n }\n\n patterns = utils.arrayify(patterns);\n var len = patterns.length;\n\n fp = utils.unixify(fp, opts);\n while (len--) {\n var isMatch = matcher(patterns[len], opts);\n if (isMatch(fp)) {\n return true;\n }\n }\n return false;\n}\n\n/**\n * Filter the keys of an object with the given `glob` pattern\n * and `options`\n *\n * @param {Object} `object`\n * @param {Pattern} `object`\n * @return {Array}\n */\n\nfunction matchKeys(obj, glob, options) {\n if (utils.typeOf(obj) !== 'object') {\n throw new TypeError(msg('matchKeys', 'first argument', 'an object'));\n }\n\n var fn = matcher(glob, options);\n var res = {};\n\n for (var key in obj) {\n if (obj.hasOwnProperty(key) && fn(key)) {\n res[key] = obj[key];\n }\n }\n return res;\n}\n\n/**\n * Return a function for matching based on the\n * given `pattern` and `options`.\n *\n * @param {String} `pattern`\n * @param {Object} `options`\n * @return {Function}\n */\n\nfunction matcher(pattern, opts) {\n // pattern is a function\n if (typeof pattern === 'function') {\n return pattern;\n }\n // pattern is a regex\n if (pattern instanceof RegExp) {\n return function(fp) {\n return pattern.test(fp);\n };\n }\n\n if (typeof pattern !== 'string') {\n throw new TypeError(msg('matcher', 'pattern', 'a string, regex, or function'));\n }\n\n // strings, all the way down...\n pattern = utils.unixify(pattern, opts);\n\n // pattern is a non-glob string\n if (!utils.isGlob(pattern)) {\n return utils.matchPath(pattern, opts);\n }\n // pattern is a glob string\n var re = makeRe(pattern, opts);\n\n // `matchBase` is defined\n if (opts && opts.matchBase) {\n return utils.hasFilename(re, opts);\n }\n // `matchBase` is not defined\n return function(fp) {\n fp = utils.unixify(fp, opts);\n return re.test(fp);\n };\n}\n\n/**\n * Create and cache a regular expression for matching\n * file paths.\n *\n * If the leading character in the `glob` is `!`, a negation\n * regex is returned.\n *\n * @param {String} `glob`\n * @param {Object} `options`\n * @return {RegExp}\n */\n\nfunction toRegex(glob, options) {\n // clone options to prevent mutating the original object\n var opts = Object.create(options || {});\n var flags = opts.flags || '';\n if (opts.nocase && flags.indexOf('i') === -1) {\n flags += 'i';\n }\n\n var parsed = expand(glob, opts);\n\n // pass in tokens to avoid parsing more than once\n opts.negated = opts.negated || parsed.negated;\n opts.negate = opts.negated;\n glob = wrapGlob(parsed.pattern, opts);\n var re;\n\n try {\n re = new RegExp(glob, flags);\n return re;\n } catch (err) {\n err.reason = 'micromatch invalid regex: (' + re + ')';\n if (opts.strict) throw new SyntaxError(err);\n }\n\n // we're only here if a bad pattern was used and the user\n // passed `options.silent`, so match nothing\n return /$^/;\n}\n\n/**\n * Create the regex to do the matching. If the leading\n * character in the `glob` is `!` a negation regex is returned.\n *\n * @param {String} `glob`\n * @param {Boolean} `negate`\n */\n\nfunction wrapGlob(glob, opts) {\n var prefix = (opts && !opts.contains) ? '^' : '';\n var after = (opts && !opts.contains) ? '$' : '';\n glob = ('(?:' + glob + ')' + after);\n if (opts && opts.negate) {\n return prefix + ('(?!^' + glob + ').*$');\n }\n return prefix + glob;\n}\n\n/**\n * Wrap `toRegex` to memoize the generated regex when\n * the string and options don't change\n */\n\nfunction makeRe(glob, opts) {\n if (utils.typeOf(glob) !== 'string') {\n throw new Error(msg('makeRe', 'glob', 'a string'));\n }\n return utils.cache(toRegex, glob, opts);\n}\n\n/**\n * Make error messages consistent. Follows this format:\n *\n * ```js\n * msg(methodName, argNumber, nativeType);\n * // example:\n * msg('matchKeys', 'first', 'an object');\n * ```\n *\n * @param {String} `method`\n * @param {String} `num`\n * @param {String} `type`\n * @return {String}\n */\n\nfunction msg(method, what, type) {\n return 'micromatch.' + method + '(): ' + what + ' should be ' + type + '.';\n}\n\n/**\n * Public methods\n */\n\n/* eslint no-multi-spaces: 0 */\nmicromatch.any = any;\nmicromatch.braces = micromatch.braceExpand = utils.braces;\nmicromatch.contains = contains;\nmicromatch.expand = expand;\nmicromatch.filter = filter;\nmicromatch.isMatch = isMatch;\nmicromatch.makeRe = makeRe;\nmicromatch.match = match;\nmicromatch.matcher = matcher;\nmicromatch.matchKeys = matchKeys;\n\n/**\n * Expose `micromatch`\n */\n\nmodule.exports = micromatch;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/micromatch/index.js\n ** module id = 284\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/micromatch/index.js?"); + eval("'use strict';\n\nvar path = __webpack_require__(149);\nvar isglob = __webpack_require__(276);\n\nmodule.exports = function globParent(str) {\n\tstr += 'a'; // preserves full path in case of trailing path separator\n\tdo {str = path.dirname(str)} while (isglob(str));\n\treturn str;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-parent/index.js\n ** module id = 284\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-parent/index.js?"); /***/ }, /* 285 */ -/***/ function(module, exports, __webpack_require__) { +/***/ function(module, exports) { - eval("/*!\n * micromatch \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nvar utils = __webpack_require__(286);\nvar Glob = __webpack_require__(321);\n\n/**\n * Expose `expand`\n */\n\nmodule.exports = expand;\n\n/**\n * Expand a glob pattern to resolve braces and\n * similar patterns before converting to regex.\n *\n * @param {String|Array} `pattern`\n * @param {Array} `files`\n * @param {Options} `opts`\n * @return {Array}\n */\n\nfunction expand(pattern, options) {\n if (typeof pattern !== 'string') {\n throw new TypeError('micromatch.expand(): argument should be a string.');\n }\n\n var glob = new Glob(pattern, options || {});\n var opts = glob.options;\n\n if (!utils.isGlob(pattern)) {\n glob.pattern = glob.pattern.replace(/([\\/.])/g, '\\\\$1');\n return glob;\n }\n\n glob.pattern = glob.pattern.replace(/(\\+)(?!\\()/g, '\\\\$1');\n glob.pattern = glob.pattern.split('$').join('\\\\$');\n\n if (typeof opts.braces !== 'boolean' && typeof opts.nobraces !== 'boolean') {\n opts.braces = true;\n }\n\n if (glob.pattern === '.*') {\n return {\n pattern: '\\\\.' + star,\n tokens: tok,\n options: opts\n };\n }\n\n if (glob.pattern === '*') {\n return {\n pattern: oneStar(opts.dot),\n tokens: tok,\n options: opts\n };\n }\n\n // parse the glob pattern into tokens\n glob.parse();\n var tok = glob.tokens;\n tok.is.negated = opts.negated;\n\n // dotfile handling\n if ((opts.dotfiles === true || tok.is.dotfile) && opts.dot !== false) {\n opts.dotfiles = true;\n opts.dot = true;\n }\n\n if ((opts.dotdirs === true || tok.is.dotdir) && opts.dot !== false) {\n opts.dotdirs = true;\n opts.dot = true;\n }\n\n // check for braces with a dotfile pattern\n if (/[{,]\\./.test(glob.pattern)) {\n opts.makeRe = false;\n opts.dot = true;\n }\n\n if (opts.nonegate !== true) {\n opts.negated = glob.negated;\n }\n\n // if the leading character is a dot or a slash, escape it\n if (glob.pattern.charAt(0) === '.' && glob.pattern.charAt(1) !== '/') {\n glob.pattern = '\\\\' + glob.pattern;\n }\n\n /**\n * Extended globs\n */\n\n // expand braces, e.g `{1..5}`\n glob.track('before braces');\n if (tok.is.braces) {\n glob.braces();\n }\n glob.track('after braces');\n\n // expand extglobs, e.g `foo/!(a|b)`\n glob.track('before extglob');\n if (tok.is.extglob) {\n glob.extglob();\n }\n glob.track('after extglob');\n\n // expand brackets, e.g `[[:alpha:]]`\n glob.track('before brackets');\n if (tok.is.brackets) {\n glob.brackets();\n }\n glob.track('after brackets');\n\n // special patterns\n glob._replace('[!', '[^');\n glob._replace('(?', '(%~');\n glob._replace(/\\[\\]/, '\\\\[\\\\]');\n glob._replace('/[', '/' + (opts.dot ? dotfiles : nodot) + '[', true);\n glob._replace('/?', '/' + (opts.dot ? dotfiles : nodot) + '[^/]', true);\n glob._replace('/.', '/(?=.)\\\\.', true);\n\n // windows drives\n glob._replace(/^(\\w):([\\\\\\/]+?)/gi, '(?=.)$1:$2', true);\n\n // negate slashes in exclusion ranges\n if (glob.pattern.indexOf('[^') !== -1) {\n glob.pattern = negateSlash(glob.pattern);\n }\n\n if (opts.globstar !== false && glob.pattern === '**') {\n glob.pattern = globstar(opts.dot);\n\n } else {\n // '/*/*/*' => '(?:/*){3}'\n glob._replace(/(\\/\\*)+/g, function(match) {\n var len = match.length / 2;\n if (len === 1) { return match; }\n return '(?:\\\\/*){' + len + '}';\n });\n\n glob.pattern = balance(glob.pattern, '[', ']');\n glob.escape(glob.pattern);\n\n // if the pattern has `**`\n if (tok.is.globstar) {\n glob.pattern = collapse(glob.pattern, '/**');\n glob.pattern = collapse(glob.pattern, '**/');\n glob._replace('/**/', '(?:/' + globstar(opts.dot) + '/|/)', true);\n glob._replace(/\\*{2,}/g, '**');\n\n // 'foo/*'\n glob._replace(/(\\w+)\\*(?!\\/)/g, '$1[^/]*?', true);\n glob._replace(/\\*\\*\\/\\*(\\w)/g, globstar(opts.dot) + '\\\\/' + (opts.dot ? dotfiles : nodot) + '[^/]*?$1', true);\n\n if (opts.dot !== true) {\n glob._replace(/\\*\\*\\/(.)/g, '(?:**\\\\/|)$1');\n }\n\n // 'foo/**' or '{**,*}', but not 'foo**'\n if (tok.path.dirname !== '' || /,\\*\\*|\\*\\*,/.test(glob.orig)) {\n glob._replace('**', globstar(opts.dot), true);\n }\n }\n\n // ends with /*\n glob._replace(/\\/\\*$/, '\\\\/' + oneStar(opts.dot), true);\n // ends with *, no slashes\n glob._replace(/(?!\\/)\\*$/, star, true);\n // has 'n*.' (partial wildcard w/ file extension)\n glob._replace(/([^\\/]+)\\*/, '$1' + oneStar(true), true);\n // has '*'\n glob._replace('*', oneStar(opts.dot), true);\n glob._replace('?.', '?\\\\.', true);\n glob._replace('?:', '?:', true);\n\n glob._replace(/\\?+/g, function(match) {\n var len = match.length;\n if (len === 1) {\n return qmark;\n }\n return qmark + '{' + len + '}';\n });\n\n // escape '.abc' => '\\\\.abc'\n glob._replace(/\\.([*\\w]+)/g, '\\\\.$1');\n // fix '[^\\\\\\\\/]'\n glob._replace(/\\[\\^[\\\\\\/]+\\]/g, qmark);\n // '///' => '\\/'\n glob._replace(/\\/+/g, '\\\\/');\n // '\\\\\\\\\\\\' => '\\\\'\n glob._replace(/\\\\{2,}/g, '\\\\');\n }\n\n // unescape previously escaped patterns\n glob.unescape(glob.pattern);\n glob._replace('__UNESC_STAR__', '*');\n\n // escape dots that follow qmarks\n glob._replace('?.', '?\\\\.');\n\n // remove unnecessary slashes in character classes\n glob._replace('[^\\\\/]', qmark);\n\n if (glob.pattern.length > 1) {\n if (/^[\\[?*]/.test(glob.pattern)) {\n // only prepend the string if we don't want to match dotfiles\n glob.pattern = (opts.dot ? dotfiles : nodot) + glob.pattern;\n }\n }\n\n return glob;\n}\n\n/**\n * Collapse repeated character sequences.\n *\n * ```js\n * collapse('a/../../../b', '../');\n * //=> 'a/../b'\n * ```\n *\n * @param {String} `str`\n * @param {String} `ch` Character sequence to collapse\n * @return {String}\n */\n\nfunction collapse(str, ch) {\n var res = str.split(ch);\n var isFirst = res[0] === '';\n var isLast = res[res.length - 1] === '';\n res = res.filter(Boolean);\n if (isFirst) res.unshift('');\n if (isLast) res.push('');\n return res.join(ch);\n}\n\n/**\n * Negate slashes in exclusion ranges, per glob spec:\n *\n * ```js\n * negateSlash('[^foo]');\n * //=> '[^\\\\/foo]'\n * ```\n *\n * @param {String} `str` glob pattern\n * @return {String}\n */\n\nfunction negateSlash(str) {\n return str.replace(/\\[\\^([^\\]]*?)\\]/g, function(match, inner) {\n if (inner.indexOf('/') === -1) {\n inner = '\\\\/' + inner;\n }\n return '[^' + inner + ']';\n });\n}\n\n/**\n * Escape imbalanced braces/bracket. This is a very\n * basic, naive implementation that only does enough\n * to serve the purpose.\n */\n\nfunction balance(str, a, b) {\n var aarr = str.split(a);\n var alen = aarr.join('').length;\n var blen = str.split(b).join('').length;\n\n if (alen !== blen) {\n str = aarr.join('\\\\' + a);\n return str.split(b).join('\\\\' + b);\n }\n return str;\n}\n\n/**\n * Special patterns to be converted to regex.\n * Heuristics are used to simplify patterns\n * and speed up processing.\n */\n\n/* eslint no-multi-spaces: 0 */\nvar qmark = '[^/]';\nvar star = qmark + '*?';\nvar nodot = '(?!\\\\.)(?=.)';\nvar dotfileGlob = '(?:\\\\/|^)\\\\.{1,2}($|\\\\/)';\nvar dotfiles = '(?!' + dotfileGlob + ')(?=.)';\nvar twoStarDot = '(?:(?!' + dotfileGlob + ').)*?';\n\n/**\n * Create a regex for `*`.\n *\n * If `dot` is true, or the pattern does not begin with\n * a leading star, then return the simpler regex.\n */\n\nfunction oneStar(dotfile) {\n return dotfile ? '(?!' + dotfileGlob + ')(?=.)' + star : (nodot + star);\n}\n\nfunction globstar(dotfile) {\n if (dotfile) { return twoStarDot; }\n return '(?:(?!(?:\\\\/|^)\\\\.).)*?';\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/micromatch/lib/expand.js\n ** module id = 285\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/micromatch/lib/expand.js?"); + eval("/*!\n * is-dotfile \n *\n * Copyright (c) 2015 Jon Schlinkert, contributors.\n * Licensed under the MIT license.\n */\n\nmodule.exports = function(str) {\n if (str.charCodeAt(0) === 46 /* . */ && str.indexOf('/', 1) === -1) {\n return true;\n }\n\n var last = str.lastIndexOf('/');\n return last !== -1 ? str.charCodeAt(last + 1) === 46 /* . */ : false;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/is-dotfile/index.js\n ** module id = 285\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/is-dotfile/index.js?"); /***/ }, /* 286 */ /***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(process) {'use strict';\n\nvar win32 = process && process.platform === 'win32';\nvar path = __webpack_require__(151);\nvar fileRe = __webpack_require__(287);\nvar utils = module.exports;\n\n/**\n * Module dependencies\n */\n\nutils.diff = __webpack_require__(288);\nutils.unique = __webpack_require__(290);\nutils.braces = __webpack_require__(291);\nutils.brackets = __webpack_require__(303);\nutils.extglob = __webpack_require__(304);\nutils.isExtglob = __webpack_require__(305);\nutils.isGlob = __webpack_require__(306);\nutils.typeOf = __webpack_require__(297);\nutils.normalize = __webpack_require__(307);\nutils.omit = __webpack_require__(308);\nutils.parseGlob = __webpack_require__(312);\nutils.cache = __webpack_require__(318);\n\n/**\n * Get the filename of a filepath\n *\n * @param {String} `string`\n * @return {String}\n */\n\nutils.filename = function filename(fp) {\n var seg = fp.match(fileRe());\n return seg && seg[0];\n};\n\n/**\n * Returns a function that returns true if the given\n * pattern is the same as a given `filepath`\n *\n * @param {String} `pattern`\n * @return {Function}\n */\n\nutils.isPath = function isPath(pattern, opts) {\n return function(fp) {\n return pattern === utils.unixify(fp, opts);\n };\n};\n\n/**\n * Returns a function that returns true if the given\n * pattern contains a `filepath`\n *\n * @param {String} `pattern`\n * @return {Function}\n */\n\nutils.hasPath = function hasPath(pattern, opts) {\n return function(fp) {\n return utils.unixify(pattern, opts).indexOf(fp) !== -1;\n };\n};\n\n/**\n * Returns a function that returns true if the given\n * pattern matches or contains a `filepath`\n *\n * @param {String} `pattern`\n * @return {Function}\n */\n\nutils.matchPath = function matchPath(pattern, opts) {\n var fn = (opts && opts.contains)\n ? utils.hasPath(pattern, opts)\n : utils.isPath(pattern, opts);\n return fn;\n};\n\n/**\n * Returns a function that returns true if the given\n * regex matches the `filename` of a file path.\n *\n * @param {RegExp} `re`\n * @return {Boolean}\n */\n\nutils.hasFilename = function hasFilename(re) {\n return function(fp) {\n var name = utils.filename(fp);\n return name && re.test(name);\n };\n};\n\n/**\n * Coerce `val` to an array\n *\n * @param {*} val\n * @return {Array}\n */\n\nutils.arrayify = function arrayify(val) {\n return !Array.isArray(val)\n ? [val]\n : val;\n};\n\n/**\n * Normalize all slashes in a file path or glob pattern to\n * forward slashes.\n */\n\nutils.unixify = function unixify(fp, opts) {\n if (opts && opts.unixify === false) return fp;\n if (opts && opts.unixify === true || win32 || path.sep === '\\\\') {\n return utils.normalize(fp, false);\n }\n if (opts && opts.unescape === true) {\n return fp ? fp.toString().replace(/\\\\(\\w)/g, '$1') : '';\n }\n return fp;\n};\n\n/**\n * Escape/unescape utils\n */\n\nutils.escapePath = function escapePath(fp) {\n return fp.replace(/[\\\\.]/g, '\\\\$&');\n};\n\nutils.unescapeGlob = function unescapeGlob(fp) {\n return fp.replace(/[\\\\\"']/g, '');\n};\n\nutils.escapeRe = function escapeRe(str) {\n return str.replace(/[-[\\\\$*+?.#^\\s{}(|)\\]]/g, '\\\\$&');\n};\n\n/**\n * Expose `utils`\n */\n\nmodule.exports = utils;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(83)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/micromatch/lib/utils.js\n ** module id = 286\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/micromatch/lib/utils.js?"); + eval("/*!\n * regex-cache \n *\n * Copyright (c) 2015 Jon Schlinkert.\n * Licensed under the MIT license.\n */\n\n'use strict';\n\nvar isPrimitive = __webpack_require__(287);\nvar equal = __webpack_require__(288);\n\n/**\n * Expose `regexCache`\n */\n\nmodule.exports = regexCache;\n\n/**\n * Memoize the results of a call to the new RegExp constructor.\n *\n * @param {Function} fn [description]\n * @param {String} str [description]\n * @param {Options} options [description]\n * @param {Boolean} nocompare [description]\n * @return {RegExp}\n */\n\nfunction regexCache(fn, str, opts) {\n var key = '_default_', regex, cached;\n\n if (!str && !opts) {\n if (typeof fn !== 'function') {\n return fn;\n }\n return basic[key] || (basic[key] = fn());\n }\n\n var isString = typeof str === 'string';\n if (isString) {\n if (!opts) {\n return basic[str] || (basic[str] = fn(str));\n }\n key = str;\n } else {\n opts = str;\n }\n\n cached = cache[key];\n if (cached && equal(cached.opts, opts)) {\n return cached.regex;\n }\n\n memo(key, opts, (regex = fn(str, opts)));\n return regex;\n}\n\nfunction memo(key, opts, regex) {\n cache[key] = {regex: regex, opts: opts};\n}\n\n/**\n * Expose `cache`\n */\n\nvar cache = module.exports.cache = {};\nvar basic = module.exports.basic = {};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/regex-cache/index.js\n ** module id = 286\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/regex-cache/index.js?"); /***/ }, /* 287 */ /***/ function(module, exports) { - eval("/*!\n * filename-regex \n *\n * Copyright (c) 2014-2015, Jon Schlinkert\n * Licensed under the MIT license.\n */\n\nmodule.exports = function filenameRegex() {\n return /([^\\\\\\/]+)$/;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/micromatch/~/filename-regex/index.js\n ** module id = 287\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/micromatch/~/filename-regex/index.js?"); + eval("/*!\n * is-primitive \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\n// see http://jsperf.com/testing-value-is-primitive/7\nmodule.exports = function isPrimitive(value) {\n return value == null || (typeof value !== 'function' && typeof value !== 'object');\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/is-primitive/index.js\n ** module id = 287\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/is-primitive/index.js?"); /***/ }, /* 288 */ /***/ function(module, exports, __webpack_require__) { - eval("/*!\n * arr-diff \n *\n * Copyright (c) 2014 Jon Schlinkert, contributors.\n * Licensed under the MIT License\n */\n\n'use strict';\n\nvar flatten = __webpack_require__(289);\nvar slice = [].slice;\n\n/**\n * Return the difference between the first array and\n * additional arrays.\n *\n * ```js\n * var diff = require('{%= name %}');\n *\n * var a = ['a', 'b', 'c', 'd'];\n * var b = ['b', 'c'];\n *\n * console.log(diff(a, b))\n * //=> ['a', 'd']\n * ```\n *\n * @param {Array} `a`\n * @param {Array} `b`\n * @return {Array}\n * @api public\n */\n\nfunction diff(arr, arrays) {\n var argsLen = arguments.length;\n var len = arr.length, i = -1;\n var res = [], arrays;\n\n if (argsLen === 1) {\n return arr;\n }\n\n if (argsLen > 2) {\n arrays = flatten(slice.call(arguments, 1));\n }\n\n while (++i < len) {\n if (!~arrays.indexOf(arr[i])) {\n res.push(arr[i]);\n }\n }\n return res;\n}\n\n/**\n * Expose `diff`\n */\n\nmodule.exports = diff;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/micromatch/~/arr-diff/index.js\n ** module id = 288\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/micromatch/~/arr-diff/index.js?"); + eval("/*!\n * is-equal-shallow \n *\n * Copyright (c) 2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nvar isPrimitive = __webpack_require__(287);\n\nmodule.exports = function isEqual(a, b) {\n if (!a && !b) { return true; }\n if (!a && b || a && !b) { return false; }\n\n var numKeysA = 0, numKeysB = 0, key;\n for (key in b) {\n numKeysB++;\n if (!isPrimitive(b[key]) || !a.hasOwnProperty(key) || (a[key] !== b[key])) {\n return false;\n }\n }\n for (key in a) {\n numKeysA++;\n }\n return numKeysA === numKeysB;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/is-equal-shallow/index.js\n ** module id = 288\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/is-equal-shallow/index.js?"); /***/ }, /* 289 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("/*!\n * arr-flatten \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nmodule.exports = function flatten(arr) {\n return flat(arr, []);\n};\n\nfunction flat(arr, res) {\n var len = arr.length;\n var i = -1;\n\n while (len--) {\n var cur = arr[++i];\n if (Array.isArray(cur)) {\n flat(cur, res);\n } else {\n res.push(cur);\n }\n }\n return res;\n}\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/micromatch/~/arr-diff/~/arr-flatten/index.js\n ** module id = 289\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/micromatch/~/arr-diff/~/arr-flatten/index.js?"); + eval("'use strict';\n\nvar chars = __webpack_require__(290);\nvar utils = __webpack_require__(257);\n\n/**\n * Expose `Glob`\n */\n\nvar Glob = module.exports = function Glob(pattern, options) {\n if (!(this instanceof Glob)) {\n return new Glob(pattern, options);\n }\n this.options = options || {};\n this.pattern = pattern;\n this.history = [];\n this.tokens = {};\n this.init(pattern);\n};\n\n/**\n * Initialize defaults\n */\n\nGlob.prototype.init = function(pattern) {\n this.orig = pattern;\n this.negated = this.isNegated();\n this.options.track = this.options.track || false;\n this.options.makeRe = true;\n};\n\n/**\n * Push a change into `glob.history`. Useful\n * for debugging.\n */\n\nGlob.prototype.track = function(msg) {\n if (this.options.track) {\n this.history.push({msg: msg, pattern: this.pattern});\n }\n};\n\n/**\n * Return true if `glob.pattern` was negated\n * with `!`, also remove the `!` from the pattern.\n *\n * @return {Boolean}\n */\n\nGlob.prototype.isNegated = function() {\n if (this.pattern.charCodeAt(0) === 33 /* '!' */) {\n this.pattern = this.pattern.slice(1);\n return true;\n }\n return false;\n};\n\n/**\n * Expand braces in the given glob pattern.\n *\n * We only need to use the [braces] lib when\n * patterns are nested.\n */\n\nGlob.prototype.braces = function() {\n if (this.options.nobraces !== true && this.options.nobrace !== true) {\n // naive/fast check for imbalanced characters\n var a = this.pattern.match(/[\\{\\(\\[]/g);\n var b = this.pattern.match(/[\\}\\)\\]]/g);\n\n // if imbalanced, don't optimize the pattern\n if (a && b && (a.length !== b.length)) {\n this.options.makeRe = false;\n }\n\n // expand brace patterns and join the resulting array\n var expanded = utils.braces(this.pattern, this.options);\n this.pattern = expanded.join('|');\n }\n};\n\n/**\n * Expand bracket expressions in `glob.pattern`\n */\n\nGlob.prototype.brackets = function() {\n if (this.options.nobrackets !== true) {\n this.pattern = utils.brackets(this.pattern);\n }\n};\n\n/**\n * Expand bracket expressions in `glob.pattern`\n */\n\nGlob.prototype.extglob = function() {\n if (this.options.noextglob === true) return;\n\n if (utils.isExtglob(this.pattern)) {\n this.pattern = utils.extglob(this.pattern, {escape: true});\n }\n};\n\n/**\n * Parse the given pattern\n */\n\nGlob.prototype.parse = function(pattern) {\n this.tokens = utils.parseGlob(pattern || this.pattern, true);\n return this.tokens;\n};\n\n/**\n * Replace `a` with `b`. Also tracks the change before and\n * after each replacement. This is disabled by default, but\n * can be enabled by setting `options.track` to true.\n *\n * Also, when the pattern is a string, `.split()` is used,\n * because it's much faster than replace.\n *\n * @param {RegExp|String} `a`\n * @param {String} `b`\n * @param {Boolean} `escape` When `true`, escapes `*` and `?` in the replacement.\n * @return {String}\n */\n\nGlob.prototype._replace = function(a, b, escape) {\n this.track('before (find): \"' + a + '\" (replace with): \"' + b + '\"');\n if (escape) b = esc(b);\n if (a && b && typeof a === 'string') {\n this.pattern = this.pattern.split(a).join(b);\n } else {\n this.pattern = this.pattern.replace(a, b);\n }\n this.track('after');\n};\n\n/**\n * Escape special characters in the given string.\n *\n * @param {String} `str` Glob pattern\n * @return {String}\n */\n\nGlob.prototype.escape = function(str) {\n this.track('before escape: ');\n var re = /[\"\\\\](['\"]?[^\"'\\\\]['\"]?)/g;\n\n this.pattern = str.replace(re, function($0, $1) {\n var o = chars.ESC;\n var ch = o && o[$1];\n if (ch) {\n return ch;\n }\n if (/[a-z]/i.test($0)) {\n return $0.split('\\\\').join('');\n }\n return $0;\n });\n\n this.track('after escape: ');\n};\n\n/**\n * Unescape special characters in the given string.\n *\n * @param {String} `str`\n * @return {String}\n */\n\nGlob.prototype.unescape = function(str) {\n var re = /__([A-Z]+)_([A-Z]+)__/g;\n this.pattern = str.replace(re, function($0, $1) {\n return chars[$1][$0];\n });\n this.pattern = unesc(this.pattern);\n};\n\n/**\n * Escape/unescape utils\n */\n\nfunction esc(str) {\n str = str.split('?').join('%~');\n str = str.split('*').join('%%');\n return str;\n}\n\nfunction unesc(str) {\n str = str.split('%~').join('?');\n str = str.split('%%').join('*');\n return str;\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/micromatch/lib/glob.js\n ** module id = 289\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/micromatch/lib/glob.js?"); /***/ }, /* 290 */ /***/ function(module, exports) { - eval("/*!\n * array-unique \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nmodule.exports = function unique(arr) {\n if (!Array.isArray(arr)) {\n throw new TypeError('array-unique expects an array.');\n }\n\n var len = arr.length;\n var i = -1;\n\n while (i++ < len) {\n var j = i + 1;\n\n for (; j < arr.length; ++j) {\n if (arr[i] === arr[j]) {\n arr.splice(j--, 1);\n }\n }\n }\n return arr;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/micromatch/~/array-unique/index.js\n ** module id = 290\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/micromatch/~/array-unique/index.js?"); + eval("'use strict';\n\nvar chars = {}, unesc, temp;\n\nfunction reverse(object, prepender) {\n return Object.keys(object).reduce(function(reversed, key) {\n var newKey = prepender ? prepender + key : key; // Optionally prepend a string to key.\n reversed[object[key]] = newKey; // Swap key and value.\n return reversed; // Return the result.\n }, {});\n}\n\n/**\n * Regex for common characters\n */\n\nchars.escapeRegex = {\n '?': /\\?/g,\n '@': /\\@/g,\n '!': /\\!/g,\n '+': /\\+/g,\n '*': /\\*/g,\n '(': /\\(/g,\n ')': /\\)/g,\n '[': /\\[/g,\n ']': /\\]/g\n};\n\n/**\n * Escape characters\n */\n\nchars.ESC = {\n '?': '__UNESC_QMRK__',\n '@': '__UNESC_AMPE__',\n '!': '__UNESC_EXCL__',\n '+': '__UNESC_PLUS__',\n '*': '__UNESC_STAR__',\n ',': '__UNESC_COMMA__',\n '(': '__UNESC_LTPAREN__',\n ')': '__UNESC_RTPAREN__',\n '[': '__UNESC_LTBRACK__',\n ']': '__UNESC_RTBRACK__'\n};\n\n/**\n * Unescape characters\n */\n\nchars.UNESC = unesc || (unesc = reverse(chars.ESC, '\\\\'));\n\nchars.ESC_TEMP = {\n '?': '__TEMP_QMRK__',\n '@': '__TEMP_AMPE__',\n '!': '__TEMP_EXCL__',\n '*': '__TEMP_STAR__',\n '+': '__TEMP_PLUS__',\n ',': '__TEMP_COMMA__',\n '(': '__TEMP_LTPAREN__',\n ')': '__TEMP_RTPAREN__',\n '[': '__TEMP_LTBRACK__',\n ']': '__TEMP_RTBRACK__'\n};\n\nchars.TEMP = temp || (temp = reverse(chars.ESC_TEMP));\n\nmodule.exports = chars;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/micromatch/lib/chars.js\n ** module id = 290\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/micromatch/lib/chars.js?"); /***/ }, /* 291 */ /***/ function(module, exports, __webpack_require__) { - eval("/*!\n * braces \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT license.\n */\n\n'use strict';\n\n/**\n * Module dependencies\n */\n\nvar expand = __webpack_require__(292);\nvar repeat = __webpack_require__(301);\nvar tokens = __webpack_require__(302);\n\n/**\n * Expose `braces`\n */\n\nmodule.exports = function (str, options) {\n if (typeof str !== 'string') {\n throw new Error('braces expects a string');\n }\n return braces(str, options);\n};\n\n/**\n * Expand `{foo,bar}` or `{1..5}` braces in the\n * given `string`.\n *\n * @param {String} `str`\n * @param {Array} `arr`\n * @param {Object} `options`\n * @return {Array}\n */\n\nfunction braces(str, arr, options) {\n if (str === '') {\n return [];\n }\n\n if (!Array.isArray(arr)) {\n options = arr;\n arr = [];\n }\n\n var opts = options || {};\n arr = arr || [];\n\n if (typeof opts.nodupes === 'undefined') {\n opts.nodupes = true;\n }\n\n var fn = opts.fn;\n var es6;\n\n if (typeof opts === 'function') {\n fn = opts;\n opts = {};\n }\n\n if (!(patternRe instanceof RegExp)) {\n patternRe = patternRegex();\n }\n\n var matches = str.match(patternRe) || [];\n var m = matches[0];\n\n switch(m) {\n case '\\\\,':\n return escapeCommas(str, arr, opts);\n case '\\\\.':\n return escapeDots(str, arr, opts);\n case '\\/.':\n return escapePaths(str, arr, opts);\n case ' ':\n return splitWhitespace(str);\n case '{,}':\n return exponential(str, opts, braces);\n case '{}':\n return emptyBraces(str, arr, opts);\n case '\\\\{':\n case '\\\\}':\n return escapeBraces(str, arr, opts);\n case '${':\n if (!/\\{[^{]+\\{/.test(str)) {\n return arr.concat(str);\n } else {\n es6 = true;\n str = tokens.before(str, es6Regex());\n }\n }\n\n if (!(braceRe instanceof RegExp)) {\n braceRe = braceRegex();\n }\n\n var match = braceRe.exec(str);\n if (match == null) {\n return [str];\n }\n\n var outter = match[1];\n var inner = match[2];\n if (inner === '') { return [str]; }\n\n var segs, segsLength;\n\n if (inner.indexOf('..') !== -1) {\n segs = expand(inner, opts, fn) || inner.split(',');\n segsLength = segs.length;\n\n } else if (inner[0] === '\"' || inner[0] === '\\'') {\n return arr.concat(str.split(/['\"]/).join(''));\n\n } else {\n segs = inner.split(',');\n if (opts.makeRe) {\n return braces(str.replace(outter, wrap(segs, '|')), opts);\n }\n\n segsLength = segs.length;\n if (segsLength === 1 && opts.bash) {\n segs[0] = wrap(segs[0], '\\\\');\n }\n }\n\n var len = segs.length;\n var i = 0, val;\n\n while (len--) {\n var path = segs[i++];\n\n if (/(\\.[^.\\/])/.test(path)) {\n if (segsLength > 1) {\n return segs;\n } else {\n return [str];\n }\n }\n\n val = splice(str, outter, path);\n\n if (/\\{[^{}]+?\\}/.test(val)) {\n arr = braces(val, arr, opts);\n } else if (val !== '') {\n if (opts.nodupes && arr.indexOf(val) !== -1) { continue; }\n arr.push(es6 ? tokens.after(val) : val);\n }\n }\n\n if (opts.strict) { return filter(arr, filterEmpty); }\n return arr;\n}\n\n/**\n * Expand exponential ranges\n *\n * `a{,}{,}` => ['a', 'a', 'a', 'a']\n */\n\nfunction exponential(str, options, fn) {\n if (typeof options === 'function') {\n fn = options;\n options = null;\n }\n\n var opts = options || {};\n var esc = '__ESC_EXP__';\n var exp = 0;\n var res;\n\n var parts = str.split('{,}');\n if (opts.nodupes) {\n return fn(parts.join(''), opts);\n }\n\n exp = parts.length - 1;\n res = fn(parts.join(esc), opts);\n var len = res.length;\n var arr = [];\n var i = 0;\n\n while (len--) {\n var ele = res[i++];\n var idx = ele.indexOf(esc);\n\n if (idx === -1) {\n arr.push(ele);\n\n } else {\n ele = ele.split('__ESC_EXP__').join('');\n if (!!ele && opts.nodupes !== false) {\n arr.push(ele);\n\n } else {\n var num = Math.pow(2, exp);\n arr.push.apply(arr, repeat(ele, num));\n }\n }\n }\n return arr;\n}\n\n/**\n * Wrap a value with parens, brackets or braces,\n * based on the given character/separator.\n *\n * @param {String|Array} `val`\n * @param {String} `ch`\n * @return {String}\n */\n\nfunction wrap(val, ch) {\n if (ch === '|') {\n return '(' + val.join(ch) + ')';\n }\n if (ch === ',') {\n return '{' + val.join(ch) + '}';\n }\n if (ch === '-') {\n return '[' + val.join(ch) + ']';\n }\n if (ch === '\\\\') {\n return '\\\\{' + val + '\\\\}';\n }\n}\n\n/**\n * Handle empty braces: `{}`\n */\n\nfunction emptyBraces(str, arr, opts) {\n return braces(str.split('{}').join('\\\\{\\\\}'), arr, opts);\n}\n\n/**\n * Filter out empty-ish values\n */\n\nfunction filterEmpty(ele) {\n return !!ele && ele !== '\\\\';\n}\n\n/**\n * Handle patterns with whitespace\n */\n\nfunction splitWhitespace(str) {\n var segs = str.split(' ');\n var len = segs.length;\n var res = [];\n var i = 0;\n\n while (len--) {\n res.push.apply(res, braces(segs[i++]));\n }\n return res;\n}\n\n/**\n * Handle escaped braces: `\\\\{foo,bar}`\n */\n\nfunction escapeBraces(str, arr, opts) {\n if (!/\\{[^{]+\\{/.test(str)) {\n return arr.concat(str.split('\\\\').join(''));\n } else {\n str = str.split('\\\\{').join('__LT_BRACE__');\n str = str.split('\\\\}').join('__RT_BRACE__');\n return map(braces(str, arr, opts), function (ele) {\n ele = ele.split('__LT_BRACE__').join('{');\n return ele.split('__RT_BRACE__').join('}');\n });\n }\n}\n\n/**\n * Handle escaped dots: `{1\\\\.2}`\n */\n\nfunction escapeDots(str, arr, opts) {\n if (!/[^\\\\]\\..+\\\\\\./.test(str)) {\n return arr.concat(str.split('\\\\').join(''));\n } else {\n str = str.split('\\\\.').join('__ESC_DOT__');\n return map(braces(str, arr, opts), function (ele) {\n return ele.split('__ESC_DOT__').join('.');\n });\n }\n}\n\n/**\n * Handle escaped dots: `{1\\\\.2}`\n */\n\nfunction escapePaths(str, arr, opts) {\n str = str.split('\\/.').join('__ESC_PATH__');\n return map(braces(str, arr, opts), function (ele) {\n return ele.split('__ESC_PATH__').join('\\/.');\n });\n}\n\n/**\n * Handle escaped commas: `{a\\\\,b}`\n */\n\nfunction escapeCommas(str, arr, opts) {\n if (!/\\w,/.test(str)) {\n return arr.concat(str.split('\\\\').join(''));\n } else {\n str = str.split('\\\\,').join('__ESC_COMMA__');\n return map(braces(str, arr, opts), function (ele) {\n return ele.split('__ESC_COMMA__').join(',');\n });\n }\n}\n\n/**\n * Regex for common patterns\n */\n\nfunction patternRegex() {\n return /\\$\\{|[ \\t]|{}|{,}|\\\\,(?=.*[{}])|\\/\\.(?=.*[{}])|\\\\\\.(?={)|\\\\{|\\\\}/;\n}\n\n/**\n * Braces regex.\n */\n\nfunction braceRegex() {\n return /.*(\\\\?\\{([^}]+)\\})/;\n}\n\n/**\n * es6 delimiter regex.\n */\n\nfunction es6Regex() {\n return /\\$\\{([^}]+)\\}/;\n}\n\nvar braceRe;\nvar patternRe;\n\n/**\n * Faster alternative to `String.replace()` when the\n * index of the token to be replaces can't be supplied\n */\n\nfunction splice(str, token, replacement) {\n var i = str.indexOf(token);\n return str.substr(0, i) + replacement\n + str.substr(i + token.length);\n}\n\n/**\n * Fast array map\n */\n\nfunction map(arr, fn) {\n if (arr == null) {\n return [];\n }\n\n var len = arr.length;\n var res = new Array(len);\n var i = -1;\n\n while (++i < len) {\n res[i] = fn(arr[i], i, arr);\n }\n\n return res;\n}\n\n/**\n * Fast array filter\n */\n\nfunction filter(arr, cb) {\n if (arr == null) return [];\n if (typeof cb !== 'function') {\n throw new TypeError('braces: filter expects a callback function.');\n }\n\n var len = arr.length;\n var res = arr.slice();\n var i = 0;\n\n while (len--) {\n if (!cb(arr[len], i++)) {\n res.splice(len, 1);\n }\n }\n return res;\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/micromatch/~/braces/index.js\n ** module id = 291\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/micromatch/~/braces/index.js?"); + eval("/* WEBPACK VAR INJECTION */(function(process) {'use strict';\n\nvar path = __webpack_require__(149);\nvar extend = __webpack_require__(292);\n\nmodule.exports = function(glob, options) {\n var opts = extend({}, options);\n opts.cwd = opts.cwd ? path.resolve(opts.cwd) : process.cwd();\n\n // store first and last characters before glob is modified\n var prefix = glob.charAt(0);\n var suffix = glob.slice(-1);\n\n var isNegative = prefix === '!';\n if (isNegative) glob = glob.slice(1);\n\n if (opts.root && glob.charAt(0) === '/') {\n glob = path.join(path.resolve(opts.root), '.' + glob);\n } else {\n glob = path.resolve(opts.cwd, glob);\n }\n\n if (suffix === '/' && glob.slice(-1) !== '/') {\n glob += '/';\n }\n\n return isNegative ? '!' + glob : glob;\n};\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/to-absolute-glob/index.js\n ** module id = 291\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/to-absolute-glob/index.js?"); /***/ }, /* 292 */ /***/ function(module, exports, __webpack_require__) { - eval("/*!\n * expand-range \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT license.\n */\n\n'use strict';\n\nvar fill = __webpack_require__(293);\n\nmodule.exports = function expandRange(str, options, fn) {\n if (typeof str !== 'string') {\n throw new TypeError('expand-range expects a string.');\n }\n\n if (typeof options === 'function') {\n fn = options;\n options = {};\n }\n\n if (typeof options === 'boolean') {\n options = {};\n options.makeRe = true;\n }\n\n // create arguments to pass to fill-range\n var opts = options || {};\n var args = str.split('..');\n var len = args.length;\n if (len > 3) { return str; }\n\n // if only one argument, it can't expand so return it\n if (len === 1) { return args; }\n\n // if `true`, tell fill-range to regexify the string\n if (typeof fn === 'boolean' && fn === true) {\n opts.makeRe = true;\n }\n\n args.push(opts);\n return fill.apply(fill, args.concat(fn));\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/micromatch/~/braces/~/expand-range/index.js\n ** module id = 292\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/micromatch/~/braces/~/expand-range/index.js?"); + eval("'use strict';\n\nvar isObject = __webpack_require__(279);\n\nmodule.exports = function extend(o/*, objects*/) {\n if (!isObject(o)) { o = {}; }\n\n var len = arguments.length;\n for (var i = 1; i < len; i++) {\n var obj = arguments[i];\n\n if (isObject(obj)) {\n assign(o, obj);\n }\n }\n return o;\n};\n\nfunction assign(a, b) {\n for (var key in b) {\n if (hasOwn(b, key)) {\n a[key] = b[key];\n }\n }\n}\n\n/**\n * Returns true if the given `key` is an own property of `obj`.\n */\n\nfunction hasOwn(obj, key) {\n return Object.prototype.hasOwnProperty.call(obj, key);\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/extend-shallow/index.js\n ** module id = 292\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/extend-shallow/index.js?"); /***/ }, /* 293 */ -/***/ function(module, exports, __webpack_require__) { +/***/ function(module, exports) { - eval("/*!\n * fill-range \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nvar isObject = __webpack_require__(294);\nvar isNumber = __webpack_require__(296);\nvar randomize = __webpack_require__(299);\nvar repeatStr = __webpack_require__(300);\nvar repeat = __webpack_require__(301);\n\n/**\n * Expose `fillRange`\n */\n\nmodule.exports = fillRange;\n\n/**\n * Return a range of numbers or letters.\n *\n * @param {String} `a` Start of the range\n * @param {String} `b` End of the range\n * @param {String} `step` Increment or decrement to use.\n * @param {Function} `fn` Custom function to modify each element in the range.\n * @return {Array}\n */\n\nfunction fillRange(a, b, step, options, fn) {\n if (a == null || b == null) {\n throw new Error('fill-range expects the first and second args to be strings.');\n }\n\n if (typeof step === 'function') {\n fn = step; options = {}; step = null;\n }\n\n if (typeof options === 'function') {\n fn = options; options = {};\n }\n\n if (isObject(step)) {\n options = step; step = '';\n }\n\n var expand, regex = false, sep = '';\n var opts = options || {};\n\n if (typeof opts.silent === 'undefined') {\n opts.silent = true;\n }\n\n step = step || opts.step;\n\n // store a ref to unmodified arg\n var origA = a, origB = b;\n\n b = (b.toString() === '-0') ? 0 : b;\n\n if (opts.optimize || opts.makeRe) {\n step = step ? (step += '~') : step;\n expand = true;\n regex = true;\n sep = '~';\n }\n\n // handle special step characters\n if (typeof step === 'string') {\n var match = stepRe().exec(step);\n\n if (match) {\n var i = match.index;\n var m = match[0];\n\n // repeat string\n if (m === '+') {\n return repeat(a, b);\n\n // randomize a, `b` times\n } else if (m === '?') {\n return [randomize(a, b)];\n\n // expand right, no regex reduction\n } else if (m === '>') {\n step = step.substr(0, i) + step.substr(i + 1);\n expand = true;\n\n // expand to an array, or if valid create a reduced\n // string for a regex logic `or`\n } else if (m === '|') {\n step = step.substr(0, i) + step.substr(i + 1);\n expand = true;\n regex = true;\n sep = m;\n\n // expand to an array, or if valid create a reduced\n // string for a regex range\n } else if (m === '~') {\n step = step.substr(0, i) + step.substr(i + 1);\n expand = true;\n regex = true;\n sep = m;\n }\n } else if (!isNumber(step)) {\n if (!opts.silent) {\n throw new TypeError('fill-range: invalid step.');\n }\n return null;\n }\n }\n\n if (/[.&*()[\\]^%$#@!]/.test(a) || /[.&*()[\\]^%$#@!]/.test(b)) {\n if (!opts.silent) {\n throw new RangeError('fill-range: invalid range arguments.');\n }\n return null;\n }\n\n // has neither a letter nor number, or has both letters and numbers\n // this needs to be after the step logic\n if (!noAlphaNum(a) || !noAlphaNum(b) || hasBoth(a) || hasBoth(b)) {\n if (!opts.silent) {\n throw new RangeError('fill-range: invalid range arguments.');\n }\n return null;\n }\n\n // validate arguments\n var isNumA = isNumber(zeros(a));\n var isNumB = isNumber(zeros(b));\n\n if ((!isNumA && isNumB) || (isNumA && !isNumB)) {\n if (!opts.silent) {\n throw new TypeError('fill-range: first range argument is incompatible with second.');\n }\n return null;\n }\n\n // by this point both are the same, so we\n // can use A to check going forward.\n var isNum = isNumA;\n var num = formatStep(step);\n\n // is the range alphabetical? or numeric?\n if (isNum) {\n // if numeric, coerce to an integer\n a = +a; b = +b;\n } else {\n // otherwise, get the charCode to expand alpha ranges\n a = a.charCodeAt(0);\n b = b.charCodeAt(0);\n }\n\n // is the pattern descending?\n var isDescending = a > b;\n\n // don't create a character class if the args are < 0\n if (a < 0 || b < 0) {\n expand = false;\n regex = false;\n }\n\n // detect padding\n var padding = isPadded(origA, origB);\n var res, pad, arr = [];\n var ii = 0;\n\n // character classes, ranges and logical `or`\n if (regex) {\n if (shouldExpand(a, b, num, isNum, padding, opts)) {\n // make sure the correct separator is used\n if (sep === '|' || sep === '~') {\n sep = detectSeparator(a, b, num, isNum, isDescending);\n }\n return wrap([origA, origB], sep, opts);\n }\n }\n\n while (isDescending ? (a >= b) : (a <= b)) {\n if (padding && isNum) {\n pad = padding(a);\n }\n\n // custom function\n if (typeof fn === 'function') {\n res = fn(a, isNum, pad, ii++);\n\n // letters\n } else if (!isNum) {\n if (regex && isInvalidChar(a)) {\n res = null;\n } else {\n res = String.fromCharCode(a);\n }\n\n // numbers\n } else {\n res = formatPadding(a, pad);\n }\n\n // add result to the array, filtering any nulled values\n if (res !== null) arr.push(res);\n\n // increment or decrement\n if (isDescending) {\n a -= num;\n } else {\n a += num;\n }\n }\n\n // now that the array is expanded, we need to handle regex\n // character classes, ranges or logical `or` that wasn't\n // already handled before the loop\n if ((regex || expand) && !opts.noexpand) {\n // make sure the correct separator is used\n if (sep === '|' || sep === '~') {\n sep = detectSeparator(a, b, num, isNum, isDescending);\n }\n if (arr.length === 1 || a < 0 || b < 0) { return arr; }\n return wrap(arr, sep, opts);\n }\n\n return arr;\n}\n\n/**\n * Wrap the string with the correct regex\n * syntax.\n */\n\nfunction wrap(arr, sep, opts) {\n if (sep === '~') { sep = '-'; }\n var str = arr.join(sep);\n var pre = opts && opts.regexPrefix;\n\n // regex logical `or`\n if (sep === '|') {\n str = pre ? pre + str : str;\n str = '(' + str + ')';\n }\n\n // regex character class\n if (sep === '-') {\n str = (pre && pre === '^')\n ? pre + str\n : str;\n str = '[' + str + ']';\n }\n return [str];\n}\n\n/**\n * Check for invalid characters\n */\n\nfunction isCharClass(a, b, step, isNum, isDescending) {\n if (isDescending) { return false; }\n if (isNum) { return a <= 9 && b <= 9; }\n if (a < b) { return step === 1; }\n return false;\n}\n\n/**\n * Detect the correct separator to use\n */\n\nfunction shouldExpand(a, b, num, isNum, padding, opts) {\n if (isNum && (a > 9 || b > 9)) { return false; }\n return !padding && num === 1 && a < b;\n}\n\n/**\n * Detect the correct separator to use\n */\n\nfunction detectSeparator(a, b, step, isNum, isDescending) {\n var isChar = isCharClass(a, b, step, isNum, isDescending);\n if (!isChar) {\n return '|';\n }\n return '~';\n}\n\n/**\n * Correctly format the step based on type\n */\n\nfunction formatStep(step) {\n return Math.abs(step >> 0) || 1;\n}\n\n/**\n * Format padding, taking leading `-` into account\n */\n\nfunction formatPadding(ch, pad) {\n var res = pad ? pad + ch : ch;\n if (pad && ch.toString().charAt(0) === '-') {\n res = '-' + pad + ch.toString().substr(1);\n }\n return res.toString();\n}\n\n/**\n * Check for invalid characters\n */\n\nfunction isInvalidChar(str) {\n var ch = toStr(str);\n return ch === '\\\\'\n || ch === '['\n || ch === ']'\n || ch === '^'\n || ch === '('\n || ch === ')'\n || ch === '`';\n}\n\n/**\n * Convert to a string from a charCode\n */\n\nfunction toStr(ch) {\n return String.fromCharCode(ch);\n}\n\n\n/**\n * Step regex\n */\n\nfunction stepRe() {\n return /\\?|>|\\||\\+|\\~/g;\n}\n\n/**\n * Return true if `val` has either a letter\n * or a number\n */\n\nfunction noAlphaNum(val) {\n return /[a-z0-9]/i.test(val);\n}\n\n/**\n * Return true if `val` has both a letter and\n * a number (invalid)\n */\n\nfunction hasBoth(val) {\n return /[a-z][0-9]|[0-9][a-z]/i.test(val);\n}\n\n/**\n * Normalize zeros for checks\n */\n\nfunction zeros(val) {\n if (/^-*0+$/.test(val.toString())) {\n return '0';\n }\n return val;\n}\n\n/**\n * Return true if `val` has leading zeros,\n * or a similar valid pattern.\n */\n\nfunction hasZeros(val) {\n return /[^.]\\.|^-*0+[0-9]/.test(val);\n}\n\n/**\n * If the string is padded, returns a curried function with\n * the a cached padding string, or `false` if no padding.\n *\n * @param {*} `origA` String or number.\n * @return {String|Boolean}\n */\n\nfunction isPadded(origA, origB) {\n if (hasZeros(origA) || hasZeros(origB)) {\n var alen = length(origA);\n var blen = length(origB);\n\n var len = alen >= blen\n ? alen\n : blen;\n\n return function (a) {\n return repeatStr('0', len - length(a));\n };\n }\n return false;\n}\n\n/**\n * Get the string length of `val`\n */\n\nfunction length(val) {\n return val.toString().length;\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/micromatch/~/braces/~/expand-range/~/fill-range/index.js\n ** module id = 293\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/micromatch/~/braces/~/expand-range/~/fill-range/index.js?"); + eval("'use strict';\n\nvar hasOwn = Object.prototype.hasOwnProperty;\nvar toStr = Object.prototype.toString;\n\nvar isArray = function isArray(arr) {\n\tif (typeof Array.isArray === 'function') {\n\t\treturn Array.isArray(arr);\n\t}\n\n\treturn toStr.call(arr) === '[object Array]';\n};\n\nvar isPlainObject = function isPlainObject(obj) {\n\tif (!obj || toStr.call(obj) !== '[object Object]') {\n\t\treturn false;\n\t}\n\n\tvar hasOwnConstructor = hasOwn.call(obj, 'constructor');\n\tvar hasIsPrototypeOf = obj.constructor && obj.constructor.prototype && hasOwn.call(obj.constructor.prototype, 'isPrototypeOf');\n\t// Not own constructor property must be Object\n\tif (obj.constructor && !hasOwnConstructor && !hasIsPrototypeOf) {\n\t\treturn false;\n\t}\n\n\t// Own properties are enumerated firstly, so to speed up,\n\t// if last one is own, then all properties are own.\n\tvar key;\n\tfor (key in obj) {/**/}\n\n\treturn typeof key === 'undefined' || hasOwn.call(obj, key);\n};\n\nmodule.exports = function extend() {\n\tvar options, name, src, copy, copyIsArray, clone,\n\t\ttarget = arguments[0],\n\t\ti = 1,\n\t\tlength = arguments.length,\n\t\tdeep = false;\n\n\t// Handle a deep copy situation\n\tif (typeof target === 'boolean') {\n\t\tdeep = target;\n\t\ttarget = arguments[1] || {};\n\t\t// skip the boolean and the target\n\t\ti = 2;\n\t} else if ((typeof target !== 'object' && typeof target !== 'function') || target == null) {\n\t\ttarget = {};\n\t}\n\n\tfor (; i < length; ++i) {\n\t\toptions = arguments[i];\n\t\t// Only deal with non-null/undefined values\n\t\tif (options != null) {\n\t\t\t// Extend the base object\n\t\t\tfor (name in options) {\n\t\t\t\tsrc = target[name];\n\t\t\t\tcopy = options[name];\n\n\t\t\t\t// Prevent never-ending loop\n\t\t\t\tif (target !== copy) {\n\t\t\t\t\t// Recurse if we're merging plain objects or arrays\n\t\t\t\t\tif (deep && copy && (isPlainObject(copy) || (copyIsArray = isArray(copy)))) {\n\t\t\t\t\t\tif (copyIsArray) {\n\t\t\t\t\t\t\tcopyIsArray = false;\n\t\t\t\t\t\t\tclone = src && isArray(src) ? src : [];\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tclone = src && isPlainObject(src) ? src : {};\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Never move original objects, clone them\n\t\t\t\t\t\ttarget[name] = extend(deep, clone, copy);\n\n\t\t\t\t\t// Don't bring in undefined values\n\t\t\t\t\t} else if (typeof copy !== 'undefined') {\n\t\t\t\t\t\ttarget[name] = copy;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// Return the modified object\n\treturn target;\n};\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/extend/index.js\n ** module id = 293\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/extend/index.js?"); /***/ }, /* 294 */ /***/ function(module, exports, __webpack_require__) { - eval("/*!\n * isobject \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nvar isArray = __webpack_require__(295);\n\nmodule.exports = function isObject(o) {\n return o != null && typeof o === 'object' && !isArray(o);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/micromatch/~/braces/~/expand-range/~/fill-range/~/isobject/index.js\n ** module id = 294\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/micromatch/~/braces/~/expand-range/~/fill-range/~/isobject/index.js?"); + eval("/* WEBPACK VAR INJECTION */(function(Buffer, process) {var stream = __webpack_require__(237)\nvar eos = __webpack_require__(295)\nvar util = __webpack_require__(139)\n\nvar SIGNAL_FLUSH = new Buffer([0])\n\nvar onuncork = function(self, fn) {\n if (self._corked) self.once('uncork', fn)\n else fn()\n}\n\nvar destroyer = function(self, end) {\n return function(err) {\n if (err) self.destroy(err.message === 'premature close' ? null : err)\n else if (end && !self._ended) self.end()\n }\n}\n\nvar end = function(ws, fn) {\n if (!ws) return fn()\n if (ws._writableState && ws._writableState.finished) return fn()\n if (ws._writableState) return ws.end(fn)\n ws.end()\n fn()\n}\n\nvar toStreams2 = function(rs) {\n return new (stream.Readable)({objectMode:true, highWaterMark:16}).wrap(rs)\n}\n\nvar Duplexify = function(writable, readable, opts) {\n if (!(this instanceof Duplexify)) return new Duplexify(writable, readable, opts)\n stream.Duplex.call(this, opts)\n\n this._writable = null\n this._readable = null\n this._readable2 = null\n\n this._forwardDestroy = !opts || opts.destroy !== false\n this._forwardEnd = !opts || opts.end !== false\n this._corked = 1 // start corked\n this._ondrain = null\n this._drained = false\n this._forwarding = false\n this._unwrite = null\n this._unread = null\n this._ended = false\n\n this.destroyed = false\n\n if (writable) this.setWritable(writable)\n if (readable) this.setReadable(readable)\n}\n\nutil.inherits(Duplexify, stream.Duplex)\n\nDuplexify.obj = function(writable, readable, opts) {\n if (!opts) opts = {}\n opts.objectMode = true\n opts.highWaterMark = 16\n return new Duplexify(writable, readable, opts)\n}\n\nDuplexify.prototype.cork = function() {\n if (++this._corked === 1) this.emit('cork')\n}\n\nDuplexify.prototype.uncork = function() {\n if (this._corked && --this._corked === 0) this.emit('uncork')\n}\n\nDuplexify.prototype.setWritable = function(writable) {\n if (this._unwrite) this._unwrite()\n\n if (this.destroyed) {\n if (writable && writable.destroy) writable.destroy()\n return\n }\n\n if (writable === null || writable === false) {\n this.end()\n return\n }\n\n var self = this\n var unend = eos(writable, {writable:true, readable:false}, destroyer(this, this._forwardEnd))\n\n var ondrain = function() {\n var ondrain = self._ondrain\n self._ondrain = null\n if (ondrain) ondrain()\n }\n\n var clear = function() {\n self._writable.removeListener('drain', ondrain)\n unend()\n }\n\n if (this._unwrite) process.nextTick(ondrain) // force a drain on stream reset to avoid livelocks\n\n this._writable = writable\n this._writable.on('drain', ondrain)\n this._unwrite = clear\n\n this.uncork() // always uncork setWritable\n}\n\nDuplexify.prototype.setReadable = function(readable) {\n if (this._unread) this._unread()\n\n if (this.destroyed) {\n if (readable && readable.destroy) readable.destroy()\n return\n }\n\n if (readable === null || readable === false) {\n this.push(null)\n this.resume()\n return\n }\n\n var self = this\n var unend = eos(readable, {writable:false, readable:true}, destroyer(this))\n\n var onreadable = function() {\n self._forward()\n }\n\n var onend = function() {\n self.push(null)\n }\n\n var clear = function() {\n self._readable2.removeListener('readable', onreadable)\n self._readable2.removeListener('end', onend)\n unend()\n }\n\n this._drained = true\n this._readable = readable\n this._readable2 = readable._readableState ? readable : toStreams2(readable)\n this._readable2.on('readable', onreadable)\n this._readable2.on('end', onend)\n this._unread = clear\n\n this._forward()\n}\n\nDuplexify.prototype._read = function() {\n this._drained = true\n this._forward()\n}\n\nDuplexify.prototype._forward = function() {\n if (this._forwarding || !this._readable2 || !this._drained) return\n this._forwarding = true\n\n var data\n var state = this._readable2._readableState\n\n while ((data = this._readable2.read(state.buffer.length ? state.buffer[0].length : state.length)) !== null) {\n this._drained = this.push(data)\n }\n\n this._forwarding = false\n}\n\nDuplexify.prototype.destroy = function(err) {\n if (this.destroyed) return\n this.destroyed = true\n\n var self = this\n process.nextTick(function() {\n self._destroy(err)\n })\n}\n\nDuplexify.prototype._destroy = function(err) {\n if (err) {\n var ondrain = this._ondrain\n this._ondrain = null\n if (ondrain) ondrain(err)\n else this.emit('error', err)\n }\n\n if (this._forwardDestroy) {\n if (this._readable && this._readable.destroy) this._readable.destroy()\n if (this._writable && this._writable.destroy) this._writable.destroy()\n }\n\n this.emit('close')\n}\n\nDuplexify.prototype._write = function(data, enc, cb) {\n if (this.destroyed) return cb()\n if (this._corked) return onuncork(this, this._write.bind(this, data, enc, cb))\n if (data === SIGNAL_FLUSH) return this._finish(cb)\n if (!this._writable) return cb()\n\n if (this._writable.write(data) === false) this._ondrain = cb\n else cb()\n}\n\n\nDuplexify.prototype._finish = function(cb) {\n var self = this\n this.emit('preend')\n onuncork(this, function() {\n end(self._forwardEnd && self._writable, function() {\n // haxx to not emit prefinish twice\n if (self._writableState.prefinished === false) self._writableState.prefinished = true\n self.emit('prefinish')\n onuncork(self, cb)\n })\n })\n}\n\nDuplexify.prototype.end = function(data, enc, cb) {\n if (typeof data === 'function') return this.end(null, null, data)\n if (typeof enc === 'function') return this.end(data, null, enc)\n this._ended = true\n if (data) this.write(data)\n if (!this._writableState.ending) this.write(SIGNAL_FLUSH)\n return stream.Writable.prototype.end.call(this, cb)\n}\n\nmodule.exports = Duplexify\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1).Buffer, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/duplexify/index.js\n ** module id = 294\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/duplexify/index.js?"); /***/ }, /* 295 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("module.exports = Array.isArray || function (arr) {\n return Object.prototype.toString.call(arr) == '[object Array]';\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/micromatch/~/braces/~/expand-range/~/fill-range/~/isobject/~/isarray/index.js\n ** module id = 295\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/micromatch/~/braces/~/expand-range/~/fill-range/~/isobject/~/isarray/index.js?"); + eval("var once = __webpack_require__(254);\n\nvar noop = function() {};\n\nvar isRequest = function(stream) {\n\treturn stream.setHeader && typeof stream.abort === 'function';\n};\n\nvar eos = function(stream, opts, callback) {\n\tif (typeof opts === 'function') return eos(stream, null, opts);\n\tif (!opts) opts = {};\n\n\tcallback = once(callback || noop);\n\n\tvar ws = stream._writableState;\n\tvar rs = stream._readableState;\n\tvar readable = opts.readable || (opts.readable !== false && stream.readable);\n\tvar writable = opts.writable || (opts.writable !== false && stream.writable);\n\n\tvar onlegacyfinish = function() {\n\t\tif (!stream.writable) onfinish();\n\t};\n\n\tvar onfinish = function() {\n\t\twritable = false;\n\t\tif (!readable) callback();\n\t};\n\n\tvar onend = function() {\n\t\treadable = false;\n\t\tif (!writable) callback();\n\t};\n\n\tvar onclose = function() {\n\t\tif (readable && !(rs && rs.ended)) return callback(new Error('premature close'));\n\t\tif (writable && !(ws && ws.ended)) return callback(new Error('premature close'));\n\t};\n\n\tvar onrequest = function() {\n\t\tstream.req.on('finish', onfinish);\n\t};\n\n\tif (isRequest(stream)) {\n\t\tstream.on('complete', onfinish);\n\t\tstream.on('abort', onclose);\n\t\tif (stream.req) onrequest();\n\t\telse stream.on('request', onrequest);\n\t} else if (writable && !ws) { // legacy streams\n\t\tstream.on('end', onlegacyfinish);\n\t\tstream.on('close', onlegacyfinish);\n\t}\n\n\tstream.on('end', onend);\n\tstream.on('finish', onfinish);\n\tif (opts.error !== false) stream.on('error', callback);\n\tstream.on('close', onclose);\n\n\treturn function() {\n\t\tstream.removeListener('complete', onfinish);\n\t\tstream.removeListener('abort', onclose);\n\t\tstream.removeListener('request', onrequest);\n\t\tif (stream.req) stream.req.removeListener('finish', onfinish);\n\t\tstream.removeListener('end', onlegacyfinish);\n\t\tstream.removeListener('close', onlegacyfinish);\n\t\tstream.removeListener('finish', onfinish);\n\t\tstream.removeListener('end', onend);\n\t\tstream.removeListener('error', callback);\n\t\tstream.removeListener('close', onclose);\n\t};\n};\n\nmodule.exports = eos;\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/end-of-stream/index.js\n ** module id = 295\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/end-of-stream/index.js?"); /***/ }, /* 296 */ /***/ function(module, exports, __webpack_require__) { - eval("/*!\n * is-number \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nvar typeOf = __webpack_require__(297);\n\nmodule.exports = function isNumber(num) {\n var type = typeOf(num);\n if (type !== 'number' && type !== 'string') {\n return false;\n }\n var n = +num;\n return (n - n + 1) >= 0 && num !== '';\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/micromatch/~/braces/~/expand-range/~/fill-range/~/is-number/index.js\n ** module id = 296\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/micromatch/~/braces/~/expand-range/~/fill-range/~/is-number/index.js?"); + eval("'use strict';\n\nvar PassThrough = __webpack_require__(297)\n\nmodule.exports = function (/*streams...*/) {\n var sources = []\n var output = new PassThrough({objectMode: true})\n\n output.setMaxListeners(0)\n\n output.add = add\n output.isEmpty = isEmpty\n\n output.on('unpipe', remove)\n\n Array.prototype.slice.call(arguments).forEach(add)\n\n return output\n\n function add (source) {\n if (Array.isArray(source)) {\n source.forEach(add)\n return this\n }\n\n sources.push(source);\n source.once('end', remove.bind(null, source))\n source.pipe(output, {end: false})\n return this\n }\n\n function isEmpty () {\n return sources.length == 0;\n }\n\n function remove (source) {\n sources = sources.filter(function (it) { return it !== source })\n if (!sources.length && output.readable) { output.end() }\n }\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/merge-stream/index.js\n ** module id = 296\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/merge-stream/index.js?"); /***/ }, /* 297 */ /***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(Buffer) {var isBuffer = __webpack_require__(298);\nvar toString = Object.prototype.toString;\n\n/**\n * Get the native `typeof` a value.\n *\n * @param {*} `val`\n * @return {*} Native javascript type\n */\n\nmodule.exports = function kindOf(val) {\n // primitivies\n if (typeof val === 'undefined') {\n return 'undefined';\n }\n if (val === null) {\n return 'null';\n }\n if (val === true || val === false || val instanceof Boolean) {\n return 'boolean';\n }\n if (typeof val === 'string' || val instanceof String) {\n return 'string';\n }\n if (typeof val === 'number' || val instanceof Number) {\n return 'number';\n }\n\n // functions\n if (typeof val === 'function' || val instanceof Function) {\n return 'function';\n }\n\n // array\n if (typeof Array.isArray !== 'undefined' && Array.isArray(val)) {\n return 'array';\n }\n\n // check for instances of RegExp and Date before calling `toString`\n if (val instanceof RegExp) {\n return 'regexp';\n }\n if (val instanceof Date) {\n return 'date';\n }\n\n // other objects\n var type = toString.call(val);\n\n if (type === '[object RegExp]') {\n return 'regexp';\n }\n if (type === '[object Date]') {\n return 'date';\n }\n if (type === '[object Arguments]') {\n return 'arguments';\n }\n\n // buffer\n if (typeof Buffer !== 'undefined' && isBuffer(val)) {\n return 'buffer';\n }\n\n // es6: Map, WeakMap, Set, WeakSet\n if (type === '[object Set]') {\n return 'set';\n }\n if (type === '[object WeakSet]') {\n return 'weakset';\n }\n if (type === '[object Map]') {\n return 'map';\n }\n if (type === '[object WeakMap]') {\n return 'weakmap';\n }\n if (type === '[object Symbol]') {\n return 'symbol';\n }\n\n // typed arrays\n if (type === '[object Int8Array]') {\n return 'int8array';\n }\n if (type === '[object Uint8Array]') {\n return 'uint8array';\n }\n if (type === '[object Uint8ClampedArray]') {\n return 'uint8clampedarray';\n }\n if (type === '[object Int16Array]') {\n return 'int16array';\n }\n if (type === '[object Uint16Array]') {\n return 'uint16array';\n }\n if (type === '[object Int32Array]') {\n return 'int32array';\n }\n if (type === '[object Uint32Array]') {\n return 'uint32array';\n }\n if (type === '[object Float32Array]') {\n return 'float32array';\n }\n if (type === '[object Float64Array]') {\n return 'float64array';\n }\n\n // must be a plain object\n return 'object';\n};\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1).Buffer))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/micromatch/~/kind-of/index.js\n ** module id = 297\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/micromatch/~/kind-of/index.js?"); + eval("module.exports = __webpack_require__(238)\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/readable-stream/passthrough.js\n ** module id = 297\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/readable-stream/passthrough.js?"); /***/ }, /* 298 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("/**\n * Determine if an object is Buffer\n *\n * Author: Feross Aboukhadijeh \n * License: MIT\n *\n * `npm install is-buffer`\n */\n\nmodule.exports = function (obj) {\n return !!(obj != null &&\n (obj._isBuffer || // For Safari 5-7 (missing Object.prototype.constructor)\n (obj.constructor &&\n typeof obj.constructor.isBuffer === 'function' &&\n obj.constructor.isBuffer(obj))\n ))\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/micromatch/~/kind-of/~/is-buffer/index.js\n ** module id = 298\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/micromatch/~/kind-of/~/is-buffer/index.js?"); + eval("/* WEBPACK VAR INJECTION */(function(Buffer) {'use strict';\nvar through = __webpack_require__(299);\nvar fs = __webpack_require__(300);\nvar path = __webpack_require__(149);\nvar File = __webpack_require__(214);\nvar convert = __webpack_require__(305);\nvar stripBom = __webpack_require__(306);\n\nvar PLUGIN_NAME = 'gulp-sourcemap';\nvar urlRegex = /^(https?|webpack(-[^:]+)?):\\/\\//;\n\n/**\n * Initialize source mapping chain\n */\nmodule.exports.init = function init(options) {\n function sourceMapInit(file, encoding, callback) {\n /*jshint validthis:true */\n\n // pass through if file is null or already has a source map\n if (file.isNull() || file.sourceMap) {\n this.push(file);\n return callback();\n }\n\n if (file.isStream()) {\n return callback(new Error(PLUGIN_NAME + '-init: Streaming not supported'));\n }\n\n var fileContent = file.contents.toString();\n var sourceMap;\n\n if (options && options.loadMaps) {\n var sourcePath = ''; //root path for the sources in the map\n\n // Try to read inline source map\n sourceMap = convert.fromSource(fileContent);\n if (sourceMap) {\n sourceMap = sourceMap.toObject();\n // sources in map are relative to the source file\n sourcePath = path.dirname(file.path);\n fileContent = convert.removeComments(fileContent);\n } else {\n // look for source map comment referencing a source map file\n var mapComment = convert.mapFileCommentRegex.exec(fileContent);\n\n var mapFile;\n if (mapComment) {\n mapFile = path.resolve(path.dirname(file.path), mapComment[1] || mapComment[2]);\n fileContent = convert.removeMapFileComments(fileContent);\n // if no comment try map file with same name as source file\n } else {\n mapFile = file.path + '.map';\n }\n\n // sources in external map are relative to map file\n sourcePath = path.dirname(mapFile);\n\n try {\n sourceMap = JSON.parse(stripBom(fs.readFileSync(mapFile, 'utf8')));\n } catch(e) {}\n }\n\n // fix source paths and sourceContent for imported source map\n if (sourceMap) {\n sourceMap.sourcesContent = sourceMap.sourcesContent || [];\n sourceMap.sources.forEach(function(source, i) {\n if (source.match(urlRegex)) {\n sourceMap.sourcesContent[i] = sourceMap.sourcesContent[i] || null;\n return;\n }\n var absPath = path.resolve(sourcePath, source);\n sourceMap.sources[i] = unixStylePath(path.relative(file.base, absPath));\n\n if (!sourceMap.sourcesContent[i]) {\n var sourceContent = null;\n if (sourceMap.sourceRoot) {\n if (sourceMap.sourceRoot.match(urlRegex)) {\n sourceMap.sourcesContent[i] = null;\n return;\n }\n absPath = path.resolve(sourcePath, sourceMap.sourceRoot, source);\n }\n\n // if current file: use content\n if (absPath === file.path) {\n sourceContent = fileContent;\n\n // else load content from file\n } else {\n try {\n if (options.debug)\n console.log(PLUGIN_NAME + '-init: No source content for \"' + source + '\". Loading from file.');\n sourceContent = stripBom(fs.readFileSync(absPath, 'utf8'));\n } catch (e) {\n if (options.debug)\n console.warn(PLUGIN_NAME + '-init: source file not found: ' + absPath);\n }\n }\n sourceMap.sourcesContent[i] = sourceContent;\n }\n });\n\n // remove source map comment from source\n file.contents = new Buffer(fileContent, 'utf8');\n }\n }\n\n if (!sourceMap) {\n // Make an empty source map\n sourceMap = {\n version : 3,\n names: [],\n mappings: '',\n sources: [unixStylePath(file.relative)],\n sourcesContent: [fileContent]\n };\n }\n\n sourceMap.file = unixStylePath(file.relative);\n file.sourceMap = sourceMap;\n\n this.push(file);\n callback();\n }\n\n return through.obj(sourceMapInit);\n};\n\n/**\n * Write the source map\n *\n * @param options options to change the way the source map is written\n *\n */\nmodule.exports.write = function write(destPath, options) {\n if (options === undefined && Object.prototype.toString.call(destPath) === '[object Object]') {\n options = destPath;\n destPath = undefined;\n }\n options = options || {};\n\n // set defaults for options if unset\n if (options.includeContent === undefined)\n options.includeContent = true;\n if (options.addComment === undefined)\n options.addComment = true;\n\n function sourceMapWrite(file, encoding, callback) {\n /*jshint validthis:true */\n\n if (file.isNull() || !file.sourceMap) {\n this.push(file);\n return callback();\n }\n\n if (file.isStream()) {\n return callback(new Error(PLUGIN_NAME + '-write: Streaming not supported'));\n }\n\n var sourceMap = file.sourceMap;\n // fix paths if Windows style paths\n sourceMap.file = unixStylePath(file.relative);\n sourceMap.sources = sourceMap.sources.map(function(filePath) {\n return unixStylePath(filePath);\n });\n\n if (typeof options.sourceRoot === 'function') {\n sourceMap.sourceRoot = options.sourceRoot(file);\n } else {\n sourceMap.sourceRoot = options.sourceRoot;\n }\n\n if (options.includeContent) {\n sourceMap.sourcesContent = sourceMap.sourcesContent || [];\n\n // load missing source content\n for (var i = 0; i < file.sourceMap.sources.length; i++) {\n if (!sourceMap.sourcesContent[i]) {\n var sourcePath = path.resolve(sourceMap.sourceRoot || file.base, sourceMap.sources[i]);\n try {\n if (options.debug)\n console.log(PLUGIN_NAME + '-write: No source content for \"' + sourceMap.sources[i] + '\". Loading from file.');\n sourceMap.sourcesContent[i] = stripBom(fs.readFileSync(sourcePath, 'utf8'));\n } catch (e) {\n if (options.debug)\n console.warn(PLUGIN_NAME + '-write: source file not found: ' + sourcePath);\n }\n }\n }\n if (sourceMap.sourceRoot === undefined) {\n sourceMap.sourceRoot = '/source/';\n } else if (sourceMap.sourceRoot === null) {\n sourceMap.sourceRoot = undefined;\n }\n } else {\n delete sourceMap.sourcesContent;\n }\n\n var extension = file.relative.split('.').pop();\n var commentFormatter;\n\n switch (extension) {\n case 'css':\n commentFormatter = function(url) { return \"\\n/*# sourceMappingURL=\" + url + \" */\\n\"; };\n break;\n case 'js':\n commentFormatter = function(url) { return \"\\n//# sourceMappingURL=\" + url + \"\\n\"; };\n break;\n default:\n commentFormatter = function(url) { return \"\"; };\n }\n\n var comment, sourceMappingURLPrefix;\n if (!destPath) {\n // encode source map into comment\n var base64Map = new Buffer(JSON.stringify(sourceMap)).toString('base64');\n comment = commentFormatter('data:application/json;base64,' + base64Map);\n } else {\n var sourceMapPath = path.join(file.base, destPath, file.relative) + '.map';\n // add new source map file to stream\n var sourceMapFile = new File({\n cwd: file.cwd,\n base: file.base,\n path: sourceMapPath,\n contents: new Buffer(JSON.stringify(sourceMap)),\n stat: {\n isFile: function () { return true; },\n isDirectory: function () { return false; },\n isBlockDevice: function () { return false; },\n isCharacterDevice: function () { return false; },\n isSymbolicLink: function () { return false; },\n isFIFO: function () { return false; },\n isSocket: function () { return false; }\n }\n });\n this.push(sourceMapFile);\n\n var sourceMapPathRelative = path.relative(path.dirname(file.path), sourceMapPath);\n\n if (options.sourceMappingURLPrefix) {\n var prefix = '';\n if (typeof options.sourceMappingURLPrefix === 'function') {\n prefix = options.sourceMappingURLPrefix(file);\n } else {\n prefix = options.sourceMappingURLPrefix;\n }\n sourceMapPathRelative = prefix+path.join('/', sourceMapPathRelative);\n }\n comment = commentFormatter(unixStylePath(sourceMapPathRelative));\n\n if (options.sourceMappingURL && typeof options.sourceMappingURL === 'function') {\n comment = commentFormatter(options.sourceMappingURL(file));\n }\n }\n\n // append source map comment\n if (options.addComment)\n file.contents = Buffer.concat([file.contents, new Buffer(comment)]);\n\n this.push(file);\n callback();\n }\n\n return through.obj(sourceMapWrite);\n};\n\nfunction unixStylePath(filePath) {\n return filePath.split(path.sep).join('/');\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1).Buffer))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/gulp-sourcemaps/index.js\n ** module id = 298\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/gulp-sourcemaps/index.js?"); /***/ }, /* 299 */ /***/ function(module, exports, __webpack_require__) { - eval("/*!\n * randomatic \n *\n * This was originally inspired by \n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License (MIT)\n */\n\n'use strict';\n\nvar isNumber = __webpack_require__(296);\nvar typeOf = __webpack_require__(297);\n\n/**\n * Expose `randomatic`\n */\n\nmodule.exports = randomatic;\n\n/**\n * Available mask characters\n */\n\nvar type = {\n lower: 'abcdefghijklmnopqrstuvwxyz',\n upper: 'ABCDEFGHIJKLMNOPQRSTUVWXYZ',\n number: '0123456789',\n special: '~!@#$%^&()_+-={}[];\\',.'\n};\n\ntype.all = type.lower + type.upper + type.number;\n\n/**\n * Generate random character sequences of a specified `length`,\n * based on the given `pattern`.\n *\n * @param {String} `pattern` The pattern to use for generating the random string.\n * @param {String} `length` The length of the string to generate.\n * @param {String} `options`\n * @return {String}\n * @api public\n */\n\nfunction randomatic(pattern, length, options) {\n if (typeof pattern === 'undefined') {\n throw new Error('randomatic expects a string or number.');\n }\n\n var custom = false;\n if (arguments.length === 1) {\n if (typeof pattern === 'string') {\n length = pattern.length;\n\n } else if (isNumber(pattern)) {\n options = {}; length = pattern; pattern = '*';\n }\n }\n\n if (typeOf(length) === 'object' && length.hasOwnProperty('chars')) {\n options = length;\n pattern = options.chars;\n length = pattern.length;\n custom = true;\n }\n\n var opts = options || {};\n var mask = '';\n var res = '';\n\n // Characters to be used\n if (pattern.indexOf('?') !== -1) mask += opts.chars;\n if (pattern.indexOf('a') !== -1) mask += type.lower;\n if (pattern.indexOf('A') !== -1) mask += type.upper;\n if (pattern.indexOf('0') !== -1) mask += type.number;\n if (pattern.indexOf('!') !== -1) mask += type.special;\n if (pattern.indexOf('*') !== -1) mask += type.all;\n if (custom) mask += pattern;\n\n while (length--) {\n res += mask.charAt(parseInt(Math.random() * mask.length, 10));\n }\n return res;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/micromatch/~/braces/~/expand-range/~/fill-range/~/randomatic/index.js\n ** module id = 299\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/micromatch/~/braces/~/expand-range/~/fill-range/~/randomatic/index.js?"); + eval("/* WEBPACK VAR INJECTION */(function(process) {var Transform = __webpack_require__(227)\n , inherits = __webpack_require__(139).inherits\n , xtend = __webpack_require__(67)\n\nfunction DestroyableTransform(opts) {\n Transform.call(this, opts)\n this._destroyed = false\n}\n\ninherits(DestroyableTransform, Transform)\n\nDestroyableTransform.prototype.destroy = function(err) {\n if (this._destroyed) return\n this._destroyed = true\n \n var self = this\n process.nextTick(function() {\n if (err)\n self.emit('error', err)\n self.emit('close')\n })\n}\n\n// a noop _transform function\nfunction noop (chunk, enc, callback) {\n callback(null, chunk)\n}\n\n\n// create a new export function, used by both the main export and\n// the .ctor export, contains common logic for dealing with arguments\nfunction through2 (construct) {\n return function (options, transform, flush) {\n if (typeof options == 'function') {\n flush = transform\n transform = options\n options = {}\n }\n\n if (typeof transform != 'function')\n transform = noop\n\n if (typeof flush != 'function')\n flush = null\n\n return construct(options, transform, flush)\n }\n}\n\n\n// main export, just make me a transform stream!\nmodule.exports = through2(function (options, transform, flush) {\n var t2 = new DestroyableTransform(options)\n\n t2._transform = transform\n\n if (flush)\n t2._flush = flush\n\n return t2\n})\n\n\n// make me a reusable prototype that I can `new`, or implicitly `new`\n// with a constructor call\nmodule.exports.ctor = through2(function (options, transform, flush) {\n function Through2 (override) {\n if (!(this instanceof Through2))\n return new Through2(override)\n\n this.options = xtend(options, override)\n\n DestroyableTransform.call(this, this.options)\n }\n\n inherits(Through2, DestroyableTransform)\n\n Through2.prototype._transform = transform\n\n if (flush)\n Through2.prototype._flush = flush\n\n return Through2\n})\n\n\nmodule.exports.obj = through2(function (options, transform, flush) {\n var t2 = new DestroyableTransform(xtend({ objectMode: true, highWaterMark: 16 }, options))\n\n t2._transform = transform\n\n if (flush)\n t2._flush = flush\n\n return t2\n})\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/gulp-sourcemaps/~/through2/through2.js\n ** module id = 299\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/gulp-sourcemaps/~/through2/through2.js?"); /***/ }, /* 300 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("/*!\n * repeat-string \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\n/**\n * Expose `repeat`\n */\n\nmodule.exports = repeat;\n\n/**\n * Repeat the given `string` the specified `number`\n * of times.\n *\n * **Example:**\n *\n * ```js\n * var repeat = require('repeat-string');\n * repeat('A', 5);\n * //=> AAAAA\n * ```\n *\n * @param {String} `string` The string to repeat\n * @param {Number} `number` The number of times to repeat the string\n * @return {String} Repeated string\n * @api public\n */\n\nfunction repeat(str, num) {\n if (typeof str !== 'string') {\n throw new TypeError('repeat-string expects a string.');\n }\n\n if (num === 1) return str;\n if (num === 2) return str + str;\n\n var max = str.length * num;\n if (cache !== str || typeof cache === 'undefined') {\n cache = str;\n res = '';\n }\n\n while (max > res.length && num > 0) {\n if (num & 1) {\n res += str;\n }\n\n num >>= 1;\n if (!num) break;\n str += str;\n }\n\n return res.substr(0, max);\n}\n\n/**\n * Results cache\n */\n\nvar res = '';\nvar cache;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/micromatch/~/braces/~/expand-range/~/fill-range/~/repeat-string/index.js\n ** module id = 300\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/micromatch/~/braces/~/expand-range/~/fill-range/~/repeat-string/index.js?"); + eval("/* WEBPACK VAR INJECTION */(function(process) {var fs = __webpack_require__(82)\nvar polyfills = __webpack_require__(301)\nvar legacy = __webpack_require__(304)\nvar queue = []\n\nvar util = __webpack_require__(139)\n\nfunction noop () {}\n\nvar debug = noop\nif (util.debuglog)\n debug = util.debuglog('gfs4')\nelse if (/\\bgfs4\\b/i.test(process.env.NODE_DEBUG || ''))\n debug = function() {\n var m = util.format.apply(util, arguments)\n m = 'GFS4: ' + m.split(/\\n/).join('\\nGFS4: ')\n console.error(m)\n }\n\nif (/\\bgfs4\\b/i.test(process.env.NODE_DEBUG || '')) {\n process.on('exit', function() {\n debug(queue)\n __webpack_require__(248).equal(queue.length, 0)\n })\n}\n\nmodule.exports = patch(__webpack_require__(302))\nif (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH) {\n module.exports = patch(fs)\n}\n\n// Always patch fs.close/closeSync, because we want to\n// retry() whenever a close happens *anywhere* in the program.\n// This is essential when multiple graceful-fs instances are\n// in play at the same time.\nmodule.exports.close =\nfs.close = (function (fs$close) { return function (fd, cb) {\n return fs$close.call(fs, fd, function (err) {\n if (!err)\n retry()\n\n if (typeof cb === 'function')\n cb.apply(this, arguments)\n })\n}})(fs.close)\n\nmodule.exports.closeSync =\nfs.closeSync = (function (fs$closeSync) { return function (fd) {\n // Note that graceful-fs also retries when fs.closeSync() fails.\n // Looks like a bug to me, although it's probably a harmless one.\n var rval = fs$closeSync.apply(fs, arguments)\n retry()\n return rval\n}})(fs.closeSync)\n\nfunction patch (fs) {\n // Everything that references the open() function needs to be in here\n polyfills(fs)\n fs.gracefulify = patch\n fs.FileReadStream = ReadStream; // Legacy name.\n fs.FileWriteStream = WriteStream; // Legacy name.\n fs.createReadStream = createReadStream\n fs.createWriteStream = createWriteStream\n var fs$readFile = fs.readFile\n fs.readFile = readFile\n function readFile (path, options, cb) {\n if (typeof options === 'function')\n cb = options, options = null\n\n return go$readFile(path, options, cb)\n\n function go$readFile (path, options, cb) {\n return fs$readFile(path, options, function (err) {\n if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))\n enqueue([go$readFile, [path, options, cb]])\n else {\n if (typeof cb === 'function')\n cb.apply(this, arguments)\n retry()\n }\n })\n }\n }\n\n var fs$writeFile = fs.writeFile\n fs.writeFile = writeFile\n function writeFile (path, data, options, cb) {\n if (typeof options === 'function')\n cb = options, options = null\n\n return go$writeFile(path, data, options, cb)\n\n function go$writeFile (path, data, options, cb) {\n return fs$writeFile(path, data, options, function (err) {\n if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))\n enqueue([go$writeFile, [path, data, options, cb]])\n else {\n if (typeof cb === 'function')\n cb.apply(this, arguments)\n retry()\n }\n })\n }\n }\n\n var fs$appendFile = fs.appendFile\n if (fs$appendFile)\n fs.appendFile = appendFile\n function appendFile (path, data, options, cb) {\n if (typeof options === 'function')\n cb = options, options = null\n\n return go$appendFile(path, data, options, cb)\n\n function go$appendFile (path, data, options, cb) {\n return fs$appendFile(path, data, options, function (err) {\n if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))\n enqueue([go$appendFile, [path, data, options, cb]])\n else {\n if (typeof cb === 'function')\n cb.apply(this, arguments)\n retry()\n }\n })\n }\n }\n\n var fs$readdir = fs.readdir\n fs.readdir = readdir\n function readdir (path, cb) {\n return go$readdir(path, cb)\n\n function go$readdir () {\n return fs$readdir(path, function (err, files) {\n if (files && files.sort)\n files.sort(); // Backwards compatibility with graceful-fs.\n\n if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))\n enqueue([go$readdir, [path, cb]])\n else {\n if (typeof cb === 'function')\n cb.apply(this, arguments)\n retry()\n }\n })\n }\n }\n\n\n if (process.version.substr(0, 4) === 'v0.8') {\n var legStreams = legacy(fs)\n ReadStream = legStreams.ReadStream\n WriteStream = legStreams.WriteStream\n }\n\n var fs$ReadStream = fs.ReadStream\n ReadStream.prototype = Object.create(fs$ReadStream.prototype)\n ReadStream.prototype.open = ReadStream$open\n\n var fs$WriteStream = fs.WriteStream\n WriteStream.prototype = Object.create(fs$WriteStream.prototype)\n WriteStream.prototype.open = WriteStream$open\n\n fs.ReadStream = ReadStream\n fs.WriteStream = WriteStream\n\n function ReadStream (path, options) {\n if (this instanceof ReadStream)\n return fs$ReadStream.apply(this, arguments), this\n else\n return ReadStream.apply(Object.create(ReadStream.prototype), arguments)\n }\n\n function ReadStream$open () {\n var that = this\n open(that.path, that.flags, that.mode, function (err, fd) {\n if (err) {\n if (that.autoClose)\n that.destroy()\n\n that.emit('error', err)\n } else {\n that.fd = fd\n that.emit('open', fd)\n that.read()\n }\n })\n }\n\n function WriteStream (path, options) {\n if (this instanceof WriteStream)\n return fs$WriteStream.apply(this, arguments), this\n else\n return WriteStream.apply(Object.create(WriteStream.prototype), arguments)\n }\n\n function WriteStream$open () {\n var that = this\n open(that.path, that.flags, that.mode, function (err, fd) {\n if (err) {\n that.destroy()\n that.emit('error', err)\n } else {\n that.fd = fd\n that.emit('open', fd)\n }\n })\n }\n\n function createReadStream (path, options) {\n return new ReadStream(path, options)\n }\n\n function createWriteStream (path, options) {\n return new WriteStream(path, options)\n }\n\n var fs$open = fs.open\n fs.open = open\n function open (path, flags, mode, cb) {\n if (typeof mode === 'function')\n cb = mode, mode = null\n\n return go$open(path, flags, mode, cb)\n\n function go$open (path, flags, mode, cb) {\n return fs$open(path, flags, mode, function (err, fd) {\n if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))\n enqueue([go$open, [path, flags, mode, cb]])\n else {\n if (typeof cb === 'function')\n cb.apply(this, arguments)\n retry()\n }\n })\n }\n }\n\n return fs\n}\n\nfunction enqueue (elem) {\n debug('ENQUEUE', elem[0].name, elem[1])\n queue.push(elem)\n}\n\nfunction retry () {\n var elem = queue.shift()\n if (elem) {\n debug('RETRY', elem[0].name, elem[1])\n elem[0].apply(null, elem[1])\n }\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/graceful-fs/graceful-fs.js\n ** module id = 300\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/graceful-fs/graceful-fs.js?"); /***/ }, /* 301 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("/*!\n * repeat-element \n *\n * Copyright (c) 2015 Jon Schlinkert.\n * Licensed under the MIT license.\n */\n\n'use strict';\n\nmodule.exports = function repeat(ele, num) {\n var arr = new Array(num);\n\n for (var i = 0; i < num; i++) {\n arr[i] = ele;\n }\n\n return arr;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/micromatch/~/braces/~/repeat-element/index.js\n ** module id = 301\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/micromatch/~/braces/~/repeat-element/index.js?"); + eval("/* WEBPACK VAR INJECTION */(function(process) {var fs = __webpack_require__(302)\nvar constants = __webpack_require__(303)\n\nvar origCwd = process.cwd\nvar cwd = null\nprocess.cwd = function() {\n if (!cwd)\n cwd = origCwd.call(process)\n return cwd\n}\ntry {\n process.cwd()\n} catch (er) {}\n\nvar chdir = process.chdir\nprocess.chdir = function(d) {\n cwd = null\n chdir.call(process, d)\n}\n\nmodule.exports = patch\n\nfunction patch (fs) {\n // (re-)implement some things that are known busted or missing.\n\n // lchmod, broken prior to 0.6.2\n // back-port the fix here.\n if (constants.hasOwnProperty('O_SYMLINK') &&\n process.version.match(/^v0\\.6\\.[0-2]|^v0\\.5\\./)) {\n patchLchmod(fs)\n }\n\n // lutimes implementation, or no-op\n if (!fs.lutimes) {\n patchLutimes(fs)\n }\n\n // https://github.com/isaacs/node-graceful-fs/issues/4\n // Chown should not fail on einval or eperm if non-root.\n // It should not fail on enosys ever, as this just indicates\n // that a fs doesn't support the intended operation.\n\n fs.chown = chownFix(fs.chown)\n fs.fchown = chownFix(fs.fchown)\n fs.lchown = chownFix(fs.lchown)\n\n fs.chmod = chownFix(fs.chmod)\n fs.fchmod = chownFix(fs.fchmod)\n fs.lchmod = chownFix(fs.lchmod)\n\n fs.chownSync = chownFixSync(fs.chownSync)\n fs.fchownSync = chownFixSync(fs.fchownSync)\n fs.lchownSync = chownFixSync(fs.lchownSync)\n\n fs.chmodSync = chownFix(fs.chmodSync)\n fs.fchmodSync = chownFix(fs.fchmodSync)\n fs.lchmodSync = chownFix(fs.lchmodSync)\n\n // if lchmod/lchown do not exist, then make them no-ops\n if (!fs.lchmod) {\n fs.lchmod = function (path, mode, cb) {\n process.nextTick(cb)\n }\n fs.lchmodSync = function () {}\n }\n if (!fs.lchown) {\n fs.lchown = function (path, uid, gid, cb) {\n process.nextTick(cb)\n }\n fs.lchownSync = function () {}\n }\n\n // on Windows, A/V software can lock the directory, causing this\n // to fail with an EACCES or EPERM if the directory contains newly\n // created files. Try again on failure, for up to 1 second.\n if (process.platform === \"win32\") {\n fs.rename = (function (fs$rename) { return function (from, to, cb) {\n var start = Date.now()\n fs$rename(from, to, function CB (er) {\n if (er\n && (er.code === \"EACCES\" || er.code === \"EPERM\")\n && Date.now() - start < 1000) {\n return fs$rename(from, to, CB)\n }\n if (cb) cb(er)\n })\n }})(fs.rename)\n }\n\n // if read() returns EAGAIN, then just try it again.\n fs.read = (function (fs$read) { return function (fd, buffer, offset, length, position, callback_) {\n var callback\n if (callback_ && typeof callback_ === 'function') {\n var eagCounter = 0\n callback = function (er, _, __) {\n if (er && er.code === 'EAGAIN' && eagCounter < 10) {\n eagCounter ++\n return fs$read.call(fs, fd, buffer, offset, length, position, callback)\n }\n callback_.apply(this, arguments)\n }\n }\n return fs$read.call(fs, fd, buffer, offset, length, position, callback)\n }})(fs.read)\n\n fs.readSync = (function (fs$readSync) { return function (fd, buffer, offset, length, position) {\n var eagCounter = 0\n while (true) {\n try {\n return fs$readSync.call(fs, fd, buffer, offset, length, position)\n } catch (er) {\n if (er.code === 'EAGAIN' && eagCounter < 10) {\n eagCounter ++\n continue\n }\n throw er\n }\n }\n }})(fs.readSync)\n}\n\nfunction patchLchmod (fs) {\n fs.lchmod = function (path, mode, callback) {\n callback = callback || noop\n fs.open( path\n , constants.O_WRONLY | constants.O_SYMLINK\n , mode\n , function (err, fd) {\n if (err) {\n callback(err)\n return\n }\n // prefer to return the chmod error, if one occurs,\n // but still try to close, and report closing errors if they occur.\n fs.fchmod(fd, mode, function (err) {\n fs.close(fd, function(err2) {\n callback(err || err2)\n })\n })\n })\n }\n\n fs.lchmodSync = function (path, mode) {\n var fd = fs.openSync(path, constants.O_WRONLY | constants.O_SYMLINK, mode)\n\n // prefer to return the chmod error, if one occurs,\n // but still try to close, and report closing errors if they occur.\n var threw = true\n var ret\n try {\n ret = fs.fchmodSync(fd, mode)\n threw = false\n } finally {\n if (threw) {\n try {\n fs.closeSync(fd)\n } catch (er) {}\n } else {\n fs.closeSync(fd)\n }\n }\n return ret\n }\n}\n\nfunction patchLutimes (fs) {\n if (constants.hasOwnProperty(\"O_SYMLINK\")) {\n fs.lutimes = function (path, at, mt, cb) {\n fs.open(path, constants.O_SYMLINK, function (er, fd) {\n cb = cb || noop\n if (er) return cb(er)\n fs.futimes(fd, at, mt, function (er) {\n fs.close(fd, function (er2) {\n return cb(er || er2)\n })\n })\n })\n }\n\n fs.lutimesSync = function (path, at, mt) {\n var fd = fs.openSync(path, constants.O_SYMLINK)\n var ret\n var threw = true\n try {\n ret = fs.futimesSync(fd, at, mt)\n threw = false\n } finally {\n if (threw) {\n try {\n fs.closeSync(fd)\n } catch (er) {}\n } else {\n fs.closeSync(fd)\n }\n }\n return ret\n }\n\n } else {\n fs.lutimes = function (_a, _b, _c, cb) { process.nextTick(cb) }\n fs.lutimesSync = function () {}\n }\n}\n\nfunction chownFix (orig) {\n if (!orig) return orig\n return function (target, uid, gid, cb) {\n return orig.call(fs, target, uid, gid, function (er, res) {\n if (chownErOk(er)) er = null\n cb(er, res)\n })\n }\n}\n\nfunction chownFixSync (orig) {\n if (!orig) return orig\n return function (target, uid, gid) {\n try {\n return orig.call(fs, target, uid, gid)\n } catch (er) {\n if (!chownErOk(er)) throw er\n }\n }\n}\n\n// ENOSYS means that the fs doesn't support the op. Just ignore\n// that, because it doesn't matter.\n//\n// if there's no getuid, or if getuid() is something other\n// than 0, and the error is EINVAL or EPERM, then just ignore\n// it.\n//\n// This specific case is a silent failure in cp, install, tar,\n// and most other unix tools that manage permissions.\n//\n// When running as root, or if other types of errors are\n// encountered, then it's strict.\nfunction chownErOk (er) {\n if (!er)\n return true\n\n if (er.code === \"ENOSYS\")\n return true\n\n var nonroot = !process.getuid || process.getuid() !== 0\n if (nonroot) {\n if (er.code === \"EINVAL\" || er.code === \"EPERM\")\n return true\n }\n\n return false\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/graceful-fs/polyfills.js\n ** module id = 301\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/graceful-fs/polyfills.js?"); /***/ }, /* 302 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("/*!\n * preserve \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT license.\n */\n\n'use strict';\n\n/**\n * Replace tokens in `str` with a temporary, heuristic placeholder.\n *\n * ```js\n * tokens.before('{a\\\\,b}');\n * //=> '{__ID1__}'\n * ```\n *\n * @param {String} `str`\n * @return {String} String with placeholders.\n * @api public\n */\n\nexports.before = function before(str, re) {\n return str.replace(re, function (match) {\n var id = randomize();\n cache[id] = match;\n return '__ID' + id + '__';\n });\n};\n\n/**\n * Replace placeholders in `str` with original tokens.\n *\n * ```js\n * tokens.after('{__ID1__}');\n * //=> '{a\\\\,b}'\n * ```\n *\n * @param {String} `str` String with placeholders\n * @return {String} `str` String with original tokens.\n * @api public\n */\n\nexports.after = function after(str) {\n return str.replace(/__ID(.{5})__/g, function (_, id) {\n return cache[id];\n });\n};\n\nfunction randomize() {\n return Math.random().toString().slice(2, 7);\n}\n\nvar cache = {};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/micromatch/~/braces/~/preserve/index.js\n ** module id = 302\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/micromatch/~/braces/~/preserve/index.js?"); + eval("'use strict'\n\nvar fs = __webpack_require__(82)\n\nmodule.exports = clone(fs)\n\nfunction clone (obj) {\n if (obj === null || typeof obj !== 'object')\n return obj\n\n if (obj instanceof Object)\n var copy = { __proto__: obj.__proto__ }\n else\n var copy = Object.create(null)\n\n Object.getOwnPropertyNames(obj).forEach(function (key) {\n Object.defineProperty(copy, key, Object.getOwnPropertyDescriptor(obj, key))\n })\n\n return copy\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/graceful-fs/fs.js\n ** module id = 302\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/graceful-fs/fs.js?"); /***/ }, /* 303 */ /***/ function(module, exports) { - eval("/*!\n * expand-brackets \n *\n * Copyright (c) 2015 Jon Schlinkert.\n * Licensed under the MIT license.\n */\n\n'use strict';\n\n/**\n * POSIX character classes\n */\n\nvar POSIX = {\n alnum: 'a-zA-Z0-9',\n alpha: 'a-zA-Z',\n blank: ' \\\\t',\n cntrl: '\\\\x00-\\\\x1F\\\\x7F',\n digit: '0-9',\n graph: '\\\\x21-\\\\x7E',\n lower: 'a-z',\n print: '\\\\x20-\\\\x7E',\n punct: '!\"#$%&\\'()\\\\*+,-./:;<=>?@[\\\\]^_`{|}~',\n space: ' \\\\t\\\\r\\\\n\\\\v\\\\f',\n upper: 'A-Z',\n word: 'A-Za-z0-9_',\n xdigit: 'A-Fa-f0-9',\n};\n\n/**\n * Expose `brackets`\n */\n\nmodule.exports = brackets;\n\nfunction brackets(str) {\n var negated = false;\n if (str.indexOf('[^') !== -1) {\n negated = true;\n str = str.split('[^').join('[');\n }\n if (str.indexOf('[!') !== -1) {\n negated = true;\n str = str.split('[!').join('[');\n }\n\n var a = str.split('[');\n var b = str.split(']');\n var imbalanced = a.length !== b.length;\n\n var parts = str.split(/(?::\\]\\[:|\\[?\\[:|:\\]\\]?)/);\n var len = parts.length, i = 0;\n var end = '', beg = '';\n var res = [];\n\n // start at the end (innermost) first\n while (len--) {\n var inner = parts[i++];\n if (inner === '^[!' || inner === '[!') {\n inner = '';\n negated = true;\n }\n\n var prefix = negated ? '^' : '';\n var ch = POSIX[inner];\n\n if (ch) {\n res.push('[' + prefix + ch + ']');\n } else if (inner) {\n if (/^\\[?\\w-\\w\\]?$/.test(inner)) {\n if (i === parts.length) {\n res.push('[' + prefix + inner);\n } else if (i === 1) {\n res.push(prefix + inner + ']');\n } else {\n res.push(prefix + inner);\n }\n } else {\n if (i === 1) {\n beg += inner;\n } else if (i === parts.length) {\n end += inner;\n } else {\n res.push('[' + prefix + inner + ']');\n }\n }\n }\n }\n\n var result = res.join('|');\n var rlen = res.length || 1;\n if (rlen > 1) {\n result = '(?:' + result + ')';\n rlen = 1;\n }\n if (beg) {\n rlen++;\n if (beg.charAt(0) === '[') {\n if (imbalanced) {\n beg = '\\\\[' + beg.slice(1);\n } else {\n beg += ']';\n }\n }\n result = beg + result;\n }\n if (end) {\n rlen++;\n if (end.slice(-1) === ']') {\n if (imbalanced) {\n end = end.slice(0, end.length - 1) + '\\\\]';\n } else {\n end = '[' + end;\n }\n }\n result += end;\n }\n\n if (rlen > 1) {\n result = result.split('][').join(']|[');\n if (result.indexOf('|') !== -1 && !/\\(\\?/.test(result)) {\n result = '(?:' + result + ')';\n }\n }\n\n result = result.replace(/\\[+=|=\\]+/g, '\\\\b');\n return result;\n}\n\nbrackets.makeRe = function (pattern) {\n try {\n return new RegExp(brackets(pattern));\n } catch (err) {}\n};\n\nbrackets.isMatch = function (str, pattern) {\n try {\n return brackets.makeRe(pattern).test(str);\n } catch (err) {\n return false;\n }\n};\n\nbrackets.match = function (arr, pattern) {\n var len = arr.length, i = 0;\n var res = arr.slice();\n\n var re = brackets.makeRe(pattern);\n while (i < len) {\n var ele = arr[i++];\n if (!re.test(ele)) {\n continue;\n }\n res.splice(i, 1);\n }\n return res;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/micromatch/~/expand-brackets/index.js\n ** module id = 303\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/micromatch/~/expand-brackets/index.js?"); + eval("module.exports = {\n\t\"O_RDONLY\": 0,\n\t\"O_WRONLY\": 1,\n\t\"O_RDWR\": 2,\n\t\"S_IFMT\": 61440,\n\t\"S_IFREG\": 32768,\n\t\"S_IFDIR\": 16384,\n\t\"S_IFCHR\": 8192,\n\t\"S_IFBLK\": 24576,\n\t\"S_IFIFO\": 4096,\n\t\"S_IFLNK\": 40960,\n\t\"S_IFSOCK\": 49152,\n\t\"O_CREAT\": 512,\n\t\"O_EXCL\": 2048,\n\t\"O_NOCTTY\": 131072,\n\t\"O_TRUNC\": 1024,\n\t\"O_APPEND\": 8,\n\t\"O_DIRECTORY\": 1048576,\n\t\"O_NOFOLLOW\": 256,\n\t\"O_SYNC\": 128,\n\t\"O_SYMLINK\": 2097152,\n\t\"S_IRWXU\": 448,\n\t\"S_IRUSR\": 256,\n\t\"S_IWUSR\": 128,\n\t\"S_IXUSR\": 64,\n\t\"S_IRWXG\": 56,\n\t\"S_IRGRP\": 32,\n\t\"S_IWGRP\": 16,\n\t\"S_IXGRP\": 8,\n\t\"S_IRWXO\": 7,\n\t\"S_IROTH\": 4,\n\t\"S_IWOTH\": 2,\n\t\"S_IXOTH\": 1,\n\t\"E2BIG\": 7,\n\t\"EACCES\": 13,\n\t\"EADDRINUSE\": 48,\n\t\"EADDRNOTAVAIL\": 49,\n\t\"EAFNOSUPPORT\": 47,\n\t\"EAGAIN\": 35,\n\t\"EALREADY\": 37,\n\t\"EBADF\": 9,\n\t\"EBADMSG\": 94,\n\t\"EBUSY\": 16,\n\t\"ECANCELED\": 89,\n\t\"ECHILD\": 10,\n\t\"ECONNABORTED\": 53,\n\t\"ECONNREFUSED\": 61,\n\t\"ECONNRESET\": 54,\n\t\"EDEADLK\": 11,\n\t\"EDESTADDRREQ\": 39,\n\t\"EDOM\": 33,\n\t\"EDQUOT\": 69,\n\t\"EEXIST\": 17,\n\t\"EFAULT\": 14,\n\t\"EFBIG\": 27,\n\t\"EHOSTUNREACH\": 65,\n\t\"EIDRM\": 90,\n\t\"EILSEQ\": 92,\n\t\"EINPROGRESS\": 36,\n\t\"EINTR\": 4,\n\t\"EINVAL\": 22,\n\t\"EIO\": 5,\n\t\"EISCONN\": 56,\n\t\"EISDIR\": 21,\n\t\"ELOOP\": 62,\n\t\"EMFILE\": 24,\n\t\"EMLINK\": 31,\n\t\"EMSGSIZE\": 40,\n\t\"EMULTIHOP\": 95,\n\t\"ENAMETOOLONG\": 63,\n\t\"ENETDOWN\": 50,\n\t\"ENETRESET\": 52,\n\t\"ENETUNREACH\": 51,\n\t\"ENFILE\": 23,\n\t\"ENOBUFS\": 55,\n\t\"ENODATA\": 96,\n\t\"ENODEV\": 19,\n\t\"ENOENT\": 2,\n\t\"ENOEXEC\": 8,\n\t\"ENOLCK\": 77,\n\t\"ENOLINK\": 97,\n\t\"ENOMEM\": 12,\n\t\"ENOMSG\": 91,\n\t\"ENOPROTOOPT\": 42,\n\t\"ENOSPC\": 28,\n\t\"ENOSR\": 98,\n\t\"ENOSTR\": 99,\n\t\"ENOSYS\": 78,\n\t\"ENOTCONN\": 57,\n\t\"ENOTDIR\": 20,\n\t\"ENOTEMPTY\": 66,\n\t\"ENOTSOCK\": 38,\n\t\"ENOTSUP\": 45,\n\t\"ENOTTY\": 25,\n\t\"ENXIO\": 6,\n\t\"EOPNOTSUPP\": 102,\n\t\"EOVERFLOW\": 84,\n\t\"EPERM\": 1,\n\t\"EPIPE\": 32,\n\t\"EPROTO\": 100,\n\t\"EPROTONOSUPPORT\": 43,\n\t\"EPROTOTYPE\": 41,\n\t\"ERANGE\": 34,\n\t\"EROFS\": 30,\n\t\"ESPIPE\": 29,\n\t\"ESRCH\": 3,\n\t\"ESTALE\": 70,\n\t\"ETIME\": 101,\n\t\"ETIMEDOUT\": 60,\n\t\"ETXTBSY\": 26,\n\t\"EWOULDBLOCK\": 35,\n\t\"EXDEV\": 18,\n\t\"SIGHUP\": 1,\n\t\"SIGINT\": 2,\n\t\"SIGQUIT\": 3,\n\t\"SIGILL\": 4,\n\t\"SIGTRAP\": 5,\n\t\"SIGABRT\": 6,\n\t\"SIGIOT\": 6,\n\t\"SIGBUS\": 10,\n\t\"SIGFPE\": 8,\n\t\"SIGKILL\": 9,\n\t\"SIGUSR1\": 30,\n\t\"SIGSEGV\": 11,\n\t\"SIGUSR2\": 31,\n\t\"SIGPIPE\": 13,\n\t\"SIGALRM\": 14,\n\t\"SIGTERM\": 15,\n\t\"SIGCHLD\": 20,\n\t\"SIGCONT\": 19,\n\t\"SIGSTOP\": 17,\n\t\"SIGTSTP\": 18,\n\t\"SIGTTIN\": 21,\n\t\"SIGTTOU\": 22,\n\t\"SIGURG\": 16,\n\t\"SIGXCPU\": 24,\n\t\"SIGXFSZ\": 25,\n\t\"SIGVTALRM\": 26,\n\t\"SIGPROF\": 27,\n\t\"SIGWINCH\": 28,\n\t\"SIGIO\": 23,\n\t\"SIGSYS\": 12,\n\t\"SSL_OP_ALL\": 2147486719,\n\t\"SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION\": 262144,\n\t\"SSL_OP_CIPHER_SERVER_PREFERENCE\": 4194304,\n\t\"SSL_OP_CISCO_ANYCONNECT\": 32768,\n\t\"SSL_OP_COOKIE_EXCHANGE\": 8192,\n\t\"SSL_OP_CRYPTOPRO_TLSEXT_BUG\": 2147483648,\n\t\"SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS\": 2048,\n\t\"SSL_OP_EPHEMERAL_RSA\": 2097152,\n\t\"SSL_OP_LEGACY_SERVER_CONNECT\": 4,\n\t\"SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER\": 32,\n\t\"SSL_OP_MICROSOFT_SESS_ID_BUG\": 1,\n\t\"SSL_OP_MSIE_SSLV2_RSA_PADDING\": 64,\n\t\"SSL_OP_NETSCAPE_CA_DN_BUG\": 536870912,\n\t\"SSL_OP_NETSCAPE_CHALLENGE_BUG\": 2,\n\t\"SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG\": 1073741824,\n\t\"SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG\": 8,\n\t\"SSL_OP_NO_COMPRESSION\": 131072,\n\t\"SSL_OP_NO_QUERY_MTU\": 4096,\n\t\"SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION\": 65536,\n\t\"SSL_OP_NO_SSLv2\": 16777216,\n\t\"SSL_OP_NO_SSLv3\": 33554432,\n\t\"SSL_OP_NO_TICKET\": 16384,\n\t\"SSL_OP_NO_TLSv1\": 67108864,\n\t\"SSL_OP_NO_TLSv1_1\": 268435456,\n\t\"SSL_OP_NO_TLSv1_2\": 134217728,\n\t\"SSL_OP_PKCS1_CHECK_1\": 0,\n\t\"SSL_OP_PKCS1_CHECK_2\": 0,\n\t\"SSL_OP_SINGLE_DH_USE\": 1048576,\n\t\"SSL_OP_SINGLE_ECDH_USE\": 524288,\n\t\"SSL_OP_SSLEAY_080_CLIENT_DH_BUG\": 128,\n\t\"SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG\": 16,\n\t\"SSL_OP_TLS_BLOCK_PADDING_BUG\": 512,\n\t\"SSL_OP_TLS_D5_BUG\": 256,\n\t\"SSL_OP_TLS_ROLLBACK_BUG\": 8388608,\n\t\"NPN_ENABLED\": 1\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/constants-browserify/constants.json\n ** module id = 303\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/constants-browserify/constants.json?"); /***/ }, /* 304 */ /***/ function(module, exports, __webpack_require__) { - eval("/*!\n * extglob \n *\n * Copyright (c) 2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\n/**\n * Module dependencies\n */\n\nvar isExtglob = __webpack_require__(305);\nvar re, cache = {};\n\n/**\n * Expose `extglob`\n */\n\nmodule.exports = extglob;\n\n/**\n * Convert the given extglob `string` to a regex-compatible\n * string.\n *\n * ```js\n * var extglob = require('extglob');\n * extglob('!(a?(b))');\n * //=> '(?!a(?:b)?)[^/]*?'\n * ```\n *\n * @param {String} `str` The string to convert.\n * @param {Object} `options`\n * @option {Boolean} [options] `esc` If `false` special characters will not be escaped. Defaults to `true`.\n * @option {Boolean} [options] `regex` If `true` a regular expression is returned instead of a string.\n * @return {String}\n * @api public\n */\n\n\nfunction extglob(str, opts) {\n opts = opts || {};\n var o = {}, i = 0;\n\n // fix common character reversals\n // '*!(.js)' => '*.!(js)'\n str = str.replace(/!\\(([^\\w*()])/g, '$1!(');\n\n // support file extension negation\n str = str.replace(/([*\\/])\\.!\\([*]\\)/g, function (m, ch) {\n if (ch === '/') {\n return escape('\\\\/[^.]+');\n }\n return escape('[^.]+');\n });\n\n // create a unique key for caching by\n // combining the string and options\n var key = str\n + String(!!opts.regex)\n + String(!!opts.contains)\n + String(!!opts.escape);\n\n if (cache.hasOwnProperty(key)) {\n return cache[key];\n }\n\n if (!(re instanceof RegExp)) {\n re = regex();\n }\n\n opts.negate = false;\n var m;\n\n while (m = re.exec(str)) {\n var prefix = m[1];\n var inner = m[3];\n if (prefix === '!') {\n opts.negate = true;\n }\n\n var id = '__EXTGLOB_' + (i++) + '__';\n // use the prefix of the _last_ (outtermost) pattern\n o[id] = wrap(inner, prefix, opts.escape);\n str = str.split(m[0]).join(id);\n }\n\n var keys = Object.keys(o);\n var len = keys.length;\n\n // we have to loop again to allow us to convert\n // patterns in reverse order (starting with the\n // innermost/last pattern first)\n while (len--) {\n var prop = keys[len];\n str = str.split(prop).join(o[prop]);\n }\n\n var result = opts.regex\n ? toRegex(str, opts.contains, opts.negate)\n : str;\n\n result = result.split('.').join('\\\\.');\n\n // cache the result and return it\n return (cache[key] = result);\n}\n\n/**\n * Convert `string` to a regex string.\n *\n * @param {String} `str`\n * @param {String} `prefix` Character that determines how to wrap the string.\n * @param {Boolean} `esc` If `false` special characters will not be escaped. Defaults to `true`.\n * @return {String}\n */\n\nfunction wrap(inner, prefix, esc) {\n if (esc) inner = escape(inner);\n\n switch (prefix) {\n case '!':\n return '(?!' + inner + ')[^/]' + (esc ? '%%%~' : '*?');\n case '@':\n return '(?:' + inner + ')';\n case '+':\n return '(?:' + inner + ')+';\n case '*':\n return '(?:' + inner + ')' + (esc ? '%%' : '*')\n case '?':\n return '(?:' + inner + '|)';\n default:\n return inner;\n }\n}\n\nfunction escape(str) {\n str = str.split('*').join('[^/]%%%~');\n str = str.split('.').join('\\\\.');\n return str;\n}\n\n/**\n * extglob regex.\n */\n\nfunction regex() {\n return /(\\\\?[@?!+*$]\\\\?)(\\(([^()]*?)\\))/;\n}\n\n/**\n * Negation regex\n */\n\nfunction negate(str) {\n return '(?!^' + str + ').*$';\n}\n\n/**\n * Create the regex to do the matching. If\n * the leading character in the `pattern` is `!`\n * a negation regex is returned.\n *\n * @param {String} `pattern`\n * @param {Boolean} `contains` Allow loose matching.\n * @param {Boolean} `isNegated` True if the pattern is a negation pattern.\n */\n\nfunction toRegex(pattern, contains, isNegated) {\n var prefix = contains ? '^' : '';\n var after = contains ? '$' : '';\n pattern = ('(?:' + pattern + ')' + after);\n if (isNegated) {\n pattern = prefix + negate(pattern);\n }\n return new RegExp(prefix + pattern);\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/micromatch/~/extglob/index.js\n ** module id = 304\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/micromatch/~/extglob/index.js?"); + eval("/* WEBPACK VAR INJECTION */(function(process) {var Stream = __webpack_require__(98).Stream\n\nmodule.exports = legacy\n\nfunction legacy (fs) {\n return {\n ReadStream: ReadStream,\n WriteStream: WriteStream\n }\n\n function ReadStream (path, options) {\n if (!(this instanceof ReadStream)) return new ReadStream(path, options);\n\n Stream.call(this);\n\n var self = this;\n\n this.path = path;\n this.fd = null;\n this.readable = true;\n this.paused = false;\n\n this.flags = 'r';\n this.mode = 438; /*=0666*/\n this.bufferSize = 64 * 1024;\n\n options = options || {};\n\n // Mixin options into this\n var keys = Object.keys(options);\n for (var index = 0, length = keys.length; index < length; index++) {\n var key = keys[index];\n this[key] = options[key];\n }\n\n if (this.encoding) this.setEncoding(this.encoding);\n\n if (this.start !== undefined) {\n if ('number' !== typeof this.start) {\n throw TypeError('start must be a Number');\n }\n if (this.end === undefined) {\n this.end = Infinity;\n } else if ('number' !== typeof this.end) {\n throw TypeError('end must be a Number');\n }\n\n if (this.start > this.end) {\n throw new Error('start must be <= end');\n }\n\n this.pos = this.start;\n }\n\n if (this.fd !== null) {\n process.nextTick(function() {\n self._read();\n });\n return;\n }\n\n fs.open(this.path, this.flags, this.mode, function (err, fd) {\n if (err) {\n self.emit('error', err);\n self.readable = false;\n return;\n }\n\n self.fd = fd;\n self.emit('open', fd);\n self._read();\n })\n }\n\n function WriteStream (path, options) {\n if (!(this instanceof WriteStream)) return new WriteStream(path, options);\n\n Stream.call(this);\n\n this.path = path;\n this.fd = null;\n this.writable = true;\n\n this.flags = 'w';\n this.encoding = 'binary';\n this.mode = 438; /*=0666*/\n this.bytesWritten = 0;\n\n options = options || {};\n\n // Mixin options into this\n var keys = Object.keys(options);\n for (var index = 0, length = keys.length; index < length; index++) {\n var key = keys[index];\n this[key] = options[key];\n }\n\n if (this.start !== undefined) {\n if ('number' !== typeof this.start) {\n throw TypeError('start must be a Number');\n }\n if (this.start < 0) {\n throw new Error('start must be >= zero');\n }\n\n this.pos = this.start;\n }\n\n this.busy = false;\n this._queue = [];\n\n if (this.fd === null) {\n this._open = fs.open;\n this._queue.push([this._open, this.path, this.flags, this.mode, undefined]);\n this.flush();\n }\n }\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/graceful-fs/legacy-streams.js\n ** module id = 304\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/graceful-fs/legacy-streams.js?"); /***/ }, /* 305 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("/*!\n * is-extglob \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\nmodule.exports = function isExtglob(str) {\n return typeof str === 'string'\n && /[@?!+*]\\(/.test(str);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/micromatch/~/is-extglob/index.js\n ** module id = 305\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/micromatch/~/is-extglob/index.js?"); + eval("/* WEBPACK VAR INJECTION */(function(Buffer) {'use strict';\nvar fs = __webpack_require__(82);\nvar path = __webpack_require__(149);\n\nvar commentRx = /^\\s*\\/(?:\\/|\\*)[@#]\\s+sourceMappingURL=data:(?:application|text)\\/json;(?:charset[:=]\\S+;)?base64,(.*)$/mg;\nvar mapFileCommentRx =\n //Example (Extra space between slashes added to solve Safari bug. Exclude space in production):\n // / /# sourceMappingURL=foo.js.map /*# sourceMappingURL=foo.js.map */\n /(?:\\/\\/[@#][ \\t]+sourceMappingURL=([^\\s'\"]+?)[ \\t]*$)|(?:\\/\\*[@#][ \\t]+sourceMappingURL=([^\\*]+?)[ \\t]*(?:\\*\\/){1}[ \\t]*$)/mg\n\nfunction decodeBase64(base64) {\n return new Buffer(base64, 'base64').toString();\n}\n\nfunction stripComment(sm) {\n return sm.split(',').pop();\n}\n\nfunction readFromFileMap(sm, dir) {\n // NOTE: this will only work on the server since it attempts to read the map file\n\n var r = mapFileCommentRx.exec(sm);\n mapFileCommentRx.lastIndex = 0;\n\n // for some odd reason //# .. captures in 1 and /* .. */ in 2\n var filename = r[1] || r[2];\n var filepath = path.join(dir, filename);\n\n try {\n return fs.readFileSync(filepath, 'utf8');\n } catch (e) {\n throw new Error('An error occurred while trying to read the map file at ' + filepath + '\\n' + e);\n }\n}\n\nfunction Converter (sm, opts) {\n opts = opts || {};\n\n if (opts.isFileComment) sm = readFromFileMap(sm, opts.commentFileDir);\n if (opts.hasComment) sm = stripComment(sm);\n if (opts.isEncoded) sm = decodeBase64(sm);\n if (opts.isJSON || opts.isEncoded) sm = JSON.parse(sm);\n\n this.sourcemap = sm;\n}\n\nfunction convertFromLargeSource(content){\n var lines = content.split('\\n');\n var line;\n // find first line which contains a source map starting at end of content\n for (var i = lines.length - 1; i > 0; i--) {\n line = lines[i]\n if (~line.indexOf('sourceMappingURL=data:')) return exports.fromComment(line);\n }\n}\n\nConverter.prototype.toJSON = function (space) {\n return JSON.stringify(this.sourcemap, null, space);\n};\n\nConverter.prototype.toBase64 = function () {\n var json = this.toJSON();\n return new Buffer(json).toString('base64');\n};\n\nConverter.prototype.toComment = function (options) {\n var base64 = this.toBase64();\n var data = 'sourceMappingURL=data:application/json;base64,' + base64;\n return options && options.multiline ? '/*# ' + data + ' */' : '//# ' + data;\n};\n\n// returns copy instead of original\nConverter.prototype.toObject = function () {\n return JSON.parse(this.toJSON());\n};\n\nConverter.prototype.addProperty = function (key, value) {\n if (this.sourcemap.hasOwnProperty(key)) throw new Error('property %s already exists on the sourcemap, use set property instead');\n return this.setProperty(key, value);\n};\n\nConverter.prototype.setProperty = function (key, value) {\n this.sourcemap[key] = value;\n return this;\n};\n\nConverter.prototype.getProperty = function (key) {\n return this.sourcemap[key];\n};\n\nexports.fromObject = function (obj) {\n return new Converter(obj);\n};\n\nexports.fromJSON = function (json) {\n return new Converter(json, { isJSON: true });\n};\n\nexports.fromBase64 = function (base64) {\n return new Converter(base64, { isEncoded: true });\n};\n\nexports.fromComment = function (comment) {\n comment = comment\n .replace(/^\\/\\*/g, '//')\n .replace(/\\*\\/$/g, '');\n\n return new Converter(comment, { isEncoded: true, hasComment: true });\n};\n\nexports.fromMapFileComment = function (comment, dir) {\n return new Converter(comment, { commentFileDir: dir, isFileComment: true, isJSON: true });\n};\n\n// Finds last sourcemap comment in file or returns null if none was found\nexports.fromSource = function (content, largeSource) {\n if (largeSource) {\n var res = convertFromLargeSource(content);\n return res ? res : null;\n }\n\n var m = content.match(commentRx);\n commentRx.lastIndex = 0;\n return m ? exports.fromComment(m.pop()) : null;\n};\n\n// Finds last sourcemap comment in file or returns null if none was found\nexports.fromMapFileSource = function (content, dir) {\n var m = content.match(mapFileCommentRx);\n mapFileCommentRx.lastIndex = 0;\n return m ? exports.fromMapFileComment(m.pop(), dir) : null;\n};\n\nexports.removeComments = function (src) {\n commentRx.lastIndex = 0;\n return src.replace(commentRx, '');\n};\n\nexports.removeMapFileComments = function (src) {\n mapFileCommentRx.lastIndex = 0;\n return src.replace(mapFileCommentRx, '');\n};\n\nObject.defineProperty(exports, 'commentRegex', {\n get: function getCommentRegex () {\n commentRx.lastIndex = 0;\n return commentRx;\n }\n});\n\nObject.defineProperty(exports, 'mapFileCommentRegex', {\n get: function getMapFileCommentRegex () {\n mapFileCommentRx.lastIndex = 0;\n return mapFileCommentRx;\n }\n});\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1).Buffer))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/convert-source-map/index.js\n ** module id = 305\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/convert-source-map/index.js?"); /***/ }, /* 306 */ /***/ function(module, exports, __webpack_require__) { - eval("/*!\n * is-glob \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\nvar isExtglob = __webpack_require__(305);\n\nmodule.exports = function isGlob(str) {\n return typeof str === 'string'\n && (/[*!?{}(|)[\\]]/.test(str)\n || isExtglob(str));\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/micromatch/~/is-glob/index.js\n ** module id = 306\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/micromatch/~/is-glob/index.js?"); + eval("/* WEBPACK VAR INJECTION */(function(Buffer) {'use strict';\nvar isUtf8 = __webpack_require__(307);\n\nmodule.exports = function (x) {\n\t// Catches EFBBBF (UTF-8 BOM) because the buffer-to-string\n\t// conversion translates it to FEFF (UTF-16 BOM)\n\tif (typeof x === 'string' && x.charCodeAt(0) === 0xFEFF) {\n\t\treturn x.slice(1);\n\t}\n\n\tif (Buffer.isBuffer(x) && isUtf8(x) &&\n\t\tx[0] === 0xEF && x[1] === 0xBB && x[2] === 0xBF) {\n\t\treturn x.slice(3);\n\t}\n\n\treturn x;\n};\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1).Buffer))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/strip-bom/index.js\n ** module id = 306\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/strip-bom/index.js?"); /***/ }, /* 307 */ /***/ function(module, exports) { - eval("/*!\n * normalize-path \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License\n */\n\nmodule.exports = function normalizePath(str, stripTrailing) {\n if (typeof str !== 'string') {\n throw new TypeError('expected a string');\n }\n str = str.replace(/[\\\\\\/]+/g, '/');\n if (stripTrailing !== false) {\n str = str.replace(/\\/$/, '');\n }\n return str;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/micromatch/~/normalize-path/index.js\n ** module id = 307\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/micromatch/~/normalize-path/index.js?"); + eval("\nexports = module.exports = function(bytes)\n{\n var i = 0;\n while(i < bytes.length)\n {\n if( (// ASCII\n bytes[i] == 0x09 ||\n bytes[i] == 0x0A ||\n bytes[i] == 0x0D ||\n (0x20 <= bytes[i] && bytes[i] <= 0x7E)\n )\n ) {\n i += 1;\n continue;\n }\n\n if( (// non-overlong 2-byte\n (0xC2 <= bytes[i] && bytes[i] <= 0xDF) &&\n (0x80 <= bytes[i+1] && bytes[i+1] <= 0xBF)\n )\n ) {\n i += 2;\n continue;\n }\n\n if( (// excluding overlongs\n bytes[i] == 0xE0 &&\n (0xA0 <= bytes[i + 1] && bytes[i + 1] <= 0xBF) &&\n (0x80 <= bytes[i + 2] && bytes[i + 2] <= 0xBF)\n ) ||\n (// straight 3-byte\n ((0xE1 <= bytes[i] && bytes[i] <= 0xEC) ||\n bytes[i] == 0xEE ||\n bytes[i] == 0xEF) &&\n (0x80 <= bytes[i + 1] && bytes[i+1] <= 0xBF) &&\n (0x80 <= bytes[i+2] && bytes[i+2] <= 0xBF)\n ) ||\n (// excluding surrogates\n bytes[i] == 0xED &&\n (0x80 <= bytes[i+1] && bytes[i+1] <= 0x9F) &&\n (0x80 <= bytes[i+2] && bytes[i+2] <= 0xBF)\n )\n ) {\n i += 3;\n continue;\n }\n\n if( (// planes 1-3\n bytes[i] == 0xF0 &&\n (0x90 <= bytes[i + 1] && bytes[i + 1] <= 0xBF) &&\n (0x80 <= bytes[i + 2] && bytes[i + 2] <= 0xBF) &&\n (0x80 <= bytes[i + 3] && bytes[i + 3] <= 0xBF)\n ) ||\n (// planes 4-15\n (0xF1 <= bytes[i] && bytes[i] <= 0xF3) &&\n (0x80 <= bytes[i + 1] && bytes[i + 1] <= 0xBF) &&\n (0x80 <= bytes[i + 2] && bytes[i + 2] <= 0xBF) &&\n (0x80 <= bytes[i + 3] && bytes[i + 3] <= 0xBF)\n ) ||\n (// plane 16\n bytes[i] == 0xF4 &&\n (0x80 <= bytes[i + 1] && bytes[i + 1] <= 0x8F) &&\n (0x80 <= bytes[i + 2] && bytes[i + 2] <= 0xBF) &&\n (0x80 <= bytes[i + 3] && bytes[i + 3] <= 0xBF)\n )\n ) {\n i += 4;\n continue;\n }\n\n return false;\n }\n\n return true;\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/is-utf8/is-utf8.js\n ** module id = 307\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/is-utf8/is-utf8.js?"); /***/ }, /* 308 */ /***/ function(module, exports, __webpack_require__) { - eval("/*!\n * object.omit \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nvar isObject = __webpack_require__(309);\nvar forOwn = __webpack_require__(310);\n\nmodule.exports = function omit(obj, keys) {\n if (!isObject(obj)) return {};\n\n var keys = [].concat.apply([], [].slice.call(arguments, 1));\n var last = keys[keys.length - 1];\n var res = {}, fn;\n\n if (typeof last === 'function') {\n fn = keys.pop();\n }\n\n var isFunction = typeof fn === 'function';\n if (!keys.length && !isFunction) {\n return obj;\n }\n\n forOwn(obj, function (value, key) {\n if (keys.indexOf(key) === -1) {\n\n if (!isFunction) {\n res[key] = value;\n } else if (fn(value, key, obj)) {\n res[key] = value;\n }\n }\n });\n return res;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/micromatch/~/object.omit/index.js\n ** module id = 308\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/micromatch/~/object.omit/index.js?"); + eval("'use strict';\n\nvar filter = __webpack_require__(241);\n\nmodule.exports = function(d) {\n var isValid = typeof d === 'number' ||\n d instanceof Number ||\n d instanceof Date;\n\n if (!isValid) {\n throw new Error('expected since option to be a date or a number');\n }\n return filter.obj(function(file){\n return file.stat && file.stat.mtime > d;\n });\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/lib/filterSince.js\n ** module id = 308\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/lib/filterSince.js?"); /***/ }, /* 309 */ /***/ function(module, exports) { - eval("/*!\n * is-extendable \n *\n * Copyright (c) 2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nmodule.exports = function isExtendable(val) {\n return typeof val !== 'undefined' && val !== null\n && (typeof val === 'object' || typeof val === 'function');\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/micromatch/~/object.omit/~/is-extendable/index.js\n ** module id = 309\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/micromatch/~/object.omit/~/is-extendable/index.js?"); + eval("'use strict';\n\nmodule.exports = function isValidGlob(glob) {\n if (typeof glob === 'string' && glob.length > 0) {\n return true;\n }\n if (Array.isArray(glob)) {\n return glob.length !== 0 && every(glob);\n }\n return false;\n};\n\nfunction every(arr) {\n var len = arr.length;\n while (len--) {\n if (typeof arr[len] !== 'string' || arr[len].length <= 0) {\n return false;\n }\n }\n return true;\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/is-valid-glob/index.js\n ** module id = 309\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/is-valid-glob/index.js?"); /***/ }, /* 310 */ /***/ function(module, exports, __webpack_require__) { - eval("/*!\n * for-own \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nvar forIn = __webpack_require__(311);\nvar hasOwn = Object.prototype.hasOwnProperty;\n\nmodule.exports = function forOwn(o, fn, thisArg) {\n forIn(o, function (val, key) {\n if (hasOwn.call(o, key)) {\n return fn.call(thisArg, o[key], key, o);\n }\n });\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/micromatch/~/object.omit/~/for-own/index.js\n ** module id = 310\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/micromatch/~/object.omit/~/for-own/index.js?"); + eval("'use strict';\n\nvar through2 = __webpack_require__(226);\nvar readDir = __webpack_require__(311);\nvar readSymbolicLink = __webpack_require__(312);\nvar bufferFile = __webpack_require__(313);\nvar streamFile = __webpack_require__(314);\n\nfunction getContents(opt) {\n return through2.obj(function(file, enc, cb) {\n // don't fail to read a directory\n if (file.isDirectory()) {\n return readDir(file, opt, cb);\n }\n\n // process symbolic links included with `followSymlinks` option\n if (file.stat && file.stat.isSymbolicLink()) {\n return readSymbolicLink(file, opt, cb);\n }\n\n // read and pass full contents\n if (opt.buffer !== false) {\n return bufferFile(file, opt, cb);\n }\n\n // dont buffer anything - just pass streams\n return streamFile(file, opt, cb);\n });\n}\n\nmodule.exports = getContents;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/lib/src/getContents/index.js\n ** module id = 310\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/lib/src/getContents/index.js?"); /***/ }, /* 311 */ /***/ function(module, exports) { - eval("/*!\n * for-in \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nmodule.exports = function forIn(o, fn, thisArg) {\n for (var key in o) {\n if (fn.call(thisArg, o[key], key, o) === false) {\n break;\n }\n }\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/micromatch/~/object.omit/~/for-own/~/for-in/index.js\n ** module id = 311\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/micromatch/~/object.omit/~/for-own/~/for-in/index.js?"); + eval("'use strict';\n\nfunction readDir(file, opt, cb) {\n // do nothing for now\n cb(null, file);\n}\n\nmodule.exports = readDir;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/lib/src/getContents/readDir.js\n ** module id = 311\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/lib/src/getContents/readDir.js?"); /***/ }, /* 312 */ /***/ function(module, exports, __webpack_require__) { - eval("/*!\n * parse-glob \n *\n * Copyright (c) 2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nvar isGlob = __webpack_require__(306);\nvar findBase = __webpack_require__(313);\nvar extglob = __webpack_require__(305);\nvar dotfile = __webpack_require__(317);\n\n/**\n * Expose `cache`\n */\n\nvar cache = module.exports.cache = {};\n\n/**\n * Parse a glob pattern into tokens.\n *\n * When no paths or '**' are in the glob, we use a\n * different strategy for parsing the filename, since\n * file names can contain braces and other difficult\n * patterns. such as:\n *\n * - `*.{a,b}`\n * - `(**|*.js)`\n */\n\nmodule.exports = function parseGlob(glob) {\n if (cache.hasOwnProperty(glob)) {\n return cache[glob];\n }\n\n var tok = {};\n tok.orig = glob;\n tok.is = {};\n\n // unescape dots and slashes in braces/brackets\n glob = escape(glob);\n\n var parsed = findBase(glob);\n tok.is.glob = parsed.isGlob;\n\n tok.glob = parsed.glob;\n tok.base = parsed.base;\n var segs = /([^\\/]*)$/.exec(glob);\n\n tok.path = {};\n tok.path.dirname = '';\n tok.path.basename = segs[1] || '';\n tok.path.dirname = glob.split(tok.path.basename).join('') || '';\n var basename = (tok.path.basename || '').split('.') || '';\n tok.path.filename = basename[0] || '';\n tok.path.extname = basename.slice(1).join('.') || '';\n tok.path.ext = '';\n\n if (isGlob(tok.path.dirname) && !tok.path.basename) {\n if (!/\\/$/.test(tok.glob)) {\n tok.path.basename = tok.glob;\n }\n tok.path.dirname = tok.base;\n }\n\n if (glob.indexOf('/') === -1 && !tok.is.globstar) {\n tok.path.dirname = '';\n tok.path.basename = tok.orig;\n }\n\n var dot = tok.path.basename.indexOf('.');\n if (dot !== -1) {\n tok.path.filename = tok.path.basename.slice(0, dot);\n tok.path.extname = tok.path.basename.slice(dot);\n }\n\n if (tok.path.extname.charAt(0) === '.') {\n var exts = tok.path.extname.split('.');\n tok.path.ext = exts[exts.length - 1];\n }\n\n // unescape dots and slashes in braces/brackets\n tok.glob = unescape(tok.glob);\n tok.path.dirname = unescape(tok.path.dirname);\n tok.path.basename = unescape(tok.path.basename);\n tok.path.filename = unescape(tok.path.filename);\n tok.path.extname = unescape(tok.path.extname);\n\n // Booleans\n var is = (glob && tok.is.glob);\n tok.is.negated = glob && glob.charAt(0) === '!';\n tok.is.extglob = glob && extglob(glob);\n tok.is.braces = has(is, glob, '{');\n tok.is.brackets = has(is, glob, '[:');\n tok.is.globstar = has(is, glob, '**');\n tok.is.dotfile = dotfile(tok.path.basename) || dotfile(tok.path.filename);\n tok.is.dotdir = dotdir(tok.path.dirname);\n return (cache[glob] = tok);\n}\n\n/**\n * Returns true if the glob matches dot-directories.\n *\n * @param {Object} `tok` The tokens object\n * @param {Object} `path` The path object\n * @return {Object}\n */\n\nfunction dotdir(base) {\n if (base.indexOf('/.') !== -1) {\n return true;\n }\n if (base.charAt(0) === '.' && base.charAt(1) !== '/') {\n return true;\n }\n return false;\n}\n\n/**\n * Returns true if the pattern has the given `ch`aracter(s)\n *\n * @param {Object} `glob` The glob pattern.\n * @param {Object} `ch` The character to test for\n * @return {Object}\n */\n\nfunction has(is, glob, ch) {\n return is && glob.indexOf(ch) !== -1;\n}\n\n/**\n * Escape/unescape utils\n */\n\nfunction escape(str) {\n var re = /\\{([^{}]*?)}|\\(([^()]*?)\\)|\\[([^\\[\\]]*?)\\]/g;\n return str.replace(re, function (outter, braces, parens, brackets) {\n var inner = braces || parens || brackets;\n if (!inner) { return outter; }\n return outter.split(inner).join(esc(inner));\n });\n}\n\nfunction esc(str) {\n str = str.split('/').join('__SLASH__');\n str = str.split('.').join('__DOT__');\n return str;\n}\n\nfunction unescape(str) {\n str = str.split('__SLASH__').join('/');\n str = str.split('__DOT__').join('.');\n return str;\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/micromatch/~/parse-glob/index.js\n ** module id = 312\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/micromatch/~/parse-glob/index.js?"); + eval("/* WEBPACK VAR INJECTION */(function(process) {'use strict';\n\nvar fs = process.browser ? __webpack_require__(82) : __webpack_require__(300);\n\nfunction readLink(file, opt, cb) {\n fs.readlink(file.path, function (err, target) {\n if (err) {\n return cb(err);\n }\n\n // store the link target path\n file.symlink = target;\n\n return cb(null, file);\n });\n}\n\nmodule.exports = readLink;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/lib/src/getContents/readSymbolicLink.js\n ** module id = 312\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/lib/src/getContents/readSymbolicLink.js?"); /***/ }, /* 313 */ /***/ function(module, exports, __webpack_require__) { - eval("/*!\n * glob-base \n *\n * Copyright (c) 2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nvar path = __webpack_require__(151);\nvar parent = __webpack_require__(314);\nvar isGlob = __webpack_require__(306);\n\nmodule.exports = function globBase(pattern) {\n if (typeof pattern !== 'string') {\n throw new TypeError('glob-base expects a string.');\n }\n\n var res = {};\n res.base = parent(pattern);\n res.isGlob = isGlob(pattern);\n\n if (res.base !== '.') {\n res.glob = pattern.substr(res.base.length);\n if (res.glob.charAt(0) === '/') {\n res.glob = res.glob.substr(1);\n }\n } else {\n res.glob = pattern;\n }\n\n if (!res.isGlob) {\n res.base = dirname(pattern);\n res.glob = res.base !== '.'\n ? pattern.substr(res.base.length)\n : pattern;\n }\n\n if (res.glob.substr(0, 2) === './') {\n res.glob = res.glob.substr(2);\n }\n if (res.glob.charAt(0) === '/') {\n res.glob = res.glob.substr(1);\n }\n return res;\n};\n\nfunction dirname(glob) {\n if (glob.slice(-1) === '/') return glob;\n return path.dirname(glob);\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/micromatch/~/parse-glob/~/glob-base/index.js\n ** module id = 313\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/micromatch/~/parse-glob/~/glob-base/index.js?"); + eval("/* WEBPACK VAR INJECTION */(function(process) {'use strict';\n\nvar fs = process.browser ? __webpack_require__(82) : __webpack_require__(300);\nvar stripBom = __webpack_require__(306);\n\nfunction bufferFile(file, opt, cb) {\n fs.readFile(file.path, function(err, data) {\n if (err) {\n return cb(err);\n }\n\n if (opt.stripBOM){\n file.contents = stripBom(data);\n } else {\n file.contents = data;\n }\n\n cb(null, file);\n });\n}\n\nmodule.exports = bufferFile;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/lib/src/getContents/bufferFile.js\n ** module id = 313\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/lib/src/getContents/bufferFile.js?"); /***/ }, /* 314 */ /***/ function(module, exports, __webpack_require__) { - eval("'use strict';\n\nvar path = __webpack_require__(151);\nvar isglob = __webpack_require__(315);\n\nmodule.exports = function globParent(str) {\n\tstr += 'a'; // preserves full path in case of trailing path separator\n\tdo {str = path.dirname(str)} while (isglob(str));\n\treturn str;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/glob-parent/index.js\n ** module id = 314\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/glob-parent/index.js?"); + eval("/* WEBPACK VAR INJECTION */(function(process) {'use strict';\n\nvar fs = process.browser ? __webpack_require__(82) : __webpack_require__(300);\nvar stripBom = __webpack_require__(315);\n\nfunction streamFile(file, opt, cb) {\n file.contents = fs.createReadStream(file.path);\n\n if (opt.stripBOM) {\n file.contents = file.contents.pipe(stripBom());\n }\n\n cb(null, file);\n}\n\nmodule.exports = streamFile;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/lib/src/getContents/streamFile.js\n ** module id = 314\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/lib/src/getContents/streamFile.js?"); /***/ }, /* 315 */ /***/ function(module, exports, __webpack_require__) { - eval("/*!\n * is-glob \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\nvar isExtglob = __webpack_require__(316);\n\nmodule.exports = function isGlob(str) {\n return typeof str === 'string'\n && (/[*!?{}(|)[\\]]/.test(str)\n || isExtglob(str));\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/glob-parent/~/is-glob/index.js\n ** module id = 315\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/glob-parent/~/is-glob/index.js?"); + eval("'use strict';\nvar firstChunk = __webpack_require__(316);\nvar stripBom = __webpack_require__(306);\n\nmodule.exports = function () {\n\treturn firstChunk({minSize: 3}, function (chunk, enc, cb) {\n\t\tthis.push(stripBom(chunk));\n\t\tcb();\n\t});\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/strip-bom-stream/index.js\n ** module id = 315\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/strip-bom-stream/index.js?"); /***/ }, /* 316 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("/*!\n * is-extglob \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\nmodule.exports = function isExtglob(str) {\n return typeof str === 'string'\n && /[@?!+*]\\(/.test(str);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/glob-parent/~/is-glob/~/is-extglob/index.js\n ** module id = 316\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/glob-parent/~/is-glob/~/is-extglob/index.js?"); + eval("/* WEBPACK VAR INJECTION */(function(Buffer) {'use strict';\nvar util = __webpack_require__(139);\nvar Transform = __webpack_require__(98).Transform;\n\nfunction ctor(options, transform) {\n\tutil.inherits(FirstChunk, Transform);\n\n\tif (typeof options === 'function') {\n\t\ttransform = options;\n\t\toptions = {};\n\t}\n\n\tif (typeof transform !== 'function') {\n\t\tthrow new Error('transform function required');\n\t}\n\n\tfunction FirstChunk(options2) {\n\t\tif (!(this instanceof FirstChunk)) {\n\t\t\treturn new FirstChunk(options2);\n\t\t}\n\n\t\tTransform.call(this, options2);\n\n\t\tthis._firstChunk = true;\n\t\tthis._transformCalled = false;\n\t\tthis._minSize = options.minSize;\n\t}\n\n\tFirstChunk.prototype._transform = function (chunk, enc, cb) {\n\t\tthis._enc = enc;\n\n\t\tif (this._firstChunk) {\n\t\t\tthis._firstChunk = false;\n\n\t\t\tif (this._minSize == null) {\n\t\t\t\ttransform.call(this, chunk, enc, cb);\n\t\t\t\tthis._transformCalled = true;\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tthis._buffer = chunk;\n\t\t\tcb();\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._minSize == null) {\n\t\t\tthis.push(chunk);\n\t\t\tcb();\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._buffer.length < this._minSize) {\n\t\t\tthis._buffer = Buffer.concat([this._buffer, chunk]);\n\t\t\tcb();\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._buffer.length >= this._minSize) {\n\t\t\ttransform.call(this, this._buffer.slice(), enc, function () {\n\t\t\t\tthis.push(chunk);\n\t\t\t\tcb();\n\t\t\t}.bind(this));\n\t\t\tthis._transformCalled = true;\n\t\t\tthis._buffer = false;\n\t\t\treturn;\n\t\t}\n\n\t\tthis.push(chunk);\n\t\tcb();\n\t};\n\n\tFirstChunk.prototype._flush = function (cb) {\n\t\tif (!this._buffer) {\n\t\t\tcb();\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._transformCalled) {\n\t\t\tthis.push(this._buffer);\n\t\t\tcb();\n\t\t} else {\n\t\t\ttransform.call(this, this._buffer.slice(), this._enc, cb);\n\t\t}\n\t};\n\n\treturn FirstChunk;\n}\n\nmodule.exports = function () {\n\treturn ctor.apply(ctor, arguments)();\n};\n\nmodule.exports.ctor = ctor;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1).Buffer))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/first-chunk-stream/index.js\n ** module id = 316\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/first-chunk-stream/index.js?"); /***/ }, /* 317 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("/*!\n * is-dotfile \n *\n * Copyright (c) 2015 Jon Schlinkert, contributors.\n * Licensed under the MIT license.\n */\n\nmodule.exports = function(str) {\n if (str.charCodeAt(0) === 46 /* . */ && str.indexOf('/', 1) === -1) {\n return true;\n }\n\n var last = str.lastIndexOf('/');\n return last !== -1 ? str.charCodeAt(last + 1) === 46 /* . */ : false;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/micromatch/~/parse-glob/~/is-dotfile/index.js\n ** module id = 317\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/micromatch/~/parse-glob/~/is-dotfile/index.js?"); + eval("/* WEBPACK VAR INJECTION */(function(process) {'use strict';\n\nvar through2 = __webpack_require__(226);\nvar fs = process.browser ? __webpack_require__(82) : __webpack_require__(300);\nvar path = __webpack_require__(149);\n\nfunction resolveSymlinks(options) {\n\n // a stat property is exposed on file objects as a (wanted) side effect\n function resolveFile(globFile, enc, cb) {\n fs.lstat(globFile.path, function (err, stat) {\n if (err) {\n return cb(err);\n }\n\n globFile.stat = stat;\n\n if (!stat.isSymbolicLink() || !options.followSymlinks) {\n return cb(null, globFile);\n }\n\n fs.realpath(globFile.path, function (err, filePath) {\n if (err) {\n return cb(err);\n }\n\n globFile.base = path.dirname(filePath);\n globFile.path = filePath;\n\n // recurse to get real file stat\n resolveFile(globFile, enc, cb);\n });\n });\n }\n\n return through2.obj(resolveFile);\n}\n\nmodule.exports = resolveSymlinks;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/lib/src/resolveSymlinks.js\n ** module id = 317\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/lib/src/resolveSymlinks.js?"); /***/ }, /* 318 */ /***/ function(module, exports, __webpack_require__) { - eval("/*!\n * regex-cache \n *\n * Copyright (c) 2015 Jon Schlinkert.\n * Licensed under the MIT license.\n */\n\n'use strict';\n\nvar isPrimitive = __webpack_require__(319);\nvar equal = __webpack_require__(320);\n\n/**\n * Expose `regexCache`\n */\n\nmodule.exports = regexCache;\n\n/**\n * Memoize the results of a call to the new RegExp constructor.\n *\n * @param {Function} fn [description]\n * @param {String} str [description]\n * @param {Options} options [description]\n * @param {Boolean} nocompare [description]\n * @return {RegExp}\n */\n\nfunction regexCache(fn, str, opts) {\n var key = '_default_', regex, cached;\n\n if (!str && !opts) {\n if (typeof fn !== 'function') {\n return fn;\n }\n return basic[key] || (basic[key] = fn());\n }\n\n var isString = typeof str === 'string';\n if (isString) {\n if (!opts) {\n return basic[str] || (basic[str] = fn(str));\n }\n key = str;\n } else {\n opts = str;\n }\n\n cached = cache[key];\n if (cached && equal(cached.opts, opts)) {\n return cached.regex;\n }\n\n memo(key, opts, (regex = fn(str, opts)));\n return regex;\n}\n\nfunction memo(key, opts, regex) {\n cache[key] = {regex: regex, opts: opts};\n}\n\n/**\n * Expose `cache`\n */\n\nvar cache = module.exports.cache = {};\nvar basic = module.exports.basic = {};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/micromatch/~/regex-cache/index.js\n ** module id = 318\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/micromatch/~/regex-cache/index.js?"); + eval("/* WEBPACK VAR INJECTION */(function(process) {'use strict';\n\nvar through2 = __webpack_require__(226);\nvar sourcemaps = process.browser ? null : __webpack_require__(298);\nvar duplexify = __webpack_require__(294);\nvar prepareWrite = __webpack_require__(319);\nvar writeContents = __webpack_require__(321);\n\nfunction dest(outFolder, opt) {\n if (!opt) {\n opt = {};\n }\n\n function saveFile(file, enc, cb) {\n prepareWrite(outFolder, file, opt, function(err, writePath) {\n if (err) {\n return cb(err);\n }\n writeContents(writePath, file, cb);\n });\n }\n\n var saveStream = through2.obj(saveFile);\n if (!opt.sourcemaps) {\n return saveStream;\n }\n\n var mapStream = sourcemaps.write(opt.sourcemaps.path, opt.sourcemaps);\n var outputStream = duplexify.obj(mapStream, saveStream);\n mapStream.pipe(saveStream);\n\n return outputStream;\n}\n\nmodule.exports = dest;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/lib/dest/index.js\n ** module id = 318\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/lib/dest/index.js?"); /***/ }, /* 319 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("/*!\n * is-primitive \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\n// see http://jsperf.com/testing-value-is-primitive/7\nmodule.exports = function isPrimitive(value) {\n return value == null || (typeof value !== 'function' && typeof value !== 'object');\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/micromatch/~/regex-cache/~/is-primitive/index.js\n ** module id = 319\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/micromatch/~/regex-cache/~/is-primitive/index.js?"); + eval("/* WEBPACK VAR INJECTION */(function(process) {'use strict';\n\nvar assign = __webpack_require__(225);\nvar path = __webpack_require__(149);\nvar mkdirp = __webpack_require__(320);\nvar fs = process.browser ? __webpack_require__(82) : __webpack_require__(300);\n\nfunction booleanOrFunc(v, file) {\n if (typeof v !== 'boolean' && typeof v !== 'function') {\n return null;\n }\n\n return typeof v === 'boolean' ? v : v(file);\n}\n\nfunction stringOrFunc(v, file) {\n if (typeof v !== 'string' && typeof v !== 'function') {\n return null;\n }\n\n return typeof v === 'string' ? v : v(file);\n}\n\nfunction prepareWrite(outFolder, file, opt, cb) {\n var options = assign({\n cwd: process.cwd(),\n mode: (file.stat ? file.stat.mode : null),\n dirMode: null,\n overwrite: true\n }, opt);\n var overwrite = booleanOrFunc(options.overwrite, file);\n options.flag = (overwrite ? 'w' : 'wx');\n\n var cwd = path.resolve(options.cwd);\n var outFolderPath = stringOrFunc(outFolder, file);\n if (!outFolderPath) {\n throw new Error('Invalid output folder');\n }\n var basePath = options.base ?\n stringOrFunc(options.base, file) : path.resolve(cwd, outFolderPath);\n if (!basePath) {\n throw new Error('Invalid base option');\n }\n\n var writePath = path.resolve(basePath, file.relative);\n var writeFolder = path.dirname(writePath);\n\n // wire up new properties\n file.stat = (file.stat || new fs.Stats());\n file.stat.mode = options.mode;\n file.flag = options.flag;\n file.cwd = cwd;\n file.base = basePath;\n file.path = writePath;\n\n // mkdirp the folder the file is going in\n mkdirp(writeFolder, options.dirMode, function(err){\n if (err) {\n return cb(err);\n }\n cb(null, writePath);\n });\n}\n\nmodule.exports = prepareWrite;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/lib/prepareWrite.js\n ** module id = 319\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/lib/prepareWrite.js?"); /***/ }, /* 320 */ /***/ function(module, exports, __webpack_require__) { - eval("/*!\n * is-equal-shallow \n *\n * Copyright (c) 2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nvar isPrimitive = __webpack_require__(319);\n\nmodule.exports = function isEqual(a, b) {\n if (!a && !b) { return true; }\n if (!a && b || a && !b) { return false; }\n\n var numKeysA = 0, numKeysB = 0, key;\n for (key in b) {\n numKeysB++;\n if (!isPrimitive(b[key]) || !a.hasOwnProperty(key) || (a[key] !== b[key])) {\n return false;\n }\n }\n for (key in a) {\n numKeysA++;\n }\n return numKeysA === numKeysB;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/micromatch/~/regex-cache/~/is-equal-shallow/index.js\n ** module id = 320\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/micromatch/~/regex-cache/~/is-equal-shallow/index.js?"); + eval("/* WEBPACK VAR INJECTION */(function(process) {var path = __webpack_require__(149);\nvar fs = __webpack_require__(82);\nvar _0777 = parseInt('0777', 8);\n\nmodule.exports = mkdirP.mkdirp = mkdirP.mkdirP = mkdirP;\n\nfunction mkdirP (p, opts, f, made) {\n if (typeof opts === 'function') {\n f = opts;\n opts = {};\n }\n else if (!opts || typeof opts !== 'object') {\n opts = { mode: opts };\n }\n \n var mode = opts.mode;\n var xfs = opts.fs || fs;\n \n if (mode === undefined) {\n mode = _0777 & (~process.umask());\n }\n if (!made) made = null;\n \n var cb = f || function () {};\n p = path.resolve(p);\n \n xfs.mkdir(p, mode, function (er) {\n if (!er) {\n made = made || p;\n return cb(null, made);\n }\n switch (er.code) {\n case 'ENOENT':\n mkdirP(path.dirname(p), opts, function (er, made) {\n if (er) cb(er, made);\n else mkdirP(p, opts, cb, made);\n });\n break;\n\n // In the case of any other error, just see if there's a dir\n // there already. If so, then hooray! If not, then something\n // is borked.\n default:\n xfs.stat(p, function (er2, stat) {\n // if the stat fails, then that's super weird.\n // let the original error be the failure reason.\n if (er2 || !stat.isDirectory()) cb(er, made)\n else cb(null, made);\n });\n break;\n }\n });\n}\n\nmkdirP.sync = function sync (p, opts, made) {\n if (!opts || typeof opts !== 'object') {\n opts = { mode: opts };\n }\n \n var mode = opts.mode;\n var xfs = opts.fs || fs;\n \n if (mode === undefined) {\n mode = _0777 & (~process.umask());\n }\n if (!made) made = null;\n\n p = path.resolve(p);\n\n try {\n xfs.mkdirSync(p, mode);\n made = made || p;\n }\n catch (err0) {\n switch (err0.code) {\n case 'ENOENT' :\n made = sync(path.dirname(p), opts, made);\n sync(p, opts, made);\n break;\n\n // In the case of any other error, just see if there's a dir\n // there already. If so, then hooray! If not, then something\n // is borked.\n default:\n var stat;\n try {\n stat = xfs.statSync(p);\n }\n catch (err1) {\n throw err0;\n }\n if (!stat.isDirectory()) throw err0;\n break;\n }\n }\n\n return made;\n};\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/mkdirp/index.js\n ** module id = 320\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/mkdirp/index.js?"); /***/ }, /* 321 */ /***/ function(module, exports, __webpack_require__) { - eval("'use strict';\n\nvar chars = __webpack_require__(322);\nvar utils = __webpack_require__(286);\n\n/**\n * Expose `Glob`\n */\n\nvar Glob = module.exports = function Glob(pattern, options) {\n if (!(this instanceof Glob)) {\n return new Glob(pattern, options);\n }\n this.options = options || {};\n this.pattern = pattern;\n this.history = [];\n this.tokens = {};\n this.init(pattern);\n};\n\n/**\n * Initialize defaults\n */\n\nGlob.prototype.init = function(pattern) {\n this.orig = pattern;\n this.negated = this.isNegated();\n this.options.track = this.options.track || false;\n this.options.makeRe = true;\n};\n\n/**\n * Push a change into `glob.history`. Useful\n * for debugging.\n */\n\nGlob.prototype.track = function(msg) {\n if (this.options.track) {\n this.history.push({msg: msg, pattern: this.pattern});\n }\n};\n\n/**\n * Return true if `glob.pattern` was negated\n * with `!`, also remove the `!` from the pattern.\n *\n * @return {Boolean}\n */\n\nGlob.prototype.isNegated = function() {\n if (this.pattern.charCodeAt(0) === 33 /* '!' */) {\n this.pattern = this.pattern.slice(1);\n return true;\n }\n return false;\n};\n\n/**\n * Expand braces in the given glob pattern.\n *\n * We only need to use the [braces] lib when\n * patterns are nested.\n */\n\nGlob.prototype.braces = function() {\n if (this.options.nobraces !== true && this.options.nobrace !== true) {\n // naive/fast check for imbalanced characters\n var a = this.pattern.match(/[\\{\\(\\[]/g);\n var b = this.pattern.match(/[\\}\\)\\]]/g);\n\n // if imbalanced, don't optimize the pattern\n if (a && b && (a.length !== b.length)) {\n this.options.makeRe = false;\n }\n\n // expand brace patterns and join the resulting array\n var expanded = utils.braces(this.pattern, this.options);\n this.pattern = expanded.join('|');\n }\n};\n\n/**\n * Expand bracket expressions in `glob.pattern`\n */\n\nGlob.prototype.brackets = function() {\n if (this.options.nobrackets !== true) {\n this.pattern = utils.brackets(this.pattern);\n }\n};\n\n/**\n * Expand bracket expressions in `glob.pattern`\n */\n\nGlob.prototype.extglob = function() {\n if (this.options.noextglob === true) return;\n\n if (utils.isExtglob(this.pattern)) {\n this.pattern = utils.extglob(this.pattern, {escape: true});\n }\n};\n\n/**\n * Parse the given pattern\n */\n\nGlob.prototype.parse = function(pattern) {\n this.tokens = utils.parseGlob(pattern || this.pattern, true);\n return this.tokens;\n};\n\n/**\n * Replace `a` with `b`. Also tracks the change before and\n * after each replacement. This is disabled by default, but\n * can be enabled by setting `options.track` to true.\n *\n * Also, when the pattern is a string, `.split()` is used,\n * because it's much faster than replace.\n *\n * @param {RegExp|String} `a`\n * @param {String} `b`\n * @param {Boolean} `escape` When `true`, escapes `*` and `?` in the replacement.\n * @return {String}\n */\n\nGlob.prototype._replace = function(a, b, escape) {\n this.track('before (find): \"' + a + '\" (replace with): \"' + b + '\"');\n if (escape) b = esc(b);\n if (a && b && typeof a === 'string') {\n this.pattern = this.pattern.split(a).join(b);\n } else {\n this.pattern = this.pattern.replace(a, b);\n }\n this.track('after');\n};\n\n/**\n * Escape special characters in the given string.\n *\n * @param {String} `str` Glob pattern\n * @return {String}\n */\n\nGlob.prototype.escape = function(str) {\n this.track('before escape: ');\n var re = /[\"\\\\](['\"]?[^\"'\\\\]['\"]?)/g;\n\n this.pattern = str.replace(re, function($0, $1) {\n var o = chars.ESC;\n var ch = o && o[$1];\n if (ch) {\n return ch;\n }\n if (/[a-z]/i.test($0)) {\n return $0.split('\\\\').join('');\n }\n return $0;\n });\n\n this.track('after escape: ');\n};\n\n/**\n * Unescape special characters in the given string.\n *\n * @param {String} `str`\n * @return {String}\n */\n\nGlob.prototype.unescape = function(str) {\n var re = /__([A-Z]+)_([A-Z]+)__/g;\n this.pattern = str.replace(re, function($0, $1) {\n return chars[$1][$0];\n });\n this.pattern = unesc(this.pattern);\n};\n\n/**\n * Escape/unescape utils\n */\n\nfunction esc(str) {\n str = str.split('?').join('%~');\n str = str.split('*').join('%%');\n return str;\n}\n\nfunction unesc(str) {\n str = str.split('%~').join('?');\n str = str.split('%%').join('*');\n return str;\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/micromatch/lib/glob.js\n ** module id = 321\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/micromatch/lib/glob.js?"); + eval("'use strict';\n\nvar fs = __webpack_require__(82);\nvar writeDir = __webpack_require__(322);\nvar writeStream = __webpack_require__(323);\nvar writeBuffer = __webpack_require__(324);\nvar writeSymbolicLink = __webpack_require__(325);\n\nfunction writeContents(writePath, file, cb) {\n // if directory then mkdirp it\n if (file.isDirectory()) {\n return writeDir(writePath, file, written);\n }\n\n // stream it to disk yo\n if (file.isStream()) {\n return writeStream(writePath, file, written);\n }\n\n // write it as a symlink\n if (file.symlink) {\n return writeSymbolicLink(writePath, file, written);\n }\n\n // write it like normal\n if (file.isBuffer()) {\n return writeBuffer(writePath, file, written);\n }\n\n // if no contents then do nothing\n if (file.isNull()) {\n return complete();\n }\n\n function complete(err) {\n cb(err, file);\n }\n\n function written(err) {\n\n if (isErrorFatal(err)) {\n return complete(err);\n }\n\n if (!file.stat || typeof file.stat.mode !== 'number' || file.symlink) {\n return complete();\n }\n\n fs.stat(writePath, function(err, st) {\n if (err) {\n return complete(err);\n }\n var currentMode = (st.mode & parseInt('0777', 8));\n var expectedMode = (file.stat.mode & parseInt('0777', 8));\n if (currentMode === expectedMode) {\n return complete();\n }\n fs.chmod(writePath, expectedMode, complete);\n });\n }\n\n function isErrorFatal(err) {\n if (!err) {\n return false;\n }\n\n // Handle scenario for file overwrite failures.\n else if (err.code === 'EEXIST' && file.flag === 'wx') {\n return false; // \"These aren't the droids you're looking for\"\n }\n\n // Otherwise, this is a fatal error\n return true;\n }\n}\n\nmodule.exports = writeContents;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/lib/dest/writeContents/index.js\n ** module id = 321\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/lib/dest/writeContents/index.js?"); /***/ }, /* 322 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("'use strict';\n\nvar chars = {}, unesc, temp;\n\nfunction reverse(object, prepender) {\n return Object.keys(object).reduce(function(reversed, key) {\n var newKey = prepender ? prepender + key : key; // Optionally prepend a string to key.\n reversed[object[key]] = newKey; // Swap key and value.\n return reversed; // Return the result.\n }, {});\n}\n\n/**\n * Regex for common characters\n */\n\nchars.escapeRegex = {\n '?': /\\?/g,\n '@': /\\@/g,\n '!': /\\!/g,\n '+': /\\+/g,\n '*': /\\*/g,\n '(': /\\(/g,\n ')': /\\)/g,\n '[': /\\[/g,\n ']': /\\]/g\n};\n\n/**\n * Escape characters\n */\n\nchars.ESC = {\n '?': '__UNESC_QMRK__',\n '@': '__UNESC_AMPE__',\n '!': '__UNESC_EXCL__',\n '+': '__UNESC_PLUS__',\n '*': '__UNESC_STAR__',\n ',': '__UNESC_COMMA__',\n '(': '__UNESC_LTPAREN__',\n ')': '__UNESC_RTPAREN__',\n '[': '__UNESC_LTBRACK__',\n ']': '__UNESC_RTBRACK__'\n};\n\n/**\n * Unescape characters\n */\n\nchars.UNESC = unesc || (unesc = reverse(chars.ESC, '\\\\'));\n\nchars.ESC_TEMP = {\n '?': '__TEMP_QMRK__',\n '@': '__TEMP_AMPE__',\n '!': '__TEMP_EXCL__',\n '*': '__TEMP_STAR__',\n '+': '__TEMP_PLUS__',\n ',': '__TEMP_COMMA__',\n '(': '__TEMP_LTPAREN__',\n ')': '__TEMP_RTPAREN__',\n '[': '__TEMP_LTBRACK__',\n ']': '__TEMP_RTBRACK__'\n};\n\nchars.TEMP = temp || (temp = reverse(chars.ESC_TEMP));\n\nmodule.exports = chars;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/micromatch/lib/chars.js\n ** module id = 322\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/micromatch/lib/chars.js?"); + eval("'use strict';\n\nvar mkdirp = __webpack_require__(320);\n\nfunction writeDir(writePath, file, cb) {\n mkdirp(writePath, file.stat.mode, cb);\n}\n\nmodule.exports = writeDir;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/lib/dest/writeContents/writeDir.js\n ** module id = 322\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/lib/dest/writeContents/writeDir.js?"); /***/ }, /* 323 */ /***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(process) {'use strict';\n\nvar path = __webpack_require__(151);\nvar extend = __webpack_require__(324);\n\nmodule.exports = function(glob, options) {\n var opts = extend({}, options);\n opts.cwd = opts.cwd ? path.resolve(opts.cwd) : process.cwd();\n\n // store first and last characters before glob is modified\n var prefix = glob.charAt(0);\n var suffix = glob.slice(-1);\n\n var isNegative = prefix === '!';\n if (isNegative) glob = glob.slice(1);\n\n if (opts.root && glob.charAt(0) === '/') {\n glob = path.join(path.resolve(opts.root), '.' + glob);\n } else {\n glob = path.resolve(opts.cwd, glob);\n }\n\n if (suffix === '/' && glob.slice(-1) !== '/') {\n glob += '/';\n }\n\n return isNegative ? '!' + glob : glob;\n};\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(83)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/to-absolute-glob/index.js\n ** module id = 323\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/to-absolute-glob/index.js?"); + eval("/* WEBPACK VAR INJECTION */(function(process) {'use strict';\n\nvar streamFile = __webpack_require__(314);\nvar fs = process.browser ? __webpack_require__(82) : __webpack_require__(300);\n\nfunction writeStream(writePath, file, cb) {\n var opt = {\n mode: file.stat.mode,\n flag: file.flag\n };\n\n var outStream = fs.createWriteStream(writePath, opt);\n\n file.contents.once('error', complete);\n outStream.once('error', complete);\n outStream.once('finish', success);\n\n file.contents.pipe(outStream);\n\n function success() {\n streamFile(file, {}, complete);\n }\n\n // cleanup\n function complete(err) {\n file.contents.removeListener('error', cb);\n outStream.removeListener('error', cb);\n outStream.removeListener('finish', success);\n cb(err);\n }\n}\n\nmodule.exports = writeStream;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/lib/dest/writeContents/writeStream.js\n ** module id = 323\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/lib/dest/writeContents/writeStream.js?"); /***/ }, /* 324 */ /***/ function(module, exports, __webpack_require__) { - eval("'use strict';\n\nvar isObject = __webpack_require__(325);\n\nmodule.exports = function extend(o/*, objects*/) {\n if (!isObject(o)) { o = {}; }\n\n var len = arguments.length;\n for (var i = 1; i < len; i++) {\n var obj = arguments[i];\n\n if (isObject(obj)) {\n assign(o, obj);\n }\n }\n return o;\n};\n\nfunction assign(a, b) {\n for (var key in b) {\n if (hasOwn(b, key)) {\n a[key] = b[key];\n }\n }\n}\n\n/**\n * Returns true if the given `key` is an own property of `obj`.\n */\n\nfunction hasOwn(obj, key) {\n return Object.prototype.hasOwnProperty.call(obj, key);\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/to-absolute-glob/~/extend-shallow/index.js\n ** module id = 324\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/to-absolute-glob/~/extend-shallow/index.js?"); + eval("/* WEBPACK VAR INJECTION */(function(process) {'use strict';\n\nvar fs = process.browser ? __webpack_require__(82) : __webpack_require__(300);\n\nfunction writeBuffer(writePath, file, cb) {\n var opt = {\n mode: file.stat.mode,\n flag: file.flag\n };\n\n fs.writeFile(writePath, file.contents, opt, cb);\n}\n\nmodule.exports = writeBuffer;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/lib/dest/writeContents/writeBuffer.js\n ** module id = 324\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/lib/dest/writeContents/writeBuffer.js?"); /***/ }, /* 325 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("/*!\n * is-extendable \n *\n * Copyright (c) 2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nmodule.exports = function isExtendable(val) {\n return typeof val !== 'undefined' && val !== null\n && (typeof val === 'object' || typeof val === 'function');\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/to-absolute-glob/~/extend-shallow/~/is-extendable/index.js\n ** module id = 325\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/to-absolute-glob/~/extend-shallow/~/is-extendable/index.js?"); + eval("/* WEBPACK VAR INJECTION */(function(process) {'use strict';\n\nvar fs = process.browser ? __webpack_require__(82) : __webpack_require__(300);\n\nfunction writeSymbolicLink(writePath, file, cb) {\n fs.symlink(file.symlink, writePath, function (err) {\n if (err && err.code !== 'EEXIST') {\n return cb(err);\n }\n\n cb(null, file);\n });\n}\n\nmodule.exports = writeSymbolicLink;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/lib/dest/writeContents/writeSymbolicLink.js\n ** module id = 325\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/lib/dest/writeContents/writeSymbolicLink.js?"); /***/ }, /* 326 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("'use strict';\n\nvar hasOwn = Object.prototype.hasOwnProperty;\nvar toStr = Object.prototype.toString;\n\nvar isArray = function isArray(arr) {\n\tif (typeof Array.isArray === 'function') {\n\t\treturn Array.isArray(arr);\n\t}\n\n\treturn toStr.call(arr) === '[object Array]';\n};\n\nvar isPlainObject = function isPlainObject(obj) {\n\tif (!obj || toStr.call(obj) !== '[object Object]') {\n\t\treturn false;\n\t}\n\n\tvar hasOwnConstructor = hasOwn.call(obj, 'constructor');\n\tvar hasIsPrototypeOf = obj.constructor && obj.constructor.prototype && hasOwn.call(obj.constructor.prototype, 'isPrototypeOf');\n\t// Not own constructor property must be Object\n\tif (obj.constructor && !hasOwnConstructor && !hasIsPrototypeOf) {\n\t\treturn false;\n\t}\n\n\t// Own properties are enumerated firstly, so to speed up,\n\t// if last one is own, then all properties are own.\n\tvar key;\n\tfor (key in obj) {/**/}\n\n\treturn typeof key === 'undefined' || hasOwn.call(obj, key);\n};\n\nmodule.exports = function extend() {\n\tvar options, name, src, copy, copyIsArray, clone,\n\t\ttarget = arguments[0],\n\t\ti = 1,\n\t\tlength = arguments.length,\n\t\tdeep = false;\n\n\t// Handle a deep copy situation\n\tif (typeof target === 'boolean') {\n\t\tdeep = target;\n\t\ttarget = arguments[1] || {};\n\t\t// skip the boolean and the target\n\t\ti = 2;\n\t} else if ((typeof target !== 'object' && typeof target !== 'function') || target == null) {\n\t\ttarget = {};\n\t}\n\n\tfor (; i < length; ++i) {\n\t\toptions = arguments[i];\n\t\t// Only deal with non-null/undefined values\n\t\tif (options != null) {\n\t\t\t// Extend the base object\n\t\t\tfor (name in options) {\n\t\t\t\tsrc = target[name];\n\t\t\t\tcopy = options[name];\n\n\t\t\t\t// Prevent never-ending loop\n\t\t\t\tif (target !== copy) {\n\t\t\t\t\t// Recurse if we're merging plain objects or arrays\n\t\t\t\t\tif (deep && copy && (isPlainObject(copy) || (copyIsArray = isArray(copy)))) {\n\t\t\t\t\t\tif (copyIsArray) {\n\t\t\t\t\t\t\tcopyIsArray = false;\n\t\t\t\t\t\t\tclone = src && isArray(src) ? src : [];\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tclone = src && isPlainObject(src) ? src : {};\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Never move original objects, clone them\n\t\t\t\t\t\ttarget[name] = extend(deep, clone, copy);\n\n\t\t\t\t\t// Don't bring in undefined values\n\t\t\t\t\t} else if (typeof copy !== 'undefined') {\n\t\t\t\t\t\ttarget[name] = copy;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// Return the modified object\n\treturn target;\n};\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/~/extend/index.js\n ** module id = 326\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/~/extend/index.js?"); + eval("/* WEBPACK VAR INJECTION */(function(process) {'use strict';\n\nvar through2 = __webpack_require__(226);\nvar fs = process.browser ? __webpack_require__(82) : __webpack_require__(300);\nvar prepareWrite = __webpack_require__(319);\n\nfunction symlink(outFolder, opt) {\n function linkFile(file, enc, cb) {\n var srcPath = file.path;\n var symType = (file.isDirectory() ? 'dir' : 'file');\n prepareWrite(outFolder, file, opt, function(err, writePath) {\n if (err) {\n return cb(err);\n }\n fs.symlink(srcPath, writePath, symType, function(err) {\n if (err && err.code !== 'EEXIST') {\n return cb(err);\n }\n cb(null, file);\n });\n });\n }\n\n var stream = through2.obj(linkFile);\n // TODO: option for either backpressure or lossy\n stream.resume();\n return stream;\n}\n\nmodule.exports = symlink;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/lib/symlink/index.js\n ** module id = 326\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/lib/symlink/index.js?"); /***/ }, /* 327 */ /***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(Buffer, process) {var stream = __webpack_require__(328)\nvar eos = __webpack_require__(341)\nvar util = __webpack_require__(140)\n\nvar SIGNAL_FLUSH = new Buffer([0])\n\nvar onuncork = function(self, fn) {\n if (self._corked) self.once('uncork', fn)\n else fn()\n}\n\nvar destroyer = function(self, end) {\n return function(err) {\n if (err) self.destroy(err.message === 'premature close' ? null : err)\n else if (end && !self._ended) self.end()\n }\n}\n\nvar end = function(ws, fn) {\n if (!ws) return fn()\n if (ws._writableState && ws._writableState.finished) return fn()\n if (ws._writableState) return ws.end(fn)\n ws.end()\n fn()\n}\n\nvar toStreams2 = function(rs) {\n return new (stream.Readable)({objectMode:true, highWaterMark:16}).wrap(rs)\n}\n\nvar Duplexify = function(writable, readable, opts) {\n if (!(this instanceof Duplexify)) return new Duplexify(writable, readable, opts)\n stream.Duplex.call(this, opts)\n\n this._writable = null\n this._readable = null\n this._readable2 = null\n\n this._forwardDestroy = !opts || opts.destroy !== false\n this._forwardEnd = !opts || opts.end !== false\n this._corked = 1 // start corked\n this._ondrain = null\n this._drained = false\n this._forwarding = false\n this._unwrite = null\n this._unread = null\n this._ended = false\n\n this.destroyed = false\n\n if (writable) this.setWritable(writable)\n if (readable) this.setReadable(readable)\n}\n\nutil.inherits(Duplexify, stream.Duplex)\n\nDuplexify.obj = function(writable, readable, opts) {\n if (!opts) opts = {}\n opts.objectMode = true\n opts.highWaterMark = 16\n return new Duplexify(writable, readable, opts)\n}\n\nDuplexify.prototype.cork = function() {\n if (++this._corked === 1) this.emit('cork')\n}\n\nDuplexify.prototype.uncork = function() {\n if (this._corked && --this._corked === 0) this.emit('uncork')\n}\n\nDuplexify.prototype.setWritable = function(writable) {\n if (this._unwrite) this._unwrite()\n\n if (this.destroyed) {\n if (writable && writable.destroy) writable.destroy()\n return\n }\n\n if (writable === null || writable === false) {\n this.end()\n return\n }\n\n var self = this\n var unend = eos(writable, {writable:true, readable:false}, destroyer(this, this._forwardEnd))\n\n var ondrain = function() {\n var ondrain = self._ondrain\n self._ondrain = null\n if (ondrain) ondrain()\n }\n\n var clear = function() {\n self._writable.removeListener('drain', ondrain)\n unend()\n }\n\n if (this._unwrite) process.nextTick(ondrain) // force a drain on stream reset to avoid livelocks\n\n this._writable = writable\n this._writable.on('drain', ondrain)\n this._unwrite = clear\n\n this.uncork() // always uncork setWritable\n}\n\nDuplexify.prototype.setReadable = function(readable) {\n if (this._unread) this._unread()\n\n if (this.destroyed) {\n if (readable && readable.destroy) readable.destroy()\n return\n }\n\n if (readable === null || readable === false) {\n this.push(null)\n this.resume()\n return\n }\n\n var self = this\n var unend = eos(readable, {writable:false, readable:true}, destroyer(this))\n\n var onreadable = function() {\n self._forward()\n }\n\n var onend = function() {\n self.push(null)\n }\n\n var clear = function() {\n self._readable2.removeListener('readable', onreadable)\n self._readable2.removeListener('end', onend)\n unend()\n }\n\n this._drained = true\n this._readable = readable\n this._readable2 = readable._readableState ? readable : toStreams2(readable)\n this._readable2.on('readable', onreadable)\n this._readable2.on('end', onend)\n this._unread = clear\n\n this._forward()\n}\n\nDuplexify.prototype._read = function() {\n this._drained = true\n this._forward()\n}\n\nDuplexify.prototype._forward = function() {\n if (this._forwarding || !this._readable2 || !this._drained) return\n this._forwarding = true\n\n var data\n var state = this._readable2._readableState\n\n while ((data = this._readable2.read(state.buffer.length ? state.buffer[0].length : state.length)) !== null) {\n this._drained = this.push(data)\n }\n\n this._forwarding = false\n}\n\nDuplexify.prototype.destroy = function(err) {\n if (this.destroyed) return\n this.destroyed = true\n\n var self = this\n process.nextTick(function() {\n self._destroy(err)\n })\n}\n\nDuplexify.prototype._destroy = function(err) {\n if (err) {\n var ondrain = this._ondrain\n this._ondrain = null\n if (ondrain) ondrain(err)\n else this.emit('error', err)\n }\n\n if (this._forwardDestroy) {\n if (this._readable && this._readable.destroy) this._readable.destroy()\n if (this._writable && this._writable.destroy) this._writable.destroy()\n }\n\n this.emit('close')\n}\n\nDuplexify.prototype._write = function(data, enc, cb) {\n if (this.destroyed) return cb()\n if (this._corked) return onuncork(this, this._write.bind(this, data, enc, cb))\n if (data === SIGNAL_FLUSH) return this._finish(cb)\n if (!this._writable) return cb()\n\n if (this._writable.write(data) === false) this._ondrain = cb\n else cb()\n}\n\n\nDuplexify.prototype._finish = function(cb) {\n var self = this\n this.emit('preend')\n onuncork(this, function() {\n end(self._forwardEnd && self._writable, function() {\n // haxx to not emit prefinish twice\n if (self._writableState.prefinished === false) self._writableState.prefinished = true\n self.emit('prefinish')\n onuncork(self, cb)\n })\n })\n}\n\nDuplexify.prototype.end = function(data, enc, cb) {\n if (typeof data === 'function') return this.end(null, null, data)\n if (typeof enc === 'function') return this.end(data, null, enc)\n this._ended = true\n if (data) this.write(data)\n if (!this._writableState.ending) this.write(SIGNAL_FLUSH)\n return stream.Writable.prototype.end.call(this, cb)\n}\n\nmodule.exports = Duplexify\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1).Buffer, __webpack_require__(83)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/~/duplexify/index.js\n ** module id = 327\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/~/duplexify/index.js?"); + eval("var flat = __webpack_require__(328)\nvar tree = __webpack_require__(332)\n\nvar x = module.exports = tree\nx.flat = flat\nx.tree = tree\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-multipart-stream/index.js\n ** module id = 327\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-multipart-stream/index.js?"); /***/ }, /* 328 */ /***/ function(module, exports, __webpack_require__) { - eval("var Stream = (function (){\n try {\n return __webpack_require__(96); // hack to fix a circular dependency issue when used with browserify\n } catch(_){}\n}());\nexports = module.exports = __webpack_require__(329);\nexports.Stream = Stream || exports;\nexports.Readable = exports;\nexports.Writable = __webpack_require__(336);\nexports.Duplex = __webpack_require__(335);\nexports.Transform = __webpack_require__(339);\nexports.PassThrough = __webpack_require__(340);\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/~/duplexify/~/readable-stream/readable.js\n ** module id = 328\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/~/duplexify/~/readable-stream/readable.js?"); + eval("var Multipart = __webpack_require__(329)\nvar duplexify = __webpack_require__(294)\nvar stream = __webpack_require__(98)\nvar common = __webpack_require__(331)\nrandomString = common.randomString\n\nmodule.exports = v2mpFlat\n\n// we'll create three streams:\n// - w: a writable stream. it receives vinyl files\n// - mp: a multipart stream\n// - r: a readable stream. it outputs multipart data\nfunction v2mpFlat(opts) {\n opts = opts || {}\n opts.boundary = opts.boundary || randomString()\n\n var w = new stream.Writable({objectMode: true})\n var r = new stream.PassThrough({objectMode: true})\n var mp = new Multipart(opts.boundary)\n\n // connect w -> mp\n w._write = function(file, enc, cb) {\n writePart(mp, file, cb)\n }\n\n // connect mp -> r\n w.on('finish', function() {\n // apparently cannot add parts while streaming :(\n mp.pipe(r)\n })\n\n var out = duplexify.obj(w, r)\n out.boundary = opts.boundary\n return out\n}\n\nfunction writePart(mp, file, cb) {\n var c = file.contents\n if (c === null)\n c = emptyStream()\n\n mp.addPart({\n body: file.contents,\n headers: headersForFile(file),\n })\n cb(null)\n // TODO: call cb when file.contents ends instead.\n}\n\nfunction emptyStream() {\n var s = new stream.PassThrough({objectMode: true})\n s.write(null)\n return s\n}\n\nfunction headersForFile(file) {\n var fpath = common.cleanPath(file.path, file.base)\n\n var h = {}\n h['Content-Disposition'] = 'file; filename=\"' +fpath+ '\"'\n\n if (file.isDirectory()) {\n h['Content-Type'] = 'text/directory'\n } else {\n h['Content-Type'] = 'application/octet-stream'\n }\n\n return h\n}\n\nfunction randomString () {\n return Math.random().toString(36).slice(2) +\n Math.random().toString(36).slice(2) +\n Math.random().toString(36).slice(2) +\n Math.random().toString(36).slice(2)\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-multipart-stream/mp2v_flat.js\n ** module id = 328\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-multipart-stream/mp2v_flat.js?"); /***/ }, /* 329 */ /***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(process) {'use strict';\n\nmodule.exports = Readable;\n\n/**/\nvar processNextTick = __webpack_require__(330);\n/**/\n\n\n/**/\nvar isArray = __webpack_require__(331);\n/**/\n\n\n/**/\nvar Buffer = __webpack_require__(1).Buffer;\n/**/\n\nReadable.ReadableState = ReadableState;\n\nvar EE = __webpack_require__(84);\n\n/**/\nvar EElistenerCount = function(emitter, type) {\n return emitter.listeners(type).length;\n};\n/**/\n\n\n\n/**/\nvar Stream;\n(function (){try{\n Stream = __webpack_require__(96);\n}catch(_){}finally{\n if (!Stream)\n Stream = __webpack_require__(84).EventEmitter;\n}}())\n/**/\n\nvar Buffer = __webpack_require__(1).Buffer;\n\n/**/\nvar util = __webpack_require__(332);\nutil.inherits = __webpack_require__(333);\n/**/\n\n\n\n/**/\nvar debugUtil = __webpack_require__(334);\nvar debug;\nif (debugUtil && debugUtil.debuglog) {\n debug = debugUtil.debuglog('stream');\n} else {\n debug = function () {};\n}\n/**/\n\nvar StringDecoder;\n\nutil.inherits(Readable, Stream);\n\nvar Duplex;\nfunction ReadableState(options, stream) {\n Duplex = Duplex || __webpack_require__(335);\n\n options = options || {};\n\n // object stream flag. Used to make read(n) ignore n and to\n // make all the buffer merging and length checks go away\n this.objectMode = !!options.objectMode;\n\n if (stream instanceof Duplex)\n this.objectMode = this.objectMode || !!options.readableObjectMode;\n\n // the point at which it stops calling _read() to fill the buffer\n // Note: 0 is a valid value, means \"don't call _read preemptively ever\"\n var hwm = options.highWaterMark;\n var defaultHwm = this.objectMode ? 16 : 16 * 1024;\n this.highWaterMark = (hwm || hwm === 0) ? hwm : defaultHwm;\n\n // cast to ints.\n this.highWaterMark = ~~this.highWaterMark;\n\n this.buffer = [];\n this.length = 0;\n this.pipes = null;\n this.pipesCount = 0;\n this.flowing = null;\n this.ended = false;\n this.endEmitted = false;\n this.reading = false;\n\n // a flag to be able to tell if the onwrite cb is called immediately,\n // or on a later tick. We set this to true at first, because any\n // actions that shouldn't happen until \"later\" should generally also\n // not happen before the first write call.\n this.sync = true;\n\n // whenever we return null, then we set a flag to say\n // that we're awaiting a 'readable' event emission.\n this.needReadable = false;\n this.emittedReadable = false;\n this.readableListening = false;\n\n // Crypto is kind of old and crusty. Historically, its default string\n // encoding is 'binary' so we have to make this configurable.\n // Everything else in the universe uses 'utf8', though.\n this.defaultEncoding = options.defaultEncoding || 'utf8';\n\n // when piping, we only care about 'readable' events that happen\n // after read()ing all the bytes and not getting any pushback.\n this.ranOut = false;\n\n // the number of writers that are awaiting a drain event in .pipe()s\n this.awaitDrain = 0;\n\n // if true, a maybeReadMore has been scheduled\n this.readingMore = false;\n\n this.decoder = null;\n this.encoding = null;\n if (options.encoding) {\n if (!StringDecoder)\n StringDecoder = __webpack_require__(338).StringDecoder;\n this.decoder = new StringDecoder(options.encoding);\n this.encoding = options.encoding;\n }\n}\n\nvar Duplex;\nfunction Readable(options) {\n Duplex = Duplex || __webpack_require__(335);\n\n if (!(this instanceof Readable))\n return new Readable(options);\n\n this._readableState = new ReadableState(options, this);\n\n // legacy\n this.readable = true;\n\n if (options && typeof options.read === 'function')\n this._read = options.read;\n\n Stream.call(this);\n}\n\n// Manually shove something into the read() buffer.\n// This returns true if the highWaterMark has not been hit yet,\n// similar to how Writable.write() returns true if you should\n// write() some more.\nReadable.prototype.push = function(chunk, encoding) {\n var state = this._readableState;\n\n if (!state.objectMode && typeof chunk === 'string') {\n encoding = encoding || state.defaultEncoding;\n if (encoding !== state.encoding) {\n chunk = new Buffer(chunk, encoding);\n encoding = '';\n }\n }\n\n return readableAddChunk(this, state, chunk, encoding, false);\n};\n\n// Unshift should *always* be something directly out of read()\nReadable.prototype.unshift = function(chunk) {\n var state = this._readableState;\n return readableAddChunk(this, state, chunk, '', true);\n};\n\nReadable.prototype.isPaused = function() {\n return this._readableState.flowing === false;\n};\n\nfunction readableAddChunk(stream, state, chunk, encoding, addToFront) {\n var er = chunkInvalid(state, chunk);\n if (er) {\n stream.emit('error', er);\n } else if (chunk === null) {\n state.reading = false;\n onEofChunk(stream, state);\n } else if (state.objectMode || chunk && chunk.length > 0) {\n if (state.ended && !addToFront) {\n var e = new Error('stream.push() after EOF');\n stream.emit('error', e);\n } else if (state.endEmitted && addToFront) {\n var e = new Error('stream.unshift() after end event');\n stream.emit('error', e);\n } else {\n if (state.decoder && !addToFront && !encoding)\n chunk = state.decoder.write(chunk);\n\n if (!addToFront)\n state.reading = false;\n\n // if we want the data now, just emit it.\n if (state.flowing && state.length === 0 && !state.sync) {\n stream.emit('data', chunk);\n stream.read(0);\n } else {\n // update the buffer info.\n state.length += state.objectMode ? 1 : chunk.length;\n if (addToFront)\n state.buffer.unshift(chunk);\n else\n state.buffer.push(chunk);\n\n if (state.needReadable)\n emitReadable(stream);\n }\n\n maybeReadMore(stream, state);\n }\n } else if (!addToFront) {\n state.reading = false;\n }\n\n return needMoreData(state);\n}\n\n\n// if it's past the high water mark, we can push in some more.\n// Also, if we have no data yet, we can stand some\n// more bytes. This is to work around cases where hwm=0,\n// such as the repl. Also, if the push() triggered a\n// readable event, and the user called read(largeNumber) such that\n// needReadable was set, then we ought to push more, so that another\n// 'readable' event will be triggered.\nfunction needMoreData(state) {\n return !state.ended &&\n (state.needReadable ||\n state.length < state.highWaterMark ||\n state.length === 0);\n}\n\n// backwards compatibility.\nReadable.prototype.setEncoding = function(enc) {\n if (!StringDecoder)\n StringDecoder = __webpack_require__(338).StringDecoder;\n this._readableState.decoder = new StringDecoder(enc);\n this._readableState.encoding = enc;\n return this;\n};\n\n// Don't raise the hwm > 8MB\nvar MAX_HWM = 0x800000;\nfunction computeNewHighWaterMark(n) {\n if (n >= MAX_HWM) {\n n = MAX_HWM;\n } else {\n // Get the next highest power of 2\n n--;\n n |= n >>> 1;\n n |= n >>> 2;\n n |= n >>> 4;\n n |= n >>> 8;\n n |= n >>> 16;\n n++;\n }\n return n;\n}\n\nfunction howMuchToRead(n, state) {\n if (state.length === 0 && state.ended)\n return 0;\n\n if (state.objectMode)\n return n === 0 ? 0 : 1;\n\n if (n === null || isNaN(n)) {\n // only flow one buffer at a time\n if (state.flowing && state.buffer.length)\n return state.buffer[0].length;\n else\n return state.length;\n }\n\n if (n <= 0)\n return 0;\n\n // If we're asking for more than the target buffer level,\n // then raise the water mark. Bump up to the next highest\n // power of 2, to prevent increasing it excessively in tiny\n // amounts.\n if (n > state.highWaterMark)\n state.highWaterMark = computeNewHighWaterMark(n);\n\n // don't have that much. return null, unless we've ended.\n if (n > state.length) {\n if (!state.ended) {\n state.needReadable = true;\n return 0;\n } else {\n return state.length;\n }\n }\n\n return n;\n}\n\n// you can override either this method, or the async _read(n) below.\nReadable.prototype.read = function(n) {\n debug('read', n);\n var state = this._readableState;\n var nOrig = n;\n\n if (typeof n !== 'number' || n > 0)\n state.emittedReadable = false;\n\n // if we're doing read(0) to trigger a readable event, but we\n // already have a bunch of data in the buffer, then just trigger\n // the 'readable' event and move on.\n if (n === 0 &&\n state.needReadable &&\n (state.length >= state.highWaterMark || state.ended)) {\n debug('read: emitReadable', state.length, state.ended);\n if (state.length === 0 && state.ended)\n endReadable(this);\n else\n emitReadable(this);\n return null;\n }\n\n n = howMuchToRead(n, state);\n\n // if we've ended, and we're now clear, then finish it up.\n if (n === 0 && state.ended) {\n if (state.length === 0)\n endReadable(this);\n return null;\n }\n\n // All the actual chunk generation logic needs to be\n // *below* the call to _read. The reason is that in certain\n // synthetic stream cases, such as passthrough streams, _read\n // may be a completely synchronous operation which may change\n // the state of the read buffer, providing enough data when\n // before there was *not* enough.\n //\n // So, the steps are:\n // 1. Figure out what the state of things will be after we do\n // a read from the buffer.\n //\n // 2. If that resulting state will trigger a _read, then call _read.\n // Note that this may be asynchronous, or synchronous. Yes, it is\n // deeply ugly to write APIs this way, but that still doesn't mean\n // that the Readable class should behave improperly, as streams are\n // designed to be sync/async agnostic.\n // Take note if the _read call is sync or async (ie, if the read call\n // has returned yet), so that we know whether or not it's safe to emit\n // 'readable' etc.\n //\n // 3. Actually pull the requested chunks out of the buffer and return.\n\n // if we need a readable event, then we need to do some reading.\n var doRead = state.needReadable;\n debug('need readable', doRead);\n\n // if we currently have less than the highWaterMark, then also read some\n if (state.length === 0 || state.length - n < state.highWaterMark) {\n doRead = true;\n debug('length less than watermark', doRead);\n }\n\n // however, if we've ended, then there's no point, and if we're already\n // reading, then it's unnecessary.\n if (state.ended || state.reading) {\n doRead = false;\n debug('reading or ended', doRead);\n }\n\n if (doRead) {\n debug('do read');\n state.reading = true;\n state.sync = true;\n // if the length is currently zero, then we *need* a readable event.\n if (state.length === 0)\n state.needReadable = true;\n // call internal read method\n this._read(state.highWaterMark);\n state.sync = false;\n }\n\n // If _read pushed data synchronously, then `reading` will be false,\n // and we need to re-evaluate how much data we can return to the user.\n if (doRead && !state.reading)\n n = howMuchToRead(nOrig, state);\n\n var ret;\n if (n > 0)\n ret = fromList(n, state);\n else\n ret = null;\n\n if (ret === null) {\n state.needReadable = true;\n n = 0;\n }\n\n state.length -= n;\n\n // If we have nothing in the buffer, then we want to know\n // as soon as we *do* get something into the buffer.\n if (state.length === 0 && !state.ended)\n state.needReadable = true;\n\n // If we tried to read() past the EOF, then emit end on the next tick.\n if (nOrig !== n && state.ended && state.length === 0)\n endReadable(this);\n\n if (ret !== null)\n this.emit('data', ret);\n\n return ret;\n};\n\nfunction chunkInvalid(state, chunk) {\n var er = null;\n if (!(Buffer.isBuffer(chunk)) &&\n typeof chunk !== 'string' &&\n chunk !== null &&\n chunk !== undefined &&\n !state.objectMode) {\n er = new TypeError('Invalid non-string/buffer chunk');\n }\n return er;\n}\n\n\nfunction onEofChunk(stream, state) {\n if (state.ended) return;\n if (state.decoder) {\n var chunk = state.decoder.end();\n if (chunk && chunk.length) {\n state.buffer.push(chunk);\n state.length += state.objectMode ? 1 : chunk.length;\n }\n }\n state.ended = true;\n\n // emit 'readable' now to make sure it gets picked up.\n emitReadable(stream);\n}\n\n// Don't emit readable right away in sync mode, because this can trigger\n// another read() call => stack overflow. This way, it might trigger\n// a nextTick recursion warning, but that's not so bad.\nfunction emitReadable(stream) {\n var state = stream._readableState;\n state.needReadable = false;\n if (!state.emittedReadable) {\n debug('emitReadable', state.flowing);\n state.emittedReadable = true;\n if (state.sync)\n processNextTick(emitReadable_, stream);\n else\n emitReadable_(stream);\n }\n}\n\nfunction emitReadable_(stream) {\n debug('emit readable');\n stream.emit('readable');\n flow(stream);\n}\n\n\n// at this point, the user has presumably seen the 'readable' event,\n// and called read() to consume some data. that may have triggered\n// in turn another _read(n) call, in which case reading = true if\n// it's in progress.\n// However, if we're not ended, or reading, and the length < hwm,\n// then go ahead and try to read some more preemptively.\nfunction maybeReadMore(stream, state) {\n if (!state.readingMore) {\n state.readingMore = true;\n processNextTick(maybeReadMore_, stream, state);\n }\n}\n\nfunction maybeReadMore_(stream, state) {\n var len = state.length;\n while (!state.reading && !state.flowing && !state.ended &&\n state.length < state.highWaterMark) {\n debug('maybeReadMore read 0');\n stream.read(0);\n if (len === state.length)\n // didn't get any data, stop spinning.\n break;\n else\n len = state.length;\n }\n state.readingMore = false;\n}\n\n// abstract method. to be overridden in specific implementation classes.\n// call cb(er, data) where data is <= n in length.\n// for virtual (non-string, non-buffer) streams, \"length\" is somewhat\n// arbitrary, and perhaps not very meaningful.\nReadable.prototype._read = function(n) {\n this.emit('error', new Error('not implemented'));\n};\n\nReadable.prototype.pipe = function(dest, pipeOpts) {\n var src = this;\n var state = this._readableState;\n\n switch (state.pipesCount) {\n case 0:\n state.pipes = dest;\n break;\n case 1:\n state.pipes = [state.pipes, dest];\n break;\n default:\n state.pipes.push(dest);\n break;\n }\n state.pipesCount += 1;\n debug('pipe count=%d opts=%j', state.pipesCount, pipeOpts);\n\n var doEnd = (!pipeOpts || pipeOpts.end !== false) &&\n dest !== process.stdout &&\n dest !== process.stderr;\n\n var endFn = doEnd ? onend : cleanup;\n if (state.endEmitted)\n processNextTick(endFn);\n else\n src.once('end', endFn);\n\n dest.on('unpipe', onunpipe);\n function onunpipe(readable) {\n debug('onunpipe');\n if (readable === src) {\n cleanup();\n }\n }\n\n function onend() {\n debug('onend');\n dest.end();\n }\n\n // when the dest drains, it reduces the awaitDrain counter\n // on the source. This would be more elegant with a .once()\n // handler in flow(), but adding and removing repeatedly is\n // too slow.\n var ondrain = pipeOnDrain(src);\n dest.on('drain', ondrain);\n\n var cleanedUp = false;\n function cleanup() {\n debug('cleanup');\n // cleanup event handlers once the pipe is broken\n dest.removeListener('close', onclose);\n dest.removeListener('finish', onfinish);\n dest.removeListener('drain', ondrain);\n dest.removeListener('error', onerror);\n dest.removeListener('unpipe', onunpipe);\n src.removeListener('end', onend);\n src.removeListener('end', cleanup);\n src.removeListener('data', ondata);\n\n cleanedUp = true;\n\n // if the reader is waiting for a drain event from this\n // specific writer, then it would cause it to never start\n // flowing again.\n // So, if this is awaiting a drain, then we just call it now.\n // If we don't know, then assume that we are waiting for one.\n if (state.awaitDrain &&\n (!dest._writableState || dest._writableState.needDrain))\n ondrain();\n }\n\n src.on('data', ondata);\n function ondata(chunk) {\n debug('ondata');\n var ret = dest.write(chunk);\n if (false === ret) {\n // If the user unpiped during `dest.write()`, it is possible\n // to get stuck in a permanently paused state if that write\n // also returned false.\n if (state.pipesCount === 1 &&\n state.pipes[0] === dest &&\n src.listenerCount('data') === 1 &&\n !cleanedUp) {\n debug('false write response, pause', src._readableState.awaitDrain);\n src._readableState.awaitDrain++;\n }\n src.pause();\n }\n }\n\n // if the dest has an error, then stop piping into it.\n // however, don't suppress the throwing behavior for this.\n function onerror(er) {\n debug('onerror', er);\n unpipe();\n dest.removeListener('error', onerror);\n if (EElistenerCount(dest, 'error') === 0)\n dest.emit('error', er);\n }\n // This is a brutally ugly hack to make sure that our error handler\n // is attached before any userland ones. NEVER DO THIS.\n if (!dest._events || !dest._events.error)\n dest.on('error', onerror);\n else if (isArray(dest._events.error))\n dest._events.error.unshift(onerror);\n else\n dest._events.error = [onerror, dest._events.error];\n\n\n // Both close and finish should trigger unpipe, but only once.\n function onclose() {\n dest.removeListener('finish', onfinish);\n unpipe();\n }\n dest.once('close', onclose);\n function onfinish() {\n debug('onfinish');\n dest.removeListener('close', onclose);\n unpipe();\n }\n dest.once('finish', onfinish);\n\n function unpipe() {\n debug('unpipe');\n src.unpipe(dest);\n }\n\n // tell the dest that it's being piped to\n dest.emit('pipe', src);\n\n // start the flow if it hasn't been started already.\n if (!state.flowing) {\n debug('pipe resume');\n src.resume();\n }\n\n return dest;\n};\n\nfunction pipeOnDrain(src) {\n return function() {\n var state = src._readableState;\n debug('pipeOnDrain', state.awaitDrain);\n if (state.awaitDrain)\n state.awaitDrain--;\n if (state.awaitDrain === 0 && EElistenerCount(src, 'data')) {\n state.flowing = true;\n flow(src);\n }\n };\n}\n\n\nReadable.prototype.unpipe = function(dest) {\n var state = this._readableState;\n\n // if we're not piping anywhere, then do nothing.\n if (state.pipesCount === 0)\n return this;\n\n // just one destination. most common case.\n if (state.pipesCount === 1) {\n // passed in one, but it's not the right one.\n if (dest && dest !== state.pipes)\n return this;\n\n if (!dest)\n dest = state.pipes;\n\n // got a match.\n state.pipes = null;\n state.pipesCount = 0;\n state.flowing = false;\n if (dest)\n dest.emit('unpipe', this);\n return this;\n }\n\n // slow case. multiple pipe destinations.\n\n if (!dest) {\n // remove all.\n var dests = state.pipes;\n var len = state.pipesCount;\n state.pipes = null;\n state.pipesCount = 0;\n state.flowing = false;\n\n for (var i = 0; i < len; i++)\n dests[i].emit('unpipe', this);\n return this;\n }\n\n // try to find the right one.\n var i = indexOf(state.pipes, dest);\n if (i === -1)\n return this;\n\n state.pipes.splice(i, 1);\n state.pipesCount -= 1;\n if (state.pipesCount === 1)\n state.pipes = state.pipes[0];\n\n dest.emit('unpipe', this);\n\n return this;\n};\n\n// set up data events if they are asked for\n// Ensure readable listeners eventually get something\nReadable.prototype.on = function(ev, fn) {\n var res = Stream.prototype.on.call(this, ev, fn);\n\n // If listening to data, and it has not explicitly been paused,\n // then call resume to start the flow of data on the next tick.\n if (ev === 'data' && false !== this._readableState.flowing) {\n this.resume();\n }\n\n if (ev === 'readable' && this.readable) {\n var state = this._readableState;\n if (!state.readableListening) {\n state.readableListening = true;\n state.emittedReadable = false;\n state.needReadable = true;\n if (!state.reading) {\n processNextTick(nReadingNextTick, this);\n } else if (state.length) {\n emitReadable(this, state);\n }\n }\n }\n\n return res;\n};\nReadable.prototype.addListener = Readable.prototype.on;\n\nfunction nReadingNextTick(self) {\n debug('readable nexttick read 0');\n self.read(0);\n}\n\n// pause() and resume() are remnants of the legacy readable stream API\n// If the user uses them, then switch into old mode.\nReadable.prototype.resume = function() {\n var state = this._readableState;\n if (!state.flowing) {\n debug('resume');\n state.flowing = true;\n resume(this, state);\n }\n return this;\n};\n\nfunction resume(stream, state) {\n if (!state.resumeScheduled) {\n state.resumeScheduled = true;\n processNextTick(resume_, stream, state);\n }\n}\n\nfunction resume_(stream, state) {\n if (!state.reading) {\n debug('resume read 0');\n stream.read(0);\n }\n\n state.resumeScheduled = false;\n stream.emit('resume');\n flow(stream);\n if (state.flowing && !state.reading)\n stream.read(0);\n}\n\nReadable.prototype.pause = function() {\n debug('call pause flowing=%j', this._readableState.flowing);\n if (false !== this._readableState.flowing) {\n debug('pause');\n this._readableState.flowing = false;\n this.emit('pause');\n }\n return this;\n};\n\nfunction flow(stream) {\n var state = stream._readableState;\n debug('flow', state.flowing);\n if (state.flowing) {\n do {\n var chunk = stream.read();\n } while (null !== chunk && state.flowing);\n }\n}\n\n// wrap an old-style stream as the async data source.\n// This is *not* part of the readable stream interface.\n// It is an ugly unfortunate mess of history.\nReadable.prototype.wrap = function(stream) {\n var state = this._readableState;\n var paused = false;\n\n var self = this;\n stream.on('end', function() {\n debug('wrapped end');\n if (state.decoder && !state.ended) {\n var chunk = state.decoder.end();\n if (chunk && chunk.length)\n self.push(chunk);\n }\n\n self.push(null);\n });\n\n stream.on('data', function(chunk) {\n debug('wrapped data');\n if (state.decoder)\n chunk = state.decoder.write(chunk);\n\n // don't skip over falsy values in objectMode\n if (state.objectMode && (chunk === null || chunk === undefined))\n return;\n else if (!state.objectMode && (!chunk || !chunk.length))\n return;\n\n var ret = self.push(chunk);\n if (!ret) {\n paused = true;\n stream.pause();\n }\n });\n\n // proxy all the other methods.\n // important when wrapping filters and duplexes.\n for (var i in stream) {\n if (this[i] === undefined && typeof stream[i] === 'function') {\n this[i] = function(method) { return function() {\n return stream[method].apply(stream, arguments);\n }; }(i);\n }\n }\n\n // proxy certain important events.\n var events = ['error', 'close', 'destroy', 'pause', 'resume'];\n forEach(events, function(ev) {\n stream.on(ev, self.emit.bind(self, ev));\n });\n\n // when we try to consume some more bytes, simply unpause the\n // underlying stream.\n self._read = function(n) {\n debug('wrapped _read', n);\n if (paused) {\n paused = false;\n stream.resume();\n }\n };\n\n return self;\n};\n\n\n// exposed for testing purposes only.\nReadable._fromList = fromList;\n\n// Pluck off n bytes from an array of buffers.\n// Length is the combined lengths of all the buffers in the list.\nfunction fromList(n, state) {\n var list = state.buffer;\n var length = state.length;\n var stringMode = !!state.decoder;\n var objectMode = !!state.objectMode;\n var ret;\n\n // nothing in the list, definitely empty.\n if (list.length === 0)\n return null;\n\n if (length === 0)\n ret = null;\n else if (objectMode)\n ret = list.shift();\n else if (!n || n >= length) {\n // read it all, truncate the array.\n if (stringMode)\n ret = list.join('');\n else if (list.length === 1)\n ret = list[0];\n else\n ret = Buffer.concat(list, length);\n list.length = 0;\n } else {\n // read just some of it.\n if (n < list[0].length) {\n // just take a part of the first list item.\n // slice is the same for buffers and strings.\n var buf = list[0];\n ret = buf.slice(0, n);\n list[0] = buf.slice(n);\n } else if (n === list[0].length) {\n // first list is a perfect match\n ret = list.shift();\n } else {\n // complex case.\n // we have enough to cover it, but it spans past the first buffer.\n if (stringMode)\n ret = '';\n else\n ret = new Buffer(n);\n\n var c = 0;\n for (var i = 0, l = list.length; i < l && c < n; i++) {\n var buf = list[0];\n var cpy = Math.min(n - c, buf.length);\n\n if (stringMode)\n ret += buf.slice(0, cpy);\n else\n buf.copy(ret, c, 0, cpy);\n\n if (cpy < buf.length)\n list[0] = buf.slice(cpy);\n else\n list.shift();\n\n c += cpy;\n }\n }\n }\n\n return ret;\n}\n\nfunction endReadable(stream) {\n var state = stream._readableState;\n\n // If we get here before consuming all the bytes, then that is a\n // bug in node. Should never happen.\n if (state.length > 0)\n throw new Error('endReadable called on non-empty stream');\n\n if (!state.endEmitted) {\n state.ended = true;\n processNextTick(endReadableNT, state, stream);\n }\n}\n\nfunction endReadableNT(state, stream) {\n // Check that we didn't get one last unshift.\n if (!state.endEmitted && state.length === 0) {\n state.endEmitted = true;\n stream.readable = false;\n stream.emit('end');\n }\n}\n\nfunction forEach (xs, f) {\n for (var i = 0, l = xs.length; i < l; i++) {\n f(xs[i], i);\n }\n}\n\nfunction indexOf (xs, x) {\n for (var i = 0, l = xs.length; i < l; i++) {\n if (xs[i] === x) return i;\n }\n return -1;\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(83)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/~/duplexify/~/readable-stream/lib/_stream_readable.js\n ** module id = 329\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/~/duplexify/~/readable-stream/lib/_stream_readable.js?"); + eval("var Sandwich = __webpack_require__(330).SandwichStream\nvar stream = __webpack_require__(98)\nvar inherits = __webpack_require__(96)\n\nvar CRNL = '\\r\\n'\n\nmodule.exports = Multipart\n\n/**\n * Multipart request constructor.\n * @constructor\n * @param {object} [opts]\n * @param {string} [opts.boundary] - The boundary to be used. If omitted one is generated.\n * @returns {function} Returns the multipart stream.\n */\nfunction Multipart(boundary) {\n\tif(!this instanceof Multipart) {\n\t\treturn new Multipart(boundary)\n\t}\n\n\tthis.boundary = boundary || Math.random().toString(36).slice(2)\n\n\tSandwich.call(this, {\n\t\thead: '--' + this.boundary + CRNL,\n\t\ttail: CRNL + '--' + this.boundary + '--',\n\t\tseparator: CRNL + '--' + this.boundary + CRNL\n\t})\n\n\tthis._add = this.add\n\tthis.add = this.addPart\n}\n\ninherits(Multipart, Sandwich)\n\n/**\n * Adds a new part to the request.\n * @param {object} [part={}]\n * @param {object} [part.headers={}]\n * @param {string|buffer|stream} [part.body=\\r\\n]\n * @returns {function} Returns the multipart stream.\n */\nMultipart.prototype.addPart = function(part) {\n\tpart = part || {}\n\tvar partStream = new stream.PassThrough()\n\n\tif(part.headers) {\n\t\tfor(var key in part.headers) {\n\t\t\tvar header = part.headers[key]\n\t\t\tpartStream.write(key + ': ' + header + CRNL)\n\t\t}\n\t}\n\n\tpartStream.write(CRNL)\n\n\tif(part.body instanceof stream.Stream) {\n\t\tpart.body.pipe(partStream)\n\t} else {\n\t\tpartStream.end(part.body)\n\t}\n\n\tthis._add(partStream)\n}\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/multipart-stream/index.js\n ** module id = 329\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/multipart-stream/index.js?"); /***/ }, /* 330 */ /***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(process) {'use strict';\n\nif (!process.version ||\n process.version.indexOf('v0.') === 0 ||\n process.version.indexOf('v1.') === 0 && process.version.indexOf('v1.8.') !== 0) {\n module.exports = nextTick;\n} else {\n module.exports = process.nextTick;\n}\n\nfunction nextTick(fn) {\n var args = new Array(arguments.length - 1);\n var i = 0;\n while (i < args.length) {\n args[i++] = arguments[i];\n }\n process.nextTick(function afterTick() {\n fn.apply(null, args);\n });\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(83)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/~/duplexify/~/readable-stream/~/process-nextick-args/index.js\n ** module id = 330\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/~/duplexify/~/readable-stream/~/process-nextick-args/index.js?"); + eval("var Readable = __webpack_require__(98).Readable;\nvar PassThrough = __webpack_require__(98).PassThrough;\n\nfunction SandwichStream(options) {\n Readable.call(this, options);\n options = options || {};\n this._streamsActive = false;\n this._streamsAdded = false;\n this._streams = [];\n this._currentStream = undefined;\n this._errorsEmitted = false;\n\n if (options.head) {\n this._head = options.head;\n }\n if (options.tail) {\n this._tail = options.tail;\n }\n if (options.separator) {\n this._separator = options.separator;\n }\n}\n\nSandwichStream.prototype = Object.create(Readable.prototype, {\n constructor: SandwichStream\n});\n\nSandwichStream.prototype._read = function () {\n if (!this._streamsActive) {\n this._streamsActive = true;\n this._pushHead();\n this._streamNextStream();\n }\n};\n\nSandwichStream.prototype.add = function (newStream) {\n if (!this._streamsActive) {\n this._streamsAdded = true;\n this._streams.push(newStream);\n newStream.on('error', this._substreamOnError.bind(this));\n }\n else {\n throw new Error('SandwichStream error adding new stream while streaming');\n }\n};\n\nSandwichStream.prototype._substreamOnError = function (error) {\n this._errorsEmitted = true;\n this.emit('error', error);\n};\n\nSandwichStream.prototype._pushHead = function () {\n if (this._head) {\n this.push(this._head);\n }\n};\n\nSandwichStream.prototype._streamNextStream = function () {\n if (this._nextStream()) {\n this._bindCurrentStreamEvents();\n }\n else {\n this._pushTail();\n this.push(null);\n }\n};\n\nSandwichStream.prototype._nextStream = function () {\n this._currentStream = this._streams.shift();\n return this._currentStream !== undefined;\n};\n\nSandwichStream.prototype._bindCurrentStreamEvents = function () {\n this._currentStream.on('readable', this._currentStreamOnReadable.bind(this));\n this._currentStream.on('end', this._currentStreamOnEnd.bind(this));\n};\n\nSandwichStream.prototype._currentStreamOnReadable = function () {\n this.push(this._currentStream.read() || '');\n};\n\nSandwichStream.prototype._currentStreamOnEnd = function () {\n this._pushSeparator();\n this._streamNextStream();\n};\n\nSandwichStream.prototype._pushSeparator = function () {\n if (this._streams.length > 0 && this._separator) {\n this.push(this._separator);\n }\n};\n\nSandwichStream.prototype._pushTail = function () {\n if (this._tail) {\n this.push(this._tail);\n }\n};\n\nfunction sandwichStream(options) {\n var stream = new SandwichStream(options);\n return stream;\n}\n\nsandwichStream.SandwichStream = SandwichStream;\n\nmodule.exports = sandwichStream;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/sandwich-stream/lib/sandwich-stream.js\n ** module id = 330\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/sandwich-stream/lib/sandwich-stream.js?"); /***/ }, /* 331 */ /***/ function(module, exports) { - eval("module.exports = Array.isArray || function (arr) {\n return Object.prototype.toString.call(arr) == '[object Array]';\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/~/duplexify/~/readable-stream/~/isarray/index.js\n ** module id = 331\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/~/duplexify/~/readable-stream/~/isarray/index.js?"); + eval("var x = module.exports = {}\nx.randomString = randomString\nx.cleanPath = cleanPath\n\nfunction randomString () {\n return Math.random().toString(36).slice(2) +\n Math.random().toString(36).slice(2) +\n Math.random().toString(36).slice(2) +\n Math.random().toString(36).slice(2)\n}\n\nfunction cleanPath(path, base) {\n if (!path) return ''\n if (!base) return path\n\n if (base[base.length-1] != '/') {\n base += \"/\"\n }\n\n // remove base from path\n path = path.replace(base, '')\n path = path.replace(/[\\/]+/g, '/')\n return path\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-multipart-stream/common.js\n ** module id = 331\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-multipart-stream/common.js?"); /***/ }, /* 332 */ /***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(Buffer) {// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// NOTE: These type checking functions intentionally don't use `instanceof`\n// because it is fragile and can be easily faked with `Object.create()`.\n\nfunction isArray(arg) {\n if (Array.isArray) {\n return Array.isArray(arg);\n }\n return objectToString(arg) === '[object Array]';\n}\nexports.isArray = isArray;\n\nfunction isBoolean(arg) {\n return typeof arg === 'boolean';\n}\nexports.isBoolean = isBoolean;\n\nfunction isNull(arg) {\n return arg === null;\n}\nexports.isNull = isNull;\n\nfunction isNullOrUndefined(arg) {\n return arg == null;\n}\nexports.isNullOrUndefined = isNullOrUndefined;\n\nfunction isNumber(arg) {\n return typeof arg === 'number';\n}\nexports.isNumber = isNumber;\n\nfunction isString(arg) {\n return typeof arg === 'string';\n}\nexports.isString = isString;\n\nfunction isSymbol(arg) {\n return typeof arg === 'symbol';\n}\nexports.isSymbol = isSymbol;\n\nfunction isUndefined(arg) {\n return arg === void 0;\n}\nexports.isUndefined = isUndefined;\n\nfunction isRegExp(re) {\n return objectToString(re) === '[object RegExp]';\n}\nexports.isRegExp = isRegExp;\n\nfunction isObject(arg) {\n return typeof arg === 'object' && arg !== null;\n}\nexports.isObject = isObject;\n\nfunction isDate(d) {\n return objectToString(d) === '[object Date]';\n}\nexports.isDate = isDate;\n\nfunction isError(e) {\n return (objectToString(e) === '[object Error]' || e instanceof Error);\n}\nexports.isError = isError;\n\nfunction isFunction(arg) {\n return typeof arg === 'function';\n}\nexports.isFunction = isFunction;\n\nfunction isPrimitive(arg) {\n return arg === null ||\n typeof arg === 'boolean' ||\n typeof arg === 'number' ||\n typeof arg === 'string' ||\n typeof arg === 'symbol' || // ES6 symbol\n typeof arg === 'undefined';\n}\nexports.isPrimitive = isPrimitive;\n\nexports.isBuffer = Buffer.isBuffer;\n\nfunction objectToString(o) {\n return Object.prototype.toString.call(o);\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1).Buffer))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/~/duplexify/~/readable-stream/~/core-util-is/lib/util.js\n ** module id = 332\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/~/duplexify/~/readable-stream/~/core-util-is/lib/util.js?"); + eval("var Multipart = __webpack_require__(329)\nvar duplexify = __webpack_require__(294)\nvar stream = __webpack_require__(98)\nvar Path = __webpack_require__(149)\nvar collect = __webpack_require__(333)\nvar common = __webpack_require__(331)\nvar randomString = common.randomString\n\nmodule.exports = v2mpTree\n\n// we'll create three streams:\n// - w: a writable stream. it receives vinyl files\n// - mps: a multipart stream in between.\n// - r: a readable stream. it outputs text. needed to\n// give the caller something, while w finishes.\n//\n// we do all processing on the incoming vinyl metadata\n// before we transform to multipart, that's becasue we\n// need a complete view of the filesystem. (/ the code\n// i lifted did that and it's convoluted enough not to\n// want to change it...)\nfunction v2mpTree(opts) {\n opts = opts || {}\n opts.boundary = opts.boundary || randomString()\n\n var r = new stream.PassThrough({objectMode: true})\n var w = new stream.PassThrough({objectMode: true})\n var out = duplexify.obj(w, r)\n out.boundary = opts.boundary\n\n collect(w, function(err, files) {\n if (err) {\n r.emit('error', err)\n return\n }\n\n try {\n // construct the multipart streams from these files\n var mp = streamForCollection(opts.boundary, files)\n\n // let the user know what the content-type header is.\n // this is because multipart is such a grossly defined protocol :(\n out.multipartHdr = \"Content-Type: multipart/mixed; boundary=\" + mp.boundary\n if (opts.writeHeader) {\n r.write(out.multipartHdr + \"\\r\\n\")\n r.write(\"\\r\\n\")\n }\n\n // now we pipe the multipart stream to\n // the readable thing we returned.\n // now the user will start receiving data.\n mp.pipe(r)\n } catch (e) {\n r.emit('error', e)\n }\n })\n\n return out\n}\n\nfunction streamForCollection(boundary, files) {\n var parts = []\n\n // walk through all the named files in order.\n files.paths.sort()\n for (var i = 0; i < files.paths.length; i++) {\n var n = files.paths[i]\n var s = streamForPath(files, n)\n if (!s) continue // already processed.\n parts.push({ body: s, headers: headersForFile(files.named[n])})\n }\n\n // then add all the unnamed files.\n for (var i = 0; i < files.unnamed.length; i++) {\n var f = files.unnamed[i] // raw vinyl files.\n var s = streamForWrapped(files, f)\n if (!s) continue // already processed.\n parts.push({ body: s, headers: headersForFile(f)})\n }\n\n if (parts.length == 0) { // avoid multipart bug.\n var s = streamForString(\"--\" + boundary + \"--\\r\\n\") // close multipart.\n s.boundary = boundary\n return s\n }\n\n // write out multipart.\n var mp = new Multipart(boundary)\n for (var i = 0; i < parts.length; i++) {\n mp.addPart(parts[i])\n }\n return mp\n}\n\nfunction streamForString(str) {\n var s = new stream.PassThrough()\n s.end(str)\n return s\n}\n\nfunction streamForPath(files, path) {\n var o = files.named[path]\n if (!o) {\n throw new Error(\"no object for path. lib error.\")\n }\n\n if (!o.file) { // no vinyl file, so no need to process this one.\n return\n }\n\n // avoid processing twice.\n if (o.done) return null // already processed it\n o.done = true // mark it as already processed.\n\n return streamForWrapped(files, o)\n}\n\nfunction streamForWrapped(files, f) {\n if (f.file.isDirectory()) {\n return multipartForDir(files, f)\n }\n\n // stream for a file\n return f.file.contents\n}\n\nfunction multipartForDir(files, dir) {\n // we still write the boundary for the headers\n dir.boundary = randomString()\n\n if (!dir.children || dir.children.length < 1) {\n // we have to intercept this here and return an empty stream.\n // because multipart lib fails if there are no parts. see\n // https://github.com/hendrikcech/multipart-stream/issues/1\n return streamForString(\"--\" + dir.boundary + \"--\\r\\n\") // close multipart.\n }\n\n var mp = new Multipart(dir.boundary)\n for (var i = 0; i < dir.children.length; i++) {\n var child = dir.children[i]\n if (!child.file) {\n throw new Error(\"child has no file. lib error\")\n }\n\n var s = streamForPath(files, child.file.path)\n mp.addPart({ body: s, headers: headersForFile(child) })\n }\n return mp\n}\n\nfunction headersForFile(o) {\n var fpath = common.cleanPath(o.file.path, o.file.base)\n\n var h = {}\n h['Content-Disposition'] = 'file; filename=\"' + fpath + '\"'\n\n if (o.file.isDirectory()) {\n h['Content-Type'] = 'multipart/mixed; boundary=' + o.boundary\n } else {\n h['Content-Type'] = 'application/octet-stream'\n }\n\n return h\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-multipart-stream/mp2v_tree.js\n ** module id = 332\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-multipart-stream/mp2v_tree.js?"); /***/ }, /* 333 */ -/***/ function(module, exports) { - - eval("if (typeof Object.create === 'function') {\n // implementation from standard node.js 'util' module\n module.exports = function inherits(ctor, superCtor) {\n ctor.super_ = superCtor\n ctor.prototype = Object.create(superCtor.prototype, {\n constructor: {\n value: ctor,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n };\n} else {\n // old school shim for old browsers\n module.exports = function inherits(ctor, superCtor) {\n ctor.super_ = superCtor\n var TempCtor = function () {}\n TempCtor.prototype = superCtor.prototype\n ctor.prototype = new TempCtor()\n ctor.prototype.constructor = ctor\n }\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/~/duplexify/~/readable-stream/~/inherits/inherits_browser.js\n ** module id = 333\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/~/duplexify/~/readable-stream/~/inherits/inherits_browser.js?"); - -/***/ }, -/* 334 */ -/***/ function(module, exports) { - - eval("/* (ignored) */\n\n/*****************\n ** WEBPACK FOOTER\n ** util (ignored)\n ** module id = 334\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///util_(ignored)?"); - -/***/ }, -/* 335 */ -/***/ function(module, exports, __webpack_require__) { - - eval("// a duplex stream is just a stream that is both readable and writable.\n// Since JS doesn't have multiple prototypal inheritance, this class\n// prototypally inherits from Readable, and then parasitically from\n// Writable.\n\n'use strict';\n\n/**/\nvar objectKeys = Object.keys || function (obj) {\n var keys = [];\n for (var key in obj) keys.push(key);\n return keys;\n}\n/**/\n\n\nmodule.exports = Duplex;\n\n/**/\nvar processNextTick = __webpack_require__(330);\n/**/\n\n\n\n/**/\nvar util = __webpack_require__(332);\nutil.inherits = __webpack_require__(333);\n/**/\n\nvar Readable = __webpack_require__(329);\nvar Writable = __webpack_require__(336);\n\nutil.inherits(Duplex, Readable);\n\nvar keys = objectKeys(Writable.prototype);\nfor (var v = 0; v < keys.length; v++) {\n var method = keys[v];\n if (!Duplex.prototype[method])\n Duplex.prototype[method] = Writable.prototype[method];\n}\n\nfunction Duplex(options) {\n if (!(this instanceof Duplex))\n return new Duplex(options);\n\n Readable.call(this, options);\n Writable.call(this, options);\n\n if (options && options.readable === false)\n this.readable = false;\n\n if (options && options.writable === false)\n this.writable = false;\n\n this.allowHalfOpen = true;\n if (options && options.allowHalfOpen === false)\n this.allowHalfOpen = false;\n\n this.once('end', onend);\n}\n\n// the no-half-open enforcer\nfunction onend() {\n // if we allow half-open state, or if the writable side ended,\n // then we're ok.\n if (this.allowHalfOpen || this._writableState.ended)\n return;\n\n // no more data can be written.\n // But allow more writes to happen in this tick.\n processNextTick(onEndNT, this);\n}\n\nfunction onEndNT(self) {\n self.end();\n}\n\nfunction forEach (xs, f) {\n for (var i = 0, l = xs.length; i < l; i++) {\n f(xs[i], i);\n }\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/~/duplexify/~/readable-stream/lib/_stream_duplex.js\n ** module id = 335\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/~/duplexify/~/readable-stream/lib/_stream_duplex.js?"); - -/***/ }, -/* 336 */ -/***/ function(module, exports, __webpack_require__) { - - eval("// A bit simpler than readable streams.\n// Implement an async ._write(chunk, encoding, cb), and it'll handle all\n// the drain event emission and buffering.\n\n'use strict';\n\nmodule.exports = Writable;\n\n/**/\nvar processNextTick = __webpack_require__(330);\n/**/\n\n\n/**/\nvar Buffer = __webpack_require__(1).Buffer;\n/**/\n\nWritable.WritableState = WritableState;\n\n\n/**/\nvar util = __webpack_require__(332);\nutil.inherits = __webpack_require__(333);\n/**/\n\n\n/**/\nvar internalUtil = {\n deprecate: __webpack_require__(337)\n};\n/**/\n\n\n\n/**/\nvar Stream;\n(function (){try{\n Stream = __webpack_require__(96);\n}catch(_){}finally{\n if (!Stream)\n Stream = __webpack_require__(84).EventEmitter;\n}}())\n/**/\n\nvar Buffer = __webpack_require__(1).Buffer;\n\nutil.inherits(Writable, Stream);\n\nfunction nop() {}\n\nfunction WriteReq(chunk, encoding, cb) {\n this.chunk = chunk;\n this.encoding = encoding;\n this.callback = cb;\n this.next = null;\n}\n\nvar Duplex;\nfunction WritableState(options, stream) {\n Duplex = Duplex || __webpack_require__(335);\n\n options = options || {};\n\n // object stream flag to indicate whether or not this stream\n // contains buffers or objects.\n this.objectMode = !!options.objectMode;\n\n if (stream instanceof Duplex)\n this.objectMode = this.objectMode || !!options.writableObjectMode;\n\n // the point at which write() starts returning false\n // Note: 0 is a valid value, means that we always return false if\n // the entire buffer is not flushed immediately on write()\n var hwm = options.highWaterMark;\n var defaultHwm = this.objectMode ? 16 : 16 * 1024;\n this.highWaterMark = (hwm || hwm === 0) ? hwm : defaultHwm;\n\n // cast to ints.\n this.highWaterMark = ~~this.highWaterMark;\n\n this.needDrain = false;\n // at the start of calling end()\n this.ending = false;\n // when end() has been called, and returned\n this.ended = false;\n // when 'finish' is emitted\n this.finished = false;\n\n // should we decode strings into buffers before passing to _write?\n // this is here so that some node-core streams can optimize string\n // handling at a lower level.\n var noDecode = options.decodeStrings === false;\n this.decodeStrings = !noDecode;\n\n // Crypto is kind of old and crusty. Historically, its default string\n // encoding is 'binary' so we have to make this configurable.\n // Everything else in the universe uses 'utf8', though.\n this.defaultEncoding = options.defaultEncoding || 'utf8';\n\n // not an actual buffer we keep track of, but a measurement\n // of how much we're waiting to get pushed to some underlying\n // socket or file.\n this.length = 0;\n\n // a flag to see when we're in the middle of a write.\n this.writing = false;\n\n // when true all writes will be buffered until .uncork() call\n this.corked = 0;\n\n // a flag to be able to tell if the onwrite cb is called immediately,\n // or on a later tick. We set this to true at first, because any\n // actions that shouldn't happen until \"later\" should generally also\n // not happen before the first write call.\n this.sync = true;\n\n // a flag to know if we're processing previously buffered items, which\n // may call the _write() callback in the same tick, so that we don't\n // end up in an overlapped onwrite situation.\n this.bufferProcessing = false;\n\n // the callback that's passed to _write(chunk,cb)\n this.onwrite = function(er) {\n onwrite(stream, er);\n };\n\n // the callback that the user supplies to write(chunk,encoding,cb)\n this.writecb = null;\n\n // the amount that is being written when _write is called.\n this.writelen = 0;\n\n this.bufferedRequest = null;\n this.lastBufferedRequest = null;\n\n // number of pending user-supplied write callbacks\n // this must be 0 before 'finish' can be emitted\n this.pendingcb = 0;\n\n // emit prefinish if the only thing we're waiting for is _write cbs\n // This is relevant for synchronous Transform streams\n this.prefinished = false;\n\n // True if the error was already emitted and should not be thrown again\n this.errorEmitted = false;\n}\n\nWritableState.prototype.getBuffer = function writableStateGetBuffer() {\n var current = this.bufferedRequest;\n var out = [];\n while (current) {\n out.push(current);\n current = current.next;\n }\n return out;\n};\n\n(function (){try {\nObject.defineProperty(WritableState.prototype, 'buffer', {\n get: internalUtil.deprecate(function() {\n return this.getBuffer();\n }, '_writableState.buffer is deprecated. Use _writableState.getBuffer ' +\n 'instead.')\n});\n}catch(_){}}());\n\n\nvar Duplex;\nfunction Writable(options) {\n Duplex = Duplex || __webpack_require__(335);\n\n // Writable ctor is applied to Duplexes, though they're not\n // instanceof Writable, they're instanceof Readable.\n if (!(this instanceof Writable) && !(this instanceof Duplex))\n return new Writable(options);\n\n this._writableState = new WritableState(options, this);\n\n // legacy.\n this.writable = true;\n\n if (options) {\n if (typeof options.write === 'function')\n this._write = options.write;\n\n if (typeof options.writev === 'function')\n this._writev = options.writev;\n }\n\n Stream.call(this);\n}\n\n// Otherwise people can pipe Writable streams, which is just wrong.\nWritable.prototype.pipe = function() {\n this.emit('error', new Error('Cannot pipe. Not readable.'));\n};\n\n\nfunction writeAfterEnd(stream, cb) {\n var er = new Error('write after end');\n // TODO: defer error events consistently everywhere, not just the cb\n stream.emit('error', er);\n processNextTick(cb, er);\n}\n\n// If we get something that is not a buffer, string, null, or undefined,\n// and we're not in objectMode, then that's an error.\n// Otherwise stream chunks are all considered to be of length=1, and the\n// watermarks determine how many objects to keep in the buffer, rather than\n// how many bytes or characters.\nfunction validChunk(stream, state, chunk, cb) {\n var valid = true;\n\n if (!(Buffer.isBuffer(chunk)) &&\n typeof chunk !== 'string' &&\n chunk !== null &&\n chunk !== undefined &&\n !state.objectMode) {\n var er = new TypeError('Invalid non-string/buffer chunk');\n stream.emit('error', er);\n processNextTick(cb, er);\n valid = false;\n }\n return valid;\n}\n\nWritable.prototype.write = function(chunk, encoding, cb) {\n var state = this._writableState;\n var ret = false;\n\n if (typeof encoding === 'function') {\n cb = encoding;\n encoding = null;\n }\n\n if (Buffer.isBuffer(chunk))\n encoding = 'buffer';\n else if (!encoding)\n encoding = state.defaultEncoding;\n\n if (typeof cb !== 'function')\n cb = nop;\n\n if (state.ended)\n writeAfterEnd(this, cb);\n else if (validChunk(this, state, chunk, cb)) {\n state.pendingcb++;\n ret = writeOrBuffer(this, state, chunk, encoding, cb);\n }\n\n return ret;\n};\n\nWritable.prototype.cork = function() {\n var state = this._writableState;\n\n state.corked++;\n};\n\nWritable.prototype.uncork = function() {\n var state = this._writableState;\n\n if (state.corked) {\n state.corked--;\n\n if (!state.writing &&\n !state.corked &&\n !state.finished &&\n !state.bufferProcessing &&\n state.bufferedRequest)\n clearBuffer(this, state);\n }\n};\n\nWritable.prototype.setDefaultEncoding = function setDefaultEncoding(encoding) {\n // node::ParseEncoding() requires lower case.\n if (typeof encoding === 'string')\n encoding = encoding.toLowerCase();\n if (!(['hex', 'utf8', 'utf-8', 'ascii', 'binary', 'base64',\n'ucs2', 'ucs-2','utf16le', 'utf-16le', 'raw']\n.indexOf((encoding + '').toLowerCase()) > -1))\n throw new TypeError('Unknown encoding: ' + encoding);\n this._writableState.defaultEncoding = encoding;\n};\n\nfunction decodeChunk(state, chunk, encoding) {\n if (!state.objectMode &&\n state.decodeStrings !== false &&\n typeof chunk === 'string') {\n chunk = new Buffer(chunk, encoding);\n }\n return chunk;\n}\n\n// if we're already writing something, then just put this\n// in the queue, and wait our turn. Otherwise, call _write\n// If we return false, then we need a drain event, so set that flag.\nfunction writeOrBuffer(stream, state, chunk, encoding, cb) {\n chunk = decodeChunk(state, chunk, encoding);\n\n if (Buffer.isBuffer(chunk))\n encoding = 'buffer';\n var len = state.objectMode ? 1 : chunk.length;\n\n state.length += len;\n\n var ret = state.length < state.highWaterMark;\n // we must ensure that previous needDrain will not be reset to false.\n if (!ret)\n state.needDrain = true;\n\n if (state.writing || state.corked) {\n var last = state.lastBufferedRequest;\n state.lastBufferedRequest = new WriteReq(chunk, encoding, cb);\n if (last) {\n last.next = state.lastBufferedRequest;\n } else {\n state.bufferedRequest = state.lastBufferedRequest;\n }\n } else {\n doWrite(stream, state, false, len, chunk, encoding, cb);\n }\n\n return ret;\n}\n\nfunction doWrite(stream, state, writev, len, chunk, encoding, cb) {\n state.writelen = len;\n state.writecb = cb;\n state.writing = true;\n state.sync = true;\n if (writev)\n stream._writev(chunk, state.onwrite);\n else\n stream._write(chunk, encoding, state.onwrite);\n state.sync = false;\n}\n\nfunction onwriteError(stream, state, sync, er, cb) {\n --state.pendingcb;\n if (sync)\n processNextTick(cb, er);\n else\n cb(er);\n\n stream._writableState.errorEmitted = true;\n stream.emit('error', er);\n}\n\nfunction onwriteStateUpdate(state) {\n state.writing = false;\n state.writecb = null;\n state.length -= state.writelen;\n state.writelen = 0;\n}\n\nfunction onwrite(stream, er) {\n var state = stream._writableState;\n var sync = state.sync;\n var cb = state.writecb;\n\n onwriteStateUpdate(state);\n\n if (er)\n onwriteError(stream, state, sync, er, cb);\n else {\n // Check if we're actually ready to finish, but don't emit yet\n var finished = needFinish(state);\n\n if (!finished &&\n !state.corked &&\n !state.bufferProcessing &&\n state.bufferedRequest) {\n clearBuffer(stream, state);\n }\n\n if (sync) {\n processNextTick(afterWrite, stream, state, finished, cb);\n } else {\n afterWrite(stream, state, finished, cb);\n }\n }\n}\n\nfunction afterWrite(stream, state, finished, cb) {\n if (!finished)\n onwriteDrain(stream, state);\n state.pendingcb--;\n cb();\n finishMaybe(stream, state);\n}\n\n// Must force callback to be called on nextTick, so that we don't\n// emit 'drain' before the write() consumer gets the 'false' return\n// value, and has a chance to attach a 'drain' listener.\nfunction onwriteDrain(stream, state) {\n if (state.length === 0 && state.needDrain) {\n state.needDrain = false;\n stream.emit('drain');\n }\n}\n\n\n// if there's something in the buffer waiting, then process it\nfunction clearBuffer(stream, state) {\n state.bufferProcessing = true;\n var entry = state.bufferedRequest;\n\n if (stream._writev && entry && entry.next) {\n // Fast case, write everything using _writev()\n var buffer = [];\n var cbs = [];\n while (entry) {\n cbs.push(entry.callback);\n buffer.push(entry);\n entry = entry.next;\n }\n\n // count the one we are adding, as well.\n // TODO(isaacs) clean this up\n state.pendingcb++;\n state.lastBufferedRequest = null;\n doWrite(stream, state, true, state.length, buffer, '', function(err) {\n for (var i = 0; i < cbs.length; i++) {\n state.pendingcb--;\n cbs[i](err);\n }\n });\n\n // Clear buffer\n } else {\n // Slow case, write chunks one-by-one\n while (entry) {\n var chunk = entry.chunk;\n var encoding = entry.encoding;\n var cb = entry.callback;\n var len = state.objectMode ? 1 : chunk.length;\n\n doWrite(stream, state, false, len, chunk, encoding, cb);\n entry = entry.next;\n // if we didn't call the onwrite immediately, then\n // it means that we need to wait until it does.\n // also, that means that the chunk and cb are currently\n // being processed, so move the buffer counter past them.\n if (state.writing) {\n break;\n }\n }\n\n if (entry === null)\n state.lastBufferedRequest = null;\n }\n state.bufferedRequest = entry;\n state.bufferProcessing = false;\n}\n\nWritable.prototype._write = function(chunk, encoding, cb) {\n cb(new Error('not implemented'));\n};\n\nWritable.prototype._writev = null;\n\nWritable.prototype.end = function(chunk, encoding, cb) {\n var state = this._writableState;\n\n if (typeof chunk === 'function') {\n cb = chunk;\n chunk = null;\n encoding = null;\n } else if (typeof encoding === 'function') {\n cb = encoding;\n encoding = null;\n }\n\n if (chunk !== null && chunk !== undefined)\n this.write(chunk, encoding);\n\n // .end() fully uncorks\n if (state.corked) {\n state.corked = 1;\n this.uncork();\n }\n\n // ignore unnecessary end() calls.\n if (!state.ending && !state.finished)\n endWritable(this, state, cb);\n};\n\n\nfunction needFinish(state) {\n return (state.ending &&\n state.length === 0 &&\n state.bufferedRequest === null &&\n !state.finished &&\n !state.writing);\n}\n\nfunction prefinish(stream, state) {\n if (!state.prefinished) {\n state.prefinished = true;\n stream.emit('prefinish');\n }\n}\n\nfunction finishMaybe(stream, state) {\n var need = needFinish(state);\n if (need) {\n if (state.pendingcb === 0) {\n prefinish(stream, state);\n state.finished = true;\n stream.emit('finish');\n } else {\n prefinish(stream, state);\n }\n }\n return need;\n}\n\nfunction endWritable(stream, state, cb) {\n state.ending = true;\n finishMaybe(stream, state);\n if (cb) {\n if (state.finished)\n processNextTick(cb);\n else\n stream.once('finish', cb);\n }\n state.ended = true;\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/~/duplexify/~/readable-stream/lib/_stream_writable.js\n ** module id = 336\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/~/duplexify/~/readable-stream/lib/_stream_writable.js?"); - -/***/ }, -/* 337 */ -/***/ function(module, exports) { - - eval("/* WEBPACK VAR INJECTION */(function(global) {\n/**\n * Module exports.\n */\n\nmodule.exports = deprecate;\n\n/**\n * Mark that a method should not be used.\n * Returns a modified function which warns once by default.\n *\n * If `localStorage.noDeprecation = true` is set, then it is a no-op.\n *\n * If `localStorage.throwDeprecation = true` is set, then deprecated functions\n * will throw an Error when invoked.\n *\n * If `localStorage.traceDeprecation = true` is set, then deprecated functions\n * will invoke `console.trace()` instead of `console.error()`.\n *\n * @param {Function} fn - the function to deprecate\n * @param {String} msg - the string to print to the console when `fn` is invoked\n * @returns {Function} a new \"deprecated\" version of `fn`\n * @api public\n */\n\nfunction deprecate (fn, msg) {\n if (config('noDeprecation')) {\n return fn;\n }\n\n var warned = false;\n function deprecated() {\n if (!warned) {\n if (config('throwDeprecation')) {\n throw new Error(msg);\n } else if (config('traceDeprecation')) {\n console.trace(msg);\n } else {\n console.warn(msg);\n }\n warned = true;\n }\n return fn.apply(this, arguments);\n }\n\n return deprecated;\n}\n\n/**\n * Checks `localStorage` for boolean values for the given `name`.\n *\n * @param {String} name\n * @returns {Boolean}\n * @api private\n */\n\nfunction config (name) {\n // accessing global.localStorage can trigger a DOMException in sandboxed iframes\n try {\n if (!global.localStorage) return false;\n } catch (_) {\n return false;\n }\n var val = global.localStorage[name];\n if (null == val) return false;\n return String(val).toLowerCase() === 'true';\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/~/duplexify/~/readable-stream/~/util-deprecate/browser.js\n ** module id = 337\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/~/duplexify/~/readable-stream/~/util-deprecate/browser.js?"); - -/***/ }, -/* 338 */ -/***/ function(module, exports, __webpack_require__) { - - eval("// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nvar Buffer = __webpack_require__(1).Buffer;\n\nvar isBufferEncoding = Buffer.isEncoding\n || function(encoding) {\n switch (encoding && encoding.toLowerCase()) {\n case 'hex': case 'utf8': case 'utf-8': case 'ascii': case 'binary': case 'base64': case 'ucs2': case 'ucs-2': case 'utf16le': case 'utf-16le': case 'raw': return true;\n default: return false;\n }\n }\n\n\nfunction assertEncoding(encoding) {\n if (encoding && !isBufferEncoding(encoding)) {\n throw new Error('Unknown encoding: ' + encoding);\n }\n}\n\n// StringDecoder provides an interface for efficiently splitting a series of\n// buffers into a series of JS strings without breaking apart multi-byte\n// characters. CESU-8 is handled as part of the UTF-8 encoding.\n//\n// @TODO Handling all encodings inside a single object makes it very difficult\n// to reason about this code, so it should be split up in the future.\n// @TODO There should be a utf8-strict encoding that rejects invalid UTF-8 code\n// points as used by CESU-8.\nvar StringDecoder = exports.StringDecoder = function(encoding) {\n this.encoding = (encoding || 'utf8').toLowerCase().replace(/[-_]/, '');\n assertEncoding(encoding);\n switch (this.encoding) {\n case 'utf8':\n // CESU-8 represents each of Surrogate Pair by 3-bytes\n this.surrogateSize = 3;\n break;\n case 'ucs2':\n case 'utf16le':\n // UTF-16 represents each of Surrogate Pair by 2-bytes\n this.surrogateSize = 2;\n this.detectIncompleteChar = utf16DetectIncompleteChar;\n break;\n case 'base64':\n // Base-64 stores 3 bytes in 4 chars, and pads the remainder.\n this.surrogateSize = 3;\n this.detectIncompleteChar = base64DetectIncompleteChar;\n break;\n default:\n this.write = passThroughWrite;\n return;\n }\n\n // Enough space to store all bytes of a single character. UTF-8 needs 4\n // bytes, but CESU-8 may require up to 6 (3 bytes per surrogate).\n this.charBuffer = new Buffer(6);\n // Number of bytes received for the current incomplete multi-byte character.\n this.charReceived = 0;\n // Number of bytes expected for the current incomplete multi-byte character.\n this.charLength = 0;\n};\n\n\n// write decodes the given buffer and returns it as JS string that is\n// guaranteed to not contain any partial multi-byte characters. Any partial\n// character found at the end of the buffer is buffered up, and will be\n// returned when calling write again with the remaining bytes.\n//\n// Note: Converting a Buffer containing an orphan surrogate to a String\n// currently works, but converting a String to a Buffer (via `new Buffer`, or\n// Buffer#write) will replace incomplete surrogates with the unicode\n// replacement character. See https://codereview.chromium.org/121173009/ .\nStringDecoder.prototype.write = function(buffer) {\n var charStr = '';\n // if our last write ended with an incomplete multibyte character\n while (this.charLength) {\n // determine how many remaining bytes this buffer has to offer for this char\n var available = (buffer.length >= this.charLength - this.charReceived) ?\n this.charLength - this.charReceived :\n buffer.length;\n\n // add the new bytes to the char buffer\n buffer.copy(this.charBuffer, this.charReceived, 0, available);\n this.charReceived += available;\n\n if (this.charReceived < this.charLength) {\n // still not enough chars in this buffer? wait for more ...\n return '';\n }\n\n // remove bytes belonging to the current character from the buffer\n buffer = buffer.slice(available, buffer.length);\n\n // get the character that was split\n charStr = this.charBuffer.slice(0, this.charLength).toString(this.encoding);\n\n // CESU-8: lead surrogate (D800-DBFF) is also the incomplete character\n var charCode = charStr.charCodeAt(charStr.length - 1);\n if (charCode >= 0xD800 && charCode <= 0xDBFF) {\n this.charLength += this.surrogateSize;\n charStr = '';\n continue;\n }\n this.charReceived = this.charLength = 0;\n\n // if there are no more bytes in this buffer, just emit our char\n if (buffer.length === 0) {\n return charStr;\n }\n break;\n }\n\n // determine and set charLength / charReceived\n this.detectIncompleteChar(buffer);\n\n var end = buffer.length;\n if (this.charLength) {\n // buffer the incomplete character bytes we got\n buffer.copy(this.charBuffer, 0, buffer.length - this.charReceived, end);\n end -= this.charReceived;\n }\n\n charStr += buffer.toString(this.encoding, 0, end);\n\n var end = charStr.length - 1;\n var charCode = charStr.charCodeAt(end);\n // CESU-8: lead surrogate (D800-DBFF) is also the incomplete character\n if (charCode >= 0xD800 && charCode <= 0xDBFF) {\n var size = this.surrogateSize;\n this.charLength += size;\n this.charReceived += size;\n this.charBuffer.copy(this.charBuffer, size, 0, size);\n buffer.copy(this.charBuffer, 0, 0, size);\n return charStr.substring(0, end);\n }\n\n // or just emit the charStr\n return charStr;\n};\n\n// detectIncompleteChar determines if there is an incomplete UTF-8 character at\n// the end of the given buffer. If so, it sets this.charLength to the byte\n// length that character, and sets this.charReceived to the number of bytes\n// that are available for this character.\nStringDecoder.prototype.detectIncompleteChar = function(buffer) {\n // determine how many bytes we have to check at the end of this buffer\n var i = (buffer.length >= 3) ? 3 : buffer.length;\n\n // Figure out if one of the last i bytes of our buffer announces an\n // incomplete char.\n for (; i > 0; i--) {\n var c = buffer[buffer.length - i];\n\n // See http://en.wikipedia.org/wiki/UTF-8#Description\n\n // 110XXXXX\n if (i == 1 && c >> 5 == 0x06) {\n this.charLength = 2;\n break;\n }\n\n // 1110XXXX\n if (i <= 2 && c >> 4 == 0x0E) {\n this.charLength = 3;\n break;\n }\n\n // 11110XXX\n if (i <= 3 && c >> 3 == 0x1E) {\n this.charLength = 4;\n break;\n }\n }\n this.charReceived = i;\n};\n\nStringDecoder.prototype.end = function(buffer) {\n var res = '';\n if (buffer && buffer.length)\n res = this.write(buffer);\n\n if (this.charReceived) {\n var cr = this.charReceived;\n var buf = this.charBuffer;\n var enc = this.encoding;\n res += buf.slice(0, cr).toString(enc);\n }\n\n return res;\n};\n\nfunction passThroughWrite(buffer) {\n return buffer.toString(this.encoding);\n}\n\nfunction utf16DetectIncompleteChar(buffer) {\n this.charReceived = buffer.length % 2;\n this.charLength = this.charReceived ? 2 : 0;\n}\n\nfunction base64DetectIncompleteChar(buffer) {\n this.charReceived = buffer.length % 3;\n this.charLength = this.charReceived ? 3 : 0;\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/~/duplexify/~/readable-stream/~/string_decoder/index.js\n ** module id = 338\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/~/duplexify/~/readable-stream/~/string_decoder/index.js?"); - -/***/ }, -/* 339 */ -/***/ function(module, exports, __webpack_require__) { - - eval("// a transform stream is a readable/writable stream where you do\n// something with the data. Sometimes it's called a \"filter\",\n// but that's not a great name for it, since that implies a thing where\n// some bits pass through, and others are simply ignored. (That would\n// be a valid example of a transform, of course.)\n//\n// While the output is causally related to the input, it's not a\n// necessarily symmetric or synchronous transformation. For example,\n// a zlib stream might take multiple plain-text writes(), and then\n// emit a single compressed chunk some time in the future.\n//\n// Here's how this works:\n//\n// The Transform stream has all the aspects of the readable and writable\n// stream classes. When you write(chunk), that calls _write(chunk,cb)\n// internally, and returns false if there's a lot of pending writes\n// buffered up. When you call read(), that calls _read(n) until\n// there's enough pending readable data buffered up.\n//\n// In a transform stream, the written data is placed in a buffer. When\n// _read(n) is called, it transforms the queued up data, calling the\n// buffered _write cb's as it consumes chunks. If consuming a single\n// written chunk would result in multiple output chunks, then the first\n// outputted bit calls the readcb, and subsequent chunks just go into\n// the read buffer, and will cause it to emit 'readable' if necessary.\n//\n// This way, back-pressure is actually determined by the reading side,\n// since _read has to be called to start processing a new chunk. However,\n// a pathological inflate type of transform can cause excessive buffering\n// here. For example, imagine a stream where every byte of input is\n// interpreted as an integer from 0-255, and then results in that many\n// bytes of output. Writing the 4 bytes {ff,ff,ff,ff} would result in\n// 1kb of data being output. In this case, you could write a very small\n// amount of input, and end up with a very large amount of output. In\n// such a pathological inflating mechanism, there'd be no way to tell\n// the system to stop doing the transform. A single 4MB write could\n// cause the system to run out of memory.\n//\n// However, even in such a pathological case, only a single written chunk\n// would be consumed, and then the rest would wait (un-transformed) until\n// the results of the previous transformed chunk were consumed.\n\n'use strict';\n\nmodule.exports = Transform;\n\nvar Duplex = __webpack_require__(335);\n\n/**/\nvar util = __webpack_require__(332);\nutil.inherits = __webpack_require__(333);\n/**/\n\nutil.inherits(Transform, Duplex);\n\n\nfunction TransformState(stream) {\n this.afterTransform = function(er, data) {\n return afterTransform(stream, er, data);\n };\n\n this.needTransform = false;\n this.transforming = false;\n this.writecb = null;\n this.writechunk = null;\n}\n\nfunction afterTransform(stream, er, data) {\n var ts = stream._transformState;\n ts.transforming = false;\n\n var cb = ts.writecb;\n\n if (!cb)\n return stream.emit('error', new Error('no writecb in Transform class'));\n\n ts.writechunk = null;\n ts.writecb = null;\n\n if (data !== null && data !== undefined)\n stream.push(data);\n\n if (cb)\n cb(er);\n\n var rs = stream._readableState;\n rs.reading = false;\n if (rs.needReadable || rs.length < rs.highWaterMark) {\n stream._read(rs.highWaterMark);\n }\n}\n\n\nfunction Transform(options) {\n if (!(this instanceof Transform))\n return new Transform(options);\n\n Duplex.call(this, options);\n\n this._transformState = new TransformState(this);\n\n // when the writable side finishes, then flush out anything remaining.\n var stream = this;\n\n // start out asking for a readable event once data is transformed.\n this._readableState.needReadable = true;\n\n // we have implemented the _read method, and done the other things\n // that Readable wants before the first _read call, so unset the\n // sync guard flag.\n this._readableState.sync = false;\n\n if (options) {\n if (typeof options.transform === 'function')\n this._transform = options.transform;\n\n if (typeof options.flush === 'function')\n this._flush = options.flush;\n }\n\n this.once('prefinish', function() {\n if (typeof this._flush === 'function')\n this._flush(function(er) {\n done(stream, er);\n });\n else\n done(stream);\n });\n}\n\nTransform.prototype.push = function(chunk, encoding) {\n this._transformState.needTransform = false;\n return Duplex.prototype.push.call(this, chunk, encoding);\n};\n\n// This is the part where you do stuff!\n// override this function in implementation classes.\n// 'chunk' is an input chunk.\n//\n// Call `push(newChunk)` to pass along transformed output\n// to the readable side. You may call 'push' zero or more times.\n//\n// Call `cb(err)` when you are done with this chunk. If you pass\n// an error, then that'll put the hurt on the whole operation. If you\n// never call cb(), then you'll never get another chunk.\nTransform.prototype._transform = function(chunk, encoding, cb) {\n throw new Error('not implemented');\n};\n\nTransform.prototype._write = function(chunk, encoding, cb) {\n var ts = this._transformState;\n ts.writecb = cb;\n ts.writechunk = chunk;\n ts.writeencoding = encoding;\n if (!ts.transforming) {\n var rs = this._readableState;\n if (ts.needTransform ||\n rs.needReadable ||\n rs.length < rs.highWaterMark)\n this._read(rs.highWaterMark);\n }\n};\n\n// Doesn't matter what the args are here.\n// _transform does all the work.\n// That we got here means that the readable side wants more data.\nTransform.prototype._read = function(n) {\n var ts = this._transformState;\n\n if (ts.writechunk !== null && ts.writecb && !ts.transforming) {\n ts.transforming = true;\n this._transform(ts.writechunk, ts.writeencoding, ts.afterTransform);\n } else {\n // mark that we need a transform, so that any data that comes in\n // will get processed, now that we've asked for it.\n ts.needTransform = true;\n }\n};\n\n\nfunction done(stream, er) {\n if (er)\n return stream.emit('error', er);\n\n // if there's nothing in the write buffer, then that means\n // that nothing more will ever be provided\n var ws = stream._writableState;\n var ts = stream._transformState;\n\n if (ws.length)\n throw new Error('calling transform done when ws.length != 0');\n\n if (ts.transforming)\n throw new Error('calling transform done when still transforming');\n\n return stream.push(null);\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/~/duplexify/~/readable-stream/lib/_stream_transform.js\n ** module id = 339\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/~/duplexify/~/readable-stream/lib/_stream_transform.js?"); - -/***/ }, -/* 340 */ -/***/ function(module, exports, __webpack_require__) { - - eval("// a passthrough stream.\n// basically just the most minimal sort of Transform stream.\n// Every written chunk gets output as-is.\n\n'use strict';\n\nmodule.exports = PassThrough;\n\nvar Transform = __webpack_require__(339);\n\n/**/\nvar util = __webpack_require__(332);\nutil.inherits = __webpack_require__(333);\n/**/\n\nutil.inherits(PassThrough, Transform);\n\nfunction PassThrough(options) {\n if (!(this instanceof PassThrough))\n return new PassThrough(options);\n\n Transform.call(this, options);\n}\n\nPassThrough.prototype._transform = function(chunk, encoding, cb) {\n cb(null, chunk);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/~/duplexify/~/readable-stream/lib/_stream_passthrough.js\n ** module id = 340\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/~/duplexify/~/readable-stream/lib/_stream_passthrough.js?"); - -/***/ }, -/* 341 */ -/***/ function(module, exports, __webpack_require__) { - - eval("var once = __webpack_require__(342);\n\nvar noop = function() {};\n\nvar isRequest = function(stream) {\n\treturn stream.setHeader && typeof stream.abort === 'function';\n};\n\nvar eos = function(stream, opts, callback) {\n\tif (typeof opts === 'function') return eos(stream, null, opts);\n\tif (!opts) opts = {};\n\n\tcallback = once(callback || noop);\n\n\tvar ws = stream._writableState;\n\tvar rs = stream._readableState;\n\tvar readable = opts.readable || (opts.readable !== false && stream.readable);\n\tvar writable = opts.writable || (opts.writable !== false && stream.writable);\n\n\tvar onlegacyfinish = function() {\n\t\tif (!stream.writable) onfinish();\n\t};\n\n\tvar onfinish = function() {\n\t\twritable = false;\n\t\tif (!readable) callback();\n\t};\n\n\tvar onend = function() {\n\t\treadable = false;\n\t\tif (!writable) callback();\n\t};\n\n\tvar onclose = function() {\n\t\tif (readable && !(rs && rs.ended)) return callback(new Error('premature close'));\n\t\tif (writable && !(ws && ws.ended)) return callback(new Error('premature close'));\n\t};\n\n\tvar onrequest = function() {\n\t\tstream.req.on('finish', onfinish);\n\t};\n\n\tif (isRequest(stream)) {\n\t\tstream.on('complete', onfinish);\n\t\tstream.on('abort', onclose);\n\t\tif (stream.req) onrequest();\n\t\telse stream.on('request', onrequest);\n\t} else if (writable && !ws) { // legacy streams\n\t\tstream.on('end', onlegacyfinish);\n\t\tstream.on('close', onlegacyfinish);\n\t}\n\n\tstream.on('end', onend);\n\tstream.on('finish', onfinish);\n\tif (opts.error !== false) stream.on('error', callback);\n\tstream.on('close', onclose);\n\n\treturn function() {\n\t\tstream.removeListener('complete', onfinish);\n\t\tstream.removeListener('abort', onclose);\n\t\tstream.removeListener('request', onrequest);\n\t\tif (stream.req) stream.req.removeListener('finish', onfinish);\n\t\tstream.removeListener('end', onlegacyfinish);\n\t\tstream.removeListener('close', onlegacyfinish);\n\t\tstream.removeListener('finish', onfinish);\n\t\tstream.removeListener('end', onend);\n\t\tstream.removeListener('error', callback);\n\t\tstream.removeListener('close', onclose);\n\t};\n};\n\nmodule.exports = eos;\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/~/duplexify/~/end-of-stream/index.js\n ** module id = 341\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/~/duplexify/~/end-of-stream/index.js?"); - -/***/ }, -/* 342 */ -/***/ function(module, exports, __webpack_require__) { - - eval("var wrappy = __webpack_require__(343)\nmodule.exports = wrappy(once)\n\nonce.proto = once(function () {\n Object.defineProperty(Function.prototype, 'once', {\n value: function () {\n return once(this)\n },\n configurable: true\n })\n})\n\nfunction once (fn) {\n var f = function () {\n if (f.called) return f.value\n f.called = true\n return f.value = fn.apply(this, arguments)\n }\n f.called = false\n return f\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/~/duplexify/~/end-of-stream/~/once/once.js\n ** module id = 342\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/~/duplexify/~/end-of-stream/~/once/once.js?"); - -/***/ }, -/* 343 */ -/***/ function(module, exports) { - - eval("// Returns a wrapper function that returns a wrapped callback\n// The wrapper function should do some stuff, and return a\n// presumably different callback function.\n// This makes sure that own properties are retained, so that\n// decorations and such are not lost along the way.\nmodule.exports = wrappy\nfunction wrappy (fn, cb) {\n if (fn && cb) return wrappy(fn)(cb)\n\n if (typeof fn !== 'function')\n throw new TypeError('need wrapper function')\n\n Object.keys(fn).forEach(function (k) {\n wrapper[k] = fn[k]\n })\n\n return wrapper\n\n function wrapper() {\n var args = new Array(arguments.length)\n for (var i = 0; i < args.length; i++) {\n args[i] = arguments[i]\n }\n var ret = fn.apply(this, args)\n var cb = args[args.length-1]\n if (typeof ret === 'function' && ret !== cb) {\n Object.keys(cb).forEach(function (k) {\n ret[k] = cb[k]\n })\n }\n return ret\n }\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/~/duplexify/~/end-of-stream/~/once/~/wrappy/wrappy.js\n ** module id = 343\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/~/duplexify/~/end-of-stream/~/once/~/wrappy/wrappy.js?"); - -/***/ }, -/* 344 */ -/***/ function(module, exports, __webpack_require__) { - - eval("'use strict';\n\nvar PassThrough = __webpack_require__(345)\n\nmodule.exports = function (/*streams...*/) {\n var sources = []\n var output = new PassThrough({objectMode: true})\n\n output.setMaxListeners(0)\n\n output.add = add\n output.isEmpty = isEmpty\n\n output.on('unpipe', remove)\n\n Array.prototype.slice.call(arguments).forEach(add)\n\n return output\n\n function add (source) {\n if (Array.isArray(source)) {\n source.forEach(add)\n return this\n }\n\n sources.push(source);\n source.once('end', remove.bind(null, source))\n source.pipe(output, {end: false})\n return this\n }\n\n function isEmpty () {\n return sources.length == 0;\n }\n\n function remove (source) {\n sources = sources.filter(function (it) { return it !== source })\n if (!sources.length && output.readable) { output.end() }\n }\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/merge-stream/index.js\n ** module id = 344\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/merge-stream/index.js?"); - -/***/ }, -/* 345 */ -/***/ function(module, exports, __webpack_require__) { - - eval("module.exports = __webpack_require__(346)\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/merge-stream/~/readable-stream/passthrough.js\n ** module id = 345\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/merge-stream/~/readable-stream/passthrough.js?"); - -/***/ }, -/* 346 */ -/***/ function(module, exports, __webpack_require__) { - - eval("// a passthrough stream.\n// basically just the most minimal sort of Transform stream.\n// Every written chunk gets output as-is.\n\n'use strict';\n\nmodule.exports = PassThrough;\n\nvar Transform = __webpack_require__(347);\n\n/**/\nvar util = __webpack_require__(350);\nutil.inherits = __webpack_require__(351);\n/**/\n\nutil.inherits(PassThrough, Transform);\n\nfunction PassThrough(options) {\n if (!(this instanceof PassThrough))\n return new PassThrough(options);\n\n Transform.call(this, options);\n}\n\nPassThrough.prototype._transform = function(chunk, encoding, cb) {\n cb(null, chunk);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/merge-stream/~/readable-stream/lib/_stream_passthrough.js\n ** module id = 346\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/merge-stream/~/readable-stream/lib/_stream_passthrough.js?"); - -/***/ }, -/* 347 */ -/***/ function(module, exports, __webpack_require__) { - - eval("// a transform stream is a readable/writable stream where you do\n// something with the data. Sometimes it's called a \"filter\",\n// but that's not a great name for it, since that implies a thing where\n// some bits pass through, and others are simply ignored. (That would\n// be a valid example of a transform, of course.)\n//\n// While the output is causally related to the input, it's not a\n// necessarily symmetric or synchronous transformation. For example,\n// a zlib stream might take multiple plain-text writes(), and then\n// emit a single compressed chunk some time in the future.\n//\n// Here's how this works:\n//\n// The Transform stream has all the aspects of the readable and writable\n// stream classes. When you write(chunk), that calls _write(chunk,cb)\n// internally, and returns false if there's a lot of pending writes\n// buffered up. When you call read(), that calls _read(n) until\n// there's enough pending readable data buffered up.\n//\n// In a transform stream, the written data is placed in a buffer. When\n// _read(n) is called, it transforms the queued up data, calling the\n// buffered _write cb's as it consumes chunks. If consuming a single\n// written chunk would result in multiple output chunks, then the first\n// outputted bit calls the readcb, and subsequent chunks just go into\n// the read buffer, and will cause it to emit 'readable' if necessary.\n//\n// This way, back-pressure is actually determined by the reading side,\n// since _read has to be called to start processing a new chunk. However,\n// a pathological inflate type of transform can cause excessive buffering\n// here. For example, imagine a stream where every byte of input is\n// interpreted as an integer from 0-255, and then results in that many\n// bytes of output. Writing the 4 bytes {ff,ff,ff,ff} would result in\n// 1kb of data being output. In this case, you could write a very small\n// amount of input, and end up with a very large amount of output. In\n// such a pathological inflating mechanism, there'd be no way to tell\n// the system to stop doing the transform. A single 4MB write could\n// cause the system to run out of memory.\n//\n// However, even in such a pathological case, only a single written chunk\n// would be consumed, and then the rest would wait (un-transformed) until\n// the results of the previous transformed chunk were consumed.\n\n'use strict';\n\nmodule.exports = Transform;\n\nvar Duplex = __webpack_require__(348);\n\n/**/\nvar util = __webpack_require__(350);\nutil.inherits = __webpack_require__(351);\n/**/\n\nutil.inherits(Transform, Duplex);\n\n\nfunction TransformState(stream) {\n this.afterTransform = function(er, data) {\n return afterTransform(stream, er, data);\n };\n\n this.needTransform = false;\n this.transforming = false;\n this.writecb = null;\n this.writechunk = null;\n}\n\nfunction afterTransform(stream, er, data) {\n var ts = stream._transformState;\n ts.transforming = false;\n\n var cb = ts.writecb;\n\n if (!cb)\n return stream.emit('error', new Error('no writecb in Transform class'));\n\n ts.writechunk = null;\n ts.writecb = null;\n\n if (data !== null && data !== undefined)\n stream.push(data);\n\n if (cb)\n cb(er);\n\n var rs = stream._readableState;\n rs.reading = false;\n if (rs.needReadable || rs.length < rs.highWaterMark) {\n stream._read(rs.highWaterMark);\n }\n}\n\n\nfunction Transform(options) {\n if (!(this instanceof Transform))\n return new Transform(options);\n\n Duplex.call(this, options);\n\n this._transformState = new TransformState(this);\n\n // when the writable side finishes, then flush out anything remaining.\n var stream = this;\n\n // start out asking for a readable event once data is transformed.\n this._readableState.needReadable = true;\n\n // we have implemented the _read method, and done the other things\n // that Readable wants before the first _read call, so unset the\n // sync guard flag.\n this._readableState.sync = false;\n\n if (options) {\n if (typeof options.transform === 'function')\n this._transform = options.transform;\n\n if (typeof options.flush === 'function')\n this._flush = options.flush;\n }\n\n this.once('prefinish', function() {\n if (typeof this._flush === 'function')\n this._flush(function(er) {\n done(stream, er);\n });\n else\n done(stream);\n });\n}\n\nTransform.prototype.push = function(chunk, encoding) {\n this._transformState.needTransform = false;\n return Duplex.prototype.push.call(this, chunk, encoding);\n};\n\n// This is the part where you do stuff!\n// override this function in implementation classes.\n// 'chunk' is an input chunk.\n//\n// Call `push(newChunk)` to pass along transformed output\n// to the readable side. You may call 'push' zero or more times.\n//\n// Call `cb(err)` when you are done with this chunk. If you pass\n// an error, then that'll put the hurt on the whole operation. If you\n// never call cb(), then you'll never get another chunk.\nTransform.prototype._transform = function(chunk, encoding, cb) {\n throw new Error('not implemented');\n};\n\nTransform.prototype._write = function(chunk, encoding, cb) {\n var ts = this._transformState;\n ts.writecb = cb;\n ts.writechunk = chunk;\n ts.writeencoding = encoding;\n if (!ts.transforming) {\n var rs = this._readableState;\n if (ts.needTransform ||\n rs.needReadable ||\n rs.length < rs.highWaterMark)\n this._read(rs.highWaterMark);\n }\n};\n\n// Doesn't matter what the args are here.\n// _transform does all the work.\n// That we got here means that the readable side wants more data.\nTransform.prototype._read = function(n) {\n var ts = this._transformState;\n\n if (ts.writechunk !== null && ts.writecb && !ts.transforming) {\n ts.transforming = true;\n this._transform(ts.writechunk, ts.writeencoding, ts.afterTransform);\n } else {\n // mark that we need a transform, so that any data that comes in\n // will get processed, now that we've asked for it.\n ts.needTransform = true;\n }\n};\n\n\nfunction done(stream, er) {\n if (er)\n return stream.emit('error', er);\n\n // if there's nothing in the write buffer, then that means\n // that nothing more will ever be provided\n var ws = stream._writableState;\n var ts = stream._transformState;\n\n if (ws.length)\n throw new Error('calling transform done when ws.length != 0');\n\n if (ts.transforming)\n throw new Error('calling transform done when still transforming');\n\n return stream.push(null);\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/merge-stream/~/readable-stream/lib/_stream_transform.js\n ** module id = 347\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/merge-stream/~/readable-stream/lib/_stream_transform.js?"); - -/***/ }, -/* 348 */ -/***/ function(module, exports, __webpack_require__) { - - eval("// a duplex stream is just a stream that is both readable and writable.\n// Since JS doesn't have multiple prototypal inheritance, this class\n// prototypally inherits from Readable, and then parasitically from\n// Writable.\n\n'use strict';\n\n/**/\nvar objectKeys = Object.keys || function (obj) {\n var keys = [];\n for (var key in obj) keys.push(key);\n return keys;\n}\n/**/\n\n\nmodule.exports = Duplex;\n\n/**/\nvar processNextTick = __webpack_require__(349);\n/**/\n\n\n\n/**/\nvar util = __webpack_require__(350);\nutil.inherits = __webpack_require__(351);\n/**/\n\nvar Readable = __webpack_require__(352);\nvar Writable = __webpack_require__(356);\n\nutil.inherits(Duplex, Readable);\n\nvar keys = objectKeys(Writable.prototype);\nfor (var v = 0; v < keys.length; v++) {\n var method = keys[v];\n if (!Duplex.prototype[method])\n Duplex.prototype[method] = Writable.prototype[method];\n}\n\nfunction Duplex(options) {\n if (!(this instanceof Duplex))\n return new Duplex(options);\n\n Readable.call(this, options);\n Writable.call(this, options);\n\n if (options && options.readable === false)\n this.readable = false;\n\n if (options && options.writable === false)\n this.writable = false;\n\n this.allowHalfOpen = true;\n if (options && options.allowHalfOpen === false)\n this.allowHalfOpen = false;\n\n this.once('end', onend);\n}\n\n// the no-half-open enforcer\nfunction onend() {\n // if we allow half-open state, or if the writable side ended,\n // then we're ok.\n if (this.allowHalfOpen || this._writableState.ended)\n return;\n\n // no more data can be written.\n // But allow more writes to happen in this tick.\n processNextTick(onEndNT, this);\n}\n\nfunction onEndNT(self) {\n self.end();\n}\n\nfunction forEach (xs, f) {\n for (var i = 0, l = xs.length; i < l; i++) {\n f(xs[i], i);\n }\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/merge-stream/~/readable-stream/lib/_stream_duplex.js\n ** module id = 348\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/merge-stream/~/readable-stream/lib/_stream_duplex.js?"); - -/***/ }, -/* 349 */ -/***/ function(module, exports, __webpack_require__) { - - eval("/* WEBPACK VAR INJECTION */(function(process) {'use strict';\n\nif (!process.version ||\n process.version.indexOf('v0.') === 0 ||\n process.version.indexOf('v1.') === 0 && process.version.indexOf('v1.8.') !== 0) {\n module.exports = nextTick;\n} else {\n module.exports = process.nextTick;\n}\n\nfunction nextTick(fn) {\n var args = new Array(arguments.length - 1);\n var i = 0;\n while (i < args.length) {\n args[i++] = arguments[i];\n }\n process.nextTick(function afterTick() {\n fn.apply(null, args);\n });\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(83)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/merge-stream/~/readable-stream/~/process-nextick-args/index.js\n ** module id = 349\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/merge-stream/~/readable-stream/~/process-nextick-args/index.js?"); - -/***/ }, -/* 350 */ -/***/ function(module, exports, __webpack_require__) { - - eval("/* WEBPACK VAR INJECTION */(function(Buffer) {// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// NOTE: These type checking functions intentionally don't use `instanceof`\n// because it is fragile and can be easily faked with `Object.create()`.\n\nfunction isArray(arg) {\n if (Array.isArray) {\n return Array.isArray(arg);\n }\n return objectToString(arg) === '[object Array]';\n}\nexports.isArray = isArray;\n\nfunction isBoolean(arg) {\n return typeof arg === 'boolean';\n}\nexports.isBoolean = isBoolean;\n\nfunction isNull(arg) {\n return arg === null;\n}\nexports.isNull = isNull;\n\nfunction isNullOrUndefined(arg) {\n return arg == null;\n}\nexports.isNullOrUndefined = isNullOrUndefined;\n\nfunction isNumber(arg) {\n return typeof arg === 'number';\n}\nexports.isNumber = isNumber;\n\nfunction isString(arg) {\n return typeof arg === 'string';\n}\nexports.isString = isString;\n\nfunction isSymbol(arg) {\n return typeof arg === 'symbol';\n}\nexports.isSymbol = isSymbol;\n\nfunction isUndefined(arg) {\n return arg === void 0;\n}\nexports.isUndefined = isUndefined;\n\nfunction isRegExp(re) {\n return objectToString(re) === '[object RegExp]';\n}\nexports.isRegExp = isRegExp;\n\nfunction isObject(arg) {\n return typeof arg === 'object' && arg !== null;\n}\nexports.isObject = isObject;\n\nfunction isDate(d) {\n return objectToString(d) === '[object Date]';\n}\nexports.isDate = isDate;\n\nfunction isError(e) {\n return (objectToString(e) === '[object Error]' || e instanceof Error);\n}\nexports.isError = isError;\n\nfunction isFunction(arg) {\n return typeof arg === 'function';\n}\nexports.isFunction = isFunction;\n\nfunction isPrimitive(arg) {\n return arg === null ||\n typeof arg === 'boolean' ||\n typeof arg === 'number' ||\n typeof arg === 'string' ||\n typeof arg === 'symbol' || // ES6 symbol\n typeof arg === 'undefined';\n}\nexports.isPrimitive = isPrimitive;\n\nexports.isBuffer = Buffer.isBuffer;\n\nfunction objectToString(o) {\n return Object.prototype.toString.call(o);\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1).Buffer))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/merge-stream/~/readable-stream/~/core-util-is/lib/util.js\n ** module id = 350\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/merge-stream/~/readable-stream/~/core-util-is/lib/util.js?"); - -/***/ }, -/* 351 */ -/***/ function(module, exports) { - - eval("if (typeof Object.create === 'function') {\n // implementation from standard node.js 'util' module\n module.exports = function inherits(ctor, superCtor) {\n ctor.super_ = superCtor\n ctor.prototype = Object.create(superCtor.prototype, {\n constructor: {\n value: ctor,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n };\n} else {\n // old school shim for old browsers\n module.exports = function inherits(ctor, superCtor) {\n ctor.super_ = superCtor\n var TempCtor = function () {}\n TempCtor.prototype = superCtor.prototype\n ctor.prototype = new TempCtor()\n ctor.prototype.constructor = ctor\n }\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/merge-stream/~/readable-stream/~/inherits/inherits_browser.js\n ** module id = 351\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/merge-stream/~/readable-stream/~/inherits/inherits_browser.js?"); - -/***/ }, -/* 352 */ -/***/ function(module, exports, __webpack_require__) { - - eval("/* WEBPACK VAR INJECTION */(function(process) {'use strict';\n\nmodule.exports = Readable;\n\n/**/\nvar processNextTick = __webpack_require__(349);\n/**/\n\n\n/**/\nvar isArray = __webpack_require__(353);\n/**/\n\n\n/**/\nvar Buffer = __webpack_require__(1).Buffer;\n/**/\n\nReadable.ReadableState = ReadableState;\n\nvar EE = __webpack_require__(84);\n\n/**/\nvar EElistenerCount = function(emitter, type) {\n return emitter.listeners(type).length;\n};\n/**/\n\n\n\n/**/\nvar Stream;\n(function (){try{\n Stream = __webpack_require__(96);\n}catch(_){}finally{\n if (!Stream)\n Stream = __webpack_require__(84).EventEmitter;\n}}())\n/**/\n\nvar Buffer = __webpack_require__(1).Buffer;\n\n/**/\nvar util = __webpack_require__(350);\nutil.inherits = __webpack_require__(351);\n/**/\n\n\n\n/**/\nvar debugUtil = __webpack_require__(354);\nvar debug;\nif (debugUtil && debugUtil.debuglog) {\n debug = debugUtil.debuglog('stream');\n} else {\n debug = function () {};\n}\n/**/\n\nvar StringDecoder;\n\nutil.inherits(Readable, Stream);\n\nvar Duplex;\nfunction ReadableState(options, stream) {\n Duplex = Duplex || __webpack_require__(348);\n\n options = options || {};\n\n // object stream flag. Used to make read(n) ignore n and to\n // make all the buffer merging and length checks go away\n this.objectMode = !!options.objectMode;\n\n if (stream instanceof Duplex)\n this.objectMode = this.objectMode || !!options.readableObjectMode;\n\n // the point at which it stops calling _read() to fill the buffer\n // Note: 0 is a valid value, means \"don't call _read preemptively ever\"\n var hwm = options.highWaterMark;\n var defaultHwm = this.objectMode ? 16 : 16 * 1024;\n this.highWaterMark = (hwm || hwm === 0) ? hwm : defaultHwm;\n\n // cast to ints.\n this.highWaterMark = ~~this.highWaterMark;\n\n this.buffer = [];\n this.length = 0;\n this.pipes = null;\n this.pipesCount = 0;\n this.flowing = null;\n this.ended = false;\n this.endEmitted = false;\n this.reading = false;\n\n // a flag to be able to tell if the onwrite cb is called immediately,\n // or on a later tick. We set this to true at first, because any\n // actions that shouldn't happen until \"later\" should generally also\n // not happen before the first write call.\n this.sync = true;\n\n // whenever we return null, then we set a flag to say\n // that we're awaiting a 'readable' event emission.\n this.needReadable = false;\n this.emittedReadable = false;\n this.readableListening = false;\n\n // Crypto is kind of old and crusty. Historically, its default string\n // encoding is 'binary' so we have to make this configurable.\n // Everything else in the universe uses 'utf8', though.\n this.defaultEncoding = options.defaultEncoding || 'utf8';\n\n // when piping, we only care about 'readable' events that happen\n // after read()ing all the bytes and not getting any pushback.\n this.ranOut = false;\n\n // the number of writers that are awaiting a drain event in .pipe()s\n this.awaitDrain = 0;\n\n // if true, a maybeReadMore has been scheduled\n this.readingMore = false;\n\n this.decoder = null;\n this.encoding = null;\n if (options.encoding) {\n if (!StringDecoder)\n StringDecoder = __webpack_require__(355).StringDecoder;\n this.decoder = new StringDecoder(options.encoding);\n this.encoding = options.encoding;\n }\n}\n\nvar Duplex;\nfunction Readable(options) {\n Duplex = Duplex || __webpack_require__(348);\n\n if (!(this instanceof Readable))\n return new Readable(options);\n\n this._readableState = new ReadableState(options, this);\n\n // legacy\n this.readable = true;\n\n if (options && typeof options.read === 'function')\n this._read = options.read;\n\n Stream.call(this);\n}\n\n// Manually shove something into the read() buffer.\n// This returns true if the highWaterMark has not been hit yet,\n// similar to how Writable.write() returns true if you should\n// write() some more.\nReadable.prototype.push = function(chunk, encoding) {\n var state = this._readableState;\n\n if (!state.objectMode && typeof chunk === 'string') {\n encoding = encoding || state.defaultEncoding;\n if (encoding !== state.encoding) {\n chunk = new Buffer(chunk, encoding);\n encoding = '';\n }\n }\n\n return readableAddChunk(this, state, chunk, encoding, false);\n};\n\n// Unshift should *always* be something directly out of read()\nReadable.prototype.unshift = function(chunk) {\n var state = this._readableState;\n return readableAddChunk(this, state, chunk, '', true);\n};\n\nReadable.prototype.isPaused = function() {\n return this._readableState.flowing === false;\n};\n\nfunction readableAddChunk(stream, state, chunk, encoding, addToFront) {\n var er = chunkInvalid(state, chunk);\n if (er) {\n stream.emit('error', er);\n } else if (chunk === null) {\n state.reading = false;\n onEofChunk(stream, state);\n } else if (state.objectMode || chunk && chunk.length > 0) {\n if (state.ended && !addToFront) {\n var e = new Error('stream.push() after EOF');\n stream.emit('error', e);\n } else if (state.endEmitted && addToFront) {\n var e = new Error('stream.unshift() after end event');\n stream.emit('error', e);\n } else {\n if (state.decoder && !addToFront && !encoding)\n chunk = state.decoder.write(chunk);\n\n if (!addToFront)\n state.reading = false;\n\n // if we want the data now, just emit it.\n if (state.flowing && state.length === 0 && !state.sync) {\n stream.emit('data', chunk);\n stream.read(0);\n } else {\n // update the buffer info.\n state.length += state.objectMode ? 1 : chunk.length;\n if (addToFront)\n state.buffer.unshift(chunk);\n else\n state.buffer.push(chunk);\n\n if (state.needReadable)\n emitReadable(stream);\n }\n\n maybeReadMore(stream, state);\n }\n } else if (!addToFront) {\n state.reading = false;\n }\n\n return needMoreData(state);\n}\n\n\n// if it's past the high water mark, we can push in some more.\n// Also, if we have no data yet, we can stand some\n// more bytes. This is to work around cases where hwm=0,\n// such as the repl. Also, if the push() triggered a\n// readable event, and the user called read(largeNumber) such that\n// needReadable was set, then we ought to push more, so that another\n// 'readable' event will be triggered.\nfunction needMoreData(state) {\n return !state.ended &&\n (state.needReadable ||\n state.length < state.highWaterMark ||\n state.length === 0);\n}\n\n// backwards compatibility.\nReadable.prototype.setEncoding = function(enc) {\n if (!StringDecoder)\n StringDecoder = __webpack_require__(355).StringDecoder;\n this._readableState.decoder = new StringDecoder(enc);\n this._readableState.encoding = enc;\n return this;\n};\n\n// Don't raise the hwm > 8MB\nvar MAX_HWM = 0x800000;\nfunction computeNewHighWaterMark(n) {\n if (n >= MAX_HWM) {\n n = MAX_HWM;\n } else {\n // Get the next highest power of 2\n n--;\n n |= n >>> 1;\n n |= n >>> 2;\n n |= n >>> 4;\n n |= n >>> 8;\n n |= n >>> 16;\n n++;\n }\n return n;\n}\n\nfunction howMuchToRead(n, state) {\n if (state.length === 0 && state.ended)\n return 0;\n\n if (state.objectMode)\n return n === 0 ? 0 : 1;\n\n if (n === null || isNaN(n)) {\n // only flow one buffer at a time\n if (state.flowing && state.buffer.length)\n return state.buffer[0].length;\n else\n return state.length;\n }\n\n if (n <= 0)\n return 0;\n\n // If we're asking for more than the target buffer level,\n // then raise the water mark. Bump up to the next highest\n // power of 2, to prevent increasing it excessively in tiny\n // amounts.\n if (n > state.highWaterMark)\n state.highWaterMark = computeNewHighWaterMark(n);\n\n // don't have that much. return null, unless we've ended.\n if (n > state.length) {\n if (!state.ended) {\n state.needReadable = true;\n return 0;\n } else {\n return state.length;\n }\n }\n\n return n;\n}\n\n// you can override either this method, or the async _read(n) below.\nReadable.prototype.read = function(n) {\n debug('read', n);\n var state = this._readableState;\n var nOrig = n;\n\n if (typeof n !== 'number' || n > 0)\n state.emittedReadable = false;\n\n // if we're doing read(0) to trigger a readable event, but we\n // already have a bunch of data in the buffer, then just trigger\n // the 'readable' event and move on.\n if (n === 0 &&\n state.needReadable &&\n (state.length >= state.highWaterMark || state.ended)) {\n debug('read: emitReadable', state.length, state.ended);\n if (state.length === 0 && state.ended)\n endReadable(this);\n else\n emitReadable(this);\n return null;\n }\n\n n = howMuchToRead(n, state);\n\n // if we've ended, and we're now clear, then finish it up.\n if (n === 0 && state.ended) {\n if (state.length === 0)\n endReadable(this);\n return null;\n }\n\n // All the actual chunk generation logic needs to be\n // *below* the call to _read. The reason is that in certain\n // synthetic stream cases, such as passthrough streams, _read\n // may be a completely synchronous operation which may change\n // the state of the read buffer, providing enough data when\n // before there was *not* enough.\n //\n // So, the steps are:\n // 1. Figure out what the state of things will be after we do\n // a read from the buffer.\n //\n // 2. If that resulting state will trigger a _read, then call _read.\n // Note that this may be asynchronous, or synchronous. Yes, it is\n // deeply ugly to write APIs this way, but that still doesn't mean\n // that the Readable class should behave improperly, as streams are\n // designed to be sync/async agnostic.\n // Take note if the _read call is sync or async (ie, if the read call\n // has returned yet), so that we know whether or not it's safe to emit\n // 'readable' etc.\n //\n // 3. Actually pull the requested chunks out of the buffer and return.\n\n // if we need a readable event, then we need to do some reading.\n var doRead = state.needReadable;\n debug('need readable', doRead);\n\n // if we currently have less than the highWaterMark, then also read some\n if (state.length === 0 || state.length - n < state.highWaterMark) {\n doRead = true;\n debug('length less than watermark', doRead);\n }\n\n // however, if we've ended, then there's no point, and if we're already\n // reading, then it's unnecessary.\n if (state.ended || state.reading) {\n doRead = false;\n debug('reading or ended', doRead);\n }\n\n if (doRead) {\n debug('do read');\n state.reading = true;\n state.sync = true;\n // if the length is currently zero, then we *need* a readable event.\n if (state.length === 0)\n state.needReadable = true;\n // call internal read method\n this._read(state.highWaterMark);\n state.sync = false;\n }\n\n // If _read pushed data synchronously, then `reading` will be false,\n // and we need to re-evaluate how much data we can return to the user.\n if (doRead && !state.reading)\n n = howMuchToRead(nOrig, state);\n\n var ret;\n if (n > 0)\n ret = fromList(n, state);\n else\n ret = null;\n\n if (ret === null) {\n state.needReadable = true;\n n = 0;\n }\n\n state.length -= n;\n\n // If we have nothing in the buffer, then we want to know\n // as soon as we *do* get something into the buffer.\n if (state.length === 0 && !state.ended)\n state.needReadable = true;\n\n // If we tried to read() past the EOF, then emit end on the next tick.\n if (nOrig !== n && state.ended && state.length === 0)\n endReadable(this);\n\n if (ret !== null)\n this.emit('data', ret);\n\n return ret;\n};\n\nfunction chunkInvalid(state, chunk) {\n var er = null;\n if (!(Buffer.isBuffer(chunk)) &&\n typeof chunk !== 'string' &&\n chunk !== null &&\n chunk !== undefined &&\n !state.objectMode) {\n er = new TypeError('Invalid non-string/buffer chunk');\n }\n return er;\n}\n\n\nfunction onEofChunk(stream, state) {\n if (state.ended) return;\n if (state.decoder) {\n var chunk = state.decoder.end();\n if (chunk && chunk.length) {\n state.buffer.push(chunk);\n state.length += state.objectMode ? 1 : chunk.length;\n }\n }\n state.ended = true;\n\n // emit 'readable' now to make sure it gets picked up.\n emitReadable(stream);\n}\n\n// Don't emit readable right away in sync mode, because this can trigger\n// another read() call => stack overflow. This way, it might trigger\n// a nextTick recursion warning, but that's not so bad.\nfunction emitReadable(stream) {\n var state = stream._readableState;\n state.needReadable = false;\n if (!state.emittedReadable) {\n debug('emitReadable', state.flowing);\n state.emittedReadable = true;\n if (state.sync)\n processNextTick(emitReadable_, stream);\n else\n emitReadable_(stream);\n }\n}\n\nfunction emitReadable_(stream) {\n debug('emit readable');\n stream.emit('readable');\n flow(stream);\n}\n\n\n// at this point, the user has presumably seen the 'readable' event,\n// and called read() to consume some data. that may have triggered\n// in turn another _read(n) call, in which case reading = true if\n// it's in progress.\n// However, if we're not ended, or reading, and the length < hwm,\n// then go ahead and try to read some more preemptively.\nfunction maybeReadMore(stream, state) {\n if (!state.readingMore) {\n state.readingMore = true;\n processNextTick(maybeReadMore_, stream, state);\n }\n}\n\nfunction maybeReadMore_(stream, state) {\n var len = state.length;\n while (!state.reading && !state.flowing && !state.ended &&\n state.length < state.highWaterMark) {\n debug('maybeReadMore read 0');\n stream.read(0);\n if (len === state.length)\n // didn't get any data, stop spinning.\n break;\n else\n len = state.length;\n }\n state.readingMore = false;\n}\n\n// abstract method. to be overridden in specific implementation classes.\n// call cb(er, data) where data is <= n in length.\n// for virtual (non-string, non-buffer) streams, \"length\" is somewhat\n// arbitrary, and perhaps not very meaningful.\nReadable.prototype._read = function(n) {\n this.emit('error', new Error('not implemented'));\n};\n\nReadable.prototype.pipe = function(dest, pipeOpts) {\n var src = this;\n var state = this._readableState;\n\n switch (state.pipesCount) {\n case 0:\n state.pipes = dest;\n break;\n case 1:\n state.pipes = [state.pipes, dest];\n break;\n default:\n state.pipes.push(dest);\n break;\n }\n state.pipesCount += 1;\n debug('pipe count=%d opts=%j', state.pipesCount, pipeOpts);\n\n var doEnd = (!pipeOpts || pipeOpts.end !== false) &&\n dest !== process.stdout &&\n dest !== process.stderr;\n\n var endFn = doEnd ? onend : cleanup;\n if (state.endEmitted)\n processNextTick(endFn);\n else\n src.once('end', endFn);\n\n dest.on('unpipe', onunpipe);\n function onunpipe(readable) {\n debug('onunpipe');\n if (readable === src) {\n cleanup();\n }\n }\n\n function onend() {\n debug('onend');\n dest.end();\n }\n\n // when the dest drains, it reduces the awaitDrain counter\n // on the source. This would be more elegant with a .once()\n // handler in flow(), but adding and removing repeatedly is\n // too slow.\n var ondrain = pipeOnDrain(src);\n dest.on('drain', ondrain);\n\n var cleanedUp = false;\n function cleanup() {\n debug('cleanup');\n // cleanup event handlers once the pipe is broken\n dest.removeListener('close', onclose);\n dest.removeListener('finish', onfinish);\n dest.removeListener('drain', ondrain);\n dest.removeListener('error', onerror);\n dest.removeListener('unpipe', onunpipe);\n src.removeListener('end', onend);\n src.removeListener('end', cleanup);\n src.removeListener('data', ondata);\n\n cleanedUp = true;\n\n // if the reader is waiting for a drain event from this\n // specific writer, then it would cause it to never start\n // flowing again.\n // So, if this is awaiting a drain, then we just call it now.\n // If we don't know, then assume that we are waiting for one.\n if (state.awaitDrain &&\n (!dest._writableState || dest._writableState.needDrain))\n ondrain();\n }\n\n src.on('data', ondata);\n function ondata(chunk) {\n debug('ondata');\n var ret = dest.write(chunk);\n if (false === ret) {\n // If the user unpiped during `dest.write()`, it is possible\n // to get stuck in a permanently paused state if that write\n // also returned false.\n if (state.pipesCount === 1 &&\n state.pipes[0] === dest &&\n src.listenerCount('data') === 1 &&\n !cleanedUp) {\n debug('false write response, pause', src._readableState.awaitDrain);\n src._readableState.awaitDrain++;\n }\n src.pause();\n }\n }\n\n // if the dest has an error, then stop piping into it.\n // however, don't suppress the throwing behavior for this.\n function onerror(er) {\n debug('onerror', er);\n unpipe();\n dest.removeListener('error', onerror);\n if (EElistenerCount(dest, 'error') === 0)\n dest.emit('error', er);\n }\n // This is a brutally ugly hack to make sure that our error handler\n // is attached before any userland ones. NEVER DO THIS.\n if (!dest._events || !dest._events.error)\n dest.on('error', onerror);\n else if (isArray(dest._events.error))\n dest._events.error.unshift(onerror);\n else\n dest._events.error = [onerror, dest._events.error];\n\n\n // Both close and finish should trigger unpipe, but only once.\n function onclose() {\n dest.removeListener('finish', onfinish);\n unpipe();\n }\n dest.once('close', onclose);\n function onfinish() {\n debug('onfinish');\n dest.removeListener('close', onclose);\n unpipe();\n }\n dest.once('finish', onfinish);\n\n function unpipe() {\n debug('unpipe');\n src.unpipe(dest);\n }\n\n // tell the dest that it's being piped to\n dest.emit('pipe', src);\n\n // start the flow if it hasn't been started already.\n if (!state.flowing) {\n debug('pipe resume');\n src.resume();\n }\n\n return dest;\n};\n\nfunction pipeOnDrain(src) {\n return function() {\n var state = src._readableState;\n debug('pipeOnDrain', state.awaitDrain);\n if (state.awaitDrain)\n state.awaitDrain--;\n if (state.awaitDrain === 0 && EElistenerCount(src, 'data')) {\n state.flowing = true;\n flow(src);\n }\n };\n}\n\n\nReadable.prototype.unpipe = function(dest) {\n var state = this._readableState;\n\n // if we're not piping anywhere, then do nothing.\n if (state.pipesCount === 0)\n return this;\n\n // just one destination. most common case.\n if (state.pipesCount === 1) {\n // passed in one, but it's not the right one.\n if (dest && dest !== state.pipes)\n return this;\n\n if (!dest)\n dest = state.pipes;\n\n // got a match.\n state.pipes = null;\n state.pipesCount = 0;\n state.flowing = false;\n if (dest)\n dest.emit('unpipe', this);\n return this;\n }\n\n // slow case. multiple pipe destinations.\n\n if (!dest) {\n // remove all.\n var dests = state.pipes;\n var len = state.pipesCount;\n state.pipes = null;\n state.pipesCount = 0;\n state.flowing = false;\n\n for (var i = 0; i < len; i++)\n dests[i].emit('unpipe', this);\n return this;\n }\n\n // try to find the right one.\n var i = indexOf(state.pipes, dest);\n if (i === -1)\n return this;\n\n state.pipes.splice(i, 1);\n state.pipesCount -= 1;\n if (state.pipesCount === 1)\n state.pipes = state.pipes[0];\n\n dest.emit('unpipe', this);\n\n return this;\n};\n\n// set up data events if they are asked for\n// Ensure readable listeners eventually get something\nReadable.prototype.on = function(ev, fn) {\n var res = Stream.prototype.on.call(this, ev, fn);\n\n // If listening to data, and it has not explicitly been paused,\n // then call resume to start the flow of data on the next tick.\n if (ev === 'data' && false !== this._readableState.flowing) {\n this.resume();\n }\n\n if (ev === 'readable' && this.readable) {\n var state = this._readableState;\n if (!state.readableListening) {\n state.readableListening = true;\n state.emittedReadable = false;\n state.needReadable = true;\n if (!state.reading) {\n processNextTick(nReadingNextTick, this);\n } else if (state.length) {\n emitReadable(this, state);\n }\n }\n }\n\n return res;\n};\nReadable.prototype.addListener = Readable.prototype.on;\n\nfunction nReadingNextTick(self) {\n debug('readable nexttick read 0');\n self.read(0);\n}\n\n// pause() and resume() are remnants of the legacy readable stream API\n// If the user uses them, then switch into old mode.\nReadable.prototype.resume = function() {\n var state = this._readableState;\n if (!state.flowing) {\n debug('resume');\n state.flowing = true;\n resume(this, state);\n }\n return this;\n};\n\nfunction resume(stream, state) {\n if (!state.resumeScheduled) {\n state.resumeScheduled = true;\n processNextTick(resume_, stream, state);\n }\n}\n\nfunction resume_(stream, state) {\n if (!state.reading) {\n debug('resume read 0');\n stream.read(0);\n }\n\n state.resumeScheduled = false;\n stream.emit('resume');\n flow(stream);\n if (state.flowing && !state.reading)\n stream.read(0);\n}\n\nReadable.prototype.pause = function() {\n debug('call pause flowing=%j', this._readableState.flowing);\n if (false !== this._readableState.flowing) {\n debug('pause');\n this._readableState.flowing = false;\n this.emit('pause');\n }\n return this;\n};\n\nfunction flow(stream) {\n var state = stream._readableState;\n debug('flow', state.flowing);\n if (state.flowing) {\n do {\n var chunk = stream.read();\n } while (null !== chunk && state.flowing);\n }\n}\n\n// wrap an old-style stream as the async data source.\n// This is *not* part of the readable stream interface.\n// It is an ugly unfortunate mess of history.\nReadable.prototype.wrap = function(stream) {\n var state = this._readableState;\n var paused = false;\n\n var self = this;\n stream.on('end', function() {\n debug('wrapped end');\n if (state.decoder && !state.ended) {\n var chunk = state.decoder.end();\n if (chunk && chunk.length)\n self.push(chunk);\n }\n\n self.push(null);\n });\n\n stream.on('data', function(chunk) {\n debug('wrapped data');\n if (state.decoder)\n chunk = state.decoder.write(chunk);\n\n // don't skip over falsy values in objectMode\n if (state.objectMode && (chunk === null || chunk === undefined))\n return;\n else if (!state.objectMode && (!chunk || !chunk.length))\n return;\n\n var ret = self.push(chunk);\n if (!ret) {\n paused = true;\n stream.pause();\n }\n });\n\n // proxy all the other methods.\n // important when wrapping filters and duplexes.\n for (var i in stream) {\n if (this[i] === undefined && typeof stream[i] === 'function') {\n this[i] = function(method) { return function() {\n return stream[method].apply(stream, arguments);\n }; }(i);\n }\n }\n\n // proxy certain important events.\n var events = ['error', 'close', 'destroy', 'pause', 'resume'];\n forEach(events, function(ev) {\n stream.on(ev, self.emit.bind(self, ev));\n });\n\n // when we try to consume some more bytes, simply unpause the\n // underlying stream.\n self._read = function(n) {\n debug('wrapped _read', n);\n if (paused) {\n paused = false;\n stream.resume();\n }\n };\n\n return self;\n};\n\n\n// exposed for testing purposes only.\nReadable._fromList = fromList;\n\n// Pluck off n bytes from an array of buffers.\n// Length is the combined lengths of all the buffers in the list.\nfunction fromList(n, state) {\n var list = state.buffer;\n var length = state.length;\n var stringMode = !!state.decoder;\n var objectMode = !!state.objectMode;\n var ret;\n\n // nothing in the list, definitely empty.\n if (list.length === 0)\n return null;\n\n if (length === 0)\n ret = null;\n else if (objectMode)\n ret = list.shift();\n else if (!n || n >= length) {\n // read it all, truncate the array.\n if (stringMode)\n ret = list.join('');\n else if (list.length === 1)\n ret = list[0];\n else\n ret = Buffer.concat(list, length);\n list.length = 0;\n } else {\n // read just some of it.\n if (n < list[0].length) {\n // just take a part of the first list item.\n // slice is the same for buffers and strings.\n var buf = list[0];\n ret = buf.slice(0, n);\n list[0] = buf.slice(n);\n } else if (n === list[0].length) {\n // first list is a perfect match\n ret = list.shift();\n } else {\n // complex case.\n // we have enough to cover it, but it spans past the first buffer.\n if (stringMode)\n ret = '';\n else\n ret = new Buffer(n);\n\n var c = 0;\n for (var i = 0, l = list.length; i < l && c < n; i++) {\n var buf = list[0];\n var cpy = Math.min(n - c, buf.length);\n\n if (stringMode)\n ret += buf.slice(0, cpy);\n else\n buf.copy(ret, c, 0, cpy);\n\n if (cpy < buf.length)\n list[0] = buf.slice(cpy);\n else\n list.shift();\n\n c += cpy;\n }\n }\n }\n\n return ret;\n}\n\nfunction endReadable(stream) {\n var state = stream._readableState;\n\n // If we get here before consuming all the bytes, then that is a\n // bug in node. Should never happen.\n if (state.length > 0)\n throw new Error('endReadable called on non-empty stream');\n\n if (!state.endEmitted) {\n state.ended = true;\n processNextTick(endReadableNT, state, stream);\n }\n}\n\nfunction endReadableNT(state, stream) {\n // Check that we didn't get one last unshift.\n if (!state.endEmitted && state.length === 0) {\n state.endEmitted = true;\n stream.readable = false;\n stream.emit('end');\n }\n}\n\nfunction forEach (xs, f) {\n for (var i = 0, l = xs.length; i < l; i++) {\n f(xs[i], i);\n }\n}\n\nfunction indexOf (xs, x) {\n for (var i = 0, l = xs.length; i < l; i++) {\n if (xs[i] === x) return i;\n }\n return -1;\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(83)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/merge-stream/~/readable-stream/lib/_stream_readable.js\n ** module id = 352\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/merge-stream/~/readable-stream/lib/_stream_readable.js?"); - -/***/ }, -/* 353 */ -/***/ function(module, exports) { - - eval("module.exports = Array.isArray || function (arr) {\n return Object.prototype.toString.call(arr) == '[object Array]';\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/merge-stream/~/readable-stream/~/isarray/index.js\n ** module id = 353\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/merge-stream/~/readable-stream/~/isarray/index.js?"); - -/***/ }, -/* 354 */ -/***/ function(module, exports) { - - eval("/* (ignored) */\n\n/*****************\n ** WEBPACK FOOTER\n ** util (ignored)\n ** module id = 354\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///util_(ignored)?"); - -/***/ }, -/* 355 */ -/***/ function(module, exports, __webpack_require__) { - - eval("// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nvar Buffer = __webpack_require__(1).Buffer;\n\nvar isBufferEncoding = Buffer.isEncoding\n || function(encoding) {\n switch (encoding && encoding.toLowerCase()) {\n case 'hex': case 'utf8': case 'utf-8': case 'ascii': case 'binary': case 'base64': case 'ucs2': case 'ucs-2': case 'utf16le': case 'utf-16le': case 'raw': return true;\n default: return false;\n }\n }\n\n\nfunction assertEncoding(encoding) {\n if (encoding && !isBufferEncoding(encoding)) {\n throw new Error('Unknown encoding: ' + encoding);\n }\n}\n\n// StringDecoder provides an interface for efficiently splitting a series of\n// buffers into a series of JS strings without breaking apart multi-byte\n// characters. CESU-8 is handled as part of the UTF-8 encoding.\n//\n// @TODO Handling all encodings inside a single object makes it very difficult\n// to reason about this code, so it should be split up in the future.\n// @TODO There should be a utf8-strict encoding that rejects invalid UTF-8 code\n// points as used by CESU-8.\nvar StringDecoder = exports.StringDecoder = function(encoding) {\n this.encoding = (encoding || 'utf8').toLowerCase().replace(/[-_]/, '');\n assertEncoding(encoding);\n switch (this.encoding) {\n case 'utf8':\n // CESU-8 represents each of Surrogate Pair by 3-bytes\n this.surrogateSize = 3;\n break;\n case 'ucs2':\n case 'utf16le':\n // UTF-16 represents each of Surrogate Pair by 2-bytes\n this.surrogateSize = 2;\n this.detectIncompleteChar = utf16DetectIncompleteChar;\n break;\n case 'base64':\n // Base-64 stores 3 bytes in 4 chars, and pads the remainder.\n this.surrogateSize = 3;\n this.detectIncompleteChar = base64DetectIncompleteChar;\n break;\n default:\n this.write = passThroughWrite;\n return;\n }\n\n // Enough space to store all bytes of a single character. UTF-8 needs 4\n // bytes, but CESU-8 may require up to 6 (3 bytes per surrogate).\n this.charBuffer = new Buffer(6);\n // Number of bytes received for the current incomplete multi-byte character.\n this.charReceived = 0;\n // Number of bytes expected for the current incomplete multi-byte character.\n this.charLength = 0;\n};\n\n\n// write decodes the given buffer and returns it as JS string that is\n// guaranteed to not contain any partial multi-byte characters. Any partial\n// character found at the end of the buffer is buffered up, and will be\n// returned when calling write again with the remaining bytes.\n//\n// Note: Converting a Buffer containing an orphan surrogate to a String\n// currently works, but converting a String to a Buffer (via `new Buffer`, or\n// Buffer#write) will replace incomplete surrogates with the unicode\n// replacement character. See https://codereview.chromium.org/121173009/ .\nStringDecoder.prototype.write = function(buffer) {\n var charStr = '';\n // if our last write ended with an incomplete multibyte character\n while (this.charLength) {\n // determine how many remaining bytes this buffer has to offer for this char\n var available = (buffer.length >= this.charLength - this.charReceived) ?\n this.charLength - this.charReceived :\n buffer.length;\n\n // add the new bytes to the char buffer\n buffer.copy(this.charBuffer, this.charReceived, 0, available);\n this.charReceived += available;\n\n if (this.charReceived < this.charLength) {\n // still not enough chars in this buffer? wait for more ...\n return '';\n }\n\n // remove bytes belonging to the current character from the buffer\n buffer = buffer.slice(available, buffer.length);\n\n // get the character that was split\n charStr = this.charBuffer.slice(0, this.charLength).toString(this.encoding);\n\n // CESU-8: lead surrogate (D800-DBFF) is also the incomplete character\n var charCode = charStr.charCodeAt(charStr.length - 1);\n if (charCode >= 0xD800 && charCode <= 0xDBFF) {\n this.charLength += this.surrogateSize;\n charStr = '';\n continue;\n }\n this.charReceived = this.charLength = 0;\n\n // if there are no more bytes in this buffer, just emit our char\n if (buffer.length === 0) {\n return charStr;\n }\n break;\n }\n\n // determine and set charLength / charReceived\n this.detectIncompleteChar(buffer);\n\n var end = buffer.length;\n if (this.charLength) {\n // buffer the incomplete character bytes we got\n buffer.copy(this.charBuffer, 0, buffer.length - this.charReceived, end);\n end -= this.charReceived;\n }\n\n charStr += buffer.toString(this.encoding, 0, end);\n\n var end = charStr.length - 1;\n var charCode = charStr.charCodeAt(end);\n // CESU-8: lead surrogate (D800-DBFF) is also the incomplete character\n if (charCode >= 0xD800 && charCode <= 0xDBFF) {\n var size = this.surrogateSize;\n this.charLength += size;\n this.charReceived += size;\n this.charBuffer.copy(this.charBuffer, size, 0, size);\n buffer.copy(this.charBuffer, 0, 0, size);\n return charStr.substring(0, end);\n }\n\n // or just emit the charStr\n return charStr;\n};\n\n// detectIncompleteChar determines if there is an incomplete UTF-8 character at\n// the end of the given buffer. If so, it sets this.charLength to the byte\n// length that character, and sets this.charReceived to the number of bytes\n// that are available for this character.\nStringDecoder.prototype.detectIncompleteChar = function(buffer) {\n // determine how many bytes we have to check at the end of this buffer\n var i = (buffer.length >= 3) ? 3 : buffer.length;\n\n // Figure out if one of the last i bytes of our buffer announces an\n // incomplete char.\n for (; i > 0; i--) {\n var c = buffer[buffer.length - i];\n\n // See http://en.wikipedia.org/wiki/UTF-8#Description\n\n // 110XXXXX\n if (i == 1 && c >> 5 == 0x06) {\n this.charLength = 2;\n break;\n }\n\n // 1110XXXX\n if (i <= 2 && c >> 4 == 0x0E) {\n this.charLength = 3;\n break;\n }\n\n // 11110XXX\n if (i <= 3 && c >> 3 == 0x1E) {\n this.charLength = 4;\n break;\n }\n }\n this.charReceived = i;\n};\n\nStringDecoder.prototype.end = function(buffer) {\n var res = '';\n if (buffer && buffer.length)\n res = this.write(buffer);\n\n if (this.charReceived) {\n var cr = this.charReceived;\n var buf = this.charBuffer;\n var enc = this.encoding;\n res += buf.slice(0, cr).toString(enc);\n }\n\n return res;\n};\n\nfunction passThroughWrite(buffer) {\n return buffer.toString(this.encoding);\n}\n\nfunction utf16DetectIncompleteChar(buffer) {\n this.charReceived = buffer.length % 2;\n this.charLength = this.charReceived ? 2 : 0;\n}\n\nfunction base64DetectIncompleteChar(buffer) {\n this.charReceived = buffer.length % 3;\n this.charLength = this.charReceived ? 3 : 0;\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/merge-stream/~/readable-stream/~/string_decoder/index.js\n ** module id = 355\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/merge-stream/~/readable-stream/~/string_decoder/index.js?"); - -/***/ }, -/* 356 */ -/***/ function(module, exports, __webpack_require__) { - - eval("// A bit simpler than readable streams.\n// Implement an async ._write(chunk, encoding, cb), and it'll handle all\n// the drain event emission and buffering.\n\n'use strict';\n\nmodule.exports = Writable;\n\n/**/\nvar processNextTick = __webpack_require__(349);\n/**/\n\n\n/**/\nvar Buffer = __webpack_require__(1).Buffer;\n/**/\n\nWritable.WritableState = WritableState;\n\n\n/**/\nvar util = __webpack_require__(350);\nutil.inherits = __webpack_require__(351);\n/**/\n\n\n/**/\nvar internalUtil = {\n deprecate: __webpack_require__(357)\n};\n/**/\n\n\n\n/**/\nvar Stream;\n(function (){try{\n Stream = __webpack_require__(96);\n}catch(_){}finally{\n if (!Stream)\n Stream = __webpack_require__(84).EventEmitter;\n}}())\n/**/\n\nvar Buffer = __webpack_require__(1).Buffer;\n\nutil.inherits(Writable, Stream);\n\nfunction nop() {}\n\nfunction WriteReq(chunk, encoding, cb) {\n this.chunk = chunk;\n this.encoding = encoding;\n this.callback = cb;\n this.next = null;\n}\n\nvar Duplex;\nfunction WritableState(options, stream) {\n Duplex = Duplex || __webpack_require__(348);\n\n options = options || {};\n\n // object stream flag to indicate whether or not this stream\n // contains buffers or objects.\n this.objectMode = !!options.objectMode;\n\n if (stream instanceof Duplex)\n this.objectMode = this.objectMode || !!options.writableObjectMode;\n\n // the point at which write() starts returning false\n // Note: 0 is a valid value, means that we always return false if\n // the entire buffer is not flushed immediately on write()\n var hwm = options.highWaterMark;\n var defaultHwm = this.objectMode ? 16 : 16 * 1024;\n this.highWaterMark = (hwm || hwm === 0) ? hwm : defaultHwm;\n\n // cast to ints.\n this.highWaterMark = ~~this.highWaterMark;\n\n this.needDrain = false;\n // at the start of calling end()\n this.ending = false;\n // when end() has been called, and returned\n this.ended = false;\n // when 'finish' is emitted\n this.finished = false;\n\n // should we decode strings into buffers before passing to _write?\n // this is here so that some node-core streams can optimize string\n // handling at a lower level.\n var noDecode = options.decodeStrings === false;\n this.decodeStrings = !noDecode;\n\n // Crypto is kind of old and crusty. Historically, its default string\n // encoding is 'binary' so we have to make this configurable.\n // Everything else in the universe uses 'utf8', though.\n this.defaultEncoding = options.defaultEncoding || 'utf8';\n\n // not an actual buffer we keep track of, but a measurement\n // of how much we're waiting to get pushed to some underlying\n // socket or file.\n this.length = 0;\n\n // a flag to see when we're in the middle of a write.\n this.writing = false;\n\n // when true all writes will be buffered until .uncork() call\n this.corked = 0;\n\n // a flag to be able to tell if the onwrite cb is called immediately,\n // or on a later tick. We set this to true at first, because any\n // actions that shouldn't happen until \"later\" should generally also\n // not happen before the first write call.\n this.sync = true;\n\n // a flag to know if we're processing previously buffered items, which\n // may call the _write() callback in the same tick, so that we don't\n // end up in an overlapped onwrite situation.\n this.bufferProcessing = false;\n\n // the callback that's passed to _write(chunk,cb)\n this.onwrite = function(er) {\n onwrite(stream, er);\n };\n\n // the callback that the user supplies to write(chunk,encoding,cb)\n this.writecb = null;\n\n // the amount that is being written when _write is called.\n this.writelen = 0;\n\n this.bufferedRequest = null;\n this.lastBufferedRequest = null;\n\n // number of pending user-supplied write callbacks\n // this must be 0 before 'finish' can be emitted\n this.pendingcb = 0;\n\n // emit prefinish if the only thing we're waiting for is _write cbs\n // This is relevant for synchronous Transform streams\n this.prefinished = false;\n\n // True if the error was already emitted and should not be thrown again\n this.errorEmitted = false;\n}\n\nWritableState.prototype.getBuffer = function writableStateGetBuffer() {\n var current = this.bufferedRequest;\n var out = [];\n while (current) {\n out.push(current);\n current = current.next;\n }\n return out;\n};\n\n(function (){try {\nObject.defineProperty(WritableState.prototype, 'buffer', {\n get: internalUtil.deprecate(function() {\n return this.getBuffer();\n }, '_writableState.buffer is deprecated. Use _writableState.getBuffer ' +\n 'instead.')\n});\n}catch(_){}}());\n\n\nvar Duplex;\nfunction Writable(options) {\n Duplex = Duplex || __webpack_require__(348);\n\n // Writable ctor is applied to Duplexes, though they're not\n // instanceof Writable, they're instanceof Readable.\n if (!(this instanceof Writable) && !(this instanceof Duplex))\n return new Writable(options);\n\n this._writableState = new WritableState(options, this);\n\n // legacy.\n this.writable = true;\n\n if (options) {\n if (typeof options.write === 'function')\n this._write = options.write;\n\n if (typeof options.writev === 'function')\n this._writev = options.writev;\n }\n\n Stream.call(this);\n}\n\n// Otherwise people can pipe Writable streams, which is just wrong.\nWritable.prototype.pipe = function() {\n this.emit('error', new Error('Cannot pipe. Not readable.'));\n};\n\n\nfunction writeAfterEnd(stream, cb) {\n var er = new Error('write after end');\n // TODO: defer error events consistently everywhere, not just the cb\n stream.emit('error', er);\n processNextTick(cb, er);\n}\n\n// If we get something that is not a buffer, string, null, or undefined,\n// and we're not in objectMode, then that's an error.\n// Otherwise stream chunks are all considered to be of length=1, and the\n// watermarks determine how many objects to keep in the buffer, rather than\n// how many bytes or characters.\nfunction validChunk(stream, state, chunk, cb) {\n var valid = true;\n\n if (!(Buffer.isBuffer(chunk)) &&\n typeof chunk !== 'string' &&\n chunk !== null &&\n chunk !== undefined &&\n !state.objectMode) {\n var er = new TypeError('Invalid non-string/buffer chunk');\n stream.emit('error', er);\n processNextTick(cb, er);\n valid = false;\n }\n return valid;\n}\n\nWritable.prototype.write = function(chunk, encoding, cb) {\n var state = this._writableState;\n var ret = false;\n\n if (typeof encoding === 'function') {\n cb = encoding;\n encoding = null;\n }\n\n if (Buffer.isBuffer(chunk))\n encoding = 'buffer';\n else if (!encoding)\n encoding = state.defaultEncoding;\n\n if (typeof cb !== 'function')\n cb = nop;\n\n if (state.ended)\n writeAfterEnd(this, cb);\n else if (validChunk(this, state, chunk, cb)) {\n state.pendingcb++;\n ret = writeOrBuffer(this, state, chunk, encoding, cb);\n }\n\n return ret;\n};\n\nWritable.prototype.cork = function() {\n var state = this._writableState;\n\n state.corked++;\n};\n\nWritable.prototype.uncork = function() {\n var state = this._writableState;\n\n if (state.corked) {\n state.corked--;\n\n if (!state.writing &&\n !state.corked &&\n !state.finished &&\n !state.bufferProcessing &&\n state.bufferedRequest)\n clearBuffer(this, state);\n }\n};\n\nWritable.prototype.setDefaultEncoding = function setDefaultEncoding(encoding) {\n // node::ParseEncoding() requires lower case.\n if (typeof encoding === 'string')\n encoding = encoding.toLowerCase();\n if (!(['hex', 'utf8', 'utf-8', 'ascii', 'binary', 'base64',\n'ucs2', 'ucs-2','utf16le', 'utf-16le', 'raw']\n.indexOf((encoding + '').toLowerCase()) > -1))\n throw new TypeError('Unknown encoding: ' + encoding);\n this._writableState.defaultEncoding = encoding;\n};\n\nfunction decodeChunk(state, chunk, encoding) {\n if (!state.objectMode &&\n state.decodeStrings !== false &&\n typeof chunk === 'string') {\n chunk = new Buffer(chunk, encoding);\n }\n return chunk;\n}\n\n// if we're already writing something, then just put this\n// in the queue, and wait our turn. Otherwise, call _write\n// If we return false, then we need a drain event, so set that flag.\nfunction writeOrBuffer(stream, state, chunk, encoding, cb) {\n chunk = decodeChunk(state, chunk, encoding);\n\n if (Buffer.isBuffer(chunk))\n encoding = 'buffer';\n var len = state.objectMode ? 1 : chunk.length;\n\n state.length += len;\n\n var ret = state.length < state.highWaterMark;\n // we must ensure that previous needDrain will not be reset to false.\n if (!ret)\n state.needDrain = true;\n\n if (state.writing || state.corked) {\n var last = state.lastBufferedRequest;\n state.lastBufferedRequest = new WriteReq(chunk, encoding, cb);\n if (last) {\n last.next = state.lastBufferedRequest;\n } else {\n state.bufferedRequest = state.lastBufferedRequest;\n }\n } else {\n doWrite(stream, state, false, len, chunk, encoding, cb);\n }\n\n return ret;\n}\n\nfunction doWrite(stream, state, writev, len, chunk, encoding, cb) {\n state.writelen = len;\n state.writecb = cb;\n state.writing = true;\n state.sync = true;\n if (writev)\n stream._writev(chunk, state.onwrite);\n else\n stream._write(chunk, encoding, state.onwrite);\n state.sync = false;\n}\n\nfunction onwriteError(stream, state, sync, er, cb) {\n --state.pendingcb;\n if (sync)\n processNextTick(cb, er);\n else\n cb(er);\n\n stream._writableState.errorEmitted = true;\n stream.emit('error', er);\n}\n\nfunction onwriteStateUpdate(state) {\n state.writing = false;\n state.writecb = null;\n state.length -= state.writelen;\n state.writelen = 0;\n}\n\nfunction onwrite(stream, er) {\n var state = stream._writableState;\n var sync = state.sync;\n var cb = state.writecb;\n\n onwriteStateUpdate(state);\n\n if (er)\n onwriteError(stream, state, sync, er, cb);\n else {\n // Check if we're actually ready to finish, but don't emit yet\n var finished = needFinish(state);\n\n if (!finished &&\n !state.corked &&\n !state.bufferProcessing &&\n state.bufferedRequest) {\n clearBuffer(stream, state);\n }\n\n if (sync) {\n processNextTick(afterWrite, stream, state, finished, cb);\n } else {\n afterWrite(stream, state, finished, cb);\n }\n }\n}\n\nfunction afterWrite(stream, state, finished, cb) {\n if (!finished)\n onwriteDrain(stream, state);\n state.pendingcb--;\n cb();\n finishMaybe(stream, state);\n}\n\n// Must force callback to be called on nextTick, so that we don't\n// emit 'drain' before the write() consumer gets the 'false' return\n// value, and has a chance to attach a 'drain' listener.\nfunction onwriteDrain(stream, state) {\n if (state.length === 0 && state.needDrain) {\n state.needDrain = false;\n stream.emit('drain');\n }\n}\n\n\n// if there's something in the buffer waiting, then process it\nfunction clearBuffer(stream, state) {\n state.bufferProcessing = true;\n var entry = state.bufferedRequest;\n\n if (stream._writev && entry && entry.next) {\n // Fast case, write everything using _writev()\n var buffer = [];\n var cbs = [];\n while (entry) {\n cbs.push(entry.callback);\n buffer.push(entry);\n entry = entry.next;\n }\n\n // count the one we are adding, as well.\n // TODO(isaacs) clean this up\n state.pendingcb++;\n state.lastBufferedRequest = null;\n doWrite(stream, state, true, state.length, buffer, '', function(err) {\n for (var i = 0; i < cbs.length; i++) {\n state.pendingcb--;\n cbs[i](err);\n }\n });\n\n // Clear buffer\n } else {\n // Slow case, write chunks one-by-one\n while (entry) {\n var chunk = entry.chunk;\n var encoding = entry.encoding;\n var cb = entry.callback;\n var len = state.objectMode ? 1 : chunk.length;\n\n doWrite(stream, state, false, len, chunk, encoding, cb);\n entry = entry.next;\n // if we didn't call the onwrite immediately, then\n // it means that we need to wait until it does.\n // also, that means that the chunk and cb are currently\n // being processed, so move the buffer counter past them.\n if (state.writing) {\n break;\n }\n }\n\n if (entry === null)\n state.lastBufferedRequest = null;\n }\n state.bufferedRequest = entry;\n state.bufferProcessing = false;\n}\n\nWritable.prototype._write = function(chunk, encoding, cb) {\n cb(new Error('not implemented'));\n};\n\nWritable.prototype._writev = null;\n\nWritable.prototype.end = function(chunk, encoding, cb) {\n var state = this._writableState;\n\n if (typeof chunk === 'function') {\n cb = chunk;\n chunk = null;\n encoding = null;\n } else if (typeof encoding === 'function') {\n cb = encoding;\n encoding = null;\n }\n\n if (chunk !== null && chunk !== undefined)\n this.write(chunk, encoding);\n\n // .end() fully uncorks\n if (state.corked) {\n state.corked = 1;\n this.uncork();\n }\n\n // ignore unnecessary end() calls.\n if (!state.ending && !state.finished)\n endWritable(this, state, cb);\n};\n\n\nfunction needFinish(state) {\n return (state.ending &&\n state.length === 0 &&\n state.bufferedRequest === null &&\n !state.finished &&\n !state.writing);\n}\n\nfunction prefinish(stream, state) {\n if (!state.prefinished) {\n state.prefinished = true;\n stream.emit('prefinish');\n }\n}\n\nfunction finishMaybe(stream, state) {\n var need = needFinish(state);\n if (need) {\n if (state.pendingcb === 0) {\n prefinish(stream, state);\n state.finished = true;\n stream.emit('finish');\n } else {\n prefinish(stream, state);\n }\n }\n return need;\n}\n\nfunction endWritable(stream, state, cb) {\n state.ending = true;\n finishMaybe(stream, state);\n if (cb) {\n if (state.finished)\n processNextTick(cb);\n else\n stream.once('finish', cb);\n }\n state.ended = true;\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/merge-stream/~/readable-stream/lib/_stream_writable.js\n ** module id = 356\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/merge-stream/~/readable-stream/lib/_stream_writable.js?"); - -/***/ }, -/* 357 */ -/***/ function(module, exports) { - - eval("/* WEBPACK VAR INJECTION */(function(global) {\n/**\n * Module exports.\n */\n\nmodule.exports = deprecate;\n\n/**\n * Mark that a method should not be used.\n * Returns a modified function which warns once by default.\n *\n * If `localStorage.noDeprecation = true` is set, then it is a no-op.\n *\n * If `localStorage.throwDeprecation = true` is set, then deprecated functions\n * will throw an Error when invoked.\n *\n * If `localStorage.traceDeprecation = true` is set, then deprecated functions\n * will invoke `console.trace()` instead of `console.error()`.\n *\n * @param {Function} fn - the function to deprecate\n * @param {String} msg - the string to print to the console when `fn` is invoked\n * @returns {Function} a new \"deprecated\" version of `fn`\n * @api public\n */\n\nfunction deprecate (fn, msg) {\n if (config('noDeprecation')) {\n return fn;\n }\n\n var warned = false;\n function deprecated() {\n if (!warned) {\n if (config('throwDeprecation')) {\n throw new Error(msg);\n } else if (config('traceDeprecation')) {\n console.trace(msg);\n } else {\n console.warn(msg);\n }\n warned = true;\n }\n return fn.apply(this, arguments);\n }\n\n return deprecated;\n}\n\n/**\n * Checks `localStorage` for boolean values for the given `name`.\n *\n * @param {String} name\n * @returns {Boolean}\n * @api private\n */\n\nfunction config (name) {\n // accessing global.localStorage can trigger a DOMException in sandboxed iframes\n try {\n if (!global.localStorage) return false;\n } catch (_) {\n return false;\n }\n var val = global.localStorage[name];\n if (null == val) return false;\n return String(val).toLowerCase() === 'true';\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/merge-stream/~/readable-stream/~/util-deprecate/browser.js\n ** module id = 357\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/merge-stream/~/readable-stream/~/util-deprecate/browser.js?"); - -/***/ }, -/* 358 */ -/***/ function(module, exports, __webpack_require__) { - - eval("/* WEBPACK VAR INJECTION */(function(Buffer) {'use strict';\nvar through = __webpack_require__(213);\nvar fs = __webpack_require__(359);\nvar path = __webpack_require__(151);\nvar File = __webpack_require__(201);\nvar convert = __webpack_require__(364);\nvar stripBom = __webpack_require__(365);\n\nvar PLUGIN_NAME = 'gulp-sourcemap';\nvar urlRegex = /^(https?|webpack(-[^:]+)?):\\/\\//;\n\n/**\n * Initialize source mapping chain\n */\nmodule.exports.init = function init(options) {\n function sourceMapInit(file, encoding, callback) {\n /*jshint validthis:true */\n\n // pass through if file is null or already has a source map\n if (file.isNull() || file.sourceMap) {\n this.push(file);\n return callback();\n }\n\n if (file.isStream()) {\n return callback(new Error(PLUGIN_NAME + '-init: Streaming not supported'));\n }\n\n var fileContent = file.contents.toString();\n var sourceMap;\n\n if (options && options.loadMaps) {\n var sourcePath = ''; //root path for the sources in the map\n\n // Try to read inline source map\n sourceMap = convert.fromSource(fileContent);\n if (sourceMap) {\n sourceMap = sourceMap.toObject();\n // sources in map are relative to the source file\n sourcePath = path.dirname(file.path);\n fileContent = convert.removeComments(fileContent);\n } else {\n // look for source map comment referencing a source map file\n var mapComment = convert.mapFileCommentRegex.exec(fileContent);\n\n var mapFile;\n if (mapComment) {\n mapFile = path.resolve(path.dirname(file.path), mapComment[1] || mapComment[2]);\n fileContent = convert.removeMapFileComments(fileContent);\n // if no comment try map file with same name as source file\n } else {\n mapFile = file.path + '.map';\n }\n\n // sources in external map are relative to map file\n sourcePath = path.dirname(mapFile);\n\n try {\n sourceMap = JSON.parse(stripBom(fs.readFileSync(mapFile, 'utf8')));\n } catch(e) {}\n }\n\n // fix source paths and sourceContent for imported source map\n if (sourceMap) {\n sourceMap.sourcesContent = sourceMap.sourcesContent || [];\n sourceMap.sources.forEach(function(source, i) {\n if (source.match(urlRegex)) {\n sourceMap.sourcesContent[i] = sourceMap.sourcesContent[i] || null;\n return;\n }\n var absPath = path.resolve(sourcePath, source);\n sourceMap.sources[i] = unixStylePath(path.relative(file.base, absPath));\n\n if (!sourceMap.sourcesContent[i]) {\n var sourceContent = null;\n if (sourceMap.sourceRoot) {\n if (sourceMap.sourceRoot.match(urlRegex)) {\n sourceMap.sourcesContent[i] = null;\n return;\n }\n absPath = path.resolve(sourcePath, sourceMap.sourceRoot, source);\n }\n\n // if current file: use content\n if (absPath === file.path) {\n sourceContent = fileContent;\n\n // else load content from file\n } else {\n try {\n if (options.debug)\n console.log(PLUGIN_NAME + '-init: No source content for \"' + source + '\". Loading from file.');\n sourceContent = stripBom(fs.readFileSync(absPath, 'utf8'));\n } catch (e) {\n if (options.debug)\n console.warn(PLUGIN_NAME + '-init: source file not found: ' + absPath);\n }\n }\n sourceMap.sourcesContent[i] = sourceContent;\n }\n });\n\n // remove source map comment from source\n file.contents = new Buffer(fileContent, 'utf8');\n }\n }\n\n if (!sourceMap) {\n // Make an empty source map\n sourceMap = {\n version : 3,\n names: [],\n mappings: '',\n sources: [unixStylePath(file.relative)],\n sourcesContent: [fileContent]\n };\n }\n\n sourceMap.file = unixStylePath(file.relative);\n file.sourceMap = sourceMap;\n\n this.push(file);\n callback();\n }\n\n return through.obj(sourceMapInit);\n};\n\n/**\n * Write the source map\n *\n * @param options options to change the way the source map is written\n *\n */\nmodule.exports.write = function write(destPath, options) {\n if (options === undefined && Object.prototype.toString.call(destPath) === '[object Object]') {\n options = destPath;\n destPath = undefined;\n }\n options = options || {};\n\n // set defaults for options if unset\n if (options.includeContent === undefined)\n options.includeContent = true;\n if (options.addComment === undefined)\n options.addComment = true;\n\n function sourceMapWrite(file, encoding, callback) {\n /*jshint validthis:true */\n\n if (file.isNull() || !file.sourceMap) {\n this.push(file);\n return callback();\n }\n\n if (file.isStream()) {\n return callback(new Error(PLUGIN_NAME + '-write: Streaming not supported'));\n }\n\n var sourceMap = file.sourceMap;\n // fix paths if Windows style paths\n sourceMap.file = unixStylePath(file.relative);\n sourceMap.sources = sourceMap.sources.map(function(filePath) {\n return unixStylePath(filePath);\n });\n\n if (typeof options.sourceRoot === 'function') {\n sourceMap.sourceRoot = options.sourceRoot(file);\n } else {\n sourceMap.sourceRoot = options.sourceRoot;\n }\n\n if (options.includeContent) {\n sourceMap.sourcesContent = sourceMap.sourcesContent || [];\n\n // load missing source content\n for (var i = 0; i < file.sourceMap.sources.length; i++) {\n if (!sourceMap.sourcesContent[i]) {\n var sourcePath = path.resolve(sourceMap.sourceRoot || file.base, sourceMap.sources[i]);\n try {\n if (options.debug)\n console.log(PLUGIN_NAME + '-write: No source content for \"' + sourceMap.sources[i] + '\". Loading from file.');\n sourceMap.sourcesContent[i] = stripBom(fs.readFileSync(sourcePath, 'utf8'));\n } catch (e) {\n if (options.debug)\n console.warn(PLUGIN_NAME + '-write: source file not found: ' + sourcePath);\n }\n }\n }\n if (sourceMap.sourceRoot === undefined) {\n sourceMap.sourceRoot = '/source/';\n } else if (sourceMap.sourceRoot === null) {\n sourceMap.sourceRoot = undefined;\n }\n } else {\n delete sourceMap.sourcesContent;\n }\n\n var extension = file.relative.split('.').pop();\n var commentFormatter;\n\n switch (extension) {\n case 'css':\n commentFormatter = function(url) { return \"\\n/*# sourceMappingURL=\" + url + \" */\\n\"; };\n break;\n case 'js':\n commentFormatter = function(url) { return \"\\n//# sourceMappingURL=\" + url + \"\\n\"; };\n break;\n default:\n commentFormatter = function(url) { return \"\"; };\n }\n\n var comment, sourceMappingURLPrefix;\n if (!destPath) {\n // encode source map into comment\n var base64Map = new Buffer(JSON.stringify(sourceMap)).toString('base64');\n comment = commentFormatter('data:application/json;base64,' + base64Map);\n } else {\n var sourceMapPath = path.join(file.base, destPath, file.relative) + '.map';\n // add new source map file to stream\n var sourceMapFile = new File({\n cwd: file.cwd,\n base: file.base,\n path: sourceMapPath,\n contents: new Buffer(JSON.stringify(sourceMap)),\n stat: {\n isFile: function () { return true; },\n isDirectory: function () { return false; },\n isBlockDevice: function () { return false; },\n isCharacterDevice: function () { return false; },\n isSymbolicLink: function () { return false; },\n isFIFO: function () { return false; },\n isSocket: function () { return false; }\n }\n });\n this.push(sourceMapFile);\n\n var sourceMapPathRelative = path.relative(path.dirname(file.path), sourceMapPath);\n\n if (options.sourceMappingURLPrefix) {\n var prefix = '';\n if (typeof options.sourceMappingURLPrefix === 'function') {\n prefix = options.sourceMappingURLPrefix(file);\n } else {\n prefix = options.sourceMappingURLPrefix;\n }\n sourceMapPathRelative = prefix+path.join('/', sourceMapPathRelative);\n }\n comment = commentFormatter(unixStylePath(sourceMapPathRelative));\n\n if (options.sourceMappingURL && typeof options.sourceMappingURL === 'function') {\n comment = commentFormatter(options.sourceMappingURL(file));\n }\n }\n\n // append source map comment\n if (options.addComment)\n file.contents = Buffer.concat([file.contents, new Buffer(comment)]);\n\n this.push(file);\n callback();\n }\n\n return through.obj(sourceMapWrite);\n};\n\nfunction unixStylePath(filePath) {\n return filePath.split(path.sep).join('/');\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1).Buffer))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/~/gulp-sourcemaps/index.js\n ** module id = 358\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/~/gulp-sourcemaps/index.js?"); - -/***/ }, -/* 359 */ -/***/ function(module, exports, __webpack_require__) { - - eval("/* WEBPACK VAR INJECTION */(function(process) {var fs = __webpack_require__(80)\nvar polyfills = __webpack_require__(360)\nvar legacy = __webpack_require__(363)\nvar queue = []\n\nvar util = __webpack_require__(140)\n\nfunction noop () {}\n\nvar debug = noop\nif (util.debuglog)\n debug = util.debuglog('gfs4')\nelse if (/\\bgfs4\\b/i.test(process.env.NODE_DEBUG || ''))\n debug = function() {\n var m = util.format.apply(util, arguments)\n m = 'GFS4: ' + m.split(/\\n/).join('\\nGFS4: ')\n console.error(m)\n }\n\nif (/\\bgfs4\\b/i.test(process.env.NODE_DEBUG || '')) {\n process.on('exit', function() {\n debug(queue)\n __webpack_require__(276).equal(queue.length, 0)\n })\n}\n\nmodule.exports = patch(__webpack_require__(361))\nif (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH) {\n module.exports = patch(fs)\n}\n\n// Always patch fs.close/closeSync, because we want to\n// retry() whenever a close happens *anywhere* in the program.\n// This is essential when multiple graceful-fs instances are\n// in play at the same time.\nfs.close = (function (fs$close) { return function (fd, cb) {\n return fs$close.call(fs, fd, function (err) {\n if (!err)\n retry()\n\n if (typeof cb === 'function')\n cb.apply(this, arguments)\n })\n}})(fs.close)\n\nfs.closeSync = (function (fs$closeSync) { return function (fd) {\n // Note that graceful-fs also retries when fs.closeSync() fails.\n // Looks like a bug to me, although it's probably a harmless one.\n var rval = fs$closeSync.apply(fs, arguments)\n retry()\n return rval\n}})(fs.closeSync)\n\nfunction patch (fs) {\n // Everything that references the open() function needs to be in here\n polyfills(fs)\n fs.gracefulify = patch\n fs.FileReadStream = ReadStream; // Legacy name.\n fs.FileWriteStream = WriteStream; // Legacy name.\n fs.createReadStream = createReadStream\n fs.createWriteStream = createWriteStream\n var fs$readFile = fs.readFile\n fs.readFile = readFile\n function readFile (path, options, cb) {\n if (typeof options === 'function')\n cb = options, options = null\n\n return go$readFile(path, options, cb)\n\n function go$readFile (path, options, cb) {\n return fs$readFile(path, options, function (err) {\n if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))\n enqueue([go$readFile, [path, options, cb]])\n else {\n if (typeof cb === 'function')\n cb.apply(this, arguments)\n retry()\n }\n })\n }\n }\n\n var fs$writeFile = fs.writeFile\n fs.writeFile = writeFile\n function writeFile (path, data, options, cb) {\n if (typeof options === 'function')\n cb = options, options = null\n\n return go$writeFile(path, data, options, cb)\n\n function go$writeFile (path, data, options, cb) {\n return fs$writeFile(path, data, options, function (err) {\n if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))\n enqueue([go$writeFile, [path, data, options, cb]])\n else {\n if (typeof cb === 'function')\n cb.apply(this, arguments)\n retry()\n }\n })\n }\n }\n\n var fs$appendFile = fs.appendFile\n if (fs$appendFile)\n fs.appendFile = appendFile\n function appendFile (path, data, options, cb) {\n if (typeof options === 'function')\n cb = options, options = null\n\n return go$appendFile(path, data, options, cb)\n\n function go$appendFile (path, data, options, cb) {\n return fs$appendFile(path, data, options, function (err) {\n if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))\n enqueue([go$appendFile, [path, data, options, cb]])\n else {\n if (typeof cb === 'function')\n cb.apply(this, arguments)\n retry()\n }\n })\n }\n }\n\n var fs$readdir = fs.readdir\n fs.readdir = readdir\n function readdir (path, cb) {\n return go$readdir(path, cb)\n\n function go$readdir () {\n return fs$readdir(path, function (err, files) {\n if (files && files.sort)\n files.sort(); // Backwards compatibility with graceful-fs.\n\n if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))\n enqueue([go$readdir, [path, cb]])\n else {\n if (typeof cb === 'function')\n cb.apply(this, arguments)\n retry()\n }\n })\n }\n }\n\n\n if (process.version.substr(0, 4) === 'v0.8') {\n var legStreams = legacy(fs)\n ReadStream = legStreams.ReadStream\n WriteStream = legStreams.WriteStream\n }\n\n var fs$ReadStream = fs.ReadStream\n ReadStream.prototype = Object.create(fs$ReadStream.prototype)\n ReadStream.prototype.open = ReadStream$open\n\n var fs$WriteStream = fs.WriteStream\n WriteStream.prototype = Object.create(fs$WriteStream.prototype)\n WriteStream.prototype.open = WriteStream$open\n\n fs.ReadStream = ReadStream\n fs.WriteStream = WriteStream\n\n function ReadStream (path, options) {\n if (this instanceof ReadStream)\n return fs$ReadStream.apply(this, arguments), this\n else\n return ReadStream.apply(Object.create(ReadStream.prototype), arguments)\n }\n\n function ReadStream$open () {\n var that = this\n open(that.path, that.flags, that.mode, function (err, fd) {\n if (err) {\n if (that.autoClose)\n that.destroy()\n\n that.emit('error', err)\n } else {\n that.fd = fd\n that.emit('open', fd)\n that.read()\n }\n })\n }\n\n function WriteStream (path, options) {\n if (this instanceof WriteStream)\n return fs$WriteStream.apply(this, arguments), this\n else\n return WriteStream.apply(Object.create(WriteStream.prototype), arguments)\n }\n\n function WriteStream$open () {\n var that = this\n open(that.path, that.flags, that.mode, function (err, fd) {\n if (err) {\n that.destroy()\n that.emit('error', err)\n } else {\n that.fd = fd\n that.emit('open', fd)\n }\n })\n }\n\n function createReadStream (path, options) {\n return new ReadStream(path, options)\n }\n\n function createWriteStream (path, options) {\n return new WriteStream(path, options)\n }\n\n var fs$open = fs.open\n fs.open = open\n function open (path, flags, mode, cb) {\n if (typeof mode === 'function')\n cb = mode, mode = null\n\n return go$open(path, flags, mode, cb)\n\n function go$open (path, flags, mode, cb) {\n return fs$open(path, flags, mode, function (err, fd) {\n if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))\n enqueue([go$open, [path, flags, mode, cb]])\n else {\n if (typeof cb === 'function')\n cb.apply(this, arguments)\n retry()\n }\n })\n }\n }\n\n return fs\n}\n\nfunction enqueue (elem) {\n debug('ENQUEUE', elem[0].name, elem[1])\n queue.push(elem)\n}\n\nfunction retry () {\n var elem = queue.shift()\n if (elem) {\n debug('RETRY', elem[0].name, elem[1])\n elem[0].apply(null, elem[1])\n }\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(83)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/~/graceful-fs/graceful-fs.js\n ** module id = 359\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/~/graceful-fs/graceful-fs.js?"); - -/***/ }, -/* 360 */ -/***/ function(module, exports, __webpack_require__) { - - eval("/* WEBPACK VAR INJECTION */(function(process) {var fs = __webpack_require__(361)\nvar constants = __webpack_require__(362)\n\nvar origCwd = process.cwd\nvar cwd = null\nprocess.cwd = function() {\n if (!cwd)\n cwd = origCwd.call(process)\n return cwd\n}\ntry {\n process.cwd()\n} catch (er) {}\n\nvar chdir = process.chdir\nprocess.chdir = function(d) {\n cwd = null\n chdir.call(process, d)\n}\n\nmodule.exports = patch\n\nfunction patch (fs) {\n // (re-)implement some things that are known busted or missing.\n\n // lchmod, broken prior to 0.6.2\n // back-port the fix here.\n if (constants.hasOwnProperty('O_SYMLINK') &&\n process.version.match(/^v0\\.6\\.[0-2]|^v0\\.5\\./)) {\n patchLchmod(fs)\n }\n\n // lutimes implementation, or no-op\n if (!fs.lutimes) {\n patchLutimes(fs)\n }\n\n // https://github.com/isaacs/node-graceful-fs/issues/4\n // Chown should not fail on einval or eperm if non-root.\n // It should not fail on enosys ever, as this just indicates\n // that a fs doesn't support the intended operation.\n\n fs.chown = chownFix(fs.chown)\n fs.fchown = chownFix(fs.fchown)\n fs.lchown = chownFix(fs.lchown)\n\n fs.chmod = chownFix(fs.chmod)\n fs.fchmod = chownFix(fs.fchmod)\n fs.lchmod = chownFix(fs.lchmod)\n\n fs.chownSync = chownFixSync(fs.chownSync)\n fs.fchownSync = chownFixSync(fs.fchownSync)\n fs.lchownSync = chownFixSync(fs.lchownSync)\n\n fs.chmodSync = chownFix(fs.chmodSync)\n fs.fchmodSync = chownFix(fs.fchmodSync)\n fs.lchmodSync = chownFix(fs.lchmodSync)\n\n // if lchmod/lchown do not exist, then make them no-ops\n if (!fs.lchmod) {\n fs.lchmod = function (path, mode, cb) {\n process.nextTick(cb)\n }\n fs.lchmodSync = function () {}\n }\n if (!fs.lchown) {\n fs.lchown = function (path, uid, gid, cb) {\n process.nextTick(cb)\n }\n fs.lchownSync = function () {}\n }\n\n // on Windows, A/V software can lock the directory, causing this\n // to fail with an EACCES or EPERM if the directory contains newly\n // created files. Try again on failure, for up to 1 second.\n if (process.platform === \"win32\") {\n fs.rename = (function (fs$rename) { return function (from, to, cb) {\n var start = Date.now()\n fs$rename(from, to, function CB (er) {\n if (er\n && (er.code === \"EACCES\" || er.code === \"EPERM\")\n && Date.now() - start < 1000) {\n return fs$rename(from, to, CB)\n }\n if (cb) cb(er)\n })\n }})(fs.rename)\n }\n\n // if read() returns EAGAIN, then just try it again.\n fs.read = (function (fs$read) { return function (fd, buffer, offset, length, position, callback_) {\n var callback\n if (callback_ && typeof callback_ === 'function') {\n var eagCounter = 0\n callback = function (er, _, __) {\n if (er && er.code === 'EAGAIN' && eagCounter < 10) {\n eagCounter ++\n return fs$read.call(fs, fd, buffer, offset, length, position, callback)\n }\n callback_.apply(this, arguments)\n }\n }\n return fs$read.call(fs, fd, buffer, offset, length, position, callback)\n }})(fs.read)\n\n fs.readSync = (function (fs$readSync) { return function (fd, buffer, offset, length, position) {\n var eagCounter = 0\n while (true) {\n try {\n return fs$readSync.call(fs, fd, buffer, offset, length, position)\n } catch (er) {\n if (er.code === 'EAGAIN' && eagCounter < 10) {\n eagCounter ++\n continue\n }\n throw er\n }\n }\n }})(fs.readSync)\n}\n\nfunction patchLchmod (fs) {\n fs.lchmod = function (path, mode, callback) {\n callback = callback || noop\n fs.open( path\n , constants.O_WRONLY | constants.O_SYMLINK\n , mode\n , function (err, fd) {\n if (err) {\n callback(err)\n return\n }\n // prefer to return the chmod error, if one occurs,\n // but still try to close, and report closing errors if they occur.\n fs.fchmod(fd, mode, function (err) {\n fs.close(fd, function(err2) {\n callback(err || err2)\n })\n })\n })\n }\n\n fs.lchmodSync = function (path, mode) {\n var fd = fs.openSync(path, constants.O_WRONLY | constants.O_SYMLINK, mode)\n\n // prefer to return the chmod error, if one occurs,\n // but still try to close, and report closing errors if they occur.\n var threw = true\n var ret\n try {\n ret = fs.fchmodSync(fd, mode)\n threw = false\n } finally {\n if (threw) {\n try {\n fs.closeSync(fd)\n } catch (er) {}\n } else {\n fs.closeSync(fd)\n }\n }\n return ret\n }\n}\n\nfunction patchLutimes (fs) {\n if (constants.hasOwnProperty(\"O_SYMLINK\")) {\n fs.lutimes = function (path, at, mt, cb) {\n fs.open(path, constants.O_SYMLINK, function (er, fd) {\n cb = cb || noop\n if (er) return cb(er)\n fs.futimes(fd, at, mt, function (er) {\n fs.close(fd, function (er2) {\n return cb(er || er2)\n })\n })\n })\n }\n\n fs.lutimesSync = function (path, at, mt) {\n var fd = fs.openSync(path, constants.O_SYMLINK)\n var ret\n var threw = true\n try {\n ret = fs.futimesSync(fd, at, mt)\n threw = false\n } finally {\n if (threw) {\n try {\n fs.closeSync(fd)\n } catch (er) {}\n } else {\n fs.closeSync(fd)\n }\n }\n return ret\n }\n\n } else {\n fs.lutimes = function (_a, _b, _c, cb) { process.nextTick(cb) }\n fs.lutimesSync = function () {}\n }\n}\n\nfunction chownFix (orig) {\n if (!orig) return orig\n return function (target, uid, gid, cb) {\n return orig.call(fs, target, uid, gid, function (er, res) {\n if (chownErOk(er)) er = null\n cb(er, res)\n })\n }\n}\n\nfunction chownFixSync (orig) {\n if (!orig) return orig\n return function (target, uid, gid) {\n try {\n return orig.call(fs, target, uid, gid)\n } catch (er) {\n if (!chownErOk(er)) throw er\n }\n }\n}\n\n// ENOSYS means that the fs doesn't support the op. Just ignore\n// that, because it doesn't matter.\n//\n// if there's no getuid, or if getuid() is something other\n// than 0, and the error is EINVAL or EPERM, then just ignore\n// it.\n//\n// This specific case is a silent failure in cp, install, tar,\n// and most other unix tools that manage permissions.\n//\n// When running as root, or if other types of errors are\n// encountered, then it's strict.\nfunction chownErOk (er) {\n if (!er)\n return true\n\n if (er.code === \"ENOSYS\")\n return true\n\n var nonroot = !process.getuid || process.getuid() !== 0\n if (nonroot) {\n if (er.code === \"EINVAL\" || er.code === \"EPERM\")\n return true\n }\n\n return false\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(83)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/~/graceful-fs/polyfills.js\n ** module id = 360\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/~/graceful-fs/polyfills.js?"); - -/***/ }, -/* 361 */ -/***/ function(module, exports, __webpack_require__) { - - eval("'use strict'\n\nvar fs = __webpack_require__(80)\n\nmodule.exports = clone(fs)\n\nfunction clone (obj) {\n if (obj === null || typeof obj !== 'object')\n return obj\n\n if (obj instanceof Object)\n var copy = { __proto__: obj.__proto__ }\n else\n var copy = Object.create(null)\n\n Object.getOwnPropertyNames(obj).forEach(function (key) {\n Object.defineProperty(copy, key, Object.getOwnPropertyDescriptor(obj, key))\n })\n\n return copy\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/~/graceful-fs/fs.js\n ** module id = 361\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/~/graceful-fs/fs.js?"); - -/***/ }, -/* 362 */ -/***/ function(module, exports) { - - eval("module.exports = {\n\t\"O_RDONLY\": 0,\n\t\"O_WRONLY\": 1,\n\t\"O_RDWR\": 2,\n\t\"S_IFMT\": 61440,\n\t\"S_IFREG\": 32768,\n\t\"S_IFDIR\": 16384,\n\t\"S_IFCHR\": 8192,\n\t\"S_IFBLK\": 24576,\n\t\"S_IFIFO\": 4096,\n\t\"S_IFLNK\": 40960,\n\t\"S_IFSOCK\": 49152,\n\t\"O_CREAT\": 512,\n\t\"O_EXCL\": 2048,\n\t\"O_NOCTTY\": 131072,\n\t\"O_TRUNC\": 1024,\n\t\"O_APPEND\": 8,\n\t\"O_DIRECTORY\": 1048576,\n\t\"O_NOFOLLOW\": 256,\n\t\"O_SYNC\": 128,\n\t\"O_SYMLINK\": 2097152,\n\t\"S_IRWXU\": 448,\n\t\"S_IRUSR\": 256,\n\t\"S_IWUSR\": 128,\n\t\"S_IXUSR\": 64,\n\t\"S_IRWXG\": 56,\n\t\"S_IRGRP\": 32,\n\t\"S_IWGRP\": 16,\n\t\"S_IXGRP\": 8,\n\t\"S_IRWXO\": 7,\n\t\"S_IROTH\": 4,\n\t\"S_IWOTH\": 2,\n\t\"S_IXOTH\": 1,\n\t\"E2BIG\": 7,\n\t\"EACCES\": 13,\n\t\"EADDRINUSE\": 48,\n\t\"EADDRNOTAVAIL\": 49,\n\t\"EAFNOSUPPORT\": 47,\n\t\"EAGAIN\": 35,\n\t\"EALREADY\": 37,\n\t\"EBADF\": 9,\n\t\"EBADMSG\": 94,\n\t\"EBUSY\": 16,\n\t\"ECANCELED\": 89,\n\t\"ECHILD\": 10,\n\t\"ECONNABORTED\": 53,\n\t\"ECONNREFUSED\": 61,\n\t\"ECONNRESET\": 54,\n\t\"EDEADLK\": 11,\n\t\"EDESTADDRREQ\": 39,\n\t\"EDOM\": 33,\n\t\"EDQUOT\": 69,\n\t\"EEXIST\": 17,\n\t\"EFAULT\": 14,\n\t\"EFBIG\": 27,\n\t\"EHOSTUNREACH\": 65,\n\t\"EIDRM\": 90,\n\t\"EILSEQ\": 92,\n\t\"EINPROGRESS\": 36,\n\t\"EINTR\": 4,\n\t\"EINVAL\": 22,\n\t\"EIO\": 5,\n\t\"EISCONN\": 56,\n\t\"EISDIR\": 21,\n\t\"ELOOP\": 62,\n\t\"EMFILE\": 24,\n\t\"EMLINK\": 31,\n\t\"EMSGSIZE\": 40,\n\t\"EMULTIHOP\": 95,\n\t\"ENAMETOOLONG\": 63,\n\t\"ENETDOWN\": 50,\n\t\"ENETRESET\": 52,\n\t\"ENETUNREACH\": 51,\n\t\"ENFILE\": 23,\n\t\"ENOBUFS\": 55,\n\t\"ENODATA\": 96,\n\t\"ENODEV\": 19,\n\t\"ENOENT\": 2,\n\t\"ENOEXEC\": 8,\n\t\"ENOLCK\": 77,\n\t\"ENOLINK\": 97,\n\t\"ENOMEM\": 12,\n\t\"ENOMSG\": 91,\n\t\"ENOPROTOOPT\": 42,\n\t\"ENOSPC\": 28,\n\t\"ENOSR\": 98,\n\t\"ENOSTR\": 99,\n\t\"ENOSYS\": 78,\n\t\"ENOTCONN\": 57,\n\t\"ENOTDIR\": 20,\n\t\"ENOTEMPTY\": 66,\n\t\"ENOTSOCK\": 38,\n\t\"ENOTSUP\": 45,\n\t\"ENOTTY\": 25,\n\t\"ENXIO\": 6,\n\t\"EOPNOTSUPP\": 102,\n\t\"EOVERFLOW\": 84,\n\t\"EPERM\": 1,\n\t\"EPIPE\": 32,\n\t\"EPROTO\": 100,\n\t\"EPROTONOSUPPORT\": 43,\n\t\"EPROTOTYPE\": 41,\n\t\"ERANGE\": 34,\n\t\"EROFS\": 30,\n\t\"ESPIPE\": 29,\n\t\"ESRCH\": 3,\n\t\"ESTALE\": 70,\n\t\"ETIME\": 101,\n\t\"ETIMEDOUT\": 60,\n\t\"ETXTBSY\": 26,\n\t\"EWOULDBLOCK\": 35,\n\t\"EXDEV\": 18,\n\t\"SIGHUP\": 1,\n\t\"SIGINT\": 2,\n\t\"SIGQUIT\": 3,\n\t\"SIGILL\": 4,\n\t\"SIGTRAP\": 5,\n\t\"SIGABRT\": 6,\n\t\"SIGIOT\": 6,\n\t\"SIGBUS\": 10,\n\t\"SIGFPE\": 8,\n\t\"SIGKILL\": 9,\n\t\"SIGUSR1\": 30,\n\t\"SIGSEGV\": 11,\n\t\"SIGUSR2\": 31,\n\t\"SIGPIPE\": 13,\n\t\"SIGALRM\": 14,\n\t\"SIGTERM\": 15,\n\t\"SIGCHLD\": 20,\n\t\"SIGCONT\": 19,\n\t\"SIGSTOP\": 17,\n\t\"SIGTSTP\": 18,\n\t\"SIGTTIN\": 21,\n\t\"SIGTTOU\": 22,\n\t\"SIGURG\": 16,\n\t\"SIGXCPU\": 24,\n\t\"SIGXFSZ\": 25,\n\t\"SIGVTALRM\": 26,\n\t\"SIGPROF\": 27,\n\t\"SIGWINCH\": 28,\n\t\"SIGIO\": 23,\n\t\"SIGSYS\": 12,\n\t\"SSL_OP_ALL\": 2147486719,\n\t\"SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION\": 262144,\n\t\"SSL_OP_CIPHER_SERVER_PREFERENCE\": 4194304,\n\t\"SSL_OP_CISCO_ANYCONNECT\": 32768,\n\t\"SSL_OP_COOKIE_EXCHANGE\": 8192,\n\t\"SSL_OP_CRYPTOPRO_TLSEXT_BUG\": 2147483648,\n\t\"SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS\": 2048,\n\t\"SSL_OP_EPHEMERAL_RSA\": 2097152,\n\t\"SSL_OP_LEGACY_SERVER_CONNECT\": 4,\n\t\"SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER\": 32,\n\t\"SSL_OP_MICROSOFT_SESS_ID_BUG\": 1,\n\t\"SSL_OP_MSIE_SSLV2_RSA_PADDING\": 64,\n\t\"SSL_OP_NETSCAPE_CA_DN_BUG\": 536870912,\n\t\"SSL_OP_NETSCAPE_CHALLENGE_BUG\": 2,\n\t\"SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG\": 1073741824,\n\t\"SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG\": 8,\n\t\"SSL_OP_NO_COMPRESSION\": 131072,\n\t\"SSL_OP_NO_QUERY_MTU\": 4096,\n\t\"SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION\": 65536,\n\t\"SSL_OP_NO_SSLv2\": 16777216,\n\t\"SSL_OP_NO_SSLv3\": 33554432,\n\t\"SSL_OP_NO_TICKET\": 16384,\n\t\"SSL_OP_NO_TLSv1\": 67108864,\n\t\"SSL_OP_NO_TLSv1_1\": 268435456,\n\t\"SSL_OP_NO_TLSv1_2\": 134217728,\n\t\"SSL_OP_PKCS1_CHECK_1\": 0,\n\t\"SSL_OP_PKCS1_CHECK_2\": 0,\n\t\"SSL_OP_SINGLE_DH_USE\": 1048576,\n\t\"SSL_OP_SINGLE_ECDH_USE\": 524288,\n\t\"SSL_OP_SSLEAY_080_CLIENT_DH_BUG\": 128,\n\t\"SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG\": 16,\n\t\"SSL_OP_TLS_BLOCK_PADDING_BUG\": 512,\n\t\"SSL_OP_TLS_D5_BUG\": 256,\n\t\"SSL_OP_TLS_ROLLBACK_BUG\": 8388608,\n\t\"NPN_ENABLED\": 1\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** (webpack)/~/node-libs-browser/~/constants-browserify/constants.json\n ** module id = 362\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///(webpack)/~/node-libs-browser/~/constants-browserify/constants.json?"); - -/***/ }, -/* 363 */ -/***/ function(module, exports, __webpack_require__) { - - eval("/* WEBPACK VAR INJECTION */(function(process) {var Stream = __webpack_require__(96).Stream\n\nmodule.exports = legacy\n\nfunction legacy (fs) {\n return {\n ReadStream: ReadStream,\n WriteStream: WriteStream\n }\n\n function ReadStream (path, options) {\n if (!(this instanceof ReadStream)) return new ReadStream(path, options);\n\n Stream.call(this);\n\n var self = this;\n\n this.path = path;\n this.fd = null;\n this.readable = true;\n this.paused = false;\n\n this.flags = 'r';\n this.mode = 438; /*=0666*/\n this.bufferSize = 64 * 1024;\n\n options = options || {};\n\n // Mixin options into this\n var keys = Object.keys(options);\n for (var index = 0, length = keys.length; index < length; index++) {\n var key = keys[index];\n this[key] = options[key];\n }\n\n if (this.encoding) this.setEncoding(this.encoding);\n\n if (this.start !== undefined) {\n if ('number' !== typeof this.start) {\n throw TypeError('start must be a Number');\n }\n if (this.end === undefined) {\n this.end = Infinity;\n } else if ('number' !== typeof this.end) {\n throw TypeError('end must be a Number');\n }\n\n if (this.start > this.end) {\n throw new Error('start must be <= end');\n }\n\n this.pos = this.start;\n }\n\n if (this.fd !== null) {\n process.nextTick(function() {\n self._read();\n });\n return;\n }\n\n fs.open(this.path, this.flags, this.mode, function (err, fd) {\n if (err) {\n self.emit('error', err);\n self.readable = false;\n return;\n }\n\n self.fd = fd;\n self.emit('open', fd);\n self._read();\n })\n }\n\n function WriteStream (path, options) {\n if (!(this instanceof WriteStream)) return new WriteStream(path, options);\n\n Stream.call(this);\n\n this.path = path;\n this.fd = null;\n this.writable = true;\n\n this.flags = 'w';\n this.encoding = 'binary';\n this.mode = 438; /*=0666*/\n this.bytesWritten = 0;\n\n options = options || {};\n\n // Mixin options into this\n var keys = Object.keys(options);\n for (var index = 0, length = keys.length; index < length; index++) {\n var key = keys[index];\n this[key] = options[key];\n }\n\n if (this.start !== undefined) {\n if ('number' !== typeof this.start) {\n throw TypeError('start must be a Number');\n }\n if (this.start < 0) {\n throw new Error('start must be >= zero');\n }\n\n this.pos = this.start;\n }\n\n this.busy = false;\n this._queue = [];\n\n if (this.fd === null) {\n this._open = fs.open;\n this._queue.push([this._open, this.path, this.flags, this.mode, undefined]);\n this.flush();\n }\n }\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(83)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/~/graceful-fs/legacy-streams.js\n ** module id = 363\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/~/graceful-fs/legacy-streams.js?"); - -/***/ }, -/* 364 */ -/***/ function(module, exports, __webpack_require__) { - - eval("/* WEBPACK VAR INJECTION */(function(Buffer) {'use strict';\nvar fs = __webpack_require__(80);\nvar path = __webpack_require__(151);\n\nvar commentRx = /^\\s*\\/(?:\\/|\\*)[@#]\\s+sourceMappingURL=data:(?:application|text)\\/json;(?:charset[:=]\\S+;)?base64,(.*)$/mg;\nvar mapFileCommentRx =\n //Example (Extra space between slashes added to solve Safari bug. Exclude space in production):\n // / /# sourceMappingURL=foo.js.map /*# sourceMappingURL=foo.js.map */\n /(?:\\/\\/[@#][ \\t]+sourceMappingURL=([^\\s'\"]+?)[ \\t]*$)|(?:\\/\\*[@#][ \\t]+sourceMappingURL=([^\\*]+?)[ \\t]*(?:\\*\\/){1}[ \\t]*$)/mg\n\nfunction decodeBase64(base64) {\n return new Buffer(base64, 'base64').toString();\n}\n\nfunction stripComment(sm) {\n return sm.split(',').pop();\n}\n\nfunction readFromFileMap(sm, dir) {\n // NOTE: this will only work on the server since it attempts to read the map file\n\n var r = mapFileCommentRx.exec(sm);\n mapFileCommentRx.lastIndex = 0;\n\n // for some odd reason //# .. captures in 1 and /* .. */ in 2\n var filename = r[1] || r[2];\n var filepath = path.join(dir, filename);\n\n try {\n return fs.readFileSync(filepath, 'utf8');\n } catch (e) {\n throw new Error('An error occurred while trying to read the map file at ' + filepath + '\\n' + e);\n }\n}\n\nfunction Converter (sm, opts) {\n opts = opts || {};\n\n if (opts.isFileComment) sm = readFromFileMap(sm, opts.commentFileDir);\n if (opts.hasComment) sm = stripComment(sm);\n if (opts.isEncoded) sm = decodeBase64(sm);\n if (opts.isJSON || opts.isEncoded) sm = JSON.parse(sm);\n\n this.sourcemap = sm;\n}\n\nfunction convertFromLargeSource(content){\n var lines = content.split('\\n');\n var line;\n // find first line which contains a source map starting at end of content\n for (var i = lines.length - 1; i > 0; i--) {\n line = lines[i]\n if (~line.indexOf('sourceMappingURL=data:')) return exports.fromComment(line);\n }\n}\n\nConverter.prototype.toJSON = function (space) {\n return JSON.stringify(this.sourcemap, null, space);\n};\n\nConverter.prototype.toBase64 = function () {\n var json = this.toJSON();\n return new Buffer(json).toString('base64');\n};\n\nConverter.prototype.toComment = function (options) {\n var base64 = this.toBase64();\n var data = 'sourceMappingURL=data:application/json;base64,' + base64;\n return options && options.multiline ? '/*# ' + data + ' */' : '//# ' + data;\n};\n\n// returns copy instead of original\nConverter.prototype.toObject = function () {\n return JSON.parse(this.toJSON());\n};\n\nConverter.prototype.addProperty = function (key, value) {\n if (this.sourcemap.hasOwnProperty(key)) throw new Error('property %s already exists on the sourcemap, use set property instead');\n return this.setProperty(key, value);\n};\n\nConverter.prototype.setProperty = function (key, value) {\n this.sourcemap[key] = value;\n return this;\n};\n\nConverter.prototype.getProperty = function (key) {\n return this.sourcemap[key];\n};\n\nexports.fromObject = function (obj) {\n return new Converter(obj);\n};\n\nexports.fromJSON = function (json) {\n return new Converter(json, { isJSON: true });\n};\n\nexports.fromBase64 = function (base64) {\n return new Converter(base64, { isEncoded: true });\n};\n\nexports.fromComment = function (comment) {\n comment = comment\n .replace(/^\\/\\*/g, '//')\n .replace(/\\*\\/$/g, '');\n\n return new Converter(comment, { isEncoded: true, hasComment: true });\n};\n\nexports.fromMapFileComment = function (comment, dir) {\n return new Converter(comment, { commentFileDir: dir, isFileComment: true, isJSON: true });\n};\n\n// Finds last sourcemap comment in file or returns null if none was found\nexports.fromSource = function (content, largeSource) {\n if (largeSource) {\n var res = convertFromLargeSource(content);\n return res ? res : null;\n }\n\n var m = content.match(commentRx);\n commentRx.lastIndex = 0;\n return m ? exports.fromComment(m.pop()) : null;\n};\n\n// Finds last sourcemap comment in file or returns null if none was found\nexports.fromMapFileSource = function (content, dir) {\n var m = content.match(mapFileCommentRx);\n mapFileCommentRx.lastIndex = 0;\n return m ? exports.fromMapFileComment(m.pop(), dir) : null;\n};\n\nexports.removeComments = function (src) {\n commentRx.lastIndex = 0;\n return src.replace(commentRx, '');\n};\n\nexports.removeMapFileComments = function (src) {\n mapFileCommentRx.lastIndex = 0;\n return src.replace(mapFileCommentRx, '');\n};\n\nObject.defineProperty(exports, 'commentRegex', {\n get: function getCommentRegex () {\n commentRx.lastIndex = 0;\n return commentRx;\n }\n});\n\nObject.defineProperty(exports, 'mapFileCommentRegex', {\n get: function getMapFileCommentRegex () {\n mapFileCommentRx.lastIndex = 0;\n return mapFileCommentRx;\n }\n});\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1).Buffer))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/~/gulp-sourcemaps/~/convert-source-map/index.js\n ** module id = 364\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/~/gulp-sourcemaps/~/convert-source-map/index.js?"); - -/***/ }, -/* 365 */ -/***/ function(module, exports, __webpack_require__) { - - eval("/* WEBPACK VAR INJECTION */(function(Buffer) {'use strict';\nvar isUtf8 = __webpack_require__(366);\n\nmodule.exports = function (x) {\n\t// Catches EFBBBF (UTF-8 BOM) because the buffer-to-string\n\t// conversion translates it to FEFF (UTF-16 BOM)\n\tif (typeof x === 'string' && x.charCodeAt(0) === 0xFEFF) {\n\t\treturn x.slice(1);\n\t}\n\n\tif (Buffer.isBuffer(x) && isUtf8(x) &&\n\t\tx[0] === 0xEF && x[1] === 0xBB && x[2] === 0xBF) {\n\t\treturn x.slice(3);\n\t}\n\n\treturn x;\n};\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1).Buffer))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/~/strip-bom/index.js\n ** module id = 365\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/~/strip-bom/index.js?"); - -/***/ }, -/* 366 */ -/***/ function(module, exports) { - - eval("\nexports = module.exports = function(bytes)\n{\n var i = 0;\n while(i < bytes.length)\n {\n if( (// ASCII\n bytes[i] == 0x09 ||\n bytes[i] == 0x0A ||\n bytes[i] == 0x0D ||\n (0x20 <= bytes[i] && bytes[i] <= 0x7E)\n )\n ) {\n i += 1;\n continue;\n }\n\n if( (// non-overlong 2-byte\n (0xC2 <= bytes[i] && bytes[i] <= 0xDF) &&\n (0x80 <= bytes[i+1] && bytes[i+1] <= 0xBF)\n )\n ) {\n i += 2;\n continue;\n }\n\n if( (// excluding overlongs\n bytes[i] == 0xE0 &&\n (0xA0 <= bytes[i + 1] && bytes[i + 1] <= 0xBF) &&\n (0x80 <= bytes[i + 2] && bytes[i + 2] <= 0xBF)\n ) ||\n (// straight 3-byte\n ((0xE1 <= bytes[i] && bytes[i] <= 0xEC) ||\n bytes[i] == 0xEE ||\n bytes[i] == 0xEF) &&\n (0x80 <= bytes[i + 1] && bytes[i+1] <= 0xBF) &&\n (0x80 <= bytes[i+2] && bytes[i+2] <= 0xBF)\n ) ||\n (// excluding surrogates\n bytes[i] == 0xED &&\n (0x80 <= bytes[i+1] && bytes[i+1] <= 0x9F) &&\n (0x80 <= bytes[i+2] && bytes[i+2] <= 0xBF)\n )\n ) {\n i += 3;\n continue;\n }\n\n if( (// planes 1-3\n bytes[i] == 0xF0 &&\n (0x90 <= bytes[i + 1] && bytes[i + 1] <= 0xBF) &&\n (0x80 <= bytes[i + 2] && bytes[i + 2] <= 0xBF) &&\n (0x80 <= bytes[i + 3] && bytes[i + 3] <= 0xBF)\n ) ||\n (// planes 4-15\n (0xF1 <= bytes[i] && bytes[i] <= 0xF3) &&\n (0x80 <= bytes[i + 1] && bytes[i + 1] <= 0xBF) &&\n (0x80 <= bytes[i + 2] && bytes[i + 2] <= 0xBF) &&\n (0x80 <= bytes[i + 3] && bytes[i + 3] <= 0xBF)\n ) ||\n (// plane 16\n bytes[i] == 0xF4 &&\n (0x80 <= bytes[i + 1] && bytes[i + 1] <= 0x8F) &&\n (0x80 <= bytes[i + 2] && bytes[i + 2] <= 0xBF) &&\n (0x80 <= bytes[i + 3] && bytes[i + 3] <= 0xBF)\n )\n ) {\n i += 4;\n continue;\n }\n\n return false;\n }\n\n return true;\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/~/strip-bom/~/is-utf8/is-utf8.js\n ** module id = 366\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/~/strip-bom/~/is-utf8/is-utf8.js?"); - -/***/ }, -/* 367 */ -/***/ function(module, exports, __webpack_require__) { - - eval("'use strict';\n\nvar filter = __webpack_require__(368);\n\nmodule.exports = function(d) {\n var isValid = typeof d === 'number' ||\n d instanceof Number ||\n d instanceof Date;\n\n if (!isValid) {\n throw new Error('expected since option to be a date or a number');\n }\n return filter.obj(function(file){\n return file.stat && file.stat.mtime > d;\n });\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/lib/filterSince.js\n ** module id = 367\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/lib/filterSince.js?"); - -/***/ }, -/* 368 */ -/***/ function(module, exports, __webpack_require__) { - - eval("\"use strict\";\n\nmodule.exports = make\nmodule.exports.ctor = ctor\nmodule.exports.objCtor = objCtor\nmodule.exports.obj = obj\n\nvar through2 = __webpack_require__(213)\nvar xtend = __webpack_require__(369)\n\nfunction ctor(options, fn) {\n if (typeof options == \"function\") {\n fn = options\n options = {}\n }\n\n var Filter = through2.ctor(options, function (chunk, encoding, callback) {\n if (this.options.wantStrings) chunk = chunk.toString()\n if (fn.call(this, chunk, this._index++)) this.push(chunk)\n return callback()\n })\n Filter.prototype._index = 0\n return Filter\n}\n\nfunction objCtor(options, fn) {\n if (typeof options === \"function\") {\n fn = options\n options = {}\n }\n options = xtend({objectMode: true, highWaterMark: 16}, options)\n return ctor(options, fn)\n}\n\nfunction make(options, fn) {\n return ctor(options, fn)()\n}\n\nfunction obj(options, fn) {\n if (typeof options === \"function\") {\n fn = options\n options = {}\n }\n options = xtend({objectMode: true, highWaterMark: 16}, options)\n return make(options, fn)\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/~/through2-filter/index.js\n ** module id = 368\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/~/through2-filter/index.js?"); - -/***/ }, -/* 369 */ -/***/ function(module, exports) { - - eval("module.exports = extend\n\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\nfunction extend() {\n var target = {}\n\n for (var i = 0; i < arguments.length; i++) {\n var source = arguments[i]\n\n for (var key in source) {\n if (hasOwnProperty.call(source, key)) {\n target[key] = source[key]\n }\n }\n }\n\n return target\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/~/through2-filter/~/xtend/immutable.js\n ** module id = 369\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/~/through2-filter/~/xtend/immutable.js?"); - -/***/ }, -/* 370 */ -/***/ function(module, exports) { - - eval("'use strict';\n\nmodule.exports = function isValidGlob(glob) {\n if (typeof glob === 'string' && glob.length > 0) {\n return true;\n }\n if (Array.isArray(glob)) {\n return glob.length !== 0 && every(glob);\n }\n return false;\n};\n\nfunction every(arr) {\n var len = arr.length;\n while (len--) {\n if (typeof arr[len] !== 'string' || arr[len].length <= 0) {\n return false;\n }\n }\n return true;\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/~/is-valid-glob/index.js\n ** module id = 370\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/~/is-valid-glob/index.js?"); - -/***/ }, -/* 371 */ -/***/ function(module, exports, __webpack_require__) { - - eval("'use strict';\n\nvar through2 = __webpack_require__(213);\nvar readDir = __webpack_require__(372);\nvar readSymbolicLink = __webpack_require__(373);\nvar bufferFile = __webpack_require__(374);\nvar streamFile = __webpack_require__(375);\n\nfunction getContents(opt) {\n return through2.obj(function(file, enc, cb) {\n // don't fail to read a directory\n if (file.isDirectory()) {\n return readDir(file, opt, cb);\n }\n\n // process symbolic links included with `followSymlinks` option\n if (file.stat && file.stat.isSymbolicLink()) {\n return readSymbolicLink(file, opt, cb);\n }\n\n // read and pass full contents\n if (opt.buffer !== false) {\n return bufferFile(file, opt, cb);\n }\n\n // dont buffer anything - just pass streams\n return streamFile(file, opt, cb);\n });\n}\n\nmodule.exports = getContents;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/lib/src/getContents/index.js\n ** module id = 371\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/lib/src/getContents/index.js?"); - -/***/ }, -/* 372 */ -/***/ function(module, exports) { - - eval("'use strict';\n\nfunction readDir(file, opt, cb) {\n // do nothing for now\n cb(null, file);\n}\n\nmodule.exports = readDir;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/lib/src/getContents/readDir.js\n ** module id = 372\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/lib/src/getContents/readDir.js?"); - -/***/ }, -/* 373 */ -/***/ function(module, exports, __webpack_require__) { - - eval("/* WEBPACK VAR INJECTION */(function(process) {'use strict';\n\nvar fs = process.browser ? __webpack_require__(80) : __webpack_require__(359);\n\nfunction readLink(file, opt, cb) {\n fs.readlink(file.path, function (err, target) {\n if (err) {\n return cb(err);\n }\n\n // store the link target path\n file.symlink = target;\n\n return cb(null, file);\n });\n}\n\nmodule.exports = readLink;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(83)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/lib/src/getContents/readSymbolicLink.js\n ** module id = 373\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/lib/src/getContents/readSymbolicLink.js?"); - -/***/ }, -/* 374 */ -/***/ function(module, exports, __webpack_require__) { - - eval("/* WEBPACK VAR INJECTION */(function(process) {'use strict';\n\nvar fs = process.browser ? __webpack_require__(80) : __webpack_require__(359);\nvar stripBom = __webpack_require__(365);\n\nfunction bufferFile(file, opt, cb) {\n fs.readFile(file.path, function(err, data) {\n if (err) {\n return cb(err);\n }\n\n if (opt.stripBOM){\n file.contents = stripBom(data);\n } else {\n file.contents = data;\n }\n\n cb(null, file);\n });\n}\n\nmodule.exports = bufferFile;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(83)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/lib/src/getContents/bufferFile.js\n ** module id = 374\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/lib/src/getContents/bufferFile.js?"); - -/***/ }, -/* 375 */ -/***/ function(module, exports, __webpack_require__) { - - eval("/* WEBPACK VAR INJECTION */(function(process) {'use strict';\n\nvar fs = process.browser ? __webpack_require__(80) : __webpack_require__(359);\nvar stripBom = __webpack_require__(376);\n\nfunction streamFile(file, opt, cb) {\n file.contents = fs.createReadStream(file.path);\n\n if (opt.stripBOM) {\n file.contents = file.contents.pipe(stripBom());\n }\n\n cb(null, file);\n}\n\nmodule.exports = streamFile;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(83)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/lib/src/getContents/streamFile.js\n ** module id = 375\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/lib/src/getContents/streamFile.js?"); - -/***/ }, -/* 376 */ -/***/ function(module, exports, __webpack_require__) { - - eval("'use strict';\nvar firstChunk = __webpack_require__(377);\nvar stripBom = __webpack_require__(365);\n\nmodule.exports = function () {\n\treturn firstChunk({minSize: 3}, function (chunk, enc, cb) {\n\t\tthis.push(stripBom(chunk));\n\t\tcb();\n\t});\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/~/strip-bom-stream/index.js\n ** module id = 376\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/~/strip-bom-stream/index.js?"); - -/***/ }, -/* 377 */ -/***/ function(module, exports, __webpack_require__) { - - eval("/* WEBPACK VAR INJECTION */(function(Buffer) {'use strict';\nvar util = __webpack_require__(140);\nvar Transform = __webpack_require__(96).Transform;\n\nfunction ctor(options, transform) {\n\tutil.inherits(FirstChunk, Transform);\n\n\tif (typeof options === 'function') {\n\t\ttransform = options;\n\t\toptions = {};\n\t}\n\n\tif (typeof transform !== 'function') {\n\t\tthrow new Error('transform function required');\n\t}\n\n\tfunction FirstChunk(options2) {\n\t\tif (!(this instanceof FirstChunk)) {\n\t\t\treturn new FirstChunk(options2);\n\t\t}\n\n\t\tTransform.call(this, options2);\n\n\t\tthis._firstChunk = true;\n\t\tthis._transformCalled = false;\n\t\tthis._minSize = options.minSize;\n\t}\n\n\tFirstChunk.prototype._transform = function (chunk, enc, cb) {\n\t\tthis._enc = enc;\n\n\t\tif (this._firstChunk) {\n\t\t\tthis._firstChunk = false;\n\n\t\t\tif (this._minSize == null) {\n\t\t\t\ttransform.call(this, chunk, enc, cb);\n\t\t\t\tthis._transformCalled = true;\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tthis._buffer = chunk;\n\t\t\tcb();\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._minSize == null) {\n\t\t\tthis.push(chunk);\n\t\t\tcb();\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._buffer.length < this._minSize) {\n\t\t\tthis._buffer = Buffer.concat([this._buffer, chunk]);\n\t\t\tcb();\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._buffer.length >= this._minSize) {\n\t\t\ttransform.call(this, this._buffer.slice(), enc, function () {\n\t\t\t\tthis.push(chunk);\n\t\t\t\tcb();\n\t\t\t}.bind(this));\n\t\t\tthis._transformCalled = true;\n\t\t\tthis._buffer = false;\n\t\t\treturn;\n\t\t}\n\n\t\tthis.push(chunk);\n\t\tcb();\n\t};\n\n\tFirstChunk.prototype._flush = function (cb) {\n\t\tif (!this._buffer) {\n\t\t\tcb();\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._transformCalled) {\n\t\t\tthis.push(this._buffer);\n\t\t\tcb();\n\t\t} else {\n\t\t\ttransform.call(this, this._buffer.slice(), this._enc, cb);\n\t\t}\n\t};\n\n\treturn FirstChunk;\n}\n\nmodule.exports = function () {\n\treturn ctor.apply(ctor, arguments)();\n};\n\nmodule.exports.ctor = ctor;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1).Buffer))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/~/strip-bom-stream/~/first-chunk-stream/index.js\n ** module id = 377\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/~/strip-bom-stream/~/first-chunk-stream/index.js?"); - -/***/ }, -/* 378 */ -/***/ function(module, exports, __webpack_require__) { - - eval("/* WEBPACK VAR INJECTION */(function(process) {'use strict';\n\nvar through2 = __webpack_require__(213);\nvar fs = process.browser ? __webpack_require__(80) : __webpack_require__(359);\nvar path = __webpack_require__(151);\n\nfunction resolveSymlinks(options) {\n\n // a stat property is exposed on file objects as a (wanted) side effect\n function resolveFile(globFile, enc, cb) {\n fs.lstat(globFile.path, function (err, stat) {\n if (err) {\n return cb(err);\n }\n\n globFile.stat = stat;\n\n if (!stat.isSymbolicLink() || !options.followSymlinks) {\n return cb(null, globFile);\n }\n\n fs.realpath(globFile.path, function (err, filePath) {\n if (err) {\n return cb(err);\n }\n\n globFile.base = path.dirname(filePath);\n globFile.path = filePath;\n\n // recurse to get real file stat\n resolveFile(globFile, enc, cb);\n });\n });\n }\n\n return through2.obj(resolveFile);\n}\n\nmodule.exports = resolveSymlinks;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(83)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/lib/src/resolveSymlinks.js\n ** module id = 378\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/lib/src/resolveSymlinks.js?"); - -/***/ }, -/* 379 */ -/***/ function(module, exports, __webpack_require__) { - - eval("/* WEBPACK VAR INJECTION */(function(process) {'use strict';\n\nvar through2 = __webpack_require__(213);\nvar sourcemaps = process.browser ? null : __webpack_require__(358);\nvar duplexify = __webpack_require__(327);\nvar prepareWrite = __webpack_require__(380);\nvar writeContents = __webpack_require__(382);\n\nfunction dest(outFolder, opt) {\n if (!opt) {\n opt = {};\n }\n\n function saveFile(file, enc, cb) {\n prepareWrite(outFolder, file, opt, function(err, writePath) {\n if (err) {\n return cb(err);\n }\n writeContents(writePath, file, cb);\n });\n }\n\n var saveStream = through2.obj(saveFile);\n if (!opt.sourcemaps) {\n return saveStream;\n }\n\n var mapStream = sourcemaps.write(opt.sourcemaps.path, opt.sourcemaps);\n var outputStream = duplexify.obj(mapStream, saveStream);\n mapStream.pipe(saveStream);\n\n return outputStream;\n}\n\nmodule.exports = dest;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(83)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/lib/dest/index.js\n ** module id = 379\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/lib/dest/index.js?"); - -/***/ }, -/* 380 */ -/***/ function(module, exports, __webpack_require__) { - - eval("/* WEBPACK VAR INJECTION */(function(process) {'use strict';\n\nvar assign = __webpack_require__(212);\nvar path = __webpack_require__(151);\nvar mkdirp = __webpack_require__(381);\nvar fs = process.browser ? __webpack_require__(80) : __webpack_require__(359);\n\nfunction booleanOrFunc(v, file) {\n if (typeof v !== 'boolean' && typeof v !== 'function') {\n return null;\n }\n\n return typeof v === 'boolean' ? v : v(file);\n}\n\nfunction stringOrFunc(v, file) {\n if (typeof v !== 'string' && typeof v !== 'function') {\n return null;\n }\n\n return typeof v === 'string' ? v : v(file);\n}\n\nfunction prepareWrite(outFolder, file, opt, cb) {\n var options = assign({\n cwd: process.cwd(),\n mode: (file.stat ? file.stat.mode : null),\n dirMode: null,\n overwrite: true\n }, opt);\n var overwrite = booleanOrFunc(options.overwrite, file);\n options.flag = (overwrite ? 'w' : 'wx');\n\n var cwd = path.resolve(options.cwd);\n var outFolderPath = stringOrFunc(outFolder, file);\n if (!outFolderPath) {\n throw new Error('Invalid output folder');\n }\n var basePath = options.base ?\n stringOrFunc(options.base, file) : path.resolve(cwd, outFolderPath);\n if (!basePath) {\n throw new Error('Invalid base option');\n }\n\n var writePath = path.resolve(basePath, file.relative);\n var writeFolder = path.dirname(writePath);\n\n // wire up new properties\n file.stat = (file.stat || new fs.Stats());\n file.stat.mode = options.mode;\n file.flag = options.flag;\n file.cwd = cwd;\n file.base = basePath;\n file.path = writePath;\n\n // mkdirp the folder the file is going in\n mkdirp(writeFolder, options.dirMode, function(err){\n if (err) {\n return cb(err);\n }\n cb(null, writePath);\n });\n}\n\nmodule.exports = prepareWrite;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(83)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/lib/prepareWrite.js\n ** module id = 380\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/lib/prepareWrite.js?"); - -/***/ }, -/* 381 */ -/***/ function(module, exports, __webpack_require__) { - - eval("/* WEBPACK VAR INJECTION */(function(process) {var path = __webpack_require__(151);\nvar fs = __webpack_require__(80);\nvar _0777 = parseInt('0777', 8);\n\nmodule.exports = mkdirP.mkdirp = mkdirP.mkdirP = mkdirP;\n\nfunction mkdirP (p, opts, f, made) {\n if (typeof opts === 'function') {\n f = opts;\n opts = {};\n }\n else if (!opts || typeof opts !== 'object') {\n opts = { mode: opts };\n }\n \n var mode = opts.mode;\n var xfs = opts.fs || fs;\n \n if (mode === undefined) {\n mode = _0777 & (~process.umask());\n }\n if (!made) made = null;\n \n var cb = f || function () {};\n p = path.resolve(p);\n \n xfs.mkdir(p, mode, function (er) {\n if (!er) {\n made = made || p;\n return cb(null, made);\n }\n switch (er.code) {\n case 'ENOENT':\n mkdirP(path.dirname(p), opts, function (er, made) {\n if (er) cb(er, made);\n else mkdirP(p, opts, cb, made);\n });\n break;\n\n // In the case of any other error, just see if there's a dir\n // there already. If so, then hooray! If not, then something\n // is borked.\n default:\n xfs.stat(p, function (er2, stat) {\n // if the stat fails, then that's super weird.\n // let the original error be the failure reason.\n if (er2 || !stat.isDirectory()) cb(er, made)\n else cb(null, made);\n });\n break;\n }\n });\n}\n\nmkdirP.sync = function sync (p, opts, made) {\n if (!opts || typeof opts !== 'object') {\n opts = { mode: opts };\n }\n \n var mode = opts.mode;\n var xfs = opts.fs || fs;\n \n if (mode === undefined) {\n mode = _0777 & (~process.umask());\n }\n if (!made) made = null;\n\n p = path.resolve(p);\n\n try {\n xfs.mkdirSync(p, mode);\n made = made || p;\n }\n catch (err0) {\n switch (err0.code) {\n case 'ENOENT' :\n made = sync(path.dirname(p), opts, made);\n sync(p, opts, made);\n break;\n\n // In the case of any other error, just see if there's a dir\n // there already. If so, then hooray! If not, then something\n // is borked.\n default:\n var stat;\n try {\n stat = xfs.statSync(p);\n }\n catch (err1) {\n throw err0;\n }\n if (!stat.isDirectory()) throw err0;\n break;\n }\n }\n\n return made;\n};\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(83)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/~/mkdirp/index.js\n ** module id = 381\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/~/mkdirp/index.js?"); - -/***/ }, -/* 382 */ -/***/ function(module, exports, __webpack_require__) { - - eval("'use strict';\n\nvar fs = __webpack_require__(80);\nvar writeDir = __webpack_require__(383);\nvar writeStream = __webpack_require__(384);\nvar writeBuffer = __webpack_require__(385);\nvar writeSymbolicLink = __webpack_require__(386);\n\nfunction writeContents(writePath, file, cb) {\n // if directory then mkdirp it\n if (file.isDirectory()) {\n return writeDir(writePath, file, written);\n }\n\n // stream it to disk yo\n if (file.isStream()) {\n return writeStream(writePath, file, written);\n }\n\n // write it as a symlink\n if (file.symlink) {\n return writeSymbolicLink(writePath, file, written);\n }\n\n // write it like normal\n if (file.isBuffer()) {\n return writeBuffer(writePath, file, written);\n }\n\n // if no contents then do nothing\n if (file.isNull()) {\n return complete();\n }\n\n function complete(err) {\n cb(err, file);\n }\n\n function written(err) {\n\n if (isErrorFatal(err)) {\n return complete(err);\n }\n\n if (!file.stat || typeof file.stat.mode !== 'number' || file.symlink) {\n return complete();\n }\n\n fs.stat(writePath, function(err, st) {\n if (err) {\n return complete(err);\n }\n var currentMode = (st.mode & parseInt('0777', 8));\n var expectedMode = (file.stat.mode & parseInt('0777', 8));\n if (currentMode === expectedMode) {\n return complete();\n }\n fs.chmod(writePath, expectedMode, complete);\n });\n }\n\n function isErrorFatal(err) {\n if (!err) {\n return false;\n }\n\n // Handle scenario for file overwrite failures.\n else if (err.code === 'EEXIST' && file.flag === 'wx') {\n return false; // \"These aren't the droids you're looking for\"\n }\n\n // Otherwise, this is a fatal error\n return true;\n }\n}\n\nmodule.exports = writeContents;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/lib/dest/writeContents/index.js\n ** module id = 382\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/lib/dest/writeContents/index.js?"); - -/***/ }, -/* 383 */ -/***/ function(module, exports, __webpack_require__) { - - eval("'use strict';\n\nvar mkdirp = __webpack_require__(381);\n\nfunction writeDir(writePath, file, cb) {\n mkdirp(writePath, file.stat.mode, cb);\n}\n\nmodule.exports = writeDir;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/lib/dest/writeContents/writeDir.js\n ** module id = 383\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/lib/dest/writeContents/writeDir.js?"); - -/***/ }, -/* 384 */ -/***/ function(module, exports, __webpack_require__) { - - eval("/* WEBPACK VAR INJECTION */(function(process) {'use strict';\n\nvar streamFile = __webpack_require__(375);\nvar fs = process.browser ? __webpack_require__(80) : __webpack_require__(359);\n\nfunction writeStream(writePath, file, cb) {\n var opt = {\n mode: file.stat.mode,\n flag: file.flag\n };\n\n var outStream = fs.createWriteStream(writePath, opt);\n\n file.contents.once('error', complete);\n outStream.once('error', complete);\n outStream.once('finish', success);\n\n file.contents.pipe(outStream);\n\n function success() {\n streamFile(file, {}, complete);\n }\n\n // cleanup\n function complete(err) {\n file.contents.removeListener('error', cb);\n outStream.removeListener('error', cb);\n outStream.removeListener('finish', success);\n cb(err);\n }\n}\n\nmodule.exports = writeStream;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(83)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/lib/dest/writeContents/writeStream.js\n ** module id = 384\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/lib/dest/writeContents/writeStream.js?"); - -/***/ }, -/* 385 */ -/***/ function(module, exports, __webpack_require__) { - - eval("/* WEBPACK VAR INJECTION */(function(process) {'use strict';\n\nvar fs = process.browser ? __webpack_require__(80) : __webpack_require__(359);\n\nfunction writeBuffer(writePath, file, cb) {\n var opt = {\n mode: file.stat.mode,\n flag: file.flag\n };\n\n fs.writeFile(writePath, file.contents, opt, cb);\n}\n\nmodule.exports = writeBuffer;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(83)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/lib/dest/writeContents/writeBuffer.js\n ** module id = 385\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/lib/dest/writeContents/writeBuffer.js?"); - -/***/ }, -/* 386 */ -/***/ function(module, exports, __webpack_require__) { - - eval("/* WEBPACK VAR INJECTION */(function(process) {'use strict';\n\nvar fs = process.browser ? __webpack_require__(80) : __webpack_require__(359);\n\nfunction writeSymbolicLink(writePath, file, cb) {\n fs.symlink(file.symlink, writePath, function (err) {\n if (err && err.code !== 'EEXIST') {\n return cb(err);\n }\n\n cb(null, file);\n });\n}\n\nmodule.exports = writeSymbolicLink;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(83)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/lib/dest/writeContents/writeSymbolicLink.js\n ** module id = 386\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/lib/dest/writeContents/writeSymbolicLink.js?"); - -/***/ }, -/* 387 */ -/***/ function(module, exports, __webpack_require__) { - - eval("/* WEBPACK VAR INJECTION */(function(process) {'use strict';\n\nvar through2 = __webpack_require__(213);\nvar fs = process.browser ? __webpack_require__(80) : __webpack_require__(359);\nvar prepareWrite = __webpack_require__(380);\n\nfunction symlink(outFolder, opt) {\n function linkFile(file, enc, cb) {\n var srcPath = file.path;\n var symType = (file.isDirectory() ? 'dir' : 'file');\n prepareWrite(outFolder, file, opt, function(err, writePath) {\n if (err) {\n return cb(err);\n }\n fs.symlink(srcPath, writePath, symType, function(err) {\n if (err && err.code !== 'EEXIST') {\n return cb(err);\n }\n cb(null, file);\n });\n });\n }\n\n var stream = through2.obj(linkFile);\n // TODO: option for either backpressure or lossy\n stream.resume();\n return stream;\n}\n\nmodule.exports = symlink;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(83)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/lib/symlink/index.js\n ** module id = 387\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/lib/symlink/index.js?"); - -/***/ }, -/* 388 */ -/***/ function(module, exports, __webpack_require__) { - - eval("var flat = __webpack_require__(389)\nvar tree = __webpack_require__(411)\n\nvar x = module.exports = tree\nx.flat = flat\nx.tree = tree\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-multipart-stream/index.js\n ** module id = 388\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-multipart-stream/index.js?"); - -/***/ }, -/* 389 */ -/***/ function(module, exports, __webpack_require__) { - - eval("var Multipart = __webpack_require__(390)\nvar duplexify = __webpack_require__(393)\nvar stream = __webpack_require__(96)\nvar common = __webpack_require__(410)\nrandomString = common.randomString\n\nmodule.exports = v2mpFlat\n\n// we'll create three streams:\n// - w: a writable stream. it receives vinyl files\n// - mp: a multipart stream\n// - r: a readable stream. it outputs multipart data\nfunction v2mpFlat(opts) {\n opts = opts || {}\n opts.boundary = opts.boundary || randomString()\n\n var w = new stream.Writable({objectMode: true})\n var r = new stream.PassThrough({objectMode: true})\n var mp = new Multipart(opts.boundary)\n\n // connect w -> mp\n w._write = function(file, enc, cb) {\n writePart(mp, file, cb)\n }\n\n // connect mp -> r\n w.on('finish', function() {\n // apparently cannot add parts while streaming :(\n mp.pipe(r)\n })\n\n var out = duplexify.obj(w, r)\n out.boundary = opts.boundary\n return out\n}\n\nfunction writePart(mp, file, cb) {\n var c = file.contents\n if (c === null)\n c = emptyStream()\n\n mp.addPart({\n body: file.contents,\n headers: headersForFile(file),\n })\n cb(null)\n // TODO: call cb when file.contents ends instead.\n}\n\nfunction emptyStream() {\n var s = new stream.PassThrough({objectMode: true})\n s.write(null)\n return s\n}\n\nfunction headersForFile(file) {\n var fpath = common.cleanPath(file.path, file.base)\n\n var h = {}\n h['Content-Disposition'] = 'file; filename=\"' +fpath+ '\"'\n\n if (file.isDirectory()) {\n h['Content-Type'] = 'text/directory'\n } else {\n h['Content-Type'] = 'application/octet-stream'\n }\n\n return h\n}\n\nfunction randomString () {\n return Math.random().toString(36).slice(2) +\n Math.random().toString(36).slice(2) +\n Math.random().toString(36).slice(2) +\n Math.random().toString(36).slice(2)\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-multipart-stream/mp2v_flat.js\n ** module id = 389\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-multipart-stream/mp2v_flat.js?"); - -/***/ }, -/* 390 */ -/***/ function(module, exports, __webpack_require__) { - - eval("var Sandwich = __webpack_require__(391).SandwichStream\nvar stream = __webpack_require__(96)\nvar inherits = __webpack_require__(392)\n\nvar CRNL = '\\r\\n'\n\nmodule.exports = Multipart\n\n/**\n * Multipart request constructor.\n * @constructor\n * @param {object} [opts]\n * @param {string} [opts.boundary] - The boundary to be used. If omitted one is generated.\n * @returns {function} Returns the multipart stream.\n */\nfunction Multipart(boundary) {\n\tif(!this instanceof Multipart) {\n\t\treturn new Multipart(boundary)\n\t}\n\n\tthis.boundary = boundary || Math.random().toString(36).slice(2)\n\n\tSandwich.call(this, {\n\t\thead: '--' + this.boundary + CRNL,\n\t\ttail: CRNL + '--' + this.boundary + '--',\n\t\tseparator: CRNL + '--' + this.boundary + CRNL\n\t})\n\n\tthis._add = this.add\n\tthis.add = this.addPart\n}\n\ninherits(Multipart, Sandwich)\n\n/**\n * Adds a new part to the request.\n * @param {object} [part={}]\n * @param {object} [part.headers={}]\n * @param {string|buffer|stream} [part.body=\\r\\n]\n * @returns {function} Returns the multipart stream.\n */\nMultipart.prototype.addPart = function(part) {\n\tpart = part || {}\n\tvar partStream = new stream.PassThrough()\n\n\tif(part.headers) {\n\t\tfor(var key in part.headers) {\n\t\t\tvar header = part.headers[key]\n\t\t\tpartStream.write(key + ': ' + header + CRNL)\n\t\t}\n\t}\n\n\tpartStream.write(CRNL)\n\n\tif(part.body instanceof stream.Stream) {\n\t\tpart.body.pipe(partStream)\n\t} else {\n\t\tpartStream.end(part.body)\n\t}\n\n\tthis._add(partStream)\n}\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/multipart-stream/index.js\n ** module id = 390\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/multipart-stream/index.js?"); - -/***/ }, -/* 391 */ -/***/ function(module, exports, __webpack_require__) { - - eval("var Readable = __webpack_require__(96).Readable;\nvar PassThrough = __webpack_require__(96).PassThrough;\n\nfunction SandwichStream(options) {\n Readable.call(this, options);\n options = options || {};\n this._streamsActive = false;\n this._streamsAdded = false;\n this._streams = [];\n this._currentStream = undefined;\n this._errorsEmitted = false;\n\n if (options.head) {\n this._head = options.head;\n }\n if (options.tail) {\n this._tail = options.tail;\n }\n if (options.separator) {\n this._separator = options.separator;\n }\n}\n\nSandwichStream.prototype = Object.create(Readable.prototype, {\n constructor: SandwichStream\n});\n\nSandwichStream.prototype._read = function () {\n if (!this._streamsActive) {\n this._streamsActive = true;\n this._pushHead();\n this._streamNextStream();\n }\n};\n\nSandwichStream.prototype.add = function (newStream) {\n if (!this._streamsActive) {\n this._streamsAdded = true;\n this._streams.push(newStream);\n newStream.on('error', this._substreamOnError.bind(this));\n }\n else {\n throw new Error('SandwichStream error adding new stream while streaming');\n }\n};\n\nSandwichStream.prototype._substreamOnError = function (error) {\n this._errorsEmitted = true;\n this.emit('error', error);\n};\n\nSandwichStream.prototype._pushHead = function () {\n if (this._head) {\n this.push(this._head);\n }\n};\n\nSandwichStream.prototype._streamNextStream = function () {\n if (this._nextStream()) {\n this._bindCurrentStreamEvents();\n }\n else {\n this._pushTail();\n this.push(null);\n }\n};\n\nSandwichStream.prototype._nextStream = function () {\n this._currentStream = this._streams.shift();\n return this._currentStream !== undefined;\n};\n\nSandwichStream.prototype._bindCurrentStreamEvents = function () {\n this._currentStream.on('readable', this._currentStreamOnReadable.bind(this));\n this._currentStream.on('end', this._currentStreamOnEnd.bind(this));\n};\n\nSandwichStream.prototype._currentStreamOnReadable = function () {\n this.push(this._currentStream.read() || '');\n};\n\nSandwichStream.prototype._currentStreamOnEnd = function () {\n this._pushSeparator();\n this._streamNextStream();\n};\n\nSandwichStream.prototype._pushSeparator = function () {\n if (this._streams.length > 0 && this._separator) {\n this.push(this._separator);\n }\n};\n\nSandwichStream.prototype._pushTail = function () {\n if (this._tail) {\n this.push(this._tail);\n }\n};\n\nfunction sandwichStream(options) {\n var stream = new SandwichStream(options);\n return stream;\n}\n\nsandwichStream.SandwichStream = SandwichStream;\n\nmodule.exports = sandwichStream;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/multipart-stream/~/sandwich-stream/lib/sandwich-stream.js\n ** module id = 391\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/multipart-stream/~/sandwich-stream/lib/sandwich-stream.js?"); - -/***/ }, -/* 392 */ -/***/ function(module, exports) { - - eval("if (typeof Object.create === 'function') {\n // implementation from standard node.js 'util' module\n module.exports = function inherits(ctor, superCtor) {\n ctor.super_ = superCtor\n ctor.prototype = Object.create(superCtor.prototype, {\n constructor: {\n value: ctor,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n };\n} else {\n // old school shim for old browsers\n module.exports = function inherits(ctor, superCtor) {\n ctor.super_ = superCtor\n var TempCtor = function () {}\n TempCtor.prototype = superCtor.prototype\n ctor.prototype = new TempCtor()\n ctor.prototype.constructor = ctor\n }\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/multipart-stream/~/inherits/inherits_browser.js\n ** module id = 392\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/multipart-stream/~/inherits/inherits_browser.js?"); - -/***/ }, -/* 393 */ -/***/ function(module, exports, __webpack_require__) { - - eval("/* WEBPACK VAR INJECTION */(function(Buffer, process) {var stream = __webpack_require__(394)\nvar eos = __webpack_require__(407)\nvar util = __webpack_require__(140)\n\nvar SIGNAL_FLUSH = new Buffer([0])\n\nvar onuncork = function(self, fn) {\n if (self._corked) self.once('uncork', fn)\n else fn()\n}\n\nvar destroyer = function(self, end) {\n return function(err) {\n if (err) self.destroy(err.message === 'premature close' ? null : err)\n else if (end && !self._ended) self.end()\n }\n}\n\nvar end = function(ws, fn) {\n if (!ws) return fn()\n if (ws._writableState && ws._writableState.finished) return fn()\n if (ws._writableState) return ws.end(fn)\n ws.end()\n fn()\n}\n\nvar toStreams2 = function(rs) {\n return new (stream.Readable)({objectMode:true, highWaterMark:16}).wrap(rs)\n}\n\nvar Duplexify = function(writable, readable, opts) {\n if (!(this instanceof Duplexify)) return new Duplexify(writable, readable, opts)\n stream.Duplex.call(this, opts)\n\n this._writable = null\n this._readable = null\n this._readable2 = null\n\n this._forwardDestroy = !opts || opts.destroy !== false\n this._forwardEnd = !opts || opts.end !== false\n this._corked = 1 // start corked\n this._ondrain = null\n this._drained = false\n this._forwarding = false\n this._unwrite = null\n this._unread = null\n this._ended = false\n\n this.destroyed = false\n\n if (writable) this.setWritable(writable)\n if (readable) this.setReadable(readable)\n}\n\nutil.inherits(Duplexify, stream.Duplex)\n\nDuplexify.obj = function(writable, readable, opts) {\n if (!opts) opts = {}\n opts.objectMode = true\n opts.highWaterMark = 16\n return new Duplexify(writable, readable, opts)\n}\n\nDuplexify.prototype.cork = function() {\n if (++this._corked === 1) this.emit('cork')\n}\n\nDuplexify.prototype.uncork = function() {\n if (this._corked && --this._corked === 0) this.emit('uncork')\n}\n\nDuplexify.prototype.setWritable = function(writable) {\n if (this._unwrite) this._unwrite()\n\n if (this.destroyed) {\n if (writable && writable.destroy) writable.destroy()\n return\n }\n\n if (writable === null || writable === false) {\n this.end()\n return\n }\n\n var self = this\n var unend = eos(writable, {writable:true, readable:false}, destroyer(this, this._forwardEnd))\n\n var ondrain = function() {\n var ondrain = self._ondrain\n self._ondrain = null\n if (ondrain) ondrain()\n }\n\n var clear = function() {\n self._writable.removeListener('drain', ondrain)\n unend()\n }\n\n if (this._unwrite) process.nextTick(ondrain) // force a drain on stream reset to avoid livelocks\n\n this._writable = writable\n this._writable.on('drain', ondrain)\n this._unwrite = clear\n\n this.uncork() // always uncork setWritable\n}\n\nDuplexify.prototype.setReadable = function(readable) {\n if (this._unread) this._unread()\n\n if (this.destroyed) {\n if (readable && readable.destroy) readable.destroy()\n return\n }\n\n if (readable === null || readable === false) {\n this.push(null)\n this.resume()\n return\n }\n\n var self = this\n var unend = eos(readable, {writable:false, readable:true}, destroyer(this))\n\n var onreadable = function() {\n self._forward()\n }\n\n var onend = function() {\n self.push(null)\n }\n\n var clear = function() {\n self._readable2.removeListener('readable', onreadable)\n self._readable2.removeListener('end', onend)\n unend()\n }\n\n this._drained = true\n this._readable = readable\n this._readable2 = readable._readableState ? readable : toStreams2(readable)\n this._readable2.on('readable', onreadable)\n this._readable2.on('end', onend)\n this._unread = clear\n\n this._forward()\n}\n\nDuplexify.prototype._read = function() {\n this._drained = true\n this._forward()\n}\n\nDuplexify.prototype._forward = function() {\n if (this._forwarding || !this._readable2 || !this._drained) return\n this._forwarding = true\n\n var data\n var state = this._readable2._readableState\n\n while ((data = this._readable2.read(state.buffer.length ? state.buffer[0].length : state.length)) !== null) {\n this._drained = this.push(data)\n }\n\n this._forwarding = false\n}\n\nDuplexify.prototype.destroy = function(err) {\n if (this.destroyed) return\n this.destroyed = true\n\n var self = this\n process.nextTick(function() {\n self._destroy(err)\n })\n}\n\nDuplexify.prototype._destroy = function(err) {\n if (err) {\n var ondrain = this._ondrain\n this._ondrain = null\n if (ondrain) ondrain(err)\n else this.emit('error', err)\n }\n\n if (this._forwardDestroy) {\n if (this._readable && this._readable.destroy) this._readable.destroy()\n if (this._writable && this._writable.destroy) this._writable.destroy()\n }\n\n this.emit('close')\n}\n\nDuplexify.prototype._write = function(data, enc, cb) {\n if (this.destroyed) return cb()\n if (this._corked) return onuncork(this, this._write.bind(this, data, enc, cb))\n if (data === SIGNAL_FLUSH) return this._finish(cb)\n if (!this._writable) return cb()\n\n if (this._writable.write(data) === false) this._ondrain = cb\n else cb()\n}\n\n\nDuplexify.prototype._finish = function(cb) {\n var self = this\n this.emit('preend')\n onuncork(this, function() {\n end(self._forwardEnd && self._writable, function() {\n // haxx to not emit prefinish twice\n if (self._writableState.prefinished === false) self._writableState.prefinished = true\n self.emit('prefinish')\n onuncork(self, cb)\n })\n })\n}\n\nDuplexify.prototype.end = function(data, enc, cb) {\n if (typeof data === 'function') return this.end(null, null, data)\n if (typeof enc === 'function') return this.end(data, null, enc)\n this._ended = true\n if (data) this.write(data)\n if (!this._writableState.ending) this.write(SIGNAL_FLUSH)\n return stream.Writable.prototype.end.call(this, cb)\n}\n\nmodule.exports = Duplexify\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1).Buffer, __webpack_require__(83)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-multipart-stream/~/duplexify/index.js\n ** module id = 393\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-multipart-stream/~/duplexify/index.js?"); - -/***/ }, -/* 394 */ -/***/ function(module, exports, __webpack_require__) { - - eval("var Stream = (function (){\n try {\n return __webpack_require__(96); // hack to fix a circular dependency issue when used with browserify\n } catch(_){}\n}());\nexports = module.exports = __webpack_require__(395);\nexports.Stream = Stream || exports;\nexports.Readable = exports;\nexports.Writable = __webpack_require__(402);\nexports.Duplex = __webpack_require__(401);\nexports.Transform = __webpack_require__(405);\nexports.PassThrough = __webpack_require__(406);\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-multipart-stream/~/duplexify/~/readable-stream/readable.js\n ** module id = 394\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-multipart-stream/~/duplexify/~/readable-stream/readable.js?"); - -/***/ }, -/* 395 */ -/***/ function(module, exports, __webpack_require__) { - - eval("/* WEBPACK VAR INJECTION */(function(process) {'use strict';\n\nmodule.exports = Readable;\n\n/**/\nvar processNextTick = __webpack_require__(396);\n/**/\n\n\n/**/\nvar isArray = __webpack_require__(397);\n/**/\n\n\n/**/\nvar Buffer = __webpack_require__(1).Buffer;\n/**/\n\nReadable.ReadableState = ReadableState;\n\nvar EE = __webpack_require__(84);\n\n/**/\nvar EElistenerCount = function(emitter, type) {\n return emitter.listeners(type).length;\n};\n/**/\n\n\n\n/**/\nvar Stream;\n(function (){try{\n Stream = __webpack_require__(96);\n}catch(_){}finally{\n if (!Stream)\n Stream = __webpack_require__(84).EventEmitter;\n}}())\n/**/\n\nvar Buffer = __webpack_require__(1).Buffer;\n\n/**/\nvar util = __webpack_require__(398);\nutil.inherits = __webpack_require__(399);\n/**/\n\n\n\n/**/\nvar debugUtil = __webpack_require__(400);\nvar debug;\nif (debugUtil && debugUtil.debuglog) {\n debug = debugUtil.debuglog('stream');\n} else {\n debug = function () {};\n}\n/**/\n\nvar StringDecoder;\n\nutil.inherits(Readable, Stream);\n\nvar Duplex;\nfunction ReadableState(options, stream) {\n Duplex = Duplex || __webpack_require__(401);\n\n options = options || {};\n\n // object stream flag. Used to make read(n) ignore n and to\n // make all the buffer merging and length checks go away\n this.objectMode = !!options.objectMode;\n\n if (stream instanceof Duplex)\n this.objectMode = this.objectMode || !!options.readableObjectMode;\n\n // the point at which it stops calling _read() to fill the buffer\n // Note: 0 is a valid value, means \"don't call _read preemptively ever\"\n var hwm = options.highWaterMark;\n var defaultHwm = this.objectMode ? 16 : 16 * 1024;\n this.highWaterMark = (hwm || hwm === 0) ? hwm : defaultHwm;\n\n // cast to ints.\n this.highWaterMark = ~~this.highWaterMark;\n\n this.buffer = [];\n this.length = 0;\n this.pipes = null;\n this.pipesCount = 0;\n this.flowing = null;\n this.ended = false;\n this.endEmitted = false;\n this.reading = false;\n\n // a flag to be able to tell if the onwrite cb is called immediately,\n // or on a later tick. We set this to true at first, because any\n // actions that shouldn't happen until \"later\" should generally also\n // not happen before the first write call.\n this.sync = true;\n\n // whenever we return null, then we set a flag to say\n // that we're awaiting a 'readable' event emission.\n this.needReadable = false;\n this.emittedReadable = false;\n this.readableListening = false;\n\n // Crypto is kind of old and crusty. Historically, its default string\n // encoding is 'binary' so we have to make this configurable.\n // Everything else in the universe uses 'utf8', though.\n this.defaultEncoding = options.defaultEncoding || 'utf8';\n\n // when piping, we only care about 'readable' events that happen\n // after read()ing all the bytes and not getting any pushback.\n this.ranOut = false;\n\n // the number of writers that are awaiting a drain event in .pipe()s\n this.awaitDrain = 0;\n\n // if true, a maybeReadMore has been scheduled\n this.readingMore = false;\n\n this.decoder = null;\n this.encoding = null;\n if (options.encoding) {\n if (!StringDecoder)\n StringDecoder = __webpack_require__(404).StringDecoder;\n this.decoder = new StringDecoder(options.encoding);\n this.encoding = options.encoding;\n }\n}\n\nvar Duplex;\nfunction Readable(options) {\n Duplex = Duplex || __webpack_require__(401);\n\n if (!(this instanceof Readable))\n return new Readable(options);\n\n this._readableState = new ReadableState(options, this);\n\n // legacy\n this.readable = true;\n\n if (options && typeof options.read === 'function')\n this._read = options.read;\n\n Stream.call(this);\n}\n\n// Manually shove something into the read() buffer.\n// This returns true if the highWaterMark has not been hit yet,\n// similar to how Writable.write() returns true if you should\n// write() some more.\nReadable.prototype.push = function(chunk, encoding) {\n var state = this._readableState;\n\n if (!state.objectMode && typeof chunk === 'string') {\n encoding = encoding || state.defaultEncoding;\n if (encoding !== state.encoding) {\n chunk = new Buffer(chunk, encoding);\n encoding = '';\n }\n }\n\n return readableAddChunk(this, state, chunk, encoding, false);\n};\n\n// Unshift should *always* be something directly out of read()\nReadable.prototype.unshift = function(chunk) {\n var state = this._readableState;\n return readableAddChunk(this, state, chunk, '', true);\n};\n\nReadable.prototype.isPaused = function() {\n return this._readableState.flowing === false;\n};\n\nfunction readableAddChunk(stream, state, chunk, encoding, addToFront) {\n var er = chunkInvalid(state, chunk);\n if (er) {\n stream.emit('error', er);\n } else if (chunk === null) {\n state.reading = false;\n onEofChunk(stream, state);\n } else if (state.objectMode || chunk && chunk.length > 0) {\n if (state.ended && !addToFront) {\n var e = new Error('stream.push() after EOF');\n stream.emit('error', e);\n } else if (state.endEmitted && addToFront) {\n var e = new Error('stream.unshift() after end event');\n stream.emit('error', e);\n } else {\n if (state.decoder && !addToFront && !encoding)\n chunk = state.decoder.write(chunk);\n\n if (!addToFront)\n state.reading = false;\n\n // if we want the data now, just emit it.\n if (state.flowing && state.length === 0 && !state.sync) {\n stream.emit('data', chunk);\n stream.read(0);\n } else {\n // update the buffer info.\n state.length += state.objectMode ? 1 : chunk.length;\n if (addToFront)\n state.buffer.unshift(chunk);\n else\n state.buffer.push(chunk);\n\n if (state.needReadable)\n emitReadable(stream);\n }\n\n maybeReadMore(stream, state);\n }\n } else if (!addToFront) {\n state.reading = false;\n }\n\n return needMoreData(state);\n}\n\n\n// if it's past the high water mark, we can push in some more.\n// Also, if we have no data yet, we can stand some\n// more bytes. This is to work around cases where hwm=0,\n// such as the repl. Also, if the push() triggered a\n// readable event, and the user called read(largeNumber) such that\n// needReadable was set, then we ought to push more, so that another\n// 'readable' event will be triggered.\nfunction needMoreData(state) {\n return !state.ended &&\n (state.needReadable ||\n state.length < state.highWaterMark ||\n state.length === 0);\n}\n\n// backwards compatibility.\nReadable.prototype.setEncoding = function(enc) {\n if (!StringDecoder)\n StringDecoder = __webpack_require__(404).StringDecoder;\n this._readableState.decoder = new StringDecoder(enc);\n this._readableState.encoding = enc;\n return this;\n};\n\n// Don't raise the hwm > 8MB\nvar MAX_HWM = 0x800000;\nfunction computeNewHighWaterMark(n) {\n if (n >= MAX_HWM) {\n n = MAX_HWM;\n } else {\n // Get the next highest power of 2\n n--;\n n |= n >>> 1;\n n |= n >>> 2;\n n |= n >>> 4;\n n |= n >>> 8;\n n |= n >>> 16;\n n++;\n }\n return n;\n}\n\nfunction howMuchToRead(n, state) {\n if (state.length === 0 && state.ended)\n return 0;\n\n if (state.objectMode)\n return n === 0 ? 0 : 1;\n\n if (n === null || isNaN(n)) {\n // only flow one buffer at a time\n if (state.flowing && state.buffer.length)\n return state.buffer[0].length;\n else\n return state.length;\n }\n\n if (n <= 0)\n return 0;\n\n // If we're asking for more than the target buffer level,\n // then raise the water mark. Bump up to the next highest\n // power of 2, to prevent increasing it excessively in tiny\n // amounts.\n if (n > state.highWaterMark)\n state.highWaterMark = computeNewHighWaterMark(n);\n\n // don't have that much. return null, unless we've ended.\n if (n > state.length) {\n if (!state.ended) {\n state.needReadable = true;\n return 0;\n } else {\n return state.length;\n }\n }\n\n return n;\n}\n\n// you can override either this method, or the async _read(n) below.\nReadable.prototype.read = function(n) {\n debug('read', n);\n var state = this._readableState;\n var nOrig = n;\n\n if (typeof n !== 'number' || n > 0)\n state.emittedReadable = false;\n\n // if we're doing read(0) to trigger a readable event, but we\n // already have a bunch of data in the buffer, then just trigger\n // the 'readable' event and move on.\n if (n === 0 &&\n state.needReadable &&\n (state.length >= state.highWaterMark || state.ended)) {\n debug('read: emitReadable', state.length, state.ended);\n if (state.length === 0 && state.ended)\n endReadable(this);\n else\n emitReadable(this);\n return null;\n }\n\n n = howMuchToRead(n, state);\n\n // if we've ended, and we're now clear, then finish it up.\n if (n === 0 && state.ended) {\n if (state.length === 0)\n endReadable(this);\n return null;\n }\n\n // All the actual chunk generation logic needs to be\n // *below* the call to _read. The reason is that in certain\n // synthetic stream cases, such as passthrough streams, _read\n // may be a completely synchronous operation which may change\n // the state of the read buffer, providing enough data when\n // before there was *not* enough.\n //\n // So, the steps are:\n // 1. Figure out what the state of things will be after we do\n // a read from the buffer.\n //\n // 2. If that resulting state will trigger a _read, then call _read.\n // Note that this may be asynchronous, or synchronous. Yes, it is\n // deeply ugly to write APIs this way, but that still doesn't mean\n // that the Readable class should behave improperly, as streams are\n // designed to be sync/async agnostic.\n // Take note if the _read call is sync or async (ie, if the read call\n // has returned yet), so that we know whether or not it's safe to emit\n // 'readable' etc.\n //\n // 3. Actually pull the requested chunks out of the buffer and return.\n\n // if we need a readable event, then we need to do some reading.\n var doRead = state.needReadable;\n debug('need readable', doRead);\n\n // if we currently have less than the highWaterMark, then also read some\n if (state.length === 0 || state.length - n < state.highWaterMark) {\n doRead = true;\n debug('length less than watermark', doRead);\n }\n\n // however, if we've ended, then there's no point, and if we're already\n // reading, then it's unnecessary.\n if (state.ended || state.reading) {\n doRead = false;\n debug('reading or ended', doRead);\n }\n\n if (doRead) {\n debug('do read');\n state.reading = true;\n state.sync = true;\n // if the length is currently zero, then we *need* a readable event.\n if (state.length === 0)\n state.needReadable = true;\n // call internal read method\n this._read(state.highWaterMark);\n state.sync = false;\n }\n\n // If _read pushed data synchronously, then `reading` will be false,\n // and we need to re-evaluate how much data we can return to the user.\n if (doRead && !state.reading)\n n = howMuchToRead(nOrig, state);\n\n var ret;\n if (n > 0)\n ret = fromList(n, state);\n else\n ret = null;\n\n if (ret === null) {\n state.needReadable = true;\n n = 0;\n }\n\n state.length -= n;\n\n // If we have nothing in the buffer, then we want to know\n // as soon as we *do* get something into the buffer.\n if (state.length === 0 && !state.ended)\n state.needReadable = true;\n\n // If we tried to read() past the EOF, then emit end on the next tick.\n if (nOrig !== n && state.ended && state.length === 0)\n endReadable(this);\n\n if (ret !== null)\n this.emit('data', ret);\n\n return ret;\n};\n\nfunction chunkInvalid(state, chunk) {\n var er = null;\n if (!(Buffer.isBuffer(chunk)) &&\n typeof chunk !== 'string' &&\n chunk !== null &&\n chunk !== undefined &&\n !state.objectMode) {\n er = new TypeError('Invalid non-string/buffer chunk');\n }\n return er;\n}\n\n\nfunction onEofChunk(stream, state) {\n if (state.ended) return;\n if (state.decoder) {\n var chunk = state.decoder.end();\n if (chunk && chunk.length) {\n state.buffer.push(chunk);\n state.length += state.objectMode ? 1 : chunk.length;\n }\n }\n state.ended = true;\n\n // emit 'readable' now to make sure it gets picked up.\n emitReadable(stream);\n}\n\n// Don't emit readable right away in sync mode, because this can trigger\n// another read() call => stack overflow. This way, it might trigger\n// a nextTick recursion warning, but that's not so bad.\nfunction emitReadable(stream) {\n var state = stream._readableState;\n state.needReadable = false;\n if (!state.emittedReadable) {\n debug('emitReadable', state.flowing);\n state.emittedReadable = true;\n if (state.sync)\n processNextTick(emitReadable_, stream);\n else\n emitReadable_(stream);\n }\n}\n\nfunction emitReadable_(stream) {\n debug('emit readable');\n stream.emit('readable');\n flow(stream);\n}\n\n\n// at this point, the user has presumably seen the 'readable' event,\n// and called read() to consume some data. that may have triggered\n// in turn another _read(n) call, in which case reading = true if\n// it's in progress.\n// However, if we're not ended, or reading, and the length < hwm,\n// then go ahead and try to read some more preemptively.\nfunction maybeReadMore(stream, state) {\n if (!state.readingMore) {\n state.readingMore = true;\n processNextTick(maybeReadMore_, stream, state);\n }\n}\n\nfunction maybeReadMore_(stream, state) {\n var len = state.length;\n while (!state.reading && !state.flowing && !state.ended &&\n state.length < state.highWaterMark) {\n debug('maybeReadMore read 0');\n stream.read(0);\n if (len === state.length)\n // didn't get any data, stop spinning.\n break;\n else\n len = state.length;\n }\n state.readingMore = false;\n}\n\n// abstract method. to be overridden in specific implementation classes.\n// call cb(er, data) where data is <= n in length.\n// for virtual (non-string, non-buffer) streams, \"length\" is somewhat\n// arbitrary, and perhaps not very meaningful.\nReadable.prototype._read = function(n) {\n this.emit('error', new Error('not implemented'));\n};\n\nReadable.prototype.pipe = function(dest, pipeOpts) {\n var src = this;\n var state = this._readableState;\n\n switch (state.pipesCount) {\n case 0:\n state.pipes = dest;\n break;\n case 1:\n state.pipes = [state.pipes, dest];\n break;\n default:\n state.pipes.push(dest);\n break;\n }\n state.pipesCount += 1;\n debug('pipe count=%d opts=%j', state.pipesCount, pipeOpts);\n\n var doEnd = (!pipeOpts || pipeOpts.end !== false) &&\n dest !== process.stdout &&\n dest !== process.stderr;\n\n var endFn = doEnd ? onend : cleanup;\n if (state.endEmitted)\n processNextTick(endFn);\n else\n src.once('end', endFn);\n\n dest.on('unpipe', onunpipe);\n function onunpipe(readable) {\n debug('onunpipe');\n if (readable === src) {\n cleanup();\n }\n }\n\n function onend() {\n debug('onend');\n dest.end();\n }\n\n // when the dest drains, it reduces the awaitDrain counter\n // on the source. This would be more elegant with a .once()\n // handler in flow(), but adding and removing repeatedly is\n // too slow.\n var ondrain = pipeOnDrain(src);\n dest.on('drain', ondrain);\n\n var cleanedUp = false;\n function cleanup() {\n debug('cleanup');\n // cleanup event handlers once the pipe is broken\n dest.removeListener('close', onclose);\n dest.removeListener('finish', onfinish);\n dest.removeListener('drain', ondrain);\n dest.removeListener('error', onerror);\n dest.removeListener('unpipe', onunpipe);\n src.removeListener('end', onend);\n src.removeListener('end', cleanup);\n src.removeListener('data', ondata);\n\n cleanedUp = true;\n\n // if the reader is waiting for a drain event from this\n // specific writer, then it would cause it to never start\n // flowing again.\n // So, if this is awaiting a drain, then we just call it now.\n // If we don't know, then assume that we are waiting for one.\n if (state.awaitDrain &&\n (!dest._writableState || dest._writableState.needDrain))\n ondrain();\n }\n\n src.on('data', ondata);\n function ondata(chunk) {\n debug('ondata');\n var ret = dest.write(chunk);\n if (false === ret) {\n // If the user unpiped during `dest.write()`, it is possible\n // to get stuck in a permanently paused state if that write\n // also returned false.\n if (state.pipesCount === 1 &&\n state.pipes[0] === dest &&\n src.listenerCount('data') === 1 &&\n !cleanedUp) {\n debug('false write response, pause', src._readableState.awaitDrain);\n src._readableState.awaitDrain++;\n }\n src.pause();\n }\n }\n\n // if the dest has an error, then stop piping into it.\n // however, don't suppress the throwing behavior for this.\n function onerror(er) {\n debug('onerror', er);\n unpipe();\n dest.removeListener('error', onerror);\n if (EElistenerCount(dest, 'error') === 0)\n dest.emit('error', er);\n }\n // This is a brutally ugly hack to make sure that our error handler\n // is attached before any userland ones. NEVER DO THIS.\n if (!dest._events || !dest._events.error)\n dest.on('error', onerror);\n else if (isArray(dest._events.error))\n dest._events.error.unshift(onerror);\n else\n dest._events.error = [onerror, dest._events.error];\n\n\n // Both close and finish should trigger unpipe, but only once.\n function onclose() {\n dest.removeListener('finish', onfinish);\n unpipe();\n }\n dest.once('close', onclose);\n function onfinish() {\n debug('onfinish');\n dest.removeListener('close', onclose);\n unpipe();\n }\n dest.once('finish', onfinish);\n\n function unpipe() {\n debug('unpipe');\n src.unpipe(dest);\n }\n\n // tell the dest that it's being piped to\n dest.emit('pipe', src);\n\n // start the flow if it hasn't been started already.\n if (!state.flowing) {\n debug('pipe resume');\n src.resume();\n }\n\n return dest;\n};\n\nfunction pipeOnDrain(src) {\n return function() {\n var state = src._readableState;\n debug('pipeOnDrain', state.awaitDrain);\n if (state.awaitDrain)\n state.awaitDrain--;\n if (state.awaitDrain === 0 && EElistenerCount(src, 'data')) {\n state.flowing = true;\n flow(src);\n }\n };\n}\n\n\nReadable.prototype.unpipe = function(dest) {\n var state = this._readableState;\n\n // if we're not piping anywhere, then do nothing.\n if (state.pipesCount === 0)\n return this;\n\n // just one destination. most common case.\n if (state.pipesCount === 1) {\n // passed in one, but it's not the right one.\n if (dest && dest !== state.pipes)\n return this;\n\n if (!dest)\n dest = state.pipes;\n\n // got a match.\n state.pipes = null;\n state.pipesCount = 0;\n state.flowing = false;\n if (dest)\n dest.emit('unpipe', this);\n return this;\n }\n\n // slow case. multiple pipe destinations.\n\n if (!dest) {\n // remove all.\n var dests = state.pipes;\n var len = state.pipesCount;\n state.pipes = null;\n state.pipesCount = 0;\n state.flowing = false;\n\n for (var i = 0; i < len; i++)\n dests[i].emit('unpipe', this);\n return this;\n }\n\n // try to find the right one.\n var i = indexOf(state.pipes, dest);\n if (i === -1)\n return this;\n\n state.pipes.splice(i, 1);\n state.pipesCount -= 1;\n if (state.pipesCount === 1)\n state.pipes = state.pipes[0];\n\n dest.emit('unpipe', this);\n\n return this;\n};\n\n// set up data events if they are asked for\n// Ensure readable listeners eventually get something\nReadable.prototype.on = function(ev, fn) {\n var res = Stream.prototype.on.call(this, ev, fn);\n\n // If listening to data, and it has not explicitly been paused,\n // then call resume to start the flow of data on the next tick.\n if (ev === 'data' && false !== this._readableState.flowing) {\n this.resume();\n }\n\n if (ev === 'readable' && this.readable) {\n var state = this._readableState;\n if (!state.readableListening) {\n state.readableListening = true;\n state.emittedReadable = false;\n state.needReadable = true;\n if (!state.reading) {\n processNextTick(nReadingNextTick, this);\n } else if (state.length) {\n emitReadable(this, state);\n }\n }\n }\n\n return res;\n};\nReadable.prototype.addListener = Readable.prototype.on;\n\nfunction nReadingNextTick(self) {\n debug('readable nexttick read 0');\n self.read(0);\n}\n\n// pause() and resume() are remnants of the legacy readable stream API\n// If the user uses them, then switch into old mode.\nReadable.prototype.resume = function() {\n var state = this._readableState;\n if (!state.flowing) {\n debug('resume');\n state.flowing = true;\n resume(this, state);\n }\n return this;\n};\n\nfunction resume(stream, state) {\n if (!state.resumeScheduled) {\n state.resumeScheduled = true;\n processNextTick(resume_, stream, state);\n }\n}\n\nfunction resume_(stream, state) {\n if (!state.reading) {\n debug('resume read 0');\n stream.read(0);\n }\n\n state.resumeScheduled = false;\n stream.emit('resume');\n flow(stream);\n if (state.flowing && !state.reading)\n stream.read(0);\n}\n\nReadable.prototype.pause = function() {\n debug('call pause flowing=%j', this._readableState.flowing);\n if (false !== this._readableState.flowing) {\n debug('pause');\n this._readableState.flowing = false;\n this.emit('pause');\n }\n return this;\n};\n\nfunction flow(stream) {\n var state = stream._readableState;\n debug('flow', state.flowing);\n if (state.flowing) {\n do {\n var chunk = stream.read();\n } while (null !== chunk && state.flowing);\n }\n}\n\n// wrap an old-style stream as the async data source.\n// This is *not* part of the readable stream interface.\n// It is an ugly unfortunate mess of history.\nReadable.prototype.wrap = function(stream) {\n var state = this._readableState;\n var paused = false;\n\n var self = this;\n stream.on('end', function() {\n debug('wrapped end');\n if (state.decoder && !state.ended) {\n var chunk = state.decoder.end();\n if (chunk && chunk.length)\n self.push(chunk);\n }\n\n self.push(null);\n });\n\n stream.on('data', function(chunk) {\n debug('wrapped data');\n if (state.decoder)\n chunk = state.decoder.write(chunk);\n\n // don't skip over falsy values in objectMode\n if (state.objectMode && (chunk === null || chunk === undefined))\n return;\n else if (!state.objectMode && (!chunk || !chunk.length))\n return;\n\n var ret = self.push(chunk);\n if (!ret) {\n paused = true;\n stream.pause();\n }\n });\n\n // proxy all the other methods.\n // important when wrapping filters and duplexes.\n for (var i in stream) {\n if (this[i] === undefined && typeof stream[i] === 'function') {\n this[i] = function(method) { return function() {\n return stream[method].apply(stream, arguments);\n }; }(i);\n }\n }\n\n // proxy certain important events.\n var events = ['error', 'close', 'destroy', 'pause', 'resume'];\n forEach(events, function(ev) {\n stream.on(ev, self.emit.bind(self, ev));\n });\n\n // when we try to consume some more bytes, simply unpause the\n // underlying stream.\n self._read = function(n) {\n debug('wrapped _read', n);\n if (paused) {\n paused = false;\n stream.resume();\n }\n };\n\n return self;\n};\n\n\n// exposed for testing purposes only.\nReadable._fromList = fromList;\n\n// Pluck off n bytes from an array of buffers.\n// Length is the combined lengths of all the buffers in the list.\nfunction fromList(n, state) {\n var list = state.buffer;\n var length = state.length;\n var stringMode = !!state.decoder;\n var objectMode = !!state.objectMode;\n var ret;\n\n // nothing in the list, definitely empty.\n if (list.length === 0)\n return null;\n\n if (length === 0)\n ret = null;\n else if (objectMode)\n ret = list.shift();\n else if (!n || n >= length) {\n // read it all, truncate the array.\n if (stringMode)\n ret = list.join('');\n else if (list.length === 1)\n ret = list[0];\n else\n ret = Buffer.concat(list, length);\n list.length = 0;\n } else {\n // read just some of it.\n if (n < list[0].length) {\n // just take a part of the first list item.\n // slice is the same for buffers and strings.\n var buf = list[0];\n ret = buf.slice(0, n);\n list[0] = buf.slice(n);\n } else if (n === list[0].length) {\n // first list is a perfect match\n ret = list.shift();\n } else {\n // complex case.\n // we have enough to cover it, but it spans past the first buffer.\n if (stringMode)\n ret = '';\n else\n ret = new Buffer(n);\n\n var c = 0;\n for (var i = 0, l = list.length; i < l && c < n; i++) {\n var buf = list[0];\n var cpy = Math.min(n - c, buf.length);\n\n if (stringMode)\n ret += buf.slice(0, cpy);\n else\n buf.copy(ret, c, 0, cpy);\n\n if (cpy < buf.length)\n list[0] = buf.slice(cpy);\n else\n list.shift();\n\n c += cpy;\n }\n }\n }\n\n return ret;\n}\n\nfunction endReadable(stream) {\n var state = stream._readableState;\n\n // If we get here before consuming all the bytes, then that is a\n // bug in node. Should never happen.\n if (state.length > 0)\n throw new Error('endReadable called on non-empty stream');\n\n if (!state.endEmitted) {\n state.ended = true;\n processNextTick(endReadableNT, state, stream);\n }\n}\n\nfunction endReadableNT(state, stream) {\n // Check that we didn't get one last unshift.\n if (!state.endEmitted && state.length === 0) {\n state.endEmitted = true;\n stream.readable = false;\n stream.emit('end');\n }\n}\n\nfunction forEach (xs, f) {\n for (var i = 0, l = xs.length; i < l; i++) {\n f(xs[i], i);\n }\n}\n\nfunction indexOf (xs, x) {\n for (var i = 0, l = xs.length; i < l; i++) {\n if (xs[i] === x) return i;\n }\n return -1;\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(83)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-multipart-stream/~/duplexify/~/readable-stream/lib/_stream_readable.js\n ** module id = 395\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-multipart-stream/~/duplexify/~/readable-stream/lib/_stream_readable.js?"); - -/***/ }, -/* 396 */ -/***/ function(module, exports, __webpack_require__) { - - eval("/* WEBPACK VAR INJECTION */(function(process) {'use strict';\n\nif (!process.version ||\n process.version.indexOf('v0.') === 0 ||\n process.version.indexOf('v1.') === 0 && process.version.indexOf('v1.8.') !== 0) {\n module.exports = nextTick;\n} else {\n module.exports = process.nextTick;\n}\n\nfunction nextTick(fn) {\n var args = new Array(arguments.length - 1);\n var i = 0;\n while (i < args.length) {\n args[i++] = arguments[i];\n }\n process.nextTick(function afterTick() {\n fn.apply(null, args);\n });\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(83)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-multipart-stream/~/duplexify/~/readable-stream/~/process-nextick-args/index.js\n ** module id = 396\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-multipart-stream/~/duplexify/~/readable-stream/~/process-nextick-args/index.js?"); - -/***/ }, -/* 397 */ -/***/ function(module, exports) { - - eval("module.exports = Array.isArray || function (arr) {\n return Object.prototype.toString.call(arr) == '[object Array]';\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-multipart-stream/~/duplexify/~/readable-stream/~/isarray/index.js\n ** module id = 397\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-multipart-stream/~/duplexify/~/readable-stream/~/isarray/index.js?"); - -/***/ }, -/* 398 */ -/***/ function(module, exports, __webpack_require__) { - - eval("/* WEBPACK VAR INJECTION */(function(Buffer) {// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// NOTE: These type checking functions intentionally don't use `instanceof`\n// because it is fragile and can be easily faked with `Object.create()`.\n\nfunction isArray(arg) {\n if (Array.isArray) {\n return Array.isArray(arg);\n }\n return objectToString(arg) === '[object Array]';\n}\nexports.isArray = isArray;\n\nfunction isBoolean(arg) {\n return typeof arg === 'boolean';\n}\nexports.isBoolean = isBoolean;\n\nfunction isNull(arg) {\n return arg === null;\n}\nexports.isNull = isNull;\n\nfunction isNullOrUndefined(arg) {\n return arg == null;\n}\nexports.isNullOrUndefined = isNullOrUndefined;\n\nfunction isNumber(arg) {\n return typeof arg === 'number';\n}\nexports.isNumber = isNumber;\n\nfunction isString(arg) {\n return typeof arg === 'string';\n}\nexports.isString = isString;\n\nfunction isSymbol(arg) {\n return typeof arg === 'symbol';\n}\nexports.isSymbol = isSymbol;\n\nfunction isUndefined(arg) {\n return arg === void 0;\n}\nexports.isUndefined = isUndefined;\n\nfunction isRegExp(re) {\n return objectToString(re) === '[object RegExp]';\n}\nexports.isRegExp = isRegExp;\n\nfunction isObject(arg) {\n return typeof arg === 'object' && arg !== null;\n}\nexports.isObject = isObject;\n\nfunction isDate(d) {\n return objectToString(d) === '[object Date]';\n}\nexports.isDate = isDate;\n\nfunction isError(e) {\n return (objectToString(e) === '[object Error]' || e instanceof Error);\n}\nexports.isError = isError;\n\nfunction isFunction(arg) {\n return typeof arg === 'function';\n}\nexports.isFunction = isFunction;\n\nfunction isPrimitive(arg) {\n return arg === null ||\n typeof arg === 'boolean' ||\n typeof arg === 'number' ||\n typeof arg === 'string' ||\n typeof arg === 'symbol' || // ES6 symbol\n typeof arg === 'undefined';\n}\nexports.isPrimitive = isPrimitive;\n\nexports.isBuffer = Buffer.isBuffer;\n\nfunction objectToString(o) {\n return Object.prototype.toString.call(o);\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1).Buffer))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-multipart-stream/~/duplexify/~/readable-stream/~/core-util-is/lib/util.js\n ** module id = 398\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-multipart-stream/~/duplexify/~/readable-stream/~/core-util-is/lib/util.js?"); - -/***/ }, -/* 399 */ -/***/ function(module, exports) { - - eval("if (typeof Object.create === 'function') {\n // implementation from standard node.js 'util' module\n module.exports = function inherits(ctor, superCtor) {\n ctor.super_ = superCtor\n ctor.prototype = Object.create(superCtor.prototype, {\n constructor: {\n value: ctor,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n };\n} else {\n // old school shim for old browsers\n module.exports = function inherits(ctor, superCtor) {\n ctor.super_ = superCtor\n var TempCtor = function () {}\n TempCtor.prototype = superCtor.prototype\n ctor.prototype = new TempCtor()\n ctor.prototype.constructor = ctor\n }\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-multipart-stream/~/duplexify/~/readable-stream/~/inherits/inherits_browser.js\n ** module id = 399\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-multipart-stream/~/duplexify/~/readable-stream/~/inherits/inherits_browser.js?"); - -/***/ }, -/* 400 */ -/***/ function(module, exports) { - - eval("/* (ignored) */\n\n/*****************\n ** WEBPACK FOOTER\n ** util (ignored)\n ** module id = 400\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///util_(ignored)?"); - -/***/ }, -/* 401 */ -/***/ function(module, exports, __webpack_require__) { - - eval("// a duplex stream is just a stream that is both readable and writable.\n// Since JS doesn't have multiple prototypal inheritance, this class\n// prototypally inherits from Readable, and then parasitically from\n// Writable.\n\n'use strict';\n\n/**/\nvar objectKeys = Object.keys || function (obj) {\n var keys = [];\n for (var key in obj) keys.push(key);\n return keys;\n}\n/**/\n\n\nmodule.exports = Duplex;\n\n/**/\nvar processNextTick = __webpack_require__(396);\n/**/\n\n\n\n/**/\nvar util = __webpack_require__(398);\nutil.inherits = __webpack_require__(399);\n/**/\n\nvar Readable = __webpack_require__(395);\nvar Writable = __webpack_require__(402);\n\nutil.inherits(Duplex, Readable);\n\nvar keys = objectKeys(Writable.prototype);\nfor (var v = 0; v < keys.length; v++) {\n var method = keys[v];\n if (!Duplex.prototype[method])\n Duplex.prototype[method] = Writable.prototype[method];\n}\n\nfunction Duplex(options) {\n if (!(this instanceof Duplex))\n return new Duplex(options);\n\n Readable.call(this, options);\n Writable.call(this, options);\n\n if (options && options.readable === false)\n this.readable = false;\n\n if (options && options.writable === false)\n this.writable = false;\n\n this.allowHalfOpen = true;\n if (options && options.allowHalfOpen === false)\n this.allowHalfOpen = false;\n\n this.once('end', onend);\n}\n\n// the no-half-open enforcer\nfunction onend() {\n // if we allow half-open state, or if the writable side ended,\n // then we're ok.\n if (this.allowHalfOpen || this._writableState.ended)\n return;\n\n // no more data can be written.\n // But allow more writes to happen in this tick.\n processNextTick(onEndNT, this);\n}\n\nfunction onEndNT(self) {\n self.end();\n}\n\nfunction forEach (xs, f) {\n for (var i = 0, l = xs.length; i < l; i++) {\n f(xs[i], i);\n }\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-multipart-stream/~/duplexify/~/readable-stream/lib/_stream_duplex.js\n ** module id = 401\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-multipart-stream/~/duplexify/~/readable-stream/lib/_stream_duplex.js?"); - -/***/ }, -/* 402 */ -/***/ function(module, exports, __webpack_require__) { - - eval("// A bit simpler than readable streams.\n// Implement an async ._write(chunk, encoding, cb), and it'll handle all\n// the drain event emission and buffering.\n\n'use strict';\n\nmodule.exports = Writable;\n\n/**/\nvar processNextTick = __webpack_require__(396);\n/**/\n\n\n/**/\nvar Buffer = __webpack_require__(1).Buffer;\n/**/\n\nWritable.WritableState = WritableState;\n\n\n/**/\nvar util = __webpack_require__(398);\nutil.inherits = __webpack_require__(399);\n/**/\n\n\n/**/\nvar internalUtil = {\n deprecate: __webpack_require__(403)\n};\n/**/\n\n\n\n/**/\nvar Stream;\n(function (){try{\n Stream = __webpack_require__(96);\n}catch(_){}finally{\n if (!Stream)\n Stream = __webpack_require__(84).EventEmitter;\n}}())\n/**/\n\nvar Buffer = __webpack_require__(1).Buffer;\n\nutil.inherits(Writable, Stream);\n\nfunction nop() {}\n\nfunction WriteReq(chunk, encoding, cb) {\n this.chunk = chunk;\n this.encoding = encoding;\n this.callback = cb;\n this.next = null;\n}\n\nvar Duplex;\nfunction WritableState(options, stream) {\n Duplex = Duplex || __webpack_require__(401);\n\n options = options || {};\n\n // object stream flag to indicate whether or not this stream\n // contains buffers or objects.\n this.objectMode = !!options.objectMode;\n\n if (stream instanceof Duplex)\n this.objectMode = this.objectMode || !!options.writableObjectMode;\n\n // the point at which write() starts returning false\n // Note: 0 is a valid value, means that we always return false if\n // the entire buffer is not flushed immediately on write()\n var hwm = options.highWaterMark;\n var defaultHwm = this.objectMode ? 16 : 16 * 1024;\n this.highWaterMark = (hwm || hwm === 0) ? hwm : defaultHwm;\n\n // cast to ints.\n this.highWaterMark = ~~this.highWaterMark;\n\n this.needDrain = false;\n // at the start of calling end()\n this.ending = false;\n // when end() has been called, and returned\n this.ended = false;\n // when 'finish' is emitted\n this.finished = false;\n\n // should we decode strings into buffers before passing to _write?\n // this is here so that some node-core streams can optimize string\n // handling at a lower level.\n var noDecode = options.decodeStrings === false;\n this.decodeStrings = !noDecode;\n\n // Crypto is kind of old and crusty. Historically, its default string\n // encoding is 'binary' so we have to make this configurable.\n // Everything else in the universe uses 'utf8', though.\n this.defaultEncoding = options.defaultEncoding || 'utf8';\n\n // not an actual buffer we keep track of, but a measurement\n // of how much we're waiting to get pushed to some underlying\n // socket or file.\n this.length = 0;\n\n // a flag to see when we're in the middle of a write.\n this.writing = false;\n\n // when true all writes will be buffered until .uncork() call\n this.corked = 0;\n\n // a flag to be able to tell if the onwrite cb is called immediately,\n // or on a later tick. We set this to true at first, because any\n // actions that shouldn't happen until \"later\" should generally also\n // not happen before the first write call.\n this.sync = true;\n\n // a flag to know if we're processing previously buffered items, which\n // may call the _write() callback in the same tick, so that we don't\n // end up in an overlapped onwrite situation.\n this.bufferProcessing = false;\n\n // the callback that's passed to _write(chunk,cb)\n this.onwrite = function(er) {\n onwrite(stream, er);\n };\n\n // the callback that the user supplies to write(chunk,encoding,cb)\n this.writecb = null;\n\n // the amount that is being written when _write is called.\n this.writelen = 0;\n\n this.bufferedRequest = null;\n this.lastBufferedRequest = null;\n\n // number of pending user-supplied write callbacks\n // this must be 0 before 'finish' can be emitted\n this.pendingcb = 0;\n\n // emit prefinish if the only thing we're waiting for is _write cbs\n // This is relevant for synchronous Transform streams\n this.prefinished = false;\n\n // True if the error was already emitted and should not be thrown again\n this.errorEmitted = false;\n}\n\nWritableState.prototype.getBuffer = function writableStateGetBuffer() {\n var current = this.bufferedRequest;\n var out = [];\n while (current) {\n out.push(current);\n current = current.next;\n }\n return out;\n};\n\n(function (){try {\nObject.defineProperty(WritableState.prototype, 'buffer', {\n get: internalUtil.deprecate(function() {\n return this.getBuffer();\n }, '_writableState.buffer is deprecated. Use _writableState.getBuffer ' +\n 'instead.')\n});\n}catch(_){}}());\n\n\nvar Duplex;\nfunction Writable(options) {\n Duplex = Duplex || __webpack_require__(401);\n\n // Writable ctor is applied to Duplexes, though they're not\n // instanceof Writable, they're instanceof Readable.\n if (!(this instanceof Writable) && !(this instanceof Duplex))\n return new Writable(options);\n\n this._writableState = new WritableState(options, this);\n\n // legacy.\n this.writable = true;\n\n if (options) {\n if (typeof options.write === 'function')\n this._write = options.write;\n\n if (typeof options.writev === 'function')\n this._writev = options.writev;\n }\n\n Stream.call(this);\n}\n\n// Otherwise people can pipe Writable streams, which is just wrong.\nWritable.prototype.pipe = function() {\n this.emit('error', new Error('Cannot pipe. Not readable.'));\n};\n\n\nfunction writeAfterEnd(stream, cb) {\n var er = new Error('write after end');\n // TODO: defer error events consistently everywhere, not just the cb\n stream.emit('error', er);\n processNextTick(cb, er);\n}\n\n// If we get something that is not a buffer, string, null, or undefined,\n// and we're not in objectMode, then that's an error.\n// Otherwise stream chunks are all considered to be of length=1, and the\n// watermarks determine how many objects to keep in the buffer, rather than\n// how many bytes or characters.\nfunction validChunk(stream, state, chunk, cb) {\n var valid = true;\n\n if (!(Buffer.isBuffer(chunk)) &&\n typeof chunk !== 'string' &&\n chunk !== null &&\n chunk !== undefined &&\n !state.objectMode) {\n var er = new TypeError('Invalid non-string/buffer chunk');\n stream.emit('error', er);\n processNextTick(cb, er);\n valid = false;\n }\n return valid;\n}\n\nWritable.prototype.write = function(chunk, encoding, cb) {\n var state = this._writableState;\n var ret = false;\n\n if (typeof encoding === 'function') {\n cb = encoding;\n encoding = null;\n }\n\n if (Buffer.isBuffer(chunk))\n encoding = 'buffer';\n else if (!encoding)\n encoding = state.defaultEncoding;\n\n if (typeof cb !== 'function')\n cb = nop;\n\n if (state.ended)\n writeAfterEnd(this, cb);\n else if (validChunk(this, state, chunk, cb)) {\n state.pendingcb++;\n ret = writeOrBuffer(this, state, chunk, encoding, cb);\n }\n\n return ret;\n};\n\nWritable.prototype.cork = function() {\n var state = this._writableState;\n\n state.corked++;\n};\n\nWritable.prototype.uncork = function() {\n var state = this._writableState;\n\n if (state.corked) {\n state.corked--;\n\n if (!state.writing &&\n !state.corked &&\n !state.finished &&\n !state.bufferProcessing &&\n state.bufferedRequest)\n clearBuffer(this, state);\n }\n};\n\nWritable.prototype.setDefaultEncoding = function setDefaultEncoding(encoding) {\n // node::ParseEncoding() requires lower case.\n if (typeof encoding === 'string')\n encoding = encoding.toLowerCase();\n if (!(['hex', 'utf8', 'utf-8', 'ascii', 'binary', 'base64',\n'ucs2', 'ucs-2','utf16le', 'utf-16le', 'raw']\n.indexOf((encoding + '').toLowerCase()) > -1))\n throw new TypeError('Unknown encoding: ' + encoding);\n this._writableState.defaultEncoding = encoding;\n};\n\nfunction decodeChunk(state, chunk, encoding) {\n if (!state.objectMode &&\n state.decodeStrings !== false &&\n typeof chunk === 'string') {\n chunk = new Buffer(chunk, encoding);\n }\n return chunk;\n}\n\n// if we're already writing something, then just put this\n// in the queue, and wait our turn. Otherwise, call _write\n// If we return false, then we need a drain event, so set that flag.\nfunction writeOrBuffer(stream, state, chunk, encoding, cb) {\n chunk = decodeChunk(state, chunk, encoding);\n\n if (Buffer.isBuffer(chunk))\n encoding = 'buffer';\n var len = state.objectMode ? 1 : chunk.length;\n\n state.length += len;\n\n var ret = state.length < state.highWaterMark;\n // we must ensure that previous needDrain will not be reset to false.\n if (!ret)\n state.needDrain = true;\n\n if (state.writing || state.corked) {\n var last = state.lastBufferedRequest;\n state.lastBufferedRequest = new WriteReq(chunk, encoding, cb);\n if (last) {\n last.next = state.lastBufferedRequest;\n } else {\n state.bufferedRequest = state.lastBufferedRequest;\n }\n } else {\n doWrite(stream, state, false, len, chunk, encoding, cb);\n }\n\n return ret;\n}\n\nfunction doWrite(stream, state, writev, len, chunk, encoding, cb) {\n state.writelen = len;\n state.writecb = cb;\n state.writing = true;\n state.sync = true;\n if (writev)\n stream._writev(chunk, state.onwrite);\n else\n stream._write(chunk, encoding, state.onwrite);\n state.sync = false;\n}\n\nfunction onwriteError(stream, state, sync, er, cb) {\n --state.pendingcb;\n if (sync)\n processNextTick(cb, er);\n else\n cb(er);\n\n stream._writableState.errorEmitted = true;\n stream.emit('error', er);\n}\n\nfunction onwriteStateUpdate(state) {\n state.writing = false;\n state.writecb = null;\n state.length -= state.writelen;\n state.writelen = 0;\n}\n\nfunction onwrite(stream, er) {\n var state = stream._writableState;\n var sync = state.sync;\n var cb = state.writecb;\n\n onwriteStateUpdate(state);\n\n if (er)\n onwriteError(stream, state, sync, er, cb);\n else {\n // Check if we're actually ready to finish, but don't emit yet\n var finished = needFinish(state);\n\n if (!finished &&\n !state.corked &&\n !state.bufferProcessing &&\n state.bufferedRequest) {\n clearBuffer(stream, state);\n }\n\n if (sync) {\n processNextTick(afterWrite, stream, state, finished, cb);\n } else {\n afterWrite(stream, state, finished, cb);\n }\n }\n}\n\nfunction afterWrite(stream, state, finished, cb) {\n if (!finished)\n onwriteDrain(stream, state);\n state.pendingcb--;\n cb();\n finishMaybe(stream, state);\n}\n\n// Must force callback to be called on nextTick, so that we don't\n// emit 'drain' before the write() consumer gets the 'false' return\n// value, and has a chance to attach a 'drain' listener.\nfunction onwriteDrain(stream, state) {\n if (state.length === 0 && state.needDrain) {\n state.needDrain = false;\n stream.emit('drain');\n }\n}\n\n\n// if there's something in the buffer waiting, then process it\nfunction clearBuffer(stream, state) {\n state.bufferProcessing = true;\n var entry = state.bufferedRequest;\n\n if (stream._writev && entry && entry.next) {\n // Fast case, write everything using _writev()\n var buffer = [];\n var cbs = [];\n while (entry) {\n cbs.push(entry.callback);\n buffer.push(entry);\n entry = entry.next;\n }\n\n // count the one we are adding, as well.\n // TODO(isaacs) clean this up\n state.pendingcb++;\n state.lastBufferedRequest = null;\n doWrite(stream, state, true, state.length, buffer, '', function(err) {\n for (var i = 0; i < cbs.length; i++) {\n state.pendingcb--;\n cbs[i](err);\n }\n });\n\n // Clear buffer\n } else {\n // Slow case, write chunks one-by-one\n while (entry) {\n var chunk = entry.chunk;\n var encoding = entry.encoding;\n var cb = entry.callback;\n var len = state.objectMode ? 1 : chunk.length;\n\n doWrite(stream, state, false, len, chunk, encoding, cb);\n entry = entry.next;\n // if we didn't call the onwrite immediately, then\n // it means that we need to wait until it does.\n // also, that means that the chunk and cb are currently\n // being processed, so move the buffer counter past them.\n if (state.writing) {\n break;\n }\n }\n\n if (entry === null)\n state.lastBufferedRequest = null;\n }\n state.bufferedRequest = entry;\n state.bufferProcessing = false;\n}\n\nWritable.prototype._write = function(chunk, encoding, cb) {\n cb(new Error('not implemented'));\n};\n\nWritable.prototype._writev = null;\n\nWritable.prototype.end = function(chunk, encoding, cb) {\n var state = this._writableState;\n\n if (typeof chunk === 'function') {\n cb = chunk;\n chunk = null;\n encoding = null;\n } else if (typeof encoding === 'function') {\n cb = encoding;\n encoding = null;\n }\n\n if (chunk !== null && chunk !== undefined)\n this.write(chunk, encoding);\n\n // .end() fully uncorks\n if (state.corked) {\n state.corked = 1;\n this.uncork();\n }\n\n // ignore unnecessary end() calls.\n if (!state.ending && !state.finished)\n endWritable(this, state, cb);\n};\n\n\nfunction needFinish(state) {\n return (state.ending &&\n state.length === 0 &&\n state.bufferedRequest === null &&\n !state.finished &&\n !state.writing);\n}\n\nfunction prefinish(stream, state) {\n if (!state.prefinished) {\n state.prefinished = true;\n stream.emit('prefinish');\n }\n}\n\nfunction finishMaybe(stream, state) {\n var need = needFinish(state);\n if (need) {\n if (state.pendingcb === 0) {\n prefinish(stream, state);\n state.finished = true;\n stream.emit('finish');\n } else {\n prefinish(stream, state);\n }\n }\n return need;\n}\n\nfunction endWritable(stream, state, cb) {\n state.ending = true;\n finishMaybe(stream, state);\n if (cb) {\n if (state.finished)\n processNextTick(cb);\n else\n stream.once('finish', cb);\n }\n state.ended = true;\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-multipart-stream/~/duplexify/~/readable-stream/lib/_stream_writable.js\n ** module id = 402\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-multipart-stream/~/duplexify/~/readable-stream/lib/_stream_writable.js?"); - -/***/ }, -/* 403 */ -/***/ function(module, exports) { - - eval("/* WEBPACK VAR INJECTION */(function(global) {\n/**\n * Module exports.\n */\n\nmodule.exports = deprecate;\n\n/**\n * Mark that a method should not be used.\n * Returns a modified function which warns once by default.\n *\n * If `localStorage.noDeprecation = true` is set, then it is a no-op.\n *\n * If `localStorage.throwDeprecation = true` is set, then deprecated functions\n * will throw an Error when invoked.\n *\n * If `localStorage.traceDeprecation = true` is set, then deprecated functions\n * will invoke `console.trace()` instead of `console.error()`.\n *\n * @param {Function} fn - the function to deprecate\n * @param {String} msg - the string to print to the console when `fn` is invoked\n * @returns {Function} a new \"deprecated\" version of `fn`\n * @api public\n */\n\nfunction deprecate (fn, msg) {\n if (config('noDeprecation')) {\n return fn;\n }\n\n var warned = false;\n function deprecated() {\n if (!warned) {\n if (config('throwDeprecation')) {\n throw new Error(msg);\n } else if (config('traceDeprecation')) {\n console.trace(msg);\n } else {\n console.warn(msg);\n }\n warned = true;\n }\n return fn.apply(this, arguments);\n }\n\n return deprecated;\n}\n\n/**\n * Checks `localStorage` for boolean values for the given `name`.\n *\n * @param {String} name\n * @returns {Boolean}\n * @api private\n */\n\nfunction config (name) {\n // accessing global.localStorage can trigger a DOMException in sandboxed iframes\n try {\n if (!global.localStorage) return false;\n } catch (_) {\n return false;\n }\n var val = global.localStorage[name];\n if (null == val) return false;\n return String(val).toLowerCase() === 'true';\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-multipart-stream/~/duplexify/~/readable-stream/~/util-deprecate/browser.js\n ** module id = 403\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-multipart-stream/~/duplexify/~/readable-stream/~/util-deprecate/browser.js?"); - -/***/ }, -/* 404 */ -/***/ function(module, exports, __webpack_require__) { - - eval("// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nvar Buffer = __webpack_require__(1).Buffer;\n\nvar isBufferEncoding = Buffer.isEncoding\n || function(encoding) {\n switch (encoding && encoding.toLowerCase()) {\n case 'hex': case 'utf8': case 'utf-8': case 'ascii': case 'binary': case 'base64': case 'ucs2': case 'ucs-2': case 'utf16le': case 'utf-16le': case 'raw': return true;\n default: return false;\n }\n }\n\n\nfunction assertEncoding(encoding) {\n if (encoding && !isBufferEncoding(encoding)) {\n throw new Error('Unknown encoding: ' + encoding);\n }\n}\n\n// StringDecoder provides an interface for efficiently splitting a series of\n// buffers into a series of JS strings without breaking apart multi-byte\n// characters. CESU-8 is handled as part of the UTF-8 encoding.\n//\n// @TODO Handling all encodings inside a single object makes it very difficult\n// to reason about this code, so it should be split up in the future.\n// @TODO There should be a utf8-strict encoding that rejects invalid UTF-8 code\n// points as used by CESU-8.\nvar StringDecoder = exports.StringDecoder = function(encoding) {\n this.encoding = (encoding || 'utf8').toLowerCase().replace(/[-_]/, '');\n assertEncoding(encoding);\n switch (this.encoding) {\n case 'utf8':\n // CESU-8 represents each of Surrogate Pair by 3-bytes\n this.surrogateSize = 3;\n break;\n case 'ucs2':\n case 'utf16le':\n // UTF-16 represents each of Surrogate Pair by 2-bytes\n this.surrogateSize = 2;\n this.detectIncompleteChar = utf16DetectIncompleteChar;\n break;\n case 'base64':\n // Base-64 stores 3 bytes in 4 chars, and pads the remainder.\n this.surrogateSize = 3;\n this.detectIncompleteChar = base64DetectIncompleteChar;\n break;\n default:\n this.write = passThroughWrite;\n return;\n }\n\n // Enough space to store all bytes of a single character. UTF-8 needs 4\n // bytes, but CESU-8 may require up to 6 (3 bytes per surrogate).\n this.charBuffer = new Buffer(6);\n // Number of bytes received for the current incomplete multi-byte character.\n this.charReceived = 0;\n // Number of bytes expected for the current incomplete multi-byte character.\n this.charLength = 0;\n};\n\n\n// write decodes the given buffer and returns it as JS string that is\n// guaranteed to not contain any partial multi-byte characters. Any partial\n// character found at the end of the buffer is buffered up, and will be\n// returned when calling write again with the remaining bytes.\n//\n// Note: Converting a Buffer containing an orphan surrogate to a String\n// currently works, but converting a String to a Buffer (via `new Buffer`, or\n// Buffer#write) will replace incomplete surrogates with the unicode\n// replacement character. See https://codereview.chromium.org/121173009/ .\nStringDecoder.prototype.write = function(buffer) {\n var charStr = '';\n // if our last write ended with an incomplete multibyte character\n while (this.charLength) {\n // determine how many remaining bytes this buffer has to offer for this char\n var available = (buffer.length >= this.charLength - this.charReceived) ?\n this.charLength - this.charReceived :\n buffer.length;\n\n // add the new bytes to the char buffer\n buffer.copy(this.charBuffer, this.charReceived, 0, available);\n this.charReceived += available;\n\n if (this.charReceived < this.charLength) {\n // still not enough chars in this buffer? wait for more ...\n return '';\n }\n\n // remove bytes belonging to the current character from the buffer\n buffer = buffer.slice(available, buffer.length);\n\n // get the character that was split\n charStr = this.charBuffer.slice(0, this.charLength).toString(this.encoding);\n\n // CESU-8: lead surrogate (D800-DBFF) is also the incomplete character\n var charCode = charStr.charCodeAt(charStr.length - 1);\n if (charCode >= 0xD800 && charCode <= 0xDBFF) {\n this.charLength += this.surrogateSize;\n charStr = '';\n continue;\n }\n this.charReceived = this.charLength = 0;\n\n // if there are no more bytes in this buffer, just emit our char\n if (buffer.length === 0) {\n return charStr;\n }\n break;\n }\n\n // determine and set charLength / charReceived\n this.detectIncompleteChar(buffer);\n\n var end = buffer.length;\n if (this.charLength) {\n // buffer the incomplete character bytes we got\n buffer.copy(this.charBuffer, 0, buffer.length - this.charReceived, end);\n end -= this.charReceived;\n }\n\n charStr += buffer.toString(this.encoding, 0, end);\n\n var end = charStr.length - 1;\n var charCode = charStr.charCodeAt(end);\n // CESU-8: lead surrogate (D800-DBFF) is also the incomplete character\n if (charCode >= 0xD800 && charCode <= 0xDBFF) {\n var size = this.surrogateSize;\n this.charLength += size;\n this.charReceived += size;\n this.charBuffer.copy(this.charBuffer, size, 0, size);\n buffer.copy(this.charBuffer, 0, 0, size);\n return charStr.substring(0, end);\n }\n\n // or just emit the charStr\n return charStr;\n};\n\n// detectIncompleteChar determines if there is an incomplete UTF-8 character at\n// the end of the given buffer. If so, it sets this.charLength to the byte\n// length that character, and sets this.charReceived to the number of bytes\n// that are available for this character.\nStringDecoder.prototype.detectIncompleteChar = function(buffer) {\n // determine how many bytes we have to check at the end of this buffer\n var i = (buffer.length >= 3) ? 3 : buffer.length;\n\n // Figure out if one of the last i bytes of our buffer announces an\n // incomplete char.\n for (; i > 0; i--) {\n var c = buffer[buffer.length - i];\n\n // See http://en.wikipedia.org/wiki/UTF-8#Description\n\n // 110XXXXX\n if (i == 1 && c >> 5 == 0x06) {\n this.charLength = 2;\n break;\n }\n\n // 1110XXXX\n if (i <= 2 && c >> 4 == 0x0E) {\n this.charLength = 3;\n break;\n }\n\n // 11110XXX\n if (i <= 3 && c >> 3 == 0x1E) {\n this.charLength = 4;\n break;\n }\n }\n this.charReceived = i;\n};\n\nStringDecoder.prototype.end = function(buffer) {\n var res = '';\n if (buffer && buffer.length)\n res = this.write(buffer);\n\n if (this.charReceived) {\n var cr = this.charReceived;\n var buf = this.charBuffer;\n var enc = this.encoding;\n res += buf.slice(0, cr).toString(enc);\n }\n\n return res;\n};\n\nfunction passThroughWrite(buffer) {\n return buffer.toString(this.encoding);\n}\n\nfunction utf16DetectIncompleteChar(buffer) {\n this.charReceived = buffer.length % 2;\n this.charLength = this.charReceived ? 2 : 0;\n}\n\nfunction base64DetectIncompleteChar(buffer) {\n this.charReceived = buffer.length % 3;\n this.charLength = this.charReceived ? 3 : 0;\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-multipart-stream/~/duplexify/~/readable-stream/~/string_decoder/index.js\n ** module id = 404\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-multipart-stream/~/duplexify/~/readable-stream/~/string_decoder/index.js?"); - -/***/ }, -/* 405 */ -/***/ function(module, exports, __webpack_require__) { - - eval("// a transform stream is a readable/writable stream where you do\n// something with the data. Sometimes it's called a \"filter\",\n// but that's not a great name for it, since that implies a thing where\n// some bits pass through, and others are simply ignored. (That would\n// be a valid example of a transform, of course.)\n//\n// While the output is causally related to the input, it's not a\n// necessarily symmetric or synchronous transformation. For example,\n// a zlib stream might take multiple plain-text writes(), and then\n// emit a single compressed chunk some time in the future.\n//\n// Here's how this works:\n//\n// The Transform stream has all the aspects of the readable and writable\n// stream classes. When you write(chunk), that calls _write(chunk,cb)\n// internally, and returns false if there's a lot of pending writes\n// buffered up. When you call read(), that calls _read(n) until\n// there's enough pending readable data buffered up.\n//\n// In a transform stream, the written data is placed in a buffer. When\n// _read(n) is called, it transforms the queued up data, calling the\n// buffered _write cb's as it consumes chunks. If consuming a single\n// written chunk would result in multiple output chunks, then the first\n// outputted bit calls the readcb, and subsequent chunks just go into\n// the read buffer, and will cause it to emit 'readable' if necessary.\n//\n// This way, back-pressure is actually determined by the reading side,\n// since _read has to be called to start processing a new chunk. However,\n// a pathological inflate type of transform can cause excessive buffering\n// here. For example, imagine a stream where every byte of input is\n// interpreted as an integer from 0-255, and then results in that many\n// bytes of output. Writing the 4 bytes {ff,ff,ff,ff} would result in\n// 1kb of data being output. In this case, you could write a very small\n// amount of input, and end up with a very large amount of output. In\n// such a pathological inflating mechanism, there'd be no way to tell\n// the system to stop doing the transform. A single 4MB write could\n// cause the system to run out of memory.\n//\n// However, even in such a pathological case, only a single written chunk\n// would be consumed, and then the rest would wait (un-transformed) until\n// the results of the previous transformed chunk were consumed.\n\n'use strict';\n\nmodule.exports = Transform;\n\nvar Duplex = __webpack_require__(401);\n\n/**/\nvar util = __webpack_require__(398);\nutil.inherits = __webpack_require__(399);\n/**/\n\nutil.inherits(Transform, Duplex);\n\n\nfunction TransformState(stream) {\n this.afterTransform = function(er, data) {\n return afterTransform(stream, er, data);\n };\n\n this.needTransform = false;\n this.transforming = false;\n this.writecb = null;\n this.writechunk = null;\n}\n\nfunction afterTransform(stream, er, data) {\n var ts = stream._transformState;\n ts.transforming = false;\n\n var cb = ts.writecb;\n\n if (!cb)\n return stream.emit('error', new Error('no writecb in Transform class'));\n\n ts.writechunk = null;\n ts.writecb = null;\n\n if (data !== null && data !== undefined)\n stream.push(data);\n\n if (cb)\n cb(er);\n\n var rs = stream._readableState;\n rs.reading = false;\n if (rs.needReadable || rs.length < rs.highWaterMark) {\n stream._read(rs.highWaterMark);\n }\n}\n\n\nfunction Transform(options) {\n if (!(this instanceof Transform))\n return new Transform(options);\n\n Duplex.call(this, options);\n\n this._transformState = new TransformState(this);\n\n // when the writable side finishes, then flush out anything remaining.\n var stream = this;\n\n // start out asking for a readable event once data is transformed.\n this._readableState.needReadable = true;\n\n // we have implemented the _read method, and done the other things\n // that Readable wants before the first _read call, so unset the\n // sync guard flag.\n this._readableState.sync = false;\n\n if (options) {\n if (typeof options.transform === 'function')\n this._transform = options.transform;\n\n if (typeof options.flush === 'function')\n this._flush = options.flush;\n }\n\n this.once('prefinish', function() {\n if (typeof this._flush === 'function')\n this._flush(function(er) {\n done(stream, er);\n });\n else\n done(stream);\n });\n}\n\nTransform.prototype.push = function(chunk, encoding) {\n this._transformState.needTransform = false;\n return Duplex.prototype.push.call(this, chunk, encoding);\n};\n\n// This is the part where you do stuff!\n// override this function in implementation classes.\n// 'chunk' is an input chunk.\n//\n// Call `push(newChunk)` to pass along transformed output\n// to the readable side. You may call 'push' zero or more times.\n//\n// Call `cb(err)` when you are done with this chunk. If you pass\n// an error, then that'll put the hurt on the whole operation. If you\n// never call cb(), then you'll never get another chunk.\nTransform.prototype._transform = function(chunk, encoding, cb) {\n throw new Error('not implemented');\n};\n\nTransform.prototype._write = function(chunk, encoding, cb) {\n var ts = this._transformState;\n ts.writecb = cb;\n ts.writechunk = chunk;\n ts.writeencoding = encoding;\n if (!ts.transforming) {\n var rs = this._readableState;\n if (ts.needTransform ||\n rs.needReadable ||\n rs.length < rs.highWaterMark)\n this._read(rs.highWaterMark);\n }\n};\n\n// Doesn't matter what the args are here.\n// _transform does all the work.\n// That we got here means that the readable side wants more data.\nTransform.prototype._read = function(n) {\n var ts = this._transformState;\n\n if (ts.writechunk !== null && ts.writecb && !ts.transforming) {\n ts.transforming = true;\n this._transform(ts.writechunk, ts.writeencoding, ts.afterTransform);\n } else {\n // mark that we need a transform, so that any data that comes in\n // will get processed, now that we've asked for it.\n ts.needTransform = true;\n }\n};\n\n\nfunction done(stream, er) {\n if (er)\n return stream.emit('error', er);\n\n // if there's nothing in the write buffer, then that means\n // that nothing more will ever be provided\n var ws = stream._writableState;\n var ts = stream._transformState;\n\n if (ws.length)\n throw new Error('calling transform done when ws.length != 0');\n\n if (ts.transforming)\n throw new Error('calling transform done when still transforming');\n\n return stream.push(null);\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-multipart-stream/~/duplexify/~/readable-stream/lib/_stream_transform.js\n ** module id = 405\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-multipart-stream/~/duplexify/~/readable-stream/lib/_stream_transform.js?"); - -/***/ }, -/* 406 */ -/***/ function(module, exports, __webpack_require__) { - - eval("// a passthrough stream.\n// basically just the most minimal sort of Transform stream.\n// Every written chunk gets output as-is.\n\n'use strict';\n\nmodule.exports = PassThrough;\n\nvar Transform = __webpack_require__(405);\n\n/**/\nvar util = __webpack_require__(398);\nutil.inherits = __webpack_require__(399);\n/**/\n\nutil.inherits(PassThrough, Transform);\n\nfunction PassThrough(options) {\n if (!(this instanceof PassThrough))\n return new PassThrough(options);\n\n Transform.call(this, options);\n}\n\nPassThrough.prototype._transform = function(chunk, encoding, cb) {\n cb(null, chunk);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-multipart-stream/~/duplexify/~/readable-stream/lib/_stream_passthrough.js\n ** module id = 406\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-multipart-stream/~/duplexify/~/readable-stream/lib/_stream_passthrough.js?"); - -/***/ }, -/* 407 */ -/***/ function(module, exports, __webpack_require__) { - - eval("var once = __webpack_require__(408);\n\nvar noop = function() {};\n\nvar isRequest = function(stream) {\n\treturn stream.setHeader && typeof stream.abort === 'function';\n};\n\nvar eos = function(stream, opts, callback) {\n\tif (typeof opts === 'function') return eos(stream, null, opts);\n\tif (!opts) opts = {};\n\n\tcallback = once(callback || noop);\n\n\tvar ws = stream._writableState;\n\tvar rs = stream._readableState;\n\tvar readable = opts.readable || (opts.readable !== false && stream.readable);\n\tvar writable = opts.writable || (opts.writable !== false && stream.writable);\n\n\tvar onlegacyfinish = function() {\n\t\tif (!stream.writable) onfinish();\n\t};\n\n\tvar onfinish = function() {\n\t\twritable = false;\n\t\tif (!readable) callback();\n\t};\n\n\tvar onend = function() {\n\t\treadable = false;\n\t\tif (!writable) callback();\n\t};\n\n\tvar onclose = function() {\n\t\tif (readable && !(rs && rs.ended)) return callback(new Error('premature close'));\n\t\tif (writable && !(ws && ws.ended)) return callback(new Error('premature close'));\n\t};\n\n\tvar onrequest = function() {\n\t\tstream.req.on('finish', onfinish);\n\t};\n\n\tif (isRequest(stream)) {\n\t\tstream.on('complete', onfinish);\n\t\tstream.on('abort', onclose);\n\t\tif (stream.req) onrequest();\n\t\telse stream.on('request', onrequest);\n\t} else if (writable && !ws) { // legacy streams\n\t\tstream.on('end', onlegacyfinish);\n\t\tstream.on('close', onlegacyfinish);\n\t}\n\n\tstream.on('end', onend);\n\tstream.on('finish', onfinish);\n\tif (opts.error !== false) stream.on('error', callback);\n\tstream.on('close', onclose);\n\n\treturn function() {\n\t\tstream.removeListener('complete', onfinish);\n\t\tstream.removeListener('abort', onclose);\n\t\tstream.removeListener('request', onrequest);\n\t\tif (stream.req) stream.req.removeListener('finish', onfinish);\n\t\tstream.removeListener('end', onlegacyfinish);\n\t\tstream.removeListener('close', onlegacyfinish);\n\t\tstream.removeListener('finish', onfinish);\n\t\tstream.removeListener('end', onend);\n\t\tstream.removeListener('error', callback);\n\t\tstream.removeListener('close', onclose);\n\t};\n};\n\nmodule.exports = eos;\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-multipart-stream/~/duplexify/~/end-of-stream/index.js\n ** module id = 407\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-multipart-stream/~/duplexify/~/end-of-stream/index.js?"); - -/***/ }, -/* 408 */ -/***/ function(module, exports, __webpack_require__) { - - eval("var wrappy = __webpack_require__(409)\nmodule.exports = wrappy(once)\n\nonce.proto = once(function () {\n Object.defineProperty(Function.prototype, 'once', {\n value: function () {\n return once(this)\n },\n configurable: true\n })\n})\n\nfunction once (fn) {\n var f = function () {\n if (f.called) return f.value\n f.called = true\n return f.value = fn.apply(this, arguments)\n }\n f.called = false\n return f\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-multipart-stream/~/duplexify/~/end-of-stream/~/once/once.js\n ** module id = 408\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-multipart-stream/~/duplexify/~/end-of-stream/~/once/once.js?"); - -/***/ }, -/* 409 */ -/***/ function(module, exports) { - - eval("// Returns a wrapper function that returns a wrapped callback\n// The wrapper function should do some stuff, and return a\n// presumably different callback function.\n// This makes sure that own properties are retained, so that\n// decorations and such are not lost along the way.\nmodule.exports = wrappy\nfunction wrappy (fn, cb) {\n if (fn && cb) return wrappy(fn)(cb)\n\n if (typeof fn !== 'function')\n throw new TypeError('need wrapper function')\n\n Object.keys(fn).forEach(function (k) {\n wrapper[k] = fn[k]\n })\n\n return wrapper\n\n function wrapper() {\n var args = new Array(arguments.length)\n for (var i = 0; i < args.length; i++) {\n args[i] = arguments[i]\n }\n var ret = fn.apply(this, args)\n var cb = args[args.length-1]\n if (typeof ret === 'function' && ret !== cb) {\n Object.keys(cb).forEach(function (k) {\n ret[k] = cb[k]\n })\n }\n return ret\n }\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-multipart-stream/~/duplexify/~/end-of-stream/~/once/~/wrappy/wrappy.js\n ** module id = 409\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-multipart-stream/~/duplexify/~/end-of-stream/~/once/~/wrappy/wrappy.js?"); - -/***/ }, -/* 410 */ -/***/ function(module, exports) { - - eval("var x = module.exports = {}\nx.randomString = randomString\nx.cleanPath = cleanPath\n\nfunction randomString () {\n return Math.random().toString(36).slice(2) +\n Math.random().toString(36).slice(2) +\n Math.random().toString(36).slice(2) +\n Math.random().toString(36).slice(2)\n}\n\nfunction cleanPath(path, base) {\n if (!path) return ''\n if (!base) return path\n\n if (base[base.length-1] != '/') {\n base += \"/\"\n }\n\n // remove base from path\n path = path.replace(base, '')\n path = path.replace(/[\\/]+/g, '/')\n return path\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-multipart-stream/common.js\n ** module id = 410\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-multipart-stream/common.js?"); - -/***/ }, -/* 411 */ -/***/ function(module, exports, __webpack_require__) { - - eval("var Multipart = __webpack_require__(390)\nvar duplexify = __webpack_require__(393)\nvar stream = __webpack_require__(96)\nvar Path = __webpack_require__(151)\nvar collect = __webpack_require__(412)\nvar common = __webpack_require__(410)\nvar randomString = common.randomString\n\nmodule.exports = v2mpTree\n\n// we'll create three streams:\n// - w: a writable stream. it receives vinyl files\n// - mps: a multipart stream in between.\n// - r: a readable stream. it outputs text. needed to\n// give the caller something, while w finishes.\n//\n// we do all processing on the incoming vinyl metadata\n// before we transform to multipart, that's becasue we\n// need a complete view of the filesystem. (/ the code\n// i lifted did that and it's convoluted enough not to\n// want to change it...)\nfunction v2mpTree(opts) {\n opts = opts || {}\n opts.boundary = opts.boundary || randomString()\n\n var r = new stream.PassThrough({objectMode: true})\n var w = new stream.PassThrough({objectMode: true})\n var out = duplexify.obj(w, r)\n out.boundary = opts.boundary\n\n collect(w, function(err, files) {\n if (err) {\n r.emit('error', err)\n return\n }\n\n try {\n // construct the multipart streams from these files\n var mp = streamForCollection(opts.boundary, files)\n\n // let the user know what the content-type header is.\n // this is because multipart is such a grossly defined protocol :(\n out.multipartHdr = \"Content-Type: multipart/mixed; boundary=\" + mp.boundary\n if (opts.writeHeader) {\n r.write(out.multipartHdr + \"\\r\\n\")\n r.write(\"\\r\\n\")\n }\n\n // now we pipe the multipart stream to\n // the readable thing we returned.\n // now the user will start receiving data.\n mp.pipe(r)\n } catch (e) {\n r.emit('error', e)\n }\n })\n\n return out\n}\n\nfunction streamForCollection(boundary, files) {\n var parts = []\n\n // walk through all the named files in order.\n files.paths.sort()\n for (var i = 0; i < files.paths.length; i++) {\n var n = files.paths[i]\n var s = streamForPath(files, n)\n if (!s) continue // already processed.\n parts.push({ body: s, headers: headersForFile(files.named[n])})\n }\n\n // then add all the unnamed files.\n for (var i = 0; i < files.unnamed.length; i++) {\n var f = files.unnamed[i] // raw vinyl files.\n var s = streamForWrapped(files, f)\n if (!s) continue // already processed.\n parts.push({ body: s, headers: headersForFile(f)})\n }\n\n if (parts.length == 0) { // avoid multipart bug.\n var s = streamForString(\"--\" + boundary + \"--\\r\\n\") // close multipart.\n s.boundary = boundary\n return s\n }\n\n // write out multipart.\n var mp = new Multipart(boundary)\n for (var i = 0; i < parts.length; i++) {\n mp.addPart(parts[i])\n }\n return mp\n}\n\nfunction streamForString(str) {\n var s = new stream.PassThrough()\n s.end(str)\n return s\n}\n\nfunction streamForPath(files, path) {\n var o = files.named[path]\n if (!o) {\n throw new Error(\"no object for path. lib error.\")\n }\n\n if (!o.file) { // no vinyl file, so no need to process this one.\n return\n }\n\n // avoid processing twice.\n if (o.done) return null // already processed it\n o.done = true // mark it as already processed.\n\n return streamForWrapped(files, o)\n}\n\nfunction streamForWrapped(files, f) {\n if (f.file.isDirectory()) {\n return multipartForDir(files, f)\n }\n\n // stream for a file\n return f.file.contents\n}\n\nfunction multipartForDir(files, dir) {\n // we still write the boundary for the headers\n dir.boundary = randomString()\n\n if (!dir.children || dir.children.length < 1) {\n // we have to intercept this here and return an empty stream.\n // because multipart lib fails if there are no parts. see\n // https://github.com/hendrikcech/multipart-stream/issues/1\n return streamForString(\"--\" + dir.boundary + \"--\\r\\n\") // close multipart.\n }\n\n var mp = new Multipart(dir.boundary)\n for (var i = 0; i < dir.children.length; i++) {\n var child = dir.children[i]\n if (!child.file) {\n throw new Error(\"child has no file. lib error\")\n }\n\n var s = streamForPath(files, child.file.path)\n mp.addPart({ body: s, headers: headersForFile(child) })\n }\n return mp\n}\n\nfunction headersForFile(o) {\n var fpath = common.cleanPath(o.file.path, o.file.base)\n\n var h = {}\n h['Content-Disposition'] = 'file; filename=\"' + fpath + '\"'\n\n if (o.file.isDirectory()) {\n h['Content-Type'] = 'multipart/mixed; boundary=' + o.boundary\n } else {\n h['Content-Type'] = 'application/octet-stream'\n }\n\n return h\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-multipart-stream/mp2v_tree.js\n ** module id = 411\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-multipart-stream/mp2v_tree.js?"); - -/***/ }, -/* 412 */ /***/ function(module, exports, __webpack_require__) { - eval("var Path = __webpack_require__(151)\n\nmodule.exports = collect\n\nfunction collect(stream, cb) {\n\n // we create a collection of objects, where\n // - names is a list of all paths\n // - there are per-file objects: { file: , children [ paths ] }\n // - named is a map { path: fo }\n var files = {\n paths: [],\n named: {}, // wrapped files.\n unnamed: [], // wrapped files.\n }\n\n function get(name) {\n if (!files.named[name]) {\n files.named[name] = {\n children: [],\n }\n }\n return files.named[name]\n }\n\n stream.on('data', function(file) {\n if (cb === null) {\n // already errored, or no way to externalize result\n stream.on('data', function() {}) // de-register\n return // do nothing.\n }\n\n if (file.path) {\n // add file to named\n var fo = get(file.path)\n fo.file = file\n\n // add reference to file at parent\n var po = get(Path.dirname(file.path))\n if (fo !== po) po.children.push(fo)\n\n // add name to names list.\n files.paths.push(file.path)\n } else {\n files.unnamed.push({ file: file, children: [] })\n }\n })\n\n stream.on('error', function(err) {\n cb && cb(err)\n cb = null\n })\n\n stream.on('end', function() {\n cb && cb(null, files)\n cb = null\n })\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-multipart-stream/collect.js\n ** module id = 412\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-multipart-stream/collect.js?"); + eval("var Path = __webpack_require__(149)\n\nmodule.exports = collect\n\nfunction collect(stream, cb) {\n\n // we create a collection of objects, where\n // - names is a list of all paths\n // - there are per-file objects: { file: , children [ paths ] }\n // - named is a map { path: fo }\n var files = {\n paths: [],\n named: {}, // wrapped files.\n unnamed: [], // wrapped files.\n }\n\n function get(name) {\n if (!files.named[name]) {\n files.named[name] = {\n children: [],\n }\n }\n return files.named[name]\n }\n\n stream.on('data', function(file) {\n if (cb === null) {\n // already errored, or no way to externalize result\n stream.on('data', function() {}) // de-register\n return // do nothing.\n }\n\n if (file.path) {\n // add file to named\n var fo = get(file.path)\n fo.file = file\n\n // add reference to file at parent\n var po = get(Path.dirname(file.path))\n if (fo !== po) po.children.push(fo)\n\n // add name to names list.\n files.paths.push(file.path)\n } else {\n files.unnamed.push({ file: file, children: [] })\n }\n })\n\n stream.on('error', function(err) {\n cb && cb(err)\n cb = null\n })\n\n stream.on('end', function() {\n cb && cb(null, files)\n cb = null\n })\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-multipart-stream/collect.js\n ** module id = 333\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-multipart-stream/collect.js?"); /***/ } /******/ ]); \ No newline at end of file diff --git a/dist/ipfsapi.min.js b/dist/ipfsapi.min.js index d78e5ed26..c620aaf1c 100644 --- a/dist/ipfsapi.min.js +++ b/dist/ipfsapi.min.js @@ -1,79 +1,56 @@ -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__(168),_assign2=_interopRequireDefault(_assign),_typeof2=__webpack_require__(32),_typeof3=_interopRequireDefault(_typeof2),multiaddr=__webpack_require__(304),loadCommands=__webpack_require__(165),getConfig=__webpack_require__(163),getRequestAPI=__webpack_require__(166);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="",__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__(265),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__(376),ieee754=__webpack_require__(377),isArray=__webpack_require__(378);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;in||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 normalizeArray(parts,allowAboveRoot){for(var up=0,i=parts.length-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,__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__(404);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__(403),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){"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 $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(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__(342),legacy=__webpack_require__(341),queue=[],util=__webpack_require__(7),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__(68).equal(queue.length,0)}),module.exports=patch(__webpack_require__(120)),process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&(module.exports=patch(fs)),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),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 core=module.exports={version:"1.2.6"};"number"==typeof __e&&(__e=core)},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__(355),inherits=__webpack_require__(7).inherits,xtend=__webpack_require__(356);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 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__(30);util.inherits=__webpack_require__(31);var Readable=__webpack_require__(135),Writable=__webpack_require__(70);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__){module.exports={"default":__webpack_require__(182),__esModule:!0}},function(module,exports,__webpack_require__){"use strict";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||processNextTick(onEndNT,this)}function onEndNT(self){self.end()}var objectKeys=Object.keys||function(obj){var keys=[];for(var key in obj)keys.push(key);return keys};module.exports=Duplex;var processNextTick=__webpack_require__(56),util=__webpack_require__(19);util.inherits=__webpack_require__(20);var Readable=__webpack_require__(95),Writable=__webpack_require__(97);util.inherits(Duplex,Readable);for(var keys=objectKeys(Writable.prototype),v=0;v=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;i1?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__(306);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){/*! * is-extglob * * Copyright (c) 2014-2015, Jon Schlinkert. * Licensed under the MIT License. */ -module.exports=function(str){return"string"==typeof str&&/[@?!+*]\(/.test(str)}},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){"function"==typeof Object.create?module.exports=function(ctor,superCtor){ctor.super_=superCtor,ctor.prototype=Object.create(superCtor.prototype,{constructor:{value:ctor,enumerable:!1,writable:!0,configurable:!0}})}:module.exports=function(ctor,superCtor){ctor.super_=superCtor;var TempCtor=function(){};TempCtor.prototype=superCtor.prototype,ctor.prototype=new TempCtor,ctor.prototype.constructor=ctor}},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){"function"==typeof Object.create?module.exports=function(ctor,superCtor){ctor.super_=superCtor,ctor.prototype=Object.create(superCtor.prototype,{constructor:{value:ctor,enumerable:!1,writable:!0,configurable:!0}})}:module.exports=function(ctor,superCtor){ctor.super_=superCtor;var TempCtor=function(){};TempCtor.prototype=superCtor.prototype,ctor.prototype=new TempCtor,ctor.prototype.constructor=ctor}},function(module,exports){function isObjectLike(value){return!!value&&"object"==typeof value}function getNative(object,key){var value=null==object?void 0:object[key];return isNative(value)?value:void 0}function isLength(value){return"number"==typeof value&&value>-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){function isObjectLike(value){return!!value&&"object"==typeof value}function getNative(object,key){var value=null==object?void 0:object[key];return isNative(value)?value:void 0}function isLength(value){return"number"==typeof value&&value>-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(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){"function"==typeof Object.create?module.exports=function(ctor,superCtor){ctor.super_=superCtor,ctor.prototype=Object.create(superCtor.prototype,{constructor:{value:ctor,enumerable:!1,writable:!0,configurable:!0}})}:module.exports=function(ctor,superCtor){ctor.super_=superCtor;var TempCtor=function(){};TempCtor.prototype=superCtor.prototype,ctor.prototype=new TempCtor,ctor.prototype.constructor=ctor}},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){"function"==typeof Object.create?module.exports=function(ctor,superCtor){ctor.super_=superCtor,ctor.prototype=Object.create(superCtor.prototype,{constructor:{value:ctor,enumerable:!1,writable:!0,configurable:!0}})}:module.exports=function(ctor,superCtor){ctor.super_=superCtor;var TempCtor=function(){};TempCtor.prototype=superCtor.prototype,ctor.prototype=new TempCtor,ctor.prototype.constructor=ctor}},function(module,exports,__webpack_require__){module.exports={"default":__webpack_require__(177),__esModule:!0}},function(module,exports,__webpack_require__){var defined=__webpack_require__(78);module.exports=function(it){return Object(defined(it))}},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(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";var win32=process&&"win32"===process.platform,path=__webpack_require__(5),fileRe=__webpack_require__(232),utils=module.exports;utils.diff=__webpack_require__(219),utils.unique=__webpack_require__(221),utils.braces=__webpack_require__(222),utils.brackets=__webpack_require__(230),utils.extglob=__webpack_require__(231),utils.isExtglob=__webpack_require__(38),utils.isGlob=__webpack_require__(54),utils.typeOf=__webpack_require__(55),utils.normalize=__webpack_require__(234),utils.omit=__webpack_require__(235),utils.parseGlob=__webpack_require__(239),utils.cache=__webpack_require__(242),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__){/*! +module.exports=function(str){return"string"==typeof str&&/[@?!+*]\(/.test(str)}},function(module,exports,__webpack_require__){/*! * is-glob * * 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,__webpack_require__){(function(Buffer){var isBuffer=__webpack_require__(233),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(process){"use strict";function nextTick(fn){for(var args=new Array(arguments.length-1),i=0;i-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__(292),baseCallback=__webpack_require__(293),baseEach=__webpack_require__(298),isArray=__webpack_require__(44),MAX_SAFE_INTEGER=9007199254740991,getLength=baseProperty("length");module.exports=map},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"},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__){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__(7),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__){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,util.isNullOrUndefined(data)||stream.push(data),cb&&cb(er);var rs=stream._readableState;rs.reading=!1,(rs.needReadable||rs.length1){for(var cbs=[],c=0;ci;++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__(18),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__){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}var _keys=__webpack_require__(14),_keys2=_interopRequireDefault(_keys),_setPrototypeOf=__webpack_require__(173),_setPrototypeOf2=_interopRequireDefault(_setPrototypeOf),Hoek=__webpack_require__(18),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++){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__(51),inherits=(minimatch.Minimatch,__webpack_require__(209)),EE=__webpack_require__(4).EventEmitter,path=__webpack_require__(5),assert=__webpack_require__(68),isAbsolute=__webpack_require__(52),globSync=__webpack_require__(214),common=__webpack_require__(89),setopts=(common.alphasort,common.alphasorti,common.setopts),ownProp=common.ownProp,inflight=__webpack_require__(207),util=__webpack_require__(7),childrenIgnored=common.childrenIgnored,isIgnored=common.isIgnored,once=__webpack_require__(91);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__){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__(213);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__){/*! - * is-number - * - * Copyright (c) 2014-2015, Jon Schlinkert. - * Licensed under the MIT License. - */ -"use strict";var typeOf=__webpack_require__(55);module.exports=function(num){var type=typeOf(num);if("number"!==type&&"string"!==type)return!1;var n=+num;return n-n+1>=0&&""!==num}},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){/*! - * is-primitive - * - * 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(process){"use strict";function ReadableState(options,stream){Duplex=Duplex||__webpack_require__(15),options=options||{},this.objectMode=!!options.objectMode,stream instanceof Duplex&&(this.objectMode=this.objectMode||!!options.readableObjectMode);var hwm=options.highWaterMark,defaultHwm=this.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.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__(98).StringDecoder),this.decoder=new StringDecoder(options.encoding),this.encoding=options.encoding)}function Readable(options){return Duplex=Duplex||__webpack_require__(15),this instanceof Readable?(this._readableState=new ReadableState(options,this),this.readable=!0,options&&"function"==typeof options.read&&(this._read=options.read),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)state.reading=!1,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:(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__(56),isArray=__webpack_require__(247),Buffer=__webpack_require__(1).Buffer;Readable.ReadableState=ReadableState;var Stream,EElistenerCount=(__webpack_require__(4),function(emitter,type){return emitter.listeners(type).length});!function(){try{Stream=__webpack_require__(3)}catch(_){}finally{Stream||(Stream=__webpack_require__(4).EventEmitter)}}();var Buffer=__webpack_require__(1).Buffer,util=__webpack_require__(19);util.inherits=__webpack_require__(20);var debug,debugUtil=__webpack_require__(405);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__(98).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 TransformState(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.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__){function assertEncoding(encoding){if(encoding&&!isBufferEncoding(encoding))throw new Error("Unknown encoding: "+encoding)}function passThroughWrite(buffer){return buffer.toString(this.encoding)}function utf16DetectIncompleteChar(buffer){this.charReceived=buffer.length%2,this.charLength=this.charReceived?2:0}function base64DetectIncompleteChar(buffer){this.charReceived=buffer.length%3,this.charLength=this.charReceived?3:0}var Buffer=__webpack_require__(1).Buffer,isBufferEncoding=Buffer.isEncoding||function(encoding){switch(encoding&&encoding.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}},StringDecoder=exports.StringDecoder=function(encoding){switch(this.encoding=(encoding||"utf8").toLowerCase().replace(/[-_]/,""),assertEncoding(encoding),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=utf16DetectIncompleteChar;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=base64DetectIncompleteChar;break;default:return void(this.write=passThroughWrite)}this.charBuffer=new Buffer(6),this.charReceived=0,this.charLength=0};StringDecoder.prototype.write=function(buffer){for(var charStr="";this.charLength;){var available=buffer.length>=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(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__(39);util.inherits=__webpack_require__(40);var Readable=__webpack_require__(250),Writable=__webpack_require__(252);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 assertEncoding(encoding){if(encoding&&!isBufferEncoding(encoding))throw new Error("Unknown encoding: "+encoding)}function passThroughWrite(buffer){return buffer.toString(this.encoding)}function utf16DetectIncompleteChar(buffer){this.charReceived=buffer.length%2,this.charLength=this.charReceived?2:0}function base64DetectIncompleteChar(buffer){this.charReceived=buffer.length%3,this.charLength=this.charReceived?3:0}var Buffer=__webpack_require__(1).Buffer,isBufferEncoding=Buffer.isEncoding||function(encoding){switch(encoding&&encoding.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}},StringDecoder=exports.StringDecoder=function(encoding){switch(this.encoding=(encoding||"utf8").toLowerCase().replace(/[-_]/,""),assertEncoding(encoding),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=utf16DetectIncompleteChar;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=base64DetectIncompleteChar;break;default:return void(this.write=passThroughWrite)}this.charBuffer=new Buffer(6),this.charReceived=0,this.charLength=0};StringDecoder.prototype.write=function(buffer){for(var charStr="";this.charLength;){var available=buffer.length>=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 assertEncoding(encoding){if(encoding&&!isBufferEncoding(encoding))throw new Error("Unknown encoding: "+encoding)}function passThroughWrite(buffer){return buffer.toString(this.encoding)}function utf16DetectIncompleteChar(buffer){this.charReceived=buffer.length%2,this.charLength=this.charReceived?2:0}function base64DetectIncompleteChar(buffer){this.charReceived=buffer.length%3,this.charLength=this.charReceived?3:0}var Buffer=__webpack_require__(1).Buffer,isBufferEncoding=Buffer.isEncoding||function(encoding){switch(encoding&&encoding.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}},StringDecoder=exports.StringDecoder=function(encoding){switch(this.encoding=(encoding||"utf8").toLowerCase().replace(/[-_]/,""),assertEncoding(encoding),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=utf16DetectIncompleteChar;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=base64DetectIncompleteChar;break;default:return void(this.write=passThroughWrite)}this.charBuffer=new Buffer(6),this.charReceived=0,this.charLength=0};StringDecoder.prototype.write=function(buffer){for(var charStr="";this.charLength;){var available=buffer.length>=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){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 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__(306).SandwichStream,stream=__webpack_require__(3),inherits=__webpack_require__(305),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__(109),split=__webpack_require__(307),EOL=__webpack_require__(133).EOL;module.exports=parse,module.exports.serialize=module.exports.stringify=serialize,module.exports.parse=parse},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__(45);util.inherits=__webpack_require__(46);var Readable=__webpack_require__(308),Writable=__webpack_require__(310);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 assertEncoding(encoding){if(encoding&&!isBufferEncoding(encoding))throw new Error("Unknown encoding: "+encoding)}function passThroughWrite(buffer){return buffer.toString(this.encoding)}function utf16DetectIncompleteChar(buffer){this.charReceived=buffer.length%2,this.charLength=this.charReceived?2:0}function base64DetectIncompleteChar(buffer){this.charReceived=buffer.length%3,this.charLength=this.charReceived?3:0}var Buffer=__webpack_require__(1).Buffer,isBufferEncoding=Buffer.isEncoding||function(encoding){switch(encoding&&encoding.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}},StringDecoder=exports.StringDecoder=function(encoding){switch(this.encoding=(encoding||"utf8").toLowerCase().replace(/[-_]/,""),assertEncoding(encoding),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=utf16DetectIncompleteChar;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=base64DetectIncompleteChar;break;default:return void(this.write=passThroughWrite)}this.charBuffer=new Buffer(6),this.charReceived=0,this.charLength=0};StringDecoder.prototype.write=function(buffer){for(var charStr="";this.charLength;){var available=buffer.length>=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(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__(312),inherits=__webpack_require__(7).inherits,xtend=__webpack_require__(313);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(global){var ClientRequest=__webpack_require__(314),extend=__webpack_require__(318),statusCodes=__webpack_require__(316),url=__webpack_require__(137),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){"function"==typeof Object.create?module.exports=function(ctor,superCtor){ctor.super_=superCtor,ctor.prototype=Object.create(superCtor.prototype,{constructor:{value:ctor,enumerable:!1,writable:!0,configurable:!0}})}:module.exports=function(ctor,superCtor){ctor.super_=superCtor;var TempCtor=function(){};TempCtor.prototype=superCtor.prototype,ctor.prototype=new TempCtor,ctor.prototype.constructor=ctor}},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__(123),path=__webpack_require__(5),mkdirp=__webpack_require__(122),fs=__webpack_require__(process.browser?6:10);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:10),stripBom=__webpack_require__(345);module.exports=streamFile}).call(exports,__webpack_require__(2))},function(module,exports,__webpack_require__){(function(Buffer,process){var stream=__webpack_require__(340),eos=__webpack_require__(334),util=__webpack_require__(7),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,__webpack_require__){(function(process){"use strict";function ReadableState(options,stream){Duplex=Duplex||__webpack_require__(16),options=options||{},this.objectMode=!!options.objectMode,stream instanceof Duplex&&(this.objectMode=this.objectMode||!!options.readableObjectMode);var hwm=options.highWaterMark,defaultHwm=this.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.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__(119).StringDecoder),this.decoder=new StringDecoder(options.encoding),this.encoding=options.encoding)}function Readable(options){return Duplex=Duplex||__webpack_require__(16),this instanceof Readable?(this._readableState=new ReadableState(options,this),this.readable=!0,options&&"function"==typeof options.read&&(this._read=options.read),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)state.reading=!1,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:(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__(63),isArray=__webpack_require__(338),Buffer=__webpack_require__(1).Buffer;Readable.ReadableState=ReadableState;var Stream,EElistenerCount=(__webpack_require__(4),function(emitter,type){return emitter.listeners(type).length});!function(){try{Stream=__webpack_require__(3)}catch(_){}finally{Stream||(Stream=__webpack_require__(4).EventEmitter)}}();var Buffer=__webpack_require__(1).Buffer,util=__webpack_require__(25);util.inherits=__webpack_require__(26);var debug,debugUtil=__webpack_require__(408);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__(119).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 TransformState(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.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__){function assertEncoding(encoding){if(encoding&&!isBufferEncoding(encoding))throw new Error("Unknown encoding: "+encoding)}function passThroughWrite(buffer){return buffer.toString(this.encoding)}function utf16DetectIncompleteChar(buffer){this.charReceived=buffer.length%2,this.charLength=this.charReceived?2:0}function base64DetectIncompleteChar(buffer){this.charReceived=buffer.length%3,this.charLength=this.charReceived?3:0}var Buffer=__webpack_require__(1).Buffer,isBufferEncoding=Buffer.isEncoding||function(encoding){switch(encoding&&encoding.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}},StringDecoder=exports.StringDecoder=function(encoding){switch(this.encoding=(encoding||"utf8").toLowerCase().replace(/[-_]/,""),assertEncoding(encoding),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=utf16DetectIncompleteChar;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=base64DetectIncompleteChar;break;default:return void(this.write=passThroughWrite)}this.charBuffer=new Buffer(6),this.charReceived=0,this.charLength=0};StringDecoder.prototype.write=function(buffer){for(var charStr="";this.charLength;){var available=buffer.length>=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__){"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__(12),fs=__webpack_require__(10),path=__webpack_require__(5),File=__webpack_require__(67),convert=__webpack_require__(343),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=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){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__){(function(Buffer,process){var stream=__webpack_require__(367),eos=__webpack_require__(361),util=__webpack_require__(7),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,__webpack_require__){(function(process){"use strict";function ReadableState(options,stream){Duplex=Duplex||__webpack_require__(17),options=options||{},this.objectMode=!!options.objectMode,stream instanceof Duplex&&(this.objectMode=this.objectMode||!!options.readableObjectMode);var hwm=options.highWaterMark,defaultHwm=this.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.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__(130).StringDecoder),this.decoder=new StringDecoder(options.encoding),this.encoding=options.encoding)}function Readable(options){return Duplex=Duplex||__webpack_require__(17),this instanceof Readable?(this._readableState=new ReadableState(options,this),this.readable=!0,options&&"function"==typeof options.read&&(this._read=options.read),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)state.reading=!1,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:(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__(66),isArray=__webpack_require__(365),Buffer=__webpack_require__(1).Buffer;Readable.ReadableState=ReadableState;var Stream,EElistenerCount=(__webpack_require__(4),function(emitter,type){return emitter.listeners(type).length});!function(){try{Stream=__webpack_require__(3)}catch(_){}finally{Stream||(Stream=__webpack_require__(4).EventEmitter)}}();var Buffer=__webpack_require__(1).Buffer,util=__webpack_require__(28);util.inherits=__webpack_require__(29);var debug,debugUtil=__webpack_require__(410);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__(130).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 TransformState(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.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__){function assertEncoding(encoding){if(encoding&&!isBufferEncoding(encoding))throw new Error("Unknown encoding: "+encoding)}function passThroughWrite(buffer){return buffer.toString(this.encoding)}function utf16DetectIncompleteChar(buffer){this.charReceived=buffer.length%2,this.charLength=this.charReceived?2:0}function base64DetectIncompleteChar(buffer){this.charReceived=buffer.length%3,this.charLength=this.charReceived?3:0}var Buffer=__webpack_require__(1).Buffer,isBufferEncoding=Buffer.isEncoding||function(encoding){switch(encoding&&encoding.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}},StringDecoder=exports.StringDecoder=function(encoding){switch(this.encoding=(encoding||"utf8").toLowerCase().replace(/[-_]/,""),assertEncoding(encoding),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=utf16DetectIncompleteChar;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=base64DetectIncompleteChar;break;default:return void(this.write=passThroughWrite)}this.charBuffer=new Buffer(6),this.charReceived=0,this.charLength=0};StringDecoder.prototype.write=function(buffer){for(var charStr="";this.charLength;){var available=buffer.length>=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__){var Stream=__webpack_require__(3).Stream;module.exports=function(o){return!!o&&o instanceof Stream}},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__(386),md5=toConstructor(__webpack_require__(382)),rmd160=toConstructor(__webpack_require__(384));module.exports=function(alg){return"md5"===alg?new md5:"rmd160"===alg?new rmd160:createHash(alg)}}).call(exports,__webpack_require__(1).Buffer)},function(module,exports){exports.endianness=function(){return"LE"},exports.hostname=function(){return"undefined"!=typeof location?location.hostname:""},exports.loadavg=function(){return[]},exports.uptime=function(){return 0},exports.freemem=function(){return Number.MAX_VALUE},exports.totalmem=function(){return Number.MAX_VALUE},exports.cpus=function(){return[]},exports.type=function(){return"Browser"},exports.release=function(){return"undefined"!=typeof navigator?navigator.appVersion:""},exports.networkInterfaces=exports.getNetworkInterfaces=function(){return{}},exports.arch=function(){return"javascript"},exports.platform=function(){return"browser"},exports.tmpdir=exports.tmpDir=function(){return"/tmp"},exports.EOL="\n"},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__(69),util=__webpack_require__(30);util.inherits=__webpack_require__(31),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__(13);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__(136).StringDecoder),this.decoder=new StringDecoder(options.encoding),this.encoding=options.encoding)}function Readable(options){__webpack_require__(13);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__(393),Buffer=__webpack_require__(1).Buffer;Readable.ReadableState=ReadableState;var EE=__webpack_require__(4).EventEmitter;EE.listenerCount||(EE.listenerCount=function(emitter,type){return emitter.listeners(type).length});var Stream=__webpack_require__(3),util=__webpack_require__(30);util.inherits=__webpack_require__(31);var StringDecoder,debug=__webpack_require__(412);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__(136).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 assertEncoding(encoding){if(encoding&&!isBufferEncoding(encoding))throw new Error("Unknown encoding: "+encoding)}function passThroughWrite(buffer){return buffer.toString(this.encoding)}function utf16DetectIncompleteChar(buffer){this.charReceived=buffer.length%2,this.charLength=this.charReceived?2:0}function base64DetectIncompleteChar(buffer){this.charReceived=buffer.length%3,this.charLength=this.charReceived?3:0}var Buffer=__webpack_require__(1).Buffer,isBufferEncoding=Buffer.isEncoding||function(encoding){switch(encoding&&encoding.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}},StringDecoder=exports.StringDecoder=function(encoding){switch(this.encoding=(encoding||"utf8").toLowerCase().replace(/[-_]/,""),assertEncoding(encoding),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=utf16DetectIncompleteChar;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=base64DetectIncompleteChar;break;default:return void(this.write=passThroughWrite)}this.charBuffer=new Buffer(6),this.charReceived=0,this.charLength=0};StringDecoder.prototype.write=function(buffer){for(var charStr="";this.charLength;){var available=buffer.length>=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 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__(399);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__(402);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__){"use strict";var Stringify=__webpack_require__(140),Parse=__webpack_require__(139);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__(14),_keys2=_interopRequireDefault(_keys),_create=__webpack_require__(49),_create2=_interopRequireDefault(_create),Utils=__webpack_require__(71),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__(18),Stream=__webpack_require__(3),Payload=__webpack_require__(73),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__){(function(Buffer){"use strict";var internals={};exports.escapeJavaScript=function(input){if(!input)return"";for(var escaped="",i=0;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 Wreck=__webpack_require__(72);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__(8).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__(8).argCommand;module.exports=function(send){return argCommand(send,"cat")}},function(module,exports,__webpack_require__){"use strict";var command=__webpack_require__(8).command;module.exports=function(send){return command(send,"commands")}},function(module,exports,__webpack_require__){"use strict";var argCommand=__webpack_require__(8).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";var argCommand=__webpack_require__(8).argCommand;module.exports=function(send){return{findprovs:argCommand(send,"dht/findprovs"),get:function(key,opts,cb){return"function"!=typeof opts||cb||(cb=opts,opts=null),send("dht/get",key,opts,null,function(err,res){if(err)return cb(err);if(!res)return cb(new Error("empty response"));if(0===res.length)return cb(new Error("no value returned for key"));if(Array.isArray(res)&&(res=res[0]),5===res.Type)cb(null,res.Extra);else{var error=new Error("key was not found (type 6)");cb(error)}})},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__(8).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 id(id,cb){return"function"==typeof id&&(cb=id,id=null),send("id",id,null,null,cb)}}},function(module,exports,__webpack_require__){"use strict";var ndjson=__webpack_require__(106);module.exports=function(send){return{tail:function(cb){return 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__(8).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__(8).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__(8).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){"use strict";module.exports=function(send){return function(id,cb){return 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__(8);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__(8);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__(8).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__(8).command;module.exports=function(send){return command(send,"version")}},function(module,exports,__webpack_require__){"use strict";var pkg=__webpack_require__(271);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]),"function"==typeof buffer&&(cb=buffer,buffer=!1),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 Wreck=__webpack_require__(72),Qs=__webpack_require__(138),ndjson=__webpack_require__(106),getFilesStream=__webpack_require__(164),isNode=!global.window;exports=module.exports=function(config){return requestAPI.bind(null,config)}}).call(exports,function(){return this}())},function(module,exports,__webpack_require__){module.exports={"default":__webpack_require__(175),__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,__webpack_require__){module.exports={"default":__webpack_require__(180),__esModule:!0}},function(module,exports,__webpack_require__){module.exports={"default":__webpack_require__(181),__esModule:!0}},function(module,exports,__webpack_require__){module.exports={"default":__webpack_require__(183),__esModule:!0}},function(module,exports,__webpack_require__){module.exports={"default":__webpack_require__(184),__esModule:!0}},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__(195),module.exports=__webpack_require__(11).Object.assign},function(module,exports,__webpack_require__){var $=__webpack_require__(9);module.exports=function(P,D){return $.create(P,D)}},function(module,exports,__webpack_require__){var $=__webpack_require__(9);module.exports=function(it,key,desc){return $.setDesc(it,key,desc)}},function(module,exports,__webpack_require__){var $=__webpack_require__(9);__webpack_require__(196),module.exports=function(it,key){return $.getDesc(it,key)}},function(module,exports,__webpack_require__){var $=__webpack_require__(9);__webpack_require__(197),module.exports=function(it){return $.getNames(it)}},function(module,exports,__webpack_require__){__webpack_require__(198),module.exports=__webpack_require__(11).Object.getPrototypeOf},function(module,exports,__webpack_require__){__webpack_require__(199),module.exports=__webpack_require__(11).Object.keys},function(module,exports,__webpack_require__){__webpack_require__(200),module.exports=__webpack_require__(11).Object.setPrototypeOf},function(module,exports,__webpack_require__){__webpack_require__(202),__webpack_require__(201),module.exports=__webpack_require__(11).Symbol},function(module,exports){module.exports=function(it){if("function"!=typeof it)throw TypeError(it+" is not a function!");return it}},function(module,exports,__webpack_require__){var $=__webpack_require__(9);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 $=__webpack_require__(9),createDesc=__webpack_require__(84);module.exports=__webpack_require__(79)?function(object,key,value){return $.setDesc(object,key,createDesc(1,value))}:function(object,key,value){return object[key]=value,object}},function(module,exports,__webpack_require__){var cof=__webpack_require__(76);module.exports=Array.isArray||function(arg){return"Array"==cof(arg)}},function(module,exports,__webpack_require__){var $=__webpack_require__(9),toIObject=__webpack_require__(37);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){module.exports=!0},function(module,exports,__webpack_require__){var $=__webpack_require__(9),toObject=__webpack_require__(50),IObject=__webpack_require__(82);module.exports=__webpack_require__(34)(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__){module.exports=__webpack_require__(187)},function(module,exports,__webpack_require__){var getDesc=__webpack_require__(9).getDesc,isObject=__webpack_require__(83),anObject=__webpack_require__(75),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__(77)(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 def=__webpack_require__(9).setDesc,has=__webpack_require__(81),TAG=__webpack_require__(87)("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__){var $export=__webpack_require__(33);$export($export.S+$export.F,"Object",{assign:__webpack_require__(191)})},function(module,exports,__webpack_require__){var toIObject=__webpack_require__(37);__webpack_require__(36)("getOwnPropertyDescriptor",function($getOwnPropertyDescriptor){return function(it,key){return $getOwnPropertyDescriptor(toIObject(it),key)}})},function(module,exports,__webpack_require__){__webpack_require__(36)("getOwnPropertyNames",function(){return __webpack_require__(80).get})},function(module,exports,__webpack_require__){var toObject=__webpack_require__(50);__webpack_require__(36)("getPrototypeOf",function($getPrototypeOf){return function(it){return $getPrototypeOf(toObject(it))}})},function(module,exports,__webpack_require__){var toObject=__webpack_require__(50);__webpack_require__(36)("keys",function($keys){return function(it){return $keys(toObject(it))}})},function(module,exports,__webpack_require__){var $export=__webpack_require__(33);$export($export.S,"Object",{setPrototypeOf:__webpack_require__(193).set})},function(module,exports){},function(module,exports,__webpack_require__){"use strict";var $=__webpack_require__(9),global=__webpack_require__(35),has=__webpack_require__(81),DESCRIPTORS=__webpack_require__(79),$export=__webpack_require__(33),redefine=__webpack_require__(192),$fails=__webpack_require__(34),shared=__webpack_require__(85),setToStringTag=__webpack_require__(194),uid=__webpack_require__(86),wks=__webpack_require__(87),keyOf=__webpack_require__(189),$names=__webpack_require__(80),enumKeys=__webpack_require__(186),isArray=__webpack_require__(188),anObject=__webpack_require__(75),toIObject=__webpack_require__(37),createDesc=__webpack_require__(84),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__(190)&&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(process){"use strict";function isMatch(file,matcher){return"function"==typeof matcher?matcher(file.path):matcher instanceof RegExp?matcher.test(file.path):void 0}function isNegative(pattern){return"string"==typeof pattern?"!"===pattern[0]:pattern instanceof RegExp?!0:void 0}function indexGreaterThan(index){return function(obj){return obj.index>index}}function toGlob(obj){return obj.glob}function globIsSingular(glob){var globSet=glob.minimatch.set;return 1!==globSet.length?!1:globSet[0].every(function(value){return"string"==typeof value})}var through2=__webpack_require__(256),Combine=__webpack_require__(244),unique=__webpack_require__(260),glob=__webpack_require__(90),micromatch=__webpack_require__(215),resolveGlob=__webpack_require__(257),globParent=__webpack_require__(88),path=__webpack_require__(5),extend=__webpack_require__(204),gs={createStream:function(ourGlob,negatives,opt){function filterNegatives(filename,enc,cb){var matcha=isMatch.bind(null,filename);negatives.every(matcha)?cb(null,filename):cb()}ourGlob=resolveGlob(ourGlob,opt);var ourOpt=extend({},opt);delete ourOpt.root;var globber=new glob.Glob(ourGlob,ourOpt),basePath=opt.base||globParent(ourGlob)+path.sep,stream=through2.obj(opt,negatives.length?filterNegatives:void 0),found=!1;return globber.on("error",stream.emit.bind(stream,"error")),globber.once("end",function(){opt.allowEmpty!==!0&&!found&&globIsSingular(globber)&&stream.emit("error",new Error("File not found with singular glob: "+ourGlob)),stream.end()}),globber.on("match",function(filename){found=!0,stream.write({cwd:opt.cwd,base:basePath,path:filename})}),stream},create:function(globs,opt){function streamFromPositive(positive){var negativeGlobs=negatives.filter(indexGreaterThan(positive.index)).map(toGlob);return gs.createStream(positive.glob,negativeGlobs,opt)}opt||(opt={}),"string"!=typeof opt.cwd&&(opt.cwd=process.cwd()),"boolean"!=typeof opt.dot&&(opt.dot=!1),"boolean"!=typeof opt.silent&&(opt.silent=!0),"boolean"!=typeof opt.nonull&&(opt.nonull=!1),"boolean"!=typeof opt.cwdbase&&(opt.cwdbase=!1),opt.cwdbase&&(opt.base=opt.cwd),Array.isArray(globs)||(globs=[globs]);var positives=[],negatives=[],ourOpt=extend({},opt);if(delete ourOpt.root,globs.forEach(function(glob,index){if("string"!=typeof glob&&!(glob instanceof RegExp))throw new Error("Invalid glob at index "+index);var globArray=isNegative(glob)?negatives:positives;if(globArray===negatives&&"string"==typeof glob){var ourGlob=resolveGlob(glob,opt);glob=micromatch.matcher(ourGlob,ourOpt)}globArray.push({index:index,glob:glob})}),0===positives.length)throw new Error("Missing positive glob");if(1===positives.length)return streamFromPositive(positives[0]);var streams=positives.map(streamFromPositive),aggregate=new Combine(streams),uniqueStream=unique("path"),returnStream=aggregate.pipe(uniqueStream);return aggregate.on("error",function(err){returnStream.emit("error",err)}),returnStream}};module.exports=gs}).call(exports,__webpack_require__(2))},function(module,exports){"use strict";var hasOwn=Object.prototype.hasOwnProperty,toStr=Object.prototype.toString,isArray=function(arr){return"function"==typeof Array.isArray?Array.isArray(arr):"[object Array]"===toStr.call(arr)},isPlainObject=function(obj){if(!obj||"[object Object]"!==toStr.call(obj))return!1;var hasOwnConstructor=hasOwn.call(obj,"constructor"),hasIsPrototypeOf=obj.constructor&&obj.constructor.prototype&&hasOwn.call(obj.constructor.prototype,"isPrototypeOf");if(obj.constructor&&!hasOwnConstructor&&!hasIsPrototypeOf)return!1;var key;for(key in obj);return"undefined"==typeof key||hasOwn.call(obj,key)};module.exports=function extend(){var options,name,src,copy,copyIsArray,clone,target=arguments[0],i=1,length=arguments.length,deep=!1;for("boolean"==typeof target?(deep=target,target=arguments[1]||{},i=2):("object"!=typeof target&&"function"!=typeof target||null==target)&&(target={});length>i;++i)if(options=arguments[i],null!=options)for(name in options)src=target[name],copy=options[name],target!==copy&&(deep&©&&(isPlainObject(copy)||(copyIsArray=isArray(copy)))?(copyIsArray?(copyIsArray=!1,clone=src&&isArray(src)?src:[]):clone=src&&isPlainObject(src)?src:{},target[name]=extend(deep,clone,copy)):"undefined"!=typeof copy&&(target[name]=copy));return target}},function(module,exports,__webpack_require__){/*! - * is-glob +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__(250),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__(266),utils.omit=__webpack_require__(267),utils.parseGlob=__webpack_require__(269),utils.cache=__webpack_require__(277),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__(283),md5=toConstructor(__webpack_require__(216)),rmd160=toConstructor(__webpack_require__(280));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) 2014-2015, Jon Schlinkert. + * Copyright (c) 2015, Jon Schlinkert. * Licensed under the MIT License. */ -var isExtglob=__webpack_require__(206);module.exports=function(str){return"string"==typeof str&&(/[*!?{}(|)[\]]/.test(str)||isExtglob(str))}},function(module,exports){/*! - * is-extglob +"use strict";module.exports=function(val){return"undefined"!=typeof val&&null!==val&&("object"==typeof val||"function"==typeof val)}},function(module,exports,__webpack_require__){/*! + * is-number * * Copyright (c) 2014-2015, Jon Schlinkert. * Licensed under the MIT License. */ -module.exports=function(str){return"string"==typeof str&&/[@?!+*]\(/.test(str)}},function(module,exports,__webpack_require__){(function(process){function inflight(key,cb){return reqs[key]?(reqs[key].push(cb),null):(reqs[key]=[cb],makeres(key))}function makeres(key){return once(function RES(){for(var cbs=reqs[key],len=cbs.length,args=slice(arguments),i=0;len>i;i++)cbs[i].apply(null,args);cbs.length>len?(cbs.splice(0,len),process.nextTick(function(){RES.apply(null,args)})):delete reqs[key]})}function slice(args){for(var length=args.length,array=[],i=0;length>i;i++)array[i]=args[i];return array}var wrappy=__webpack_require__(208),reqs=Object.create(null),once=__webpack_require__(91);module.exports=wrappy(inflight)}).call(exports,__webpack_require__(2))},function(module,exports){function wrappy(fn,cb){function wrapper(){for(var args=new Array(arguments.length),i=0;i=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=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){module.exports=function(xs,fn){for(var res=[],i=0;ii;i++)this._process(this.minimatch.set[i],i,!1);this._finish()}module.exports=globSync,globSync.GlobSync=GlobSync;var fs=__webpack_require__(6),minimatch=__webpack_require__(51),path=(minimatch.Minimatch,__webpack_require__(90).Glob,__webpack_require__(7),__webpack_require__(5)),assert=__webpack_require__(68),isAbsolute=__webpack_require__(52),common=__webpack_require__(89),setopts=(common.alphasort,common.alphasorti,common.setopts),ownProp=common.ownProp,childrenIgnored=common.childrenIgnored;GlobSync.prototype._finish=function(){if(assert(this instanceof GlobSync),this.realpath){var self=this;this.matches.forEach(function(matchset,index){var set=self.matches[index]=Object.create(null);for(var p in matchset)try{p=self._makeAbs(p);var real=fs.realpathSync(p,self.realpathCache);set[real]=!0}catch(er){if("stat"!==er.syscall)throw er;set[self._makeAbs(p)]=!0}})}common.finish(this)},GlobSync.prototype._process=function(pattern,index,inGlobStar){assert(this instanceof GlobSync);for(var n=0;"string"==typeof pattern[n];)n++;var prefix;switch(n){case pattern.length:return void this._processSimple(pattern.join("/"),index);case 0:prefix=null;break;default:prefix=pattern.slice(0,n).join("/")}var read,remain=pattern.slice(n);null===prefix?read=".":isAbsolute(prefix)||isAbsolute(pattern.join("/"))?(prefix&&isAbsolute(prefix)||(prefix="/"+prefix),read=prefix):read=prefix;var abs=this._makeAbs(read);if(!childrenIgnored(this,read)){var isGlobStar=remain[0]===minimatch.GLOBSTAR;isGlobStar?this._processGlobStar(prefix,read,abs,remain,index,inGlobStar):this._processReaddir(prefix,read,abs,remain,index,inGlobStar)}},GlobSync.prototype._processReaddir=function(prefix,read,abs,remain,index,inGlobStar){var entries=this._readdir(abs,inGlobStar);if(entries){for(var pn=remain[0],negate=!!this.minimatch.negate,rawGlob=pn._glob,dotOk=this.dot||"."===rawGlob.charAt(0),matchedEntries=[],i=0;ii;i++){var newPattern,e=matchedEntries[i];newPattern=prefix?[prefix,e]:[e],this._process(newPattern.concat(remain),index,inGlobStar)}}else{this.matches[index]||(this.matches[index]=Object.create(null));for(var i=0;len>i;i++){var e=matchedEntries[i];prefix&&(e="/"!==prefix.slice(-1)?prefix+"/"+e:prefix+e),"/"!==e.charAt(0)||this.nomount||(e=path.join(this.root,e)),this.matches[index][e]=!0}}}},GlobSync.prototype._emitMatch=function(index,e){this._makeAbs(e);if(this.mark&&(e=this._mark(e)),!this.matches[index][e]){if(this.nodir){var c=this.cache[this._makeAbs(e)];if("DIR"===c||Array.isArray(c))return}this.matches[index][e]=!0,this.stat&&this._stat(e)}},GlobSync.prototype._readdirInGlobStar=function(abs){if(this.follow)return this._readdir(abs,!1);var entries,lstat;try{lstat=fs.lstatSync(abs)}catch(er){return null}var isSym=lstat.isSymbolicLink();return this.symlinks[abs]=isSym,isSym||lstat.isDirectory()?entries=this._readdir(abs,!1):this.cache[abs]="FILE",entries},GlobSync.prototype._readdir=function(abs,inGlobStar){if(inGlobStar&&!ownProp(this.symlinks,abs))return this._readdirInGlobStar(abs);if(ownProp(this.cache,abs)){var c=this.cache[abs];if(!c||"FILE"===c)return null;if(Array.isArray(c))return c}try{return this._readdirEntries(abs,fs.readdirSync(abs))}catch(er){return this._readdirError(abs,er),null}},GlobSync.prototype._readdirEntries=function(abs,entries){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);var below=gspref.concat(entries[i],remain);this._process(below,index,!0)}}}},GlobSync.prototype._processSimple=function(prefix,index){var exists=this._stat(prefix);if(this.matches[index]||(this.matches[index]=Object.create(null)),exists){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.matches[index][prefix]=!0}},GlobSync.prototype._stat=function(f){var abs=this._makeAbs(f),needDir="/"===f.slice(-1);if(f.length>this.maxLength)return!1;if(!this.stat&&ownProp(this.cache,abs)){var c=this.cache[abs];if(Array.isArray(c)&&(c="DIR"),!needDir||"DIR"===c)return c;if(needDir&&"FILE"===c)return!1}var stat=this.statCache[abs];if(!stat){var lstat;try{lstat=fs.lstatSync(abs)}catch(er){return!1}if(lstat.isSymbolicLink())try{stat=fs.statSync(abs)}catch(er){stat=lstat}else stat=lstat}this.statCache[abs]=stat;var c=stat.isDirectory()?"DIR":"FILE";return this.cache[abs]=this.cache[abs]||c,needDir&&"DIR"!==c?!1:c},GlobSync.prototype._mark=function(p){return common.mark(this,p)},GlobSync.prototype._makeAbs=function(f){return common.makeAbs(this,f)}}).call(exports,__webpack_require__(2))},function(module,exports,__webpack_require__){/*! - * micromatch +"use strict";var typeOf=__webpack_require__(51);module.exports=function(num){var type=typeOf(num);if("number"!==type&&"string"!==type)return!1;var n=+num;return n-n+1>=0&&""!==num}},function(module,exports){/*! + * is-primitive * * Copyright (c) 2014-2015, Jon Schlinkert. * Licensed under the MIT License. */ -"use strict";function micromatch(files,patterns,opts){if(!files||!patterns)return[];if(opts=opts||{},"undefined"==typeof opts.cache&&(opts.cache=!0),!Array.isArray(patterns))return match(files,patterns,opts);for(var len=patterns.length,i=0,omit=[],keep=[];len--;){var glob=patterns[i++];"string"==typeof glob&&33===glob.charCodeAt(0)?omit.push.apply(omit,match(files,glob.slice(1),opts)):keep.push.apply(keep,match(files,glob,opts))}return utils.diff(keep,omit)}function match(files,pattern,opts){if("string"!==utils.typeOf(files)&&!Array.isArray(files))throw new Error(msg("match","files","a string or array"));files=utils.arrayify(files),opts=opts||{};var negate=opts.negate||!1,orig=pattern;"string"==typeof pattern&&(negate="!"===pattern.charAt(0),negate&&(pattern=pattern.slice(1)),opts.nonegate===!0&&(negate=!1));for(var _isMatch=matcher(pattern,opts),len=files.length,i=0,res=[];len>i;){var file=files[i++],fp=utils.unixify(file,opts);_isMatch(fp)&&res.push(fp)}if(0===res.length){if(opts.failglob===!0)throw new Error('micromatch.match() found no matches for: "'+orig+'".');(opts.nonull||opts.nullglob)&&res.push(utils.unescapeGlob(orig))}return negate&&(res=utils.diff(files,res)),opts.ignore&&opts.ignore.length&&(pattern=opts.ignore,opts=utils.omit(opts,["ignore"]),res=utils.diff(res,micromatch(res,pattern,opts))),opts.nodupes?utils.unique(res):res}function filter(patterns,opts){if(!Array.isArray(patterns)&&"string"!=typeof patterns)throw new TypeError(msg("filter","patterns","a string or array"));patterns=utils.arrayify(patterns);for(var len=patterns.length,i=0,patternMatchers=Array(len);len>i;)patternMatchers[i]=matcher(patterns[i++],opts);return function(fp){if(null==fp)return[];var len=patternMatchers.length,i=0,res=!0;for(fp=utils.unixify(fp,opts);len>i;){var fn=patternMatchers[i++];if(!fn(fp)){res=!1;break}}return res}}function isMatch(fp,pattern,opts){if("string"!=typeof fp)throw new TypeError(msg("isMatch","filepath","a string"));return fp=utils.unixify(fp,opts),"object"===utils.typeOf(pattern)?matcher(fp,pattern):matcher(pattern,opts)(fp)}function contains(fp,pattern,opts){if("string"!=typeof fp)throw new TypeError(msg("contains","pattern","a string"));return opts=opts||{},opts.contains=""!==pattern,fp=utils.unixify(fp,opts),opts.contains&&!utils.isGlob(pattern)?-1!==fp.indexOf(pattern):matcher(pattern,opts)(fp)}function any(fp,patterns,opts){if(!Array.isArray(patterns)&&"string"!=typeof patterns)throw new TypeError(msg("any","patterns","a string or array"));patterns=utils.arrayify(patterns);var len=patterns.length;for(fp=utils.unixify(fp,opts);len--;){var isMatch=matcher(patterns[len],opts);if(isMatch(fp))return!0}return!1}function matchKeys(obj,glob,options){if("object"!==utils.typeOf(obj))throw new TypeError(msg("matchKeys","first argument","an object"));var fn=matcher(glob,options),res={};for(var key in obj)obj.hasOwnProperty(key)&&fn(key)&&(res[key]=obj[key]);return res}function matcher(pattern,opts){if("function"==typeof pattern)return pattern;if(pattern instanceof RegExp)return function(fp){return pattern.test(fp)};if("string"!=typeof pattern)throw new TypeError(msg("matcher","pattern","a string, regex, or function"));if(pattern=utils.unixify(pattern,opts),!utils.isGlob(pattern))return utils.matchPath(pattern,opts);var re=makeRe(pattern,opts);return opts&&opts.matchBase?utils.hasFilename(re,opts):function(fp){return fp=utils.unixify(fp,opts),re.test(fp)}}function toRegex(glob,options){var opts=Object.create(options||{}),flags=opts.flags||"";opts.nocase&&-1===flags.indexOf("i")&&(flags+="i");var parsed=expand(glob,opts);opts.negated=opts.negated||parsed.negated,opts.negate=opts.negated,glob=wrapGlob(parsed.pattern,opts);var re;try{return re=new RegExp(glob,flags)}catch(err){if(err.reason="micromatch invalid regex: ("+re+")",opts.strict)throw new SyntaxError(err)}return/$^/}function wrapGlob(glob,opts){var prefix=opts&&!opts.contains?"^":"",after=opts&&!opts.contains?"$":"";return glob="(?:"+glob+")"+after,opts&&opts.negate?prefix+("(?!^"+glob+").*$"):prefix+glob}function makeRe(glob,opts){if("string"!==utils.typeOf(glob))throw new Error(msg("makeRe","glob","a string"));return utils.cache(toRegex,glob,opts)}function msg(method,what,type){return"micromatch."+method+"(): "+what+" should be "+type+"."}var expand=__webpack_require__(217),utils=__webpack_require__(53);micromatch.any=any,micromatch.braces=micromatch.braceExpand=utils.braces,micromatch.contains=contains,micromatch.expand=expand,micromatch.filter=filter,micromatch.isMatch=isMatch,micromatch.makeRe=makeRe,micromatch.match=match,micromatch.matcher=matcher,micromatch.matchKeys=matchKeys,module.exports=micromatch},function(module,exports){"use strict";function reverse(object,prepender){return Object.keys(object).reduce(function(reversed,key){var newKey=prepender?prepender+key:key;return reversed[object[key]]=newKey,reversed},{})}var unesc,temp,chars={};chars.escapeRegex={"?":/\?/g,"@":/\@/g,"!":/\!/g,"+":/\+/g,"*":/\*/g,"(":/\(/g,")":/\)/g,"[":/\[/g,"]":/\]/g},chars.ESC={"?":"__UNESC_QMRK__","@":"__UNESC_AMPE__","!":"__UNESC_EXCL__","+":"__UNESC_PLUS__","*":"__UNESC_STAR__",",":"__UNESC_COMMA__","(":"__UNESC_LTPAREN__",")":"__UNESC_RTPAREN__","[":"__UNESC_LTBRACK__","]":"__UNESC_RTBRACK__"},chars.UNESC=unesc||(unesc=reverse(chars.ESC,"\\")),chars.ESC_TEMP={"?":"__TEMP_QMRK__","@":"__TEMP_AMPE__","!":"__TEMP_EXCL__","*":"__TEMP_STAR__","+":"__TEMP_PLUS__",",":"__TEMP_COMMA__","(":"__TEMP_LTPAREN__",")":"__TEMP_RTPAREN__","[":"__TEMP_LTBRACK__","]":"__TEMP_RTBRACK__"},chars.TEMP=temp||(temp=reverse(chars.ESC_TEMP)),module.exports=chars},function(module,exports,__webpack_require__){/*! - * micromatch +"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__(276);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__(281).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__(287),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__(332);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){/*! + * repeat-element * - * Copyright (c) 2014-2015, Jon Schlinkert. - * Licensed under the MIT License. + * Copyright (c) 2015 Jon Schlinkert. + * Licensed under the MIT license. */ -"use strict";function expand(pattern,options){if("string"!=typeof pattern)throw new TypeError("micromatch.expand(): argument should be a string.");var glob=new Glob(pattern,options||{}),opts=glob.options;if(!utils.isGlob(pattern))return glob.pattern=glob.pattern.replace(/([\/.])/g,"\\$1"),glob;if(glob.pattern=glob.pattern.replace(/(\+)(?!\()/g,"\\$1"),glob.pattern=glob.pattern.split("$").join("\\$"),"boolean"!=typeof opts.braces&&"boolean"!=typeof opts.nobraces&&(opts.braces=!0),".*"===glob.pattern)return{pattern:"\\."+star,tokens:tok,options:opts};if("*"===glob.pattern)return{pattern:oneStar(opts.dot),tokens:tok,options:opts};glob.parse();var tok=glob.tokens;return tok.is.negated=opts.negated,opts.dotfiles!==!0&&!tok.is.dotfile||opts.dot===!1||(opts.dotfiles=!0,opts.dot=!0),opts.dotdirs!==!0&&!tok.is.dotdir||opts.dot===!1||(opts.dotdirs=!0,opts.dot=!0),/[{,]\./.test(glob.pattern)&&(opts.makeRe=!1,opts.dot=!0),opts.nonegate!==!0&&(opts.negated=glob.negated),"."===glob.pattern.charAt(0)&&"/"!==glob.pattern.charAt(1)&&(glob.pattern="\\"+glob.pattern),glob.track("before braces"),tok.is.braces&&glob.braces(),glob.track("after braces"),glob.track("before extglob"),tok.is.extglob&&glob.extglob(),glob.track("after extglob"),glob.track("before brackets"),tok.is.brackets&&glob.brackets(),glob.track("after brackets"),glob._replace("[!","[^"),glob._replace("(?","(%~"),glob._replace(/\[\]/,"\\[\\]"),glob._replace("/[","/"+(opts.dot?dotfiles:nodot)+"[",!0),glob._replace("/?","/"+(opts.dot?dotfiles:nodot)+"[^/]",!0),glob._replace("/.","/(?=.)\\.",!0),glob._replace(/^(\w):([\\\/]+?)/gi,"(?=.)$1:$2",!0),-1!==glob.pattern.indexOf("[^")&&(glob.pattern=negateSlash(glob.pattern)),opts.globstar!==!1&&"**"===glob.pattern?glob.pattern=globstar(opts.dot):(glob._replace(/(\/\*)+/g,function(match){var len=match.length/2;return 1===len?match:"(?:\\/*){"+len+"}"}),glob.pattern=balance(glob.pattern,"[","]"),glob.escape(glob.pattern),tok.is.globstar&&(glob.pattern=collapse(glob.pattern,"/**"),glob.pattern=collapse(glob.pattern,"**/"),glob._replace("/**/","(?:/"+globstar(opts.dot)+"/|/)",!0),glob._replace(/\*{2,}/g,"**"),glob._replace(/(\w+)\*(?!\/)/g,"$1[^/]*?",!0),glob._replace(/\*\*\/\*(\w)/g,globstar(opts.dot)+"\\/"+(opts.dot?dotfiles:nodot)+"[^/]*?$1",!0),opts.dot!==!0&&glob._replace(/\*\*\/(.)/g,"(?:**\\/|)$1"),(""!==tok.path.dirname||/,\*\*|\*\*,/.test(glob.orig))&&glob._replace("**",globstar(opts.dot),!0)),glob._replace(/\/\*$/,"\\/"+oneStar(opts.dot),!0),glob._replace(/(?!\/)\*$/,star,!0),glob._replace(/([^\/]+)\*/,"$1"+oneStar(!0),!0),glob._replace("*",oneStar(opts.dot),!0),glob._replace("?.","?\\.",!0),glob._replace("?:","?:",!0),glob._replace(/\?+/g,function(match){var len=match.length;return 1===len?qmark:qmark+"{"+len+"}"}),glob._replace(/\.([*\w]+)/g,"\\.$1"),glob._replace(/\[\^[\\\/]+\]/g,qmark),glob._replace(/\/+/g,"\\/"),glob._replace(/\\{2,}/g,"\\")),glob.unescape(glob.pattern),glob._replace("__UNESC_STAR__","*"),glob._replace("?.","?\\."),glob._replace("[^\\/]",qmark),glob.pattern.length>1&&/^[\[?*]/.test(glob.pattern)&&(glob.pattern=(opts.dot?dotfiles:nodot)+glob.pattern),glob}function collapse(str,ch){var res=str.split(ch),isFirst=""===res[0],isLast=""===res[res.length-1];return res=res.filter(Boolean),isFirst&&res.unshift(""),isLast&&res.push(""),res.join(ch)}function negateSlash(str){return str.replace(/\[\^([^\]]*?)\]/g,function(match,inner){return-1===inner.indexOf("/")&&(inner="\\/"+inner),"[^"+inner+"]"})}function balance(str,a,b){var aarr=str.split(a),alen=aarr.join("").length,blen=str.split(b).join("").length;return alen!==blen?(str=aarr.join("\\"+a),str.split(b).join("\\"+b)):str}function oneStar(dotfile){return dotfile?"(?!"+dotfileGlob+")(?=.)"+star:nodot+star}function globstar(dotfile){return dotfile?twoStarDot:"(?:(?!(?:\\/|^)\\.).)*?"}var utils=__webpack_require__(53),Glob=__webpack_require__(218);module.exports=expand;var qmark="[^/]",star=qmark+"*?",nodot="(?!\\.)(?=.)",dotfileGlob="(?:\\/|^)\\.{1,2}($|\\/)",dotfiles="(?!"+dotfileGlob+")(?=.)",twoStarDot="(?:(?!"+dotfileGlob+").)*?"},function(module,exports,__webpack_require__){"use strict";function esc(str){return str=str.split("?").join("%~"),str=str.split("*").join("%%")}function unesc(str){return str=str.split("%~").join("?"),str=str.split("%%").join("*")}var chars=__webpack_require__(216),utils=__webpack_require__(53),Glob=module.exports=function Glob(pattern,options){return this instanceof Glob?(this.options=options||{},this.pattern=pattern,this.history=[],this.tokens={},void this.init(pattern)):new Glob(pattern,options)};Glob.prototype.init=function(pattern){this.orig=pattern,this.negated=this.isNegated(),this.options.track=this.options.track||!1,this.options.makeRe=!0},Glob.prototype.track=function(msg){this.options.track&&this.history.push({msg:msg,pattern:this.pattern})},Glob.prototype.isNegated=function(){return 33===this.pattern.charCodeAt(0)?(this.pattern=this.pattern.slice(1),!0):!1},Glob.prototype.braces=function(){if(this.options.nobraces!==!0&&this.options.nobrace!==!0){var a=this.pattern.match(/[\{\(\[]/g),b=this.pattern.match(/[\}\)\]]/g);a&&b&&a.length!==b.length&&(this.options.makeRe=!1);var expanded=utils.braces(this.pattern,this.options);this.pattern=expanded.join("|")}},Glob.prototype.brackets=function(){this.options.nobrackets!==!0&&(this.pattern=utils.brackets(this.pattern))},Glob.prototype.extglob=function(){this.options.noextglob!==!0&&utils.isExtglob(this.pattern)&&(this.pattern=utils.extglob(this.pattern,{escape:!0}))},Glob.prototype.parse=function(pattern){return this.tokens=utils.parseGlob(pattern||this.pattern,!0),this.tokens},Glob.prototype._replace=function(a,b,escape){this.track('before (find): "'+a+'" (replace with): "'+b+'"'),escape&&(b=esc(b)),a&&b&&"string"==typeof a?this.pattern=this.pattern.split(a).join(b):this.pattern=this.pattern.replace(a,b),this.track("after")},Glob.prototype.escape=function(str){this.track("before escape: ");var re=/["\\](['"]?[^"'\\]['"]?)/g;this.pattern=str.replace(re,function($0,$1){var o=chars.ESC,ch=o&&o[$1];return ch?ch:/[a-z]/i.test($0)?$0.split("\\").join(""):$0}),this.track("after escape: ")},Glob.prototype.unescape=function(str){var re=/__([A-Z]+)_([A-Z]+)__/g;this.pattern=str.replace(re,function($0,$1){return chars[$1][$0]}),this.pattern=unesc(this.pattern)}},function(module,exports,__webpack_require__){/*! +"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__(333);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__(293),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__(296),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__(297),Writable=__webpack_require__(299);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__(304);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__(274);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__(295);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. * Licensed under the MIT License */ -"use strict";function diff(arr,arrays){var arrays,argsLen=arguments.length,len=arr.length,i=-1,res=[];if(1===argsLen)return arr;for(argsLen>2&&(arrays=flatten(slice.call(arguments,1)));++i2&&(arrays=flatten(slice.call(arguments,1)));++i * * Copyright (c) 2014-2015, Jon Schlinkert. @@ -85,140 +62,135 @@ module.exports=function(str){return"string"==typeof str&&/[@?!+*]\(/.test(str)}} * 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 * * 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;++i1?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(){ +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__(270);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__(331),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 + * + * Copyright (c) 2015 Jon Schlinkert. + * Licensed under the MIT license. + */ +"use strict";function brackets(str){var negated=!1;-1!==str.indexOf("[^")&&(negated=!0,str=str.split("[^").join("[")),-1!==str.indexOf("[!")&&(negated=!0,str=str.split("[!").join("["));for(var a=str.split("["),b=str.split("]"),imbalanced=a.length!==b.length,parts=str.split(/(?::\]\[:|\[?\[:|:\]\]?)/),len=parts.length,i=0,end="",beg="",res=[];len--;){var inner=parts[i++];("^[!"===inner||"[!"===inner)&&(inner="",negated=!0);var prefix=negated?"^":"",ch=POSIX[inner];ch?res.push("["+prefix+ch+"]"):inner&&(/^\[?\w-\w\]?$/.test(inner)?i===parts.length?res.push("["+prefix+inner):1===i?res.push(prefix+inner+"]"):res.push(prefix+inner):1===i?beg+=inner:i===parts.length?end+=inner:res.push("["+prefix+inner+"]"))}var result=res.join("|"),rlen=res.length||1;return rlen>1&&(result="(?:"+result+")",rlen=1),beg&&(rlen++,"["===beg.charAt(0)&&(imbalanced?beg="\\["+beg.slice(1):beg+="]"),result=beg+result),end&&(rlen++,"]"===end.slice(-1)&&(end=imbalanced?end.slice(0,end.length-1)+"\\]":"["+end),result+=end),rlen>1&&(result=result.split("][").join("]|["),-1===result.indexOf("|")||/\(\?/.test(result)||(result="(?:"+result+")")),result=result.replace(/\[+=|=\]+/g,"\\b")}var POSIX={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E",punct:"!\"#$%&'()\\*+,-./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};module.exports=brackets,brackets.makeRe=function(pattern){try{return new RegExp(brackets(pattern))}catch(err){}},brackets.isMatch=function(str,pattern){try{return brackets.makeRe(pattern).test(str)}catch(err){return!1}},brackets.match=function(arr,pattern){for(var len=arr.length,i=0,res=arr.slice(),re=brackets.makeRe(pattern);len>i;){var ele=arr[i++];re.test(ele)&&res.splice(i,1)}return res}},function(module,exports,__webpack_require__){/*! * expand-range * * Copyright (c) 2014-2015, Jon Schlinkert. * Licensed under the MIT license. */ -"use strict";var fill=__webpack_require__(224);module.exports=function(str,options,fn){if("string"!=typeof str)throw new TypeError("expand-range expects a string.");"function"==typeof options&&(fn=options,options={}),"boolean"==typeof options&&(options={},options.makeRe=!0);var opts=options||{},args=str.split(".."),len=args.length;return len>3?str:1===len?args:("boolean"==typeof fn&&fn===!0&&(opts.makeRe=!0),args.push(opts),fill.apply(fill,args.concat(fn)))}},function(module,exports,__webpack_require__){/*! - * fill-range +"use strict";var fill=__webpack_require__(226);module.exports=function(str,options,fn){if("string"!=typeof str)throw new TypeError("expand-range expects a string.");"function"==typeof options&&(fn=options,options={}),"boolean"==typeof options&&(options={},options.makeRe=!0);var opts=options||{},args=str.split(".."),len=args.length;return len>3?str:1===len?args:("boolean"==typeof fn&&fn===!0&&(opts.makeRe=!0),args.push(opts),fill.apply(fill,args.concat(fn)))}},function(module,exports,__webpack_require__){"use strict";function assign(a,b){for(var key in b)hasOwn(b,key)&&(a[key]=b[key])}function hasOwn(obj,key){return Object.prototype.hasOwnProperty.call(obj,key)}var isObject=__webpack_require__(88);module.exports=function(o){isObject(o)||(o={});for(var len=arguments.length,i=1;len>i;i++){var obj=arguments[i];isObject(obj)&&assign(o,obj)}return o}},function(module,exports){"use strict";var hasOwn=Object.prototype.hasOwnProperty,toStr=Object.prototype.toString,isArray=function(arr){return"function"==typeof Array.isArray?Array.isArray(arr):"[object Array]"===toStr.call(arr)},isPlainObject=function(obj){if(!obj||"[object Object]"!==toStr.call(obj))return!1;var hasOwnConstructor=hasOwn.call(obj,"constructor"),hasIsPrototypeOf=obj.constructor&&obj.constructor.prototype&&hasOwn.call(obj.constructor.prototype,"isPrototypeOf");if(obj.constructor&&!hasOwnConstructor&&!hasIsPrototypeOf)return!1;var key;for(key in obj);return"undefined"==typeof key||hasOwn.call(obj,key)};module.exports=function extend(){var options,name,src,copy,copyIsArray,clone,target=arguments[0],i=1,length=arguments.length,deep=!1;for("boolean"==typeof target?(deep=target,target=arguments[1]||{},i=2):("object"!=typeof target&&"function"!=typeof target||null==target)&&(target={});length>i;++i)if(options=arguments[i],null!=options)for(name in options)src=target[name],copy=options[name],target!==copy&&(deep&©&&(isPlainObject(copy)||(copyIsArray=isArray(copy)))?(copyIsArray?(copyIsArray=!1,clone=src&&isArray(src)?src:[]):clone=src&&isPlainObject(src)?src:{},target[name]=extend(deep,clone,copy)):"undefined"!=typeof copy&&(target[name]=copy));return target}},function(module,exports,__webpack_require__){/*! + * extglob * - * Copyright (c) 2014-2015, Jon Schlinkert. + * Copyright (c) 2015, Jon Schlinkert. * Licensed under the MIT License. */ -"use strict";function fillRange(a,b,step,options,fn){if(null==a||null==b)throw new Error("fill-range expects the first and second args to be strings.");"function"==typeof step&&(fn=step,options={},step=null),"function"==typeof options&&(fn=options,options={}),isObject(step)&&(options=step,step="");var expand,regex=!1,sep="",opts=options||{};"undefined"==typeof opts.silent&&(opts.silent=!0),step=step||opts.step;var origA=a,origB=b;if(b="-0"===b.toString()?0:b,(opts.optimize||opts.makeRe)&&(step=step?step+="~":step,expand=!0,regex=!0,sep="~"),"string"==typeof step){var match=stepRe().exec(step);if(match){var i=match.index,m=match[0];if("+"===m)return repeat(a,b);if("?"===m)return[randomize(a,b)];">"===m?(step=step.substr(0,i)+step.substr(i+1),expand=!0):"|"===m?(step=step.substr(0,i)+step.substr(i+1),expand=!0,regex=!0,sep=m):"~"===m&&(step=step.substr(0,i)+step.substr(i+1),expand=!0,regex=!0,sep=m)}else if(!isNumber(step)){if(!opts.silent)throw new TypeError("fill-range: invalid step.");return null}}if(/[.&*()[\]^%$#@!]/.test(a)||/[.&*()[\]^%$#@!]/.test(b)){if(!opts.silent)throw new RangeError("fill-range: invalid range arguments.");return null}if(!noAlphaNum(a)||!noAlphaNum(b)||hasBoth(a)||hasBoth(b)){if(!opts.silent)throw new RangeError("fill-range: invalid range arguments.");return null}var isNumA=isNumber(zeros(a)),isNumB=isNumber(zeros(b));if(!isNumA&&isNumB||isNumA&&!isNumB){if(!opts.silent)throw new TypeError("fill-range: first range argument is incompatible with second.");return null}var isNum=isNumA,num=formatStep(step);isNum?(a=+a,b=+b):(a=a.charCodeAt(0),b=b.charCodeAt(0));var isDescending=a>b;(0>a||0>b)&&(expand=!1,regex=!1);var res,pad,padding=isPadded(origA,origB),arr=[],ii=0;if(regex&&shouldExpand(a,b,num,isNum,padding,opts))return("|"===sep||"~"===sep)&&(sep=detectSeparator(a,b,num,isNum,isDescending)),wrap([origA,origB],sep,opts);for(;isDescending?a>=b:b>=a;)padding&&isNum&&(pad=padding(a)),res="function"==typeof fn?fn(a,isNum,pad,ii++):isNum?formatPadding(a,pad):regex&&isInvalidChar(a)?null:String.fromCharCode(a),null!==res&&arr.push(res),isDescending?a-=num:a+=num;return!regex&&!expand||opts.noexpand?arr:(("|"===sep||"~"===sep)&&(sep=detectSeparator(a,b,num,isNum,isDescending)),1===arr.length||0>a||0>b?arr:wrap(arr,sep,opts))}function wrap(arr,sep,opts){"~"===sep&&(sep="-");var str=arr.join(sep),pre=opts&&opts.regexPrefix;return"|"===sep&&(str=pre?pre+str:str,str="("+str+")"),"-"===sep&&(str=pre&&"^"===pre?pre+str:str,str="["+str+"]"),[str]}function isCharClass(a,b,step,isNum,isDescending){return isDescending?!1:isNum?9>=a&&9>=b:b>a?1===step:!1}function shouldExpand(a,b,num,isNum,padding,opts){return isNum&&(a>9||b>9)?!1:!padding&&1===num&&b>a}function detectSeparator(a,b,step,isNum,isDescending){var isChar=isCharClass(a,b,step,isNum,isDescending);return isChar?"~":"|"}function formatStep(step){return Math.abs(step>>0)||1}function formatPadding(ch,pad){var res=pad?pad+ch:ch;return pad&&"-"===ch.toString().charAt(0)&&(res="-"+pad+ch.toString().substr(1)),res.toString()}function isInvalidChar(str){var ch=toStr(str);return"\\"===ch||"["===ch||"]"===ch||"^"===ch||"("===ch||")"===ch||"`"===ch}function toStr(ch){return String.fromCharCode(ch)}function stepRe(){return/\?|>|\||\+|\~/g}function noAlphaNum(val){return/[a-z0-9]/i.test(val)}function hasBoth(val){return/[a-z][0-9]|[0-9][a-z]/i.test(val)}function zeros(val){return/^-*0+$/.test(val.toString())?"0":val}function hasZeros(val){return/[^.]\.|^-*0+[0-9]/.test(val)}function isPadded(origA,origB){if(hasZeros(origA)||hasZeros(origB)){var alen=length(origA),blen=length(origB),len=alen>=blen?alen:blen;return function(a){return repeatStr("0",len-length(a))}}return!1}function length(val){return val.toString().length}var isObject=__webpack_require__(225),isNumber=__webpack_require__(92),randomize=__webpack_require__(227),repeatStr=__webpack_require__(228),repeat=__webpack_require__(93);module.exports=fillRange},function(module,exports,__webpack_require__){/*! - * isobject +"use strict";function extglob(str,opts){opts=opts||{};var o={},i=0;str=str.replace(/!\(([^\w*()])/g,"$1!("),str=str.replace(/([*\/])\.!\([*]\)/g,function(m,ch){return escape("/"===ch?"\\/[^.]+":"[^.]+")});var key=str+String(!!opts.regex)+String(!!opts.contains)+String(!!opts.escape);if(cache.hasOwnProperty(key))return cache[key];re instanceof RegExp||(re=regex()),opts.negate=!1;for(var m;m=re.exec(str);){var prefix=m[1],inner=m[3];"!"===prefix&&(opts.negate=!0);var id="__EXTGLOB_"+i++ +"__";o[id]=wrap(inner,prefix,opts.escape),str=str.split(m[0]).join(id)}for(var keys=Object.keys(o),len=keys.length;len--;){var prop=keys[len];str=str.split(prop).join(o[prop])}var result=opts.regex?toRegex(str,opts.contains,opts.negate):str;return result=result.split(".").join("\\."),cache[key]=result}function wrap(inner,prefix,esc){switch(esc&&(inner=escape(inner)),prefix){case"!":return"(?!"+inner+")[^/]"+(esc?"%%%~":"*?");case"@":return"(?:"+inner+")";case"+":return"(?:"+inner+")+";case"*":return"(?:"+inner+")"+(esc?"%%":"*");case"?":return"(?:"+inner+"|)";default:return inner}}function escape(str){return str=str.split("*").join("[^/]%%%~"),str=str.split(".").join("\\.")}function regex(){return/(\\?[@?!+*$]\\?)(\(([^()]*?)\))/}function negate(str){return"(?!^"+str+").*$"}function toRegex(pattern,contains,isNegated){var prefix=contains?"^":"",after=contains?"$":"";return pattern="(?:"+pattern+")"+after,isNegated&&(pattern=prefix+negate(pattern)),new RegExp(prefix+pattern)}var re,cache=(__webpack_require__(38),{});module.exports=extglob},function(module,exports){/*! + * filename-regex + * + * Copyright (c) 2014-2015, Jon Schlinkert + * Licensed under the MIT license. + */ +module.exports=function(){return/([^\\\/]+)$/}},function(module,exports,__webpack_require__){/*! + * fill-range * * Copyright (c) 2014-2015, Jon Schlinkert. * Licensed under the MIT License. */ -"use strict";var isArray=__webpack_require__(226);module.exports=function(o){return null!=o&&"object"==typeof o&&!isArray(o)}},function(module,exports){module.exports=Array.isArray||function(arr){return"[object Array]"==Object.prototype.toString.call(arr)}},function(module,exports,__webpack_require__){/*! - * randomatic +"use strict";function fillRange(a,b,step,options,fn){if(null==a||null==b)throw new Error("fill-range expects the first and second args to be strings.");"function"==typeof step&&(fn=step,options={},step=null),"function"==typeof options&&(fn=options,options={}),isObject(step)&&(options=step,step="");var expand,regex=!1,sep="",opts=options||{};"undefined"==typeof opts.silent&&(opts.silent=!0),step=step||opts.step;var origA=a,origB=b;if(b="-0"===b.toString()?0:b,(opts.optimize||opts.makeRe)&&(step=step?step+="~":step,expand=!0,regex=!0,sep="~"),"string"==typeof step){var match=stepRe().exec(step);if(match){var i=match.index,m=match[0];if("+"===m)return repeat(a,b);if("?"===m)return[randomize(a,b)];">"===m?(step=step.substr(0,i)+step.substr(i+1),expand=!0):"|"===m?(step=step.substr(0,i)+step.substr(i+1),expand=!0,regex=!0,sep=m):"~"===m&&(step=step.substr(0,i)+step.substr(i+1),expand=!0,regex=!0,sep=m)}else if(!isNumber(step)){if(!opts.silent)throw new TypeError("fill-range: invalid step.");return null}}if(/[.&*()[\]^%$#@!]/.test(a)||/[.&*()[\]^%$#@!]/.test(b)){if(!opts.silent)throw new RangeError("fill-range: invalid range arguments.");return null}if(!noAlphaNum(a)||!noAlphaNum(b)||hasBoth(a)||hasBoth(b)){if(!opts.silent)throw new RangeError("fill-range: invalid range arguments.");return null}var isNumA=isNumber(zeros(a)),isNumB=isNumber(zeros(b));if(!isNumA&&isNumB||isNumA&&!isNumB){if(!opts.silent)throw new TypeError("fill-range: first range argument is incompatible with second.");return null}var isNum=isNumA,num=formatStep(step);isNum?(a=+a,b=+b):(a=a.charCodeAt(0),b=b.charCodeAt(0));var isDescending=a>b;(0>a||0>b)&&(expand=!1,regex=!1);var res,pad,padding=isPadded(origA,origB),arr=[],ii=0;if(regex&&shouldExpand(a,b,num,isNum,padding,opts))return("|"===sep||"~"===sep)&&(sep=detectSeparator(a,b,num,isNum,isDescending)),wrap([origA,origB],sep,opts);for(;isDescending?a>=b:b>=a;)padding&&isNum&&(pad=padding(a)),res="function"==typeof fn?fn(a,isNum,pad,ii++):isNum?formatPadding(a,pad):regex&&isInvalidChar(a)?null:String.fromCharCode(a),null!==res&&arr.push(res),isDescending?a-=num:a+=num;return!regex&&!expand||opts.noexpand?arr:(("|"===sep||"~"===sep)&&(sep=detectSeparator(a,b,num,isNum,isDescending)),1===arr.length||0>a||0>b?arr:wrap(arr,sep,opts))}function wrap(arr,sep,opts){"~"===sep&&(sep="-");var str=arr.join(sep),pre=opts&&opts.regexPrefix;return"|"===sep&&(str=pre?pre+str:str,str="("+str+")"),"-"===sep&&(str=pre&&"^"===pre?pre+str:str,str="["+str+"]"),[str]}function isCharClass(a,b,step,isNum,isDescending){return isDescending?!1:isNum?9>=a&&9>=b:b>a?1===step:!1}function shouldExpand(a,b,num,isNum,padding,opts){return isNum&&(a>9||b>9)?!1:!padding&&1===num&&b>a}function detectSeparator(a,b,step,isNum,isDescending){var isChar=isCharClass(a,b,step,isNum,isDescending);return isChar?"~":"|"}function formatStep(step){return Math.abs(step>>0)||1}function formatPadding(ch,pad){var res=pad?pad+ch:ch;return pad&&"-"===ch.toString().charAt(0)&&(res="-"+pad+ch.toString().substr(1)),res.toString()}function isInvalidChar(str){var ch=toStr(str);return"\\"===ch||"["===ch||"]"===ch||"^"===ch||"("===ch||")"===ch||"`"===ch}function toStr(ch){return String.fromCharCode(ch)}function stepRe(){return/\?|>|\||\+|\~/g}function noAlphaNum(val){return/[a-z0-9]/i.test(val)}function hasBoth(val){return/[a-z][0-9]|[0-9][a-z]/i.test(val)}function zeros(val){return/^-*0+$/.test(val.toString())?"0":val}function hasZeros(val){return/[^.]\.|^-*0+[0-9]/.test(val)}function isPadded(origA,origB){if(hasZeros(origA)||hasZeros(origB)){var alen=length(origA),blen=length(origB),len=alen>=blen?alen:blen;return function(a){return repeatStr("0",len-length(a))}}return!1}function length(val){return val.toString().length}var isObject=__webpack_require__(246),isNumber=__webpack_require__(89),randomize=__webpack_require__(275),repeatStr=__webpack_require__(278),repeat=__webpack_require__(103);module.exports=fillRange},function(module,exports,__webpack_require__){(function(Buffer){"use strict";function ctor(options,transform){function FirstChunk(options2){return this instanceof FirstChunk?(Transform.call(this,options2),this._firstChunk=!0,this._transformCalled=!1,void(this._minSize=options.minSize)):new FirstChunk(options2)}if(util.inherits(FirstChunk,Transform),"function"==typeof options&&(transform=options,options={}),"function"!=typeof transform)throw new Error("transform function required");return FirstChunk.prototype._transform=function(chunk,enc,cb){return this._enc=enc,this._firstChunk?(this._firstChunk=!1,null==this._minSize?(transform.call(this,chunk,enc,cb),void(this._transformCalled=!0)):(this._buffer=chunk,void cb())):null==this._minSize?(this.push(chunk),void cb()):this._buffer.length=this._minSize?(transform.call(this,this._buffer.slice(),enc,function(){this.push(chunk),cb()}.bind(this)),this._transformCalled=!0,void(this._buffer=!1)):(this.push(chunk),void cb())},FirstChunk.prototype._flush=function(cb){return this._buffer?void(this._transformCalled?(this.push(this._buffer),cb()):transform.call(this,this._buffer.slice(),this._enc,cb)):void cb()},FirstChunk}var util=__webpack_require__(8),Transform=__webpack_require__(3).Transform;module.exports=function(){return ctor.apply(ctor,arguments)()},module.exports.ctor=ctor}).call(exports,__webpack_require__(1).Buffer)},function(module,exports){/*! + * for-in * - * This was originally inspired by * Copyright (c) 2014-2015, Jon Schlinkert. - * Licensed under the MIT License (MIT) + * Licensed under the MIT License. */ -"use strict";function randomatic(pattern,length,options){if("undefined"==typeof pattern)throw new Error("randomatic expects a string or number.");var custom=!1;1===arguments.length&&("string"==typeof pattern?length=pattern.length:isNumber(pattern)&&(options={},length=pattern,pattern="*")),"object"===typeOf(length)&&length.hasOwnProperty("chars")&&(options=length,pattern=options.chars,length=pattern.length,custom=!0);var opts=options||{},mask="",res="";for(-1!==pattern.indexOf("?")&&(mask+=opts.chars),-1!==pattern.indexOf("a")&&(mask+=type.lower),-1!==pattern.indexOf("A")&&(mask+=type.upper),-1!==pattern.indexOf("0")&&(mask+=type.number),-1!==pattern.indexOf("!")&&(mask+=type.special),-1!==pattern.indexOf("*")&&(mask+=type.all),custom&&(mask+=pattern);length--;)res+=mask.charAt(parseInt(Math.random()*mask.length,10));return res}var isNumber=__webpack_require__(92),typeOf=__webpack_require__(55);module.exports=randomatic;var type={lower:"abcdefghijklmnopqrstuvwxyz",upper:"ABCDEFGHIJKLMNOPQRSTUVWXYZ",number:"0123456789",special:"~!@#$%^&()_+-={}[];',."};type.all=type.lower+type.upper+type.number},function(module,exports){/*! - * repeat-string +"use strict";module.exports=function(o,fn,thisArg){for(var key in o)if(fn.call(thisArg,o[key],key,o)===!1)break}},function(module,exports,__webpack_require__){/*! + * for-own * * Copyright (c) 2014-2015, Jon Schlinkert. * Licensed under the MIT License. */ -"use strict";function repeat(str,num){if("string"!=typeof str)throw new TypeError("repeat-string expects a string.");if(1===num)return str;if(2===num)return str+str;var max=str.length*num;for((cache!==str||"undefined"==typeof cache)&&(cache=str,res="");max>res.length&&num>0&&(1&num&&(res+=str),num>>=1);)str+=str;return res.substr(0,max)}module.exports=repeat;var cache,res=""},function(module,exports){/*! - * preserve +"use strict";var forIn=__webpack_require__(228),hasOwn=Object.prototype.hasOwnProperty;module.exports=function(o,fn,thisArg){forIn(o,function(val,key){return hasOwn.call(o,key)?fn.call(thisArg,o[key],key,o):void 0})}},function(module,exports,__webpack_require__){/*! + * glob-base * - * Copyright (c) 2014-2015, Jon Schlinkert. - * Licensed under the MIT license. + * Copyright (c) 2015, Jon Schlinkert. + * Licensed under the MIT License. */ -"use strict";function randomize(){return Math.random().toString().slice(2,7)}exports.before=function(str,re){return str.replace(re,function(match){var id=randomize();return cache[id]=match,"__ID"+id+"__"})},exports.after=function(str){return str.replace(/__ID(.{5})__/g,function(_,id){return cache[id]})};var cache={}},function(module,exports){/*! - * expand-brackets +"use strict";function dirname(glob){return"/"===glob.slice(-1)?glob:path.dirname(glob)}var path=__webpack_require__(5),parent=__webpack_require__(83),isGlob=__webpack_require__(39);module.exports=function(pattern){if("string"!=typeof pattern)throw new TypeError("glob-base expects a string.");var res={};return res.base=parent(pattern),res.isGlob=isGlob(pattern),"."!==res.base?(res.glob=pattern.substr(res.base.length),"/"===res.glob.charAt(0)&&(res.glob=res.glob.substr(1))):res.glob=pattern,res.isGlob||(res.base=dirname(pattern),res.glob="."!==res.base?pattern.substr(res.base.length):pattern),"./"===res.glob.substr(0,2)&&(res.glob=res.glob.substr(2)),"/"===res.glob.charAt(0)&&(res.glob=res.glob.substr(1)),res}},function(module,exports,__webpack_require__){(function(process){"use strict";function isMatch(file,matcher){return"function"==typeof matcher?matcher(file.path):matcher instanceof RegExp?matcher.test(file.path):void 0}function isNegative(pattern){return"string"==typeof pattern?"!"===pattern[0]:pattern instanceof RegExp?!0:void 0}function indexGreaterThan(index){return function(obj){return obj.index>index}}function toGlob(obj){return obj.glob}function globIsSingular(glob){var globSet=glob.minimatch.set;return 1!==globSet.length?!1:globSet[0].every(function(value){return"string"==typeof value})}var through2=__webpack_require__(65),Combine=__webpack_require__(268),unique=__webpack_require__(303),glob=__webpack_require__(85),micromatch=__webpack_require__(259),resolveGlob=__webpack_require__(301),globParent=__webpack_require__(83),path=__webpack_require__(5),extend=__webpack_require__(223),gs={createStream:function(ourGlob,negatives,opt){function filterNegatives(filename,enc,cb){var matcha=isMatch.bind(null,filename);negatives.every(matcha)?cb(null,filename):cb()}ourGlob=resolveGlob(ourGlob,opt);var ourOpt=extend({},opt);delete ourOpt.root;var globber=new glob.Glob(ourGlob,ourOpt),basePath=opt.base||globParent(ourGlob)+path.sep,stream=through2.obj(opt,negatives.length?filterNegatives:void 0),found=!1;return globber.on("error",stream.emit.bind(stream,"error")),globber.once("end",function(){opt.allowEmpty!==!0&&!found&&globIsSingular(globber)&&stream.emit("error",new Error("File not found with singular glob: "+ourGlob)),stream.end()}),globber.on("match",function(filename){found=!0,stream.write({cwd:opt.cwd,base:basePath,path:filename})}),stream},create:function(globs,opt){function streamFromPositive(positive){var negativeGlobs=negatives.filter(indexGreaterThan(positive.index)).map(toGlob);return gs.createStream(positive.glob,negativeGlobs,opt)}opt||(opt={}),"string"!=typeof opt.cwd&&(opt.cwd=process.cwd()),"boolean"!=typeof opt.dot&&(opt.dot=!1),"boolean"!=typeof opt.silent&&(opt.silent=!0),"boolean"!=typeof opt.nonull&&(opt.nonull=!1),"boolean"!=typeof opt.cwdbase&&(opt.cwdbase=!1),opt.cwdbase&&(opt.base=opt.cwd),Array.isArray(globs)||(globs=[globs]);var positives=[],negatives=[],ourOpt=extend({},opt);if(delete ourOpt.root,globs.forEach(function(glob,index){if("string"!=typeof glob&&!(glob instanceof RegExp))throw new Error("Invalid glob at index "+index);var globArray=isNegative(glob)?negatives:positives;if(globArray===negatives&&"string"==typeof glob){var ourGlob=resolveGlob(glob,opt);glob=micromatch.matcher(ourGlob,ourOpt)}globArray.push({index:index,glob:glob})}),0===positives.length)throw new Error("Missing positive glob");if(1===positives.length)return streamFromPositive(positives[0]);var streams=positives.map(streamFromPositive),aggregate=new Combine(streams),uniqueStream=unique("path"),returnStream=aggregate.pipe(uniqueStream);return aggregate.on("error",function(err){returnStream.emit("error",err)}),returnStream}};module.exports=gs}).call(exports,__webpack_require__(2))},function(module,exports,__webpack_require__){(function(process){function globSync(pattern,options){if("function"==typeof options||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");return new GlobSync(pattern,options).found}function GlobSync(pattern,options){if(!pattern)throw new Error("must provide pattern");if("function"==typeof options||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof GlobSync))return new GlobSync(pattern,options);if(setopts(this,pattern,options),this.noprocess)return this;var n=this.minimatch.set.length;this.matches=new Array(n);for(var i=0;n>i;i++)this._process(this.minimatch.set[i],i,!1);this._finish()}module.exports=globSync,globSync.GlobSync=GlobSync;var fs=__webpack_require__(6),minimatch=__webpack_require__(55),path=(minimatch.Minimatch,__webpack_require__(85).Glob,__webpack_require__(8),__webpack_require__(5)),assert=__webpack_require__(41),isAbsolute=__webpack_require__(58),common=__webpack_require__(84),setopts=(common.alphasort,common.alphasorti,common.setopts),ownProp=common.ownProp,childrenIgnored=common.childrenIgnored;GlobSync.prototype._finish=function(){if(assert(this instanceof GlobSync),this.realpath){var self=this;this.matches.forEach(function(matchset,index){var set=self.matches[index]=Object.create(null);for(var p in matchset)try{p=self._makeAbs(p);var real=fs.realpathSync(p,self.realpathCache);set[real]=!0}catch(er){if("stat"!==er.syscall)throw er;set[self._makeAbs(p)]=!0}})}common.finish(this)},GlobSync.prototype._process=function(pattern,index,inGlobStar){assert(this instanceof GlobSync);for(var n=0;"string"==typeof pattern[n];)n++;var prefix;switch(n){case pattern.length:return void this._processSimple(pattern.join("/"),index);case 0:prefix=null;break;default:prefix=pattern.slice(0,n).join("/")}var read,remain=pattern.slice(n);null===prefix?read=".":isAbsolute(prefix)||isAbsolute(pattern.join("/"))?(prefix&&isAbsolute(prefix)||(prefix="/"+prefix),read=prefix):read=prefix;var abs=this._makeAbs(read);if(!childrenIgnored(this,read)){var isGlobStar=remain[0]===minimatch.GLOBSTAR;isGlobStar?this._processGlobStar(prefix,read,abs,remain,index,inGlobStar):this._processReaddir(prefix,read,abs,remain,index,inGlobStar)}},GlobSync.prototype._processReaddir=function(prefix,read,abs,remain,index,inGlobStar){var entries=this._readdir(abs,inGlobStar);if(entries){for(var pn=remain[0],negate=!!this.minimatch.negate,rawGlob=pn._glob,dotOk=this.dot||"."===rawGlob.charAt(0),matchedEntries=[],i=0;ii;i++){var newPattern,e=matchedEntries[i];newPattern=prefix?[prefix,e]:[e],this._process(newPattern.concat(remain),index,inGlobStar)}}else{this.matches[index]||(this.matches[index]=Object.create(null));for(var i=0;len>i;i++){var e=matchedEntries[i];prefix&&(e="/"!==prefix.slice(-1)?prefix+"/"+e:prefix+e),"/"!==e.charAt(0)||this.nomount||(e=path.join(this.root,e)),this.matches[index][e]=!0}}}},GlobSync.prototype._emitMatch=function(index,e){this._makeAbs(e);if(this.mark&&(e=this._mark(e)),!this.matches[index][e]){if(this.nodir){var c=this.cache[this._makeAbs(e)];if("DIR"===c||Array.isArray(c))return}this.matches[index][e]=!0,this.stat&&this._stat(e)}},GlobSync.prototype._readdirInGlobStar=function(abs){if(this.follow)return this._readdir(abs,!1);var entries,lstat;try{lstat=fs.lstatSync(abs)}catch(er){return null}var isSym=lstat.isSymbolicLink();return this.symlinks[abs]=isSym,isSym||lstat.isDirectory()?entries=this._readdir(abs,!1):this.cache[abs]="FILE",entries},GlobSync.prototype._readdir=function(abs,inGlobStar){if(inGlobStar&&!ownProp(this.symlinks,abs))return this._readdirInGlobStar(abs);if(ownProp(this.cache,abs)){var c=this.cache[abs];if(!c||"FILE"===c)return null;if(Array.isArray(c))return c}try{return this._readdirEntries(abs,fs.readdirSync(abs))}catch(er){return this._readdirError(abs,er),null}},GlobSync.prototype._readdirEntries=function(abs,entries){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);var below=gspref.concat(entries[i],remain);this._process(below,index,!0)}}}},GlobSync.prototype._processSimple=function(prefix,index){var exists=this._stat(prefix);if(this.matches[index]||(this.matches[index]=Object.create(null)),exists){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.matches[index][prefix]=!0}},GlobSync.prototype._stat=function(f){var abs=this._makeAbs(f),needDir="/"===f.slice(-1);if(f.length>this.maxLength)return!1;if(!this.stat&&ownProp(this.cache,abs)){var c=this.cache[abs];if(Array.isArray(c)&&(c="DIR"),!needDir||"DIR"===c)return c;if(needDir&&"FILE"===c)return!1}var stat=this.statCache[abs];if(!stat){var lstat;try{lstat=fs.lstatSync(abs)}catch(er){return!1}if(lstat.isSymbolicLink())try{stat=fs.statSync(abs)}catch(er){stat=lstat}else stat=lstat}this.statCache[abs]=stat;var c=stat.isDirectory()?"DIR":"FILE";return this.cache[abs]=this.cache[abs]||c,needDir&&"DIR"!==c?!1:c},GlobSync.prototype._mark=function(p){return common.mark(this,p)},GlobSync.prototype._makeAbs=function(f){return common.makeAbs(this,f)}}).call(exports,__webpack_require__(2))},function(module,exports,__webpack_require__){(function(process){function legacy(fs){function ReadStream(path,options){if(!(this instanceof ReadStream))return new ReadStream(path,options);Stream.call(this);var self=this;this.path=path,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=65536,options=options||{};for(var keys=Object.keys(options),index=0,length=keys.length;length>index;index++){var key=keys[index];this[key]=options[key]}if(this.encoding&&this.setEncoding(this.encoding),void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(void 0===this.end)this.end=1/0;else if("number"!=typeof this.end)throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}return null!==this.fd?void process.nextTick(function(){self._read()}):void fs.open(this.path,this.flags,this.mode,function(err,fd){return err?(self.emit("error",err),void(self.readable=!1)):(self.fd=fd,self.emit("open",fd),void self._read())})}function WriteStream(path,options){if(!(this instanceof WriteStream))return new WriteStream(path,options);Stream.call(this),this.path=path,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,options=options||{};for(var keys=Object.keys(options),index=0,length=keys.length;length>index;index++){var key=keys[index];this[key]=options[key]}if(void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],null===this.fd&&(this._open=fs.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}return{ReadStream:ReadStream,WriteStream:WriteStream}}var Stream=__webpack_require__(3).Stream;module.exports=legacy}).call(exports,__webpack_require__(2))},function(module,exports,__webpack_require__){(function(process){function patch(fs){constants.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&patchLchmod(fs),fs.lutimes||patchLutimes(fs),fs.chown=chownFix(fs.chown),fs.fchown=chownFix(fs.fchown),fs.lchown=chownFix(fs.lchown),fs.chmod=chownFix(fs.chmod),fs.fchmod=chownFix(fs.fchmod),fs.lchmod=chownFix(fs.lchmod),fs.chownSync=chownFixSync(fs.chownSync),fs.fchownSync=chownFixSync(fs.fchownSync),fs.lchownSync=chownFixSync(fs.lchownSync),fs.chmodSync=chownFix(fs.chmodSync),fs.fchmodSync=chownFix(fs.fchmodSync),fs.lchmodSync=chownFix(fs.lchmodSync),fs.lchmod||(fs.lchmod=function(path,mode,cb){process.nextTick(cb)},fs.lchmodSync=function(){}),fs.lchown||(fs.lchown=function(path,uid,gid,cb){process.nextTick(cb)},fs.lchownSync=function(){}),"win32"===process.platform&&(fs.rename=function(fs$rename){return function(from,to,cb){var start=Date.now();fs$rename(from,to,function CB(er){return er&&("EACCES"===er.code||"EPERM"===er.code)&&Date.now()-start<1e3?fs$rename(from,to,CB):void(cb&&cb(er))})}}(fs.rename)),fs.read=function(fs$read){return function(fd,buffer,offset,length,position,callback_){var callback;if(callback_&&"function"==typeof callback_){var eagCounter=0;callback=function(er,_,__){return er&&"EAGAIN"===er.code&&10>eagCounter?(eagCounter++,fs$read.call(fs,fd,buffer,offset,length,position,callback)):void callback_.apply(this,arguments)}}return fs$read.call(fs,fd,buffer,offset,length,position,callback)}}(fs.read),fs.readSync=function(fs$readSync){return function(fd,buffer,offset,length,position){for(var eagCounter=0;;)try{return fs$readSync.call(fs,fd,buffer,offset,length,position)}catch(er){if("EAGAIN"===er.code&&10>eagCounter){eagCounter++;continue}throw er}}}(fs.readSync)}function patchLchmod(fs){fs.lchmod=function(path,mode,callback){callback=callback||noop,fs.open(path,constants.O_WRONLY|constants.O_SYMLINK,mode,function(err,fd){return err?void callback(err):void fs.fchmod(fd,mode,function(err){fs.close(fd,function(err2){callback(err||err2)})})})},fs.lchmodSync=function(path,mode){var ret,fd=fs.openSync(path,constants.O_WRONLY|constants.O_SYMLINK,mode),threw=!0;try{ret=fs.fchmodSync(fd,mode),threw=!1}finally{if(threw)try{fs.closeSync(fd)}catch(er){}else fs.closeSync(fd)}return ret}}function patchLutimes(fs){constants.hasOwnProperty("O_SYMLINK")?(fs.lutimes=function(path,at,mt,cb){fs.open(path,constants.O_SYMLINK,function(er,fd){return cb=cb||noop,er?cb(er):void fs.futimes(fd,at,mt,function(er){fs.close(fd,function(er2){return cb(er||er2)})})})},fs.lutimesSync=function(path,at,mt){var ret,fd=fs.openSync(path,constants.O_SYMLINK),threw=!0;try{ret=fs.futimesSync(fd,at,mt),threw=!1}finally{if(threw)try{fs.closeSync(fd)}catch(er){}else fs.closeSync(fd)}return ret}):(fs.lutimes=function(_a,_b,_c,cb){process.nextTick(cb)},fs.lutimesSync=function(){})}function chownFix(orig){return orig?function(target,uid,gid,cb){return orig.call(fs,target,uid,gid,function(er,res){chownErOk(er)&&(er=null),cb(er,res)})}:orig}function chownFixSync(orig){return orig?function(target,uid,gid){try{return orig.call(fs,target,uid,gid)}catch(er){if(!chownErOk(er))throw er}}:orig}function chownErOk(er){if(!er)return!0;if("ENOSYS"===er.code)return!0;var nonroot=!process.getuid||0!==process.getuid();return!nonroot||"EINVAL"!==er.code&&"EPERM"!==er.code?!1:!0}var fs=__webpack_require__(86),constants=__webpack_require__(247),origCwd=process.cwd,cwd=null;process.cwd=function(){return cwd||(cwd=origCwd.call(process)),cwd};try{process.cwd()}catch(er){}var chdir=process.chdir;process.chdir=function(d){cwd=null,chdir.call(process,d)},module.exports=patch}).call(exports,__webpack_require__(2))},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__){var http=__webpack_require__(106),https=module.exports;for(var key in http)http.hasOwnProperty(key)&&(https[key]=http[key]);https.request=function(params,cb){return params||(params={}),params.scheme="https",params.protocol="https:",http.request.call(this,params,cb)}},function(module,exports){exports.read=function(buffer,offset,isLE,mLen,nBytes){var e,m,eLen=8*nBytes-mLen-1,eMax=(1<>1,nBits=-7,i=isLE?nBytes-1:0,d=isLE?-1:1,s=buffer[offset+i];for(i+=d,e=s&(1<<-nBits)-1,s>>=-nBits,nBits+=eLen;nBits>0;e=256*e+buffer[offset+i],i+=d,nBits-=8);for(m=e&(1<<-nBits)-1,e>>=-nBits,nBits+=mLen;nBits>0;m=256*m+buffer[offset+i],i+=d,nBits-=8);if(0===e)e=1-eBias;else{if(e===eMax)return m?NaN:(s?-1:1)*(1/0);m+=Math.pow(2,mLen),e-=eBias}return(s?-1:1)*m*Math.pow(2,e-mLen)},exports.write=function(buffer,value,offset,isLE,mLen,nBytes){var e,m,c,eLen=8*nBytes-mLen-1,eMax=(1<>1,rt=23===mLen?Math.pow(2,-24)-Math.pow(2,-77):0,i=isLE?0:nBytes-1,d=isLE?1:-1,s=0>value||0===value&&0>1/value?1:0;for(value=Math.abs(value),isNaN(value)||value===1/0?(m=isNaN(value)?1:0,e=eMax):(e=Math.floor(Math.log(value)/Math.LN2),value*(c=Math.pow(2,-e))<1&&(e--,c*=2),value+=e+eBias>=1?rt/c:rt*Math.pow(2,1-eBias),value*c>=2&&(e++,c/=2),e+eBias>=eMax?(m=0,e=eMax):e+eBias>=1?(m=(value*c-1)*Math.pow(2,mLen),e+=eBias):(m=value*Math.pow(2,eBias-1)*Math.pow(2,mLen),e=0));mLen>=8;buffer[offset+i]=255&m,i+=d,m/=256,mLen-=8);for(e=e<0;buffer[offset+i]=255&e,i+=d,e/=256,eLen-=8);buffer[offset+i-d]|=128*s}},function(module,exports,__webpack_require__){(function(process){function inflight(key,cb){return reqs[key]?(reqs[key].push(cb),null):(reqs[key]=[cb],makeres(key))}function makeres(key){return once(function RES(){for(var cbs=reqs[key],len=cbs.length,args=slice(arguments),i=0;len>i;i++)cbs[i].apply(null,args);cbs.length>len?(cbs.splice(0,len),process.nextTick(function(){RES.apply(null,args)})):delete reqs[key]})}function slice(args){for(var length=args.length,array=[],i=0;length>i;i++)array[i]=args[i];return array}var wrappy=__webpack_require__(115),reqs=Object.create(null),once=__webpack_require__(57);module.exports=wrappy(inflight)}).call(exports,__webpack_require__(2))},function(module,exports,__webpack_require__){"use strict";function _normalizeFamily(family){return family?family.toLowerCase():"ipv4"}var ip=exports,Buffer=__webpack_require__(1).Buffer,os=__webpack_require__(98);ip.toBuffer=function(ip,buff,offset){offset=~~offset;var result;if(this.isV4Format(ip))result=buff||new Buffer(offset+4),ip.split(/\./g).map(function(byte){result[offset++]=255&parseInt(byte,10)});else if(this.isV6Format(ip)){var i,sections=ip.split(":",8);for(i=0;i0;i--)argv.push("0");sections.splice.apply(sections,argv)}for(result=buff||new Buffer(offset+16),i=0;i>8&255,result[offset++]=255&word}}if(!result)throw Error("Invalid ip address: "+ip);return result},ip.toString=function(buff,offset,length){offset=~~offset,length=length||buff.length-offset;var result=[];if(4===length){for(var i=0;length>i;i++)result.push(buff[offset+i]);result=result.join(".")}else if(16===length){for(var i=0;length>i;i+=2)result.push(buff.readUInt16BE(offset+i).toString(16));result=result.join(":"),result=result.replace(/(^|:)0(:0)*:0(:|$)/,"$1::$3"),result=result.replace(/:{3,4}/,"::")}return result};var ipv4Regex=/^(\d{1,3}\.){3,3}\d{1,3}$/,ipv6Regex=/^(::)?(((\d{1,3}\.){3}(\d{1,3}){1})?([0-9a-f]){0,4}:{0,2}){1,8}(::)?$/i;ip.isV4Format=function(ip){return ipv4Regex.test(ip)},ip.isV6Format=function(ip){return ipv6Regex.test(ip)},ip.fromPrefixLen=function(prefixlen,family){family=prefixlen>32?"ipv6":_normalizeFamily(family);var len=4;"ipv6"===family&&(len=16);for(var buff=new Buffer(len),i=0,n=buff.length;n>i;++i){var bits=8;8>prefixlen&&(bits=prefixlen),prefixlen-=bits,buff[i]=~(255>>bits)}return ip.toString(buff)},ip.mask=function mask(addr,mask){addr=ip.toBuffer(addr),mask=ip.toBuffer(mask);var result=new Buffer(Math.max(addr.length,mask.length));if(addr.length===mask.length)for(var i=0;i=numberOfAddresses?ip.fromLong(networkAddress):ip.fromLong(networkAddress+1),lastAddress:2>=numberOfAddresses?ip.fromLong(networkAddress+numberOfAddresses-1):ip.fromLong(networkAddress+numberOfAddresses-2),broadcastAddress:ip.fromLong(networkAddress+numberOfAddresses-1),subnetMask:mask,subnetMaskLength:maskLength,numHosts:2>=numberOfAddresses?numberOfAddresses:numberOfAddresses-2,length:numberOfAddresses,contains:function(other){return networkAddress===ip.toLong(ip.mask(other,mask))}}},ip.cidrSubnet=function(cidrString){var cidrParts=cidrString.split("/"),addr=cidrParts[0];if(2!==cidrParts.length)throw new Error("invalid CIDR subnet: "+addr);var mask=ip.fromPrefixLen(parseInt(cidrParts[1],10));return ip.subnet(addr,mask)},ip.not=function(addr){for(var buff=ip.toBuffer(addr),i=0;ia.length&&(buff=b,other=a);for(var offset=buff.length-other.length,i=offset;ii;i++)if(0!==b[i])return!1;var word=b.readUInt16BE(10);if(0!==word&&65535!==word)return!1;for(var i=0;4>i;i++)if(a[i]!==b[i+12])return!1;return!0},ip.isPrivate=function(addr){return/^(::f{4}:)?10\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})$/.test(addr)||/^(::f{4}:)?192\.168\.([0-9]{1,3})\.([0-9]{1,3})$/.test(addr)||/^(::f{4}:)?172\.(1[6-9]|2\d|30|31)\.([0-9]{1,3})\.([0-9]{1,3})$/.test(addr)||/^(::f{4}:)?127\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})$/.test(addr)||/^(::f{4}:)?169\.254\.([0-9]{1,3})\.([0-9]{1,3})$/.test(addr)||/^fc00:/i.test(addr)||/^fe80:/i.test(addr)||/^::1$/.test(addr)||/^::$/.test(addr)},ip.isPublic=function(addr){return!ip.isPrivate(addr)},ip.isLoopback=function(addr){return/^(::f{4}:)?127\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})/.test(addr)||/^fe80::1$/.test(addr)||/^::1$/.test(addr)||/^::$/.test(addr)},ip.loopback=function(family){if(family=_normalizeFamily(family),"ipv4"!==family&&"ipv6"!==family)throw new Error("family must be ipv4 or ipv6");return"ipv4"===family?"127.0.0.1":"fe80::1"},ip.address=function(name,family){var all,interfaces=os.networkInterfaces();if(family=_normalizeFamily(family),name&&"private"!==name&&"public"!==name){var res=interfaces[name].filter(function(details){var itemFamily=details.family.toLowerCase();return itemFamily===family});if(0===res.length)return;return res[0].address}var all=Object.keys(interfaces).map(function(nic){var addresses=interfaces[nic].filter(function(details){return details.family=details.family.toLowerCase(),details.family!==family||ip.isLoopback(details.address)?!1:name?"public"===name?!ip.isPrivate(details.address):ip.isPrivate(details.address):!0});return addresses.length?addresses[0].address:void 0}).filter(Boolean);return all.length?all[0]:ip.loopback(family)},ip.toLong=function(ip){var ipl=0;return ip.split(".").forEach(function(octet){ipl<<=8,ipl+=parseInt(octet)}),ipl>>>0},ip.fromLong=function(ipl){return(ipl>>>24)+"."+(ipl>>16&255)+"."+(ipl>>8&255)+"."+(255&ipl)}},function(module,exports){module.exports=function(obj){return!(null==obj||!(obj._isBuffer||obj.constructor&&"function"==typeof obj.constructor.isBuffer&&obj.constructor.isBuffer(obj)))}},function(module,exports){/*! + * is-dotfile * - * Copyright (c) 2015 Jon Schlinkert. + * Copyright (c) 2015 Jon Schlinkert, contributors. * Licensed under the MIT license. */ -"use strict";function brackets(str){var negated=!1;-1!==str.indexOf("[^")&&(negated=!0,str=str.split("[^").join("[")),-1!==str.indexOf("[!")&&(negated=!0,str=str.split("[!").join("["));for(var a=str.split("["),b=str.split("]"),imbalanced=a.length!==b.length,parts=str.split(/(?::\]\[:|\[?\[:|:\]\]?)/),len=parts.length,i=0,end="",beg="",res=[];len--;){var inner=parts[i++];("^[!"===inner||"[!"===inner)&&(inner="",negated=!0);var prefix=negated?"^":"",ch=POSIX[inner];ch?res.push("["+prefix+ch+"]"):inner&&(/^\[?\w-\w\]?$/.test(inner)?i===parts.length?res.push("["+prefix+inner):1===i?res.push(prefix+inner+"]"):res.push(prefix+inner):1===i?beg+=inner:i===parts.length?end+=inner:res.push("["+prefix+inner+"]"))}var result=res.join("|"),rlen=res.length||1;return rlen>1&&(result="(?:"+result+")",rlen=1),beg&&(rlen++,"["===beg.charAt(0)&&(imbalanced?beg="\\["+beg.slice(1):beg+="]"),result=beg+result),end&&(rlen++,"]"===end.slice(-1)&&(end=imbalanced?end.slice(0,end.length-1)+"\\]":"["+end),result+=end),rlen>1&&(result=result.split("][").join("]|["),-1===result.indexOf("|")||/\(\?/.test(result)||(result="(?:"+result+")")),result=result.replace(/\[+=|=\]+/g,"\\b")}var POSIX={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E",punct:"!\"#$%&'()\\*+,-./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};module.exports=brackets,brackets.makeRe=function(pattern){try{return new RegExp(brackets(pattern))}catch(err){}},brackets.isMatch=function(str,pattern){try{return brackets.makeRe(pattern).test(str)}catch(err){return!1}},brackets.match=function(arr,pattern){for(var len=arr.length,i=0,res=arr.slice(),re=brackets.makeRe(pattern);len>i;){var ele=arr[i++];re.test(ele)&&res.splice(i,1)}return res}},function(module,exports,__webpack_require__){/*! - * extglob +module.exports=function(str){if(46===str.charCodeAt(0)&&-1===str.indexOf("/",1))return!0;var last=str.lastIndexOf("/");return-1!==last?46===str.charCodeAt(last+1):!1}},function(module,exports,__webpack_require__){/*! + * is-equal-shallow * * Copyright (c) 2015, Jon Schlinkert. * Licensed under the MIT License. */ -"use strict";function extglob(str,opts){opts=opts||{};var o={},i=0;str=str.replace(/!\(([^\w*()])/g,"$1!("),str=str.replace(/([*\/])\.!\([*]\)/g,function(m,ch){return escape("/"===ch?"\\/[^.]+":"[^.]+")});var key=str+String(!!opts.regex)+String(!!opts.contains)+String(!!opts.escape);if(cache.hasOwnProperty(key))return cache[key];re instanceof RegExp||(re=regex()),opts.negate=!1;for(var m;m=re.exec(str);){var prefix=m[1],inner=m[3];"!"===prefix&&(opts.negate=!0);var id="__EXTGLOB_"+i++ +"__";o[id]=wrap(inner,prefix,opts.escape),str=str.split(m[0]).join(id)}for(var keys=Object.keys(o),len=keys.length;len--;){var prop=keys[len];str=str.split(prop).join(o[prop])}var result=opts.regex?toRegex(str,opts.contains,opts.negate):str;return result=result.split(".").join("\\."),cache[key]=result}function wrap(inner,prefix,esc){switch(esc&&(inner=escape(inner)),prefix){case"!":return"(?!"+inner+")[^/]"+(esc?"%%%~":"*?");case"@":return"(?:"+inner+")";case"+":return"(?:"+inner+")+";case"*":return"(?:"+inner+")"+(esc?"%%":"*");case"?":return"(?:"+inner+"|)";default:return inner}}function escape(str){return str=str.split("*").join("[^/]%%%~"),str=str.split(".").join("\\.")}function regex(){return/(\\?[@?!+*$]\\?)(\(([^()]*?)\))/}function negate(str){return"(?!^"+str+").*$"}function toRegex(pattern,contains,isNegated){var prefix=contains?"^":"",after=contains?"$":"";return pattern="(?:"+pattern+")"+after,isNegated&&(pattern=prefix+negate(pattern)),new RegExp(prefix+pattern)}var re,cache=(__webpack_require__(38),{});module.exports=extglob},function(module,exports){/*! - * filename-regex - * - * Copyright (c) 2014-2015, Jon Schlinkert - * Licensed under the MIT license. - */ -module.exports=function(){return/([^\\\/]+)$/}},function(module,exports){module.exports=function(obj){return!(null==obj||!(obj._isBuffer||obj.constructor&&"function"==typeof obj.constructor.isBuffer&&obj.constructor.isBuffer(obj)))}},function(module,exports){/*! - * normalize-path +"use strict";var isPrimitive=__webpack_require__(90);module.exports=function(a,b){if(!a&&!b)return!0;if(!a&&b||a&&!b)return!1;var key,numKeysA=0,numKeysB=0;for(key in b)if(numKeysB++,!isPrimitive(b[key])||!a.hasOwnProperty(key)||a[key]!==b[key])return!1;for(key in a)numKeysA++;return numKeysA===numKeysB}},function(module,exports){"use strict";var isStream=module.exports=function(stream){return null!==stream&&"object"==typeof stream&&"function"==typeof stream.pipe};isStream.writable=function(stream){return isStream(stream)&&stream.writable!==!1&&"function"==typeof stream._write&&"object"==typeof stream._writableState},isStream.readable=function(stream){return isStream(stream)&&stream.readable!==!1&&"function"==typeof stream._read&&"object"==typeof stream._readableState},isStream.duplex=function(stream){return isStream.writable(stream)&&isStream.readable(stream)}},function(module,exports){exports=module.exports=function(bytes){for(var i=0;i0?!0:Array.isArray(glob)?0!==glob.length&&every(glob):!1}},function(module,exports,__webpack_require__){/*! + * isobject * * Copyright (c) 2014-2015, Jon Schlinkert. - * Licensed under the MIT License + * Licensed under the MIT License. */ -module.exports=function(str,stripTrailing){if("string"!=typeof str)throw new TypeError("expected a string");return str=str.replace(/[\\\/]+/g,"/"),stripTrailing!==!1&&(str=str.replace(/\/$/,"")),str}},function(module,exports,__webpack_require__){/*! - * object.omit +"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.11.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-beta6","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-config-standard":"^4.4.0","eslint-plugin-standard":"^1.3.1","glob-stream":"5.3.1",gulp:"^3.9.0","gulp-bump":"^1.0.0","gulp-eslint":"^1.0.0","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){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. * Licensed under the MIT License. */ -"use strict";var isObject=__webpack_require__(238),forOwn=__webpack_require__(236);module.exports=function(obj,keys){if(!isObject(obj))return{};var fn,keys=[].concat.apply([],[].slice.call(arguments,1)),last=keys[keys.length-1],res={};"function"==typeof last&&(fn=keys.pop());var isFunction="function"==typeof fn;return keys.length||isFunction?(forOwn(obj,function(value,key){-1===keys.indexOf(key)&&(isFunction?fn(value,key,obj)&&(res[key]=value):res[key]=value)}),res):obj}},function(module,exports,__webpack_require__){/*! - * for-own +"use strict";function micromatch(files,patterns,opts){if(!files||!patterns)return[];if(opts=opts||{},"undefined"==typeof opts.cache&&(opts.cache=!0),!Array.isArray(patterns))return match(files,patterns,opts);for(var len=patterns.length,i=0,omit=[],keep=[];len--;){var glob=patterns[i++];"string"==typeof glob&&33===glob.charCodeAt(0)?omit.push.apply(omit,match(files,glob.slice(1),opts)):keep.push.apply(keep,match(files,glob,opts))}return utils.diff(keep,omit)}function match(files,pattern,opts){if("string"!==utils.typeOf(files)&&!Array.isArray(files))throw new Error(msg("match","files","a string or array"));files=utils.arrayify(files),opts=opts||{};var negate=opts.negate||!1,orig=pattern;"string"==typeof pattern&&(negate="!"===pattern.charAt(0),negate&&(pattern=pattern.slice(1)),opts.nonegate===!0&&(negate=!1));for(var _isMatch=matcher(pattern,opts),len=files.length,i=0,res=[];len>i;){var file=files[i++],fp=utils.unixify(file,opts);_isMatch(fp)&&res.push(fp)}if(0===res.length){if(opts.failglob===!0)throw new Error('micromatch.match() found no matches for: "'+orig+'".');(opts.nonull||opts.nullglob)&&res.push(utils.unescapeGlob(orig))}return negate&&(res=utils.diff(files,res)),opts.ignore&&opts.ignore.length&&(pattern=opts.ignore,opts=utils.omit(opts,["ignore"]),res=utils.diff(res,micromatch(res,pattern,opts))),opts.nodupes?utils.unique(res):res}function filter(patterns,opts){if(!Array.isArray(patterns)&&"string"!=typeof patterns)throw new TypeError(msg("filter","patterns","a string or array"));patterns=utils.arrayify(patterns);for(var len=patterns.length,i=0,patternMatchers=Array(len);len>i;)patternMatchers[i]=matcher(patterns[i++],opts);return function(fp){if(null==fp)return[];var len=patternMatchers.length,i=0,res=!0;for(fp=utils.unixify(fp,opts);len>i;){var fn=patternMatchers[i++];if(!fn(fp)){res=!1;break}}return res}}function isMatch(fp,pattern,opts){if("string"!=typeof fp)throw new TypeError(msg("isMatch","filepath","a string"));return fp=utils.unixify(fp,opts),"object"===utils.typeOf(pattern)?matcher(fp,pattern):matcher(pattern,opts)(fp)}function contains(fp,pattern,opts){if("string"!=typeof fp)throw new TypeError(msg("contains","pattern","a string"));return opts=opts||{},opts.contains=""!==pattern,fp=utils.unixify(fp,opts),opts.contains&&!utils.isGlob(pattern)?-1!==fp.indexOf(pattern):matcher(pattern,opts)(fp)}function any(fp,patterns,opts){if(!Array.isArray(patterns)&&"string"!=typeof patterns)throw new TypeError(msg("any","patterns","a string or array"));patterns=utils.arrayify(patterns);var len=patterns.length;for(fp=utils.unixify(fp,opts);len--;){var isMatch=matcher(patterns[len],opts);if(isMatch(fp))return!0}return!1}function matchKeys(obj,glob,options){if("object"!==utils.typeOf(obj))throw new TypeError(msg("matchKeys","first argument","an object"));var fn=matcher(glob,options),res={};for(var key in obj)obj.hasOwnProperty(key)&&fn(key)&&(res[key]=obj[key]);return res}function matcher(pattern,opts){if("function"==typeof pattern)return pattern;if(pattern instanceof RegExp)return function(fp){return pattern.test(fp)};if("string"!=typeof pattern)throw new TypeError(msg("matcher","pattern","a string, regex, or function"));if(pattern=utils.unixify(pattern,opts),!utils.isGlob(pattern))return utils.matchPath(pattern,opts);var re=makeRe(pattern,opts);return opts&&opts.matchBase?utils.hasFilename(re,opts):function(fp){return fp=utils.unixify(fp,opts),re.test(fp)}}function toRegex(glob,options){var opts=Object.create(options||{}),flags=opts.flags||"";opts.nocase&&-1===flags.indexOf("i")&&(flags+="i");var parsed=expand(glob,opts);opts.negated=opts.negated||parsed.negated,opts.negate=opts.negated,glob=wrapGlob(parsed.pattern,opts);var re;try{return re=new RegExp(glob,flags)}catch(err){if(err.reason="micromatch invalid regex: ("+re+")",opts.strict)throw new SyntaxError(err)}return/$^/}function wrapGlob(glob,opts){var prefix=opts&&!opts.contains?"^":"",after=opts&&!opts.contains?"$":"";return glob="(?:"+glob+")"+after,opts&&opts.negate?prefix+("(?!^"+glob+").*$"):prefix+glob}function makeRe(glob,opts){if("string"!==utils.typeOf(glob))throw new Error(msg("makeRe","glob","a string"));return utils.cache(toRegex,glob,opts)}function msg(method,what,type){return"micromatch."+method+"(): "+what+" should be "+type+"."}var expand=__webpack_require__(261),utils=__webpack_require__(54);micromatch.any=any,micromatch.braces=micromatch.braceExpand=utils.braces,micromatch.contains=contains,micromatch.expand=expand,micromatch.filter=filter,micromatch.isMatch=isMatch,micromatch.makeRe=makeRe,micromatch.match=match,micromatch.matcher=matcher,micromatch.matchKeys=matchKeys,module.exports=micromatch},function(module,exports){"use strict";function reverse(object,prepender){return Object.keys(object).reduce(function(reversed,key){var newKey=prepender?prepender+key:key;return reversed[object[key]]=newKey,reversed},{})}var unesc,temp,chars={};chars.escapeRegex={"?":/\?/g,"@":/\@/g,"!":/\!/g,"+":/\+/g,"*":/\*/g,"(":/\(/g,")":/\)/g,"[":/\[/g,"]":/\]/g},chars.ESC={"?":"__UNESC_QMRK__","@":"__UNESC_AMPE__","!":"__UNESC_EXCL__","+":"__UNESC_PLUS__","*":"__UNESC_STAR__",",":"__UNESC_COMMA__","(":"__UNESC_LTPAREN__",")":"__UNESC_RTPAREN__","[":"__UNESC_LTBRACK__","]":"__UNESC_RTBRACK__"},chars.UNESC=unesc||(unesc=reverse(chars.ESC,"\\")),chars.ESC_TEMP={"?":"__TEMP_QMRK__","@":"__TEMP_AMPE__","!":"__TEMP_EXCL__","*":"__TEMP_STAR__","+":"__TEMP_PLUS__",",":"__TEMP_COMMA__","(":"__TEMP_LTPAREN__",")":"__TEMP_RTPAREN__","[":"__TEMP_LTBRACK__","]":"__TEMP_RTBRACK__"},chars.TEMP=temp||(temp=reverse(chars.ESC_TEMP)),module.exports=chars},function(module,exports,__webpack_require__){/*! + * micromatch * * Copyright (c) 2014-2015, Jon Schlinkert. * Licensed under the MIT License. */ -"use strict";var forIn=__webpack_require__(237),hasOwn=Object.prototype.hasOwnProperty;module.exports=function(o,fn,thisArg){forIn(o,function(val,key){return hasOwn.call(o,key)?fn.call(thisArg,o[key],key,o):void 0})}},function(module,exports){/*! - * for-in +"use strict";function expand(pattern,options){if("string"!=typeof pattern)throw new TypeError("micromatch.expand(): argument should be a string.");var glob=new Glob(pattern,options||{}),opts=glob.options;if(!utils.isGlob(pattern))return glob.pattern=glob.pattern.replace(/([\/.])/g,"\\$1"),glob;if(glob.pattern=glob.pattern.replace(/(\+)(?!\()/g,"\\$1"),glob.pattern=glob.pattern.split("$").join("\\$"),"boolean"!=typeof opts.braces&&"boolean"!=typeof opts.nobraces&&(opts.braces=!0),".*"===glob.pattern)return{pattern:"\\."+star,tokens:tok,options:opts};if("*"===glob.pattern)return{pattern:oneStar(opts.dot),tokens:tok,options:opts};glob.parse();var tok=glob.tokens;return tok.is.negated=opts.negated,opts.dotfiles!==!0&&!tok.is.dotfile||opts.dot===!1||(opts.dotfiles=!0,opts.dot=!0),opts.dotdirs!==!0&&!tok.is.dotdir||opts.dot===!1||(opts.dotdirs=!0,opts.dot=!0),/[{,]\./.test(glob.pattern)&&(opts.makeRe=!1,opts.dot=!0),opts.nonegate!==!0&&(opts.negated=glob.negated),"."===glob.pattern.charAt(0)&&"/"!==glob.pattern.charAt(1)&&(glob.pattern="\\"+glob.pattern),glob.track("before braces"),tok.is.braces&&glob.braces(),glob.track("after braces"),glob.track("before extglob"),tok.is.extglob&&glob.extglob(),glob.track("after extglob"),glob.track("before brackets"),tok.is.brackets&&glob.brackets(),glob.track("after brackets"),glob._replace("[!","[^"),glob._replace("(?","(%~"),glob._replace(/\[\]/,"\\[\\]"),glob._replace("/[","/"+(opts.dot?dotfiles:nodot)+"[",!0),glob._replace("/?","/"+(opts.dot?dotfiles:nodot)+"[^/]",!0),glob._replace("/.","/(?=.)\\.",!0),glob._replace(/^(\w):([\\\/]+?)/gi,"(?=.)$1:$2",!0),-1!==glob.pattern.indexOf("[^")&&(glob.pattern=negateSlash(glob.pattern)),opts.globstar!==!1&&"**"===glob.pattern?glob.pattern=globstar(opts.dot):(glob._replace(/(\/\*)+/g,function(match){var len=match.length/2;return 1===len?match:"(?:\\/*){"+len+"}"}),glob.pattern=balance(glob.pattern,"[","]"),glob.escape(glob.pattern),tok.is.globstar&&(glob.pattern=collapse(glob.pattern,"/**"),glob.pattern=collapse(glob.pattern,"**/"),glob._replace("/**/","(?:/"+globstar(opts.dot)+"/|/)",!0),glob._replace(/\*{2,}/g,"**"),glob._replace(/(\w+)\*(?!\/)/g,"$1[^/]*?",!0),glob._replace(/\*\*\/\*(\w)/g,globstar(opts.dot)+"\\/"+(opts.dot?dotfiles:nodot)+"[^/]*?$1",!0),opts.dot!==!0&&glob._replace(/\*\*\/(.)/g,"(?:**\\/|)$1"),(""!==tok.path.dirname||/,\*\*|\*\*,/.test(glob.orig))&&glob._replace("**",globstar(opts.dot),!0)),glob._replace(/\/\*$/,"\\/"+oneStar(opts.dot),!0),glob._replace(/(?!\/)\*$/,star,!0),glob._replace(/([^\/]+)\*/,"$1"+oneStar(!0),!0),glob._replace("*",oneStar(opts.dot),!0),glob._replace("?.","?\\.",!0),glob._replace("?:","?:",!0),glob._replace(/\?+/g,function(match){var len=match.length;return 1===len?qmark:qmark+"{"+len+"}"}),glob._replace(/\.([*\w]+)/g,"\\.$1"),glob._replace(/\[\^[\\\/]+\]/g,qmark),glob._replace(/\/+/g,"\\/"),glob._replace(/\\{2,}/g,"\\")),glob.unescape(glob.pattern),glob._replace("__UNESC_STAR__","*"),glob._replace("?.","?\\."),glob._replace("[^\\/]",qmark),glob.pattern.length>1&&/^[\[?*]/.test(glob.pattern)&&(glob.pattern=(opts.dot?dotfiles:nodot)+glob.pattern),glob}function collapse(str,ch){var res=str.split(ch),isFirst=""===res[0],isLast=""===res[res.length-1];return res=res.filter(Boolean),isFirst&&res.unshift(""),isLast&&res.push(""),res.join(ch)}function negateSlash(str){return str.replace(/\[\^([^\]]*?)\]/g,function(match,inner){return-1===inner.indexOf("/")&&(inner="\\/"+inner),"[^"+inner+"]"})}function balance(str,a,b){var aarr=str.split(a),alen=aarr.join("").length,blen=str.split(b).join("").length;return alen!==blen?(str=aarr.join("\\"+a),str.split(b).join("\\"+b)):str}function oneStar(dotfile){return dotfile?"(?!"+dotfileGlob+")(?=.)"+star:nodot+star}function globstar(dotfile){return dotfile?twoStarDot:"(?:(?!(?:\\/|^)\\.).)*?"}var utils=__webpack_require__(54),Glob=__webpack_require__(262);module.exports=expand;var qmark="[^/]",star=qmark+"*?",nodot="(?!\\.)(?=.)",dotfileGlob="(?:\\/|^)\\.{1,2}($|\\/)",dotfiles="(?!"+dotfileGlob+")(?=.)",twoStarDot="(?:(?!"+dotfileGlob+").)*?"},function(module,exports,__webpack_require__){"use strict";function esc(str){return str=str.split("?").join("%~"),str=str.split("*").join("%%")}function unesc(str){return str=str.split("%~").join("?"),str=str.split("%%").join("*")}var chars=__webpack_require__(260),utils=__webpack_require__(54),Glob=module.exports=function Glob(pattern,options){return this instanceof Glob?(this.options=options||{},this.pattern=pattern,this.history=[],this.tokens={},void this.init(pattern)):new Glob(pattern,options)};Glob.prototype.init=function(pattern){this.orig=pattern,this.negated=this.isNegated(),this.options.track=this.options.track||!1,this.options.makeRe=!0},Glob.prototype.track=function(msg){this.options.track&&this.history.push({msg:msg,pattern:this.pattern})},Glob.prototype.isNegated=function(){return 33===this.pattern.charCodeAt(0)?(this.pattern=this.pattern.slice(1),!0):!1},Glob.prototype.braces=function(){if(this.options.nobraces!==!0&&this.options.nobrace!==!0){var a=this.pattern.match(/[\{\(\[]/g),b=this.pattern.match(/[\}\)\]]/g);a&&b&&a.length!==b.length&&(this.options.makeRe=!1);var expanded=utils.braces(this.pattern,this.options);this.pattern=expanded.join("|")}},Glob.prototype.brackets=function(){this.options.nobrackets!==!0&&(this.pattern=utils.brackets(this.pattern))},Glob.prototype.extglob=function(){this.options.noextglob!==!0&&utils.isExtglob(this.pattern)&&(this.pattern=utils.extglob(this.pattern,{escape:!0}))},Glob.prototype.parse=function(pattern){return this.tokens=utils.parseGlob(pattern||this.pattern,!0),this.tokens},Glob.prototype._replace=function(a,b,escape){this.track('before (find): "'+a+'" (replace with): "'+b+'"'),escape&&(b=esc(b)),a&&b&&"string"==typeof a?this.pattern=this.pattern.split(a).join(b):this.pattern=this.pattern.replace(a,b),this.track("after")},Glob.prototype.escape=function(str){this.track("before escape: ");var re=/["\\](['"]?[^"'\\]['"]?)/g;this.pattern=str.replace(re,function($0,$1){var o=chars.ESC,ch=o&&o[$1];return ch?ch:/[a-z]/i.test($0)?$0.split("\\").join(""):$0}),this.track("after escape: ")},Glob.prototype.unescape=function(str){var re=/__([A-Z]+)_([A-Z]+)__/g;this.pattern=str.replace(re,function($0,$1){return chars[$1][$0]}),this.pattern=unesc(this.pattern)}},function(module,exports,__webpack_require__){(function(Buffer){function stringToStringTuples(str){var tuples=[],parts=str.split("/").slice(1);if(1===parts.length&&""===parts[0])return[];for(var p=0;p=parts.length)throw ParseError("invalid address: "+str);tuples.push([part,parts[p]])}return tuples}function stringTuplesToString(tuples){var parts=[];return map(tuples,function(tup){var proto=protoFromTuple(tup);parts.push(proto.name),tup.length>1&&parts.push(tup[1])}),"/"+parts.join("/")}function stringTuplesToTuples(tuples){return map(tuples,function(tup){var proto=protoFromTuple(tup);return tup.length>1?[proto.code,convert.toBuffer(proto.code,tup[1])]:[proto.code]})}function tuplesToStringTuples(tuples){return map(tuples,function(tup){var proto=protoFromTuple(tup);return tup.length>1?[proto.code,convert.toString(proto.code,tup[1])]:[proto.code]})}function tuplesToBuffer(tuples){return fromBuffer(Buffer.concat(map(tuples,function(tup){var proto=protoFromTuple(tup),buf=new Buffer([proto.code]);return tup.length>1&&(buf=Buffer.concat([buf,tup[1]])),buf})))}function bufferToTuples(buf){for(var tuples=[],i=0;ibuf.length)throw ParseError("Invalid address buffer: "+buf.toString("hex"));tuples.push([code,addr])}return tuples}function bufferToString(buf){var a=bufferToTuples(buf),b=tuplesToStringTuples(a);return stringTuplesToString(b)}function stringToBuffer(str){str=cleanPath(str);var a=stringToStringTuples(str),b=stringTuplesToTuples(a);return tuplesToBuffer(b)}function fromString(str){return stringToBuffer(str)}function fromBuffer(buf){var err=validateBuffer(buf);if(err)throw err;return new Buffer(buf)}function validateBuffer(buf){bufferToTuples(buf)}function isValidBuffer(buf){try{return validateBuffer(buf),!0}catch(e){return!1}}function cleanPath(str){return"/"+filter(str.trim().split("/")).join("/")}function ParseError(str){return new Error("Error parsing address: "+str)}function protoFromTuple(tup){var proto=protocols(tup[0]);if(tup.length>1&&0===proto.size)throw ParseError("tuple has address but protocol size is 0");return proto}var map=__webpack_require__(53),filter=__webpack_require__(255),convert=__webpack_require__(264),protocols=__webpack_require__(56);module.exports={stringToStringTuples:stringToStringTuples,stringTuplesToString:stringTuplesToString,tuplesToStringTuples:tuplesToStringTuples,stringTuplesToTuples:stringTuplesToTuples,bufferToTuples:bufferToTuples,tuplesToBuffer:tuplesToBuffer,bufferToString:bufferToString,stringToBuffer:stringToBuffer,fromString:fromString,fromBuffer:fromBuffer,validateBuffer:validateBuffer,isValidBuffer:isValidBuffer,cleanPath:cleanPath,ParseError:ParseError,protoFromTuple:protoFromTuple}}).call(exports,__webpack_require__(1).Buffer)},function(module,exports,__webpack_require__){(function(Buffer){function Convert(proto,a){return a instanceof Buffer?Convert.toString(proto,a):Convert.toBuffer(proto,a)}function port2buf(port){var buf=new Buffer(2);return buf.writeUInt16BE(port,0),buf}function buf2port(buf){return buf.readUInt16BE(0)}var ip=__webpack_require__(239),protocols=__webpack_require__(56);module.exports=Convert,Convert.toString=function(proto,buf){switch(proto=protocols(proto),proto.code){case 4:case 41:return ip.toString(buf);case 6:case 17:case 33:case 132:return buf2port(buf)}return buf.toString("hex")},Convert.toBuffer=function(proto,str){switch(proto=protocols(proto),proto.code){case 4:case 41:return ip.toBuffer(str);case 6:case 17:case 33:case 132:return port2buf(parseInt(str,10))}return new Buffer(str,"hex")}}).call(exports,__webpack_require__(1).Buffer)},function(module,exports,__webpack_require__){(function(Buffer){function Multiaddr(addr){if(!(this instanceof Multiaddr))return new Multiaddr(addr);if(addr||(addr=""),addr instanceof Buffer)this.buffer=codec.fromBuffer(addr);else if("string"==typeof addr||addr instanceof String)this.buffer=codec.fromString(addr);else{if(!(addr.buffer&&addr.protos&&addr.protoCodes))throw new Error("addr must be a string, Buffer, or Multiaddr");this.buffer=codec.fromBuffer(addr.buffer)}}var map=__webpack_require__(53),extend=__webpack_require__(17),codec=__webpack_require__(263),bufeq=__webpack_require__(161),protocols=__webpack_require__(56),NotImplemented=new Error("Sorry, Not Implemented Yet.");exports=module.exports=Multiaddr,exports.Buffer=Buffer,Multiaddr.prototype.toString=function(){return codec.bufferToString(this.buffer)},Multiaddr.prototype.toOptions=function(){var opts={},parsed=this.toString().split("/");return opts.family="ip4"===parsed[1]?"ipv4":"ipv6",opts.host=parsed[2],opts.port=parsed[4],opts},Multiaddr.prototype.inspect=function(){return""},Multiaddr.prototype.protos=function(){return map(this.protoCodes(),function(code){return extend(protocols(code))})},Multiaddr.prototype.protos=function(){return map(this.protoCodes(),function(code){return extend(protocols(code))})},Multiaddr.prototype.protoCodes=function(){for(var codes=[],i=0;ii)throw new Error("Address "+this+" does not contain subaddress: "+addr);return Multiaddr(s.slice(0,i))},Multiaddr.prototype.equals=function(addr){return bufeq(this.buffer,addr.buffer)},Multiaddr.prototype.nodeAddress=function(){if(!this.isThinWaistAddress())throw new Error('Multiaddr must be "thin waist" address for nodeAddress.');var codes=this.protoCodes(),parts=this.toString().split("/").slice(1);return{family:41===codes[0]?"IPv6":"IPv4",address:parts[1],port:parts[3]}},Multiaddr.fromNodeAddress=function(addr,transport){if(!addr)throw new Error("requires node address object");if(!transport)throw new Error("requires transport protocol");var ip="IPv6"===addr.family?"ip6":"ip4";return Multiaddr("/"+[ip,addr.address,transport,addr.port].join("/"))},Multiaddr.prototype.isThinWaistAddress=function(addr){var protos=(addr||this).protos();return 2!==protos.length?!1:4!==protos[0].code&&41!==protos[0].code?!1:6!==protos[1].code&&17!==protos[1].code?!1:!0},Multiaddr.prototype.fromStupidString=function(str){throw NotImplemented},Multiaddr.protocols=protocols}).call(exports,__webpack_require__(1).Buffer)},function(module,exports){/*! + * normalize-path * * Copyright (c) 2014-2015, Jon Schlinkert. - * Licensed under the MIT License. + * Licensed under the MIT License */ -"use strict";module.exports=function(o,fn,thisArg){for(var key in o)if(fn.call(thisArg,o[key],key,o)===!1)break}},function(module,exports){/*! - * is-extendable +module.exports=function(str,stripTrailing){if("string"!=typeof str)throw new TypeError("expected a string");return str=str.replace(/[\\\/]+/g,"/"),stripTrailing!==!1&&(str=str.replace(/\/$/,"")),str}},function(module,exports,__webpack_require__){/*! + * object.omit * - * Copyright (c) 2015, Jon Schlinkert. + * Copyright (c) 2014-2015, Jon Schlinkert. * Licensed under the MIT License. */ -"use strict";module.exports=function(val){return"undefined"!=typeof val&&null!==val&&("object"==typeof val||"function"==typeof val)}},function(module,exports,__webpack_require__){/*! +"use strict";var isObject=__webpack_require__(88),forOwn=__webpack_require__(229);module.exports=function(obj,keys){if(!isObject(obj))return{};var fn,keys=[].concat.apply([],[].slice.call(arguments,1)),last=keys[keys.length-1],res={};"function"==typeof last&&(fn=keys.pop());var isFunction="function"==typeof fn;return keys.length||isFunction?(forOwn(obj,function(value,key){-1===keys.indexOf(key)&&(isFunction?fn(value,key,obj)&&(res[key]=value):res[key]=value)}),res):obj}},function(module,exports,__webpack_require__){function addStream(streams,stream){if(!isReadable(stream))throw new Error("All input streams must be readable");var self=this;stream._buffer=[],stream.on("readable",function(){var chunk=stream.read();null!==chunk&&(this===streams[0]?self.push(chunk):this._buffer.push(chunk))}),stream.on("end",function(){for(var stream=streams[0];stream&&stream._readableState.ended;stream=streams[0]){for(;stream._buffer.length;)self.push(stream._buffer.shift());streams.shift()}streams.length||self.push(null)}),stream.on("error",this.emit.bind(this,"error")),streams.push(stream)}function OrderedStreams(streams,options){if(!(this instanceof OrderedStreams))return new OrderedStreams(streams,options);if(streams=streams||[],options=options||{},options.objectMode=!0,Readable.call(this,options),Array.isArray(streams)||(streams=[streams]),!streams.length)return this.push(null);var addStream_bind=addStream.bind(this,[]);streams.forEach(function(item){Array.isArray(item)?item.forEach(addStream_bind):addStream_bind(item)})}var Readable=__webpack_require__(102),isReadable=__webpack_require__(243).readable,util=__webpack_require__(8);util.inherits(OrderedStreams,Readable),OrderedStreams.prototype._read=function(){},module.exports=OrderedStreams},function(module,exports,__webpack_require__){/*! * parse-glob * * Copyright (c) 2015, Jon Schlinkert. * Licensed under the MIT License. */ -"use strict";function dotdir(base){return-1!==base.indexOf("/.")?!0:"."===base.charAt(0)&&"/"!==base.charAt(1)?!0:!1}function has(is,glob,ch){return is&&-1!==glob.indexOf(ch)}function escape(str){var re=/\{([^{}]*?)}|\(([^()]*?)\)|\[([^\[\]]*?)\]/g;return str.replace(re,function(outter,braces,parens,brackets){var inner=braces||parens||brackets;return inner?outter.split(inner).join(esc(inner)):outter})}function esc(str){return str=str.split("/").join("__SLASH__"),str=str.split(".").join("__DOT__")}function unescape(str){return str=str.split("__SLASH__").join("/"),str=str.split("__DOT__").join(".")}var isGlob=__webpack_require__(54),findBase=__webpack_require__(240),extglob=__webpack_require__(38),dotfile=__webpack_require__(241),cache=module.exports.cache={};module.exports=function(glob){if(cache.hasOwnProperty(glob))return cache[glob];var tok={};tok.orig=glob,tok.is={},glob=escape(glob);var parsed=findBase(glob);tok.is.glob=parsed.isGlob,tok.glob=parsed.glob,tok.base=parsed.base;var segs=/([^\/]*)$/.exec(glob);tok.path={},tok.path.dirname="",tok.path.basename=segs[1]||"",tok.path.dirname=glob.split(tok.path.basename).join("")||"";var basename=(tok.path.basename||"").split(".")||"";tok.path.filename=basename[0]||"",tok.path.extname=basename.slice(1).join(".")||"",tok.path.ext="",isGlob(tok.path.dirname)&&!tok.path.basename&&(/\/$/.test(tok.glob)||(tok.path.basename=tok.glob),tok.path.dirname=tok.base),-1!==glob.indexOf("/")||tok.is.globstar||(tok.path.dirname="",tok.path.basename=tok.orig);var dot=tok.path.basename.indexOf(".");if(-1!==dot&&(tok.path.filename=tok.path.basename.slice(0,dot),tok.path.extname=tok.path.basename.slice(dot)),"."===tok.path.extname.charAt(0)){var exts=tok.path.extname.split(".");tok.path.ext=exts[exts.length-1]}tok.glob=unescape(tok.glob),tok.path.dirname=unescape(tok.path.dirname),tok.path.basename=unescape(tok.path.basename),tok.path.filename=unescape(tok.path.filename),tok.path.extname=unescape(tok.path.extname);var is=glob&&tok.is.glob;return tok.is.negated=glob&&"!"===glob.charAt(0),tok.is.extglob=glob&&extglob(glob),tok.is.braces=has(is,glob,"{"),tok.is.brackets=has(is,glob,"[:"),tok.is.globstar=has(is,glob,"**"),tok.is.dotfile=dotfile(tok.path.basename)||dotfile(tok.path.filename),tok.is.dotdir=dotdir(tok.path.dirname),cache[glob]=tok}},function(module,exports,__webpack_require__){/*! - * glob-base +"use strict";function dotdir(base){return-1!==base.indexOf("/.")?!0:"."===base.charAt(0)&&"/"!==base.charAt(1)?!0:!1}function has(is,glob,ch){return is&&-1!==glob.indexOf(ch)}function escape(str){var re=/\{([^{}]*?)}|\(([^()]*?)\)|\[([^\[\]]*?)\]/g;return str.replace(re,function(outter,braces,parens,brackets){var inner=braces||parens||brackets;return inner?outter.split(inner).join(esc(inner)):outter})}function esc(str){return str=str.split("/").join("__SLASH__"),str=str.split(".").join("__DOT__")}function unescape(str){return str=str.split("__SLASH__").join("/"),str=str.split("__DOT__").join(".")}var isGlob=__webpack_require__(39),findBase=__webpack_require__(230),extglob=__webpack_require__(38),dotfile=__webpack_require__(241),cache=module.exports.cache={};module.exports=function(glob){if(cache.hasOwnProperty(glob))return cache[glob];var tok={};tok.orig=glob,tok.is={},glob=escape(glob);var parsed=findBase(glob);tok.is.glob=parsed.isGlob,tok.glob=parsed.glob,tok.base=parsed.base;var segs=/([^\/]*)$/.exec(glob);tok.path={},tok.path.dirname="",tok.path.basename=segs[1]||"",tok.path.dirname=glob.split(tok.path.basename).join("")||"";var basename=(tok.path.basename||"").split(".")||"";tok.path.filename=basename[0]||"",tok.path.extname=basename.slice(1).join(".")||"",tok.path.ext="",isGlob(tok.path.dirname)&&!tok.path.basename&&(/\/$/.test(tok.glob)||(tok.path.basename=tok.glob),tok.path.dirname=tok.base),-1!==glob.indexOf("/")||tok.is.globstar||(tok.path.dirname="",tok.path.basename=tok.orig);var dot=tok.path.basename.indexOf(".");if(-1!==dot&&(tok.path.filename=tok.path.basename.slice(0,dot),tok.path.extname=tok.path.basename.slice(dot)),"."===tok.path.extname.charAt(0)){var exts=tok.path.extname.split(".");tok.path.ext=exts[exts.length-1]}tok.glob=unescape(tok.glob),tok.path.dirname=unescape(tok.path.dirname),tok.path.basename=unescape(tok.path.basename),tok.path.filename=unescape(tok.path.filename),tok.path.extname=unescape(tok.path.extname);var is=glob&&tok.is.glob;return tok.is.negated=glob&&"!"===glob.charAt(0),tok.is.extglob=glob&&extglob(glob),tok.is.braces=has(is,glob,"{"),tok.is.brackets=has(is,glob,"[:"),tok.is.globstar=has(is,glob,"**"),tok.is.dotfile=dotfile(tok.path.basename)||dotfile(tok.path.filename),tok.is.dotdir=dotdir(tok.path.dirname),cache[glob]=tok}},function(module,exports,__webpack_require__){(function(Buffer){module.exports=function(crypto){function pbkdf2(password,salt,iterations,keylen,digest,callback){if("function"==typeof digest&&(callback=digest,digest=void 0),"function"!=typeof callback)throw new Error("No callback provided to pbkdf2");setTimeout(function(){var result;try{result=pbkdf2Sync(password,salt,iterations,keylen,digest)}catch(e){return callback(e)}callback(void 0,result)})}function pbkdf2Sync(password,salt,iterations,keylen,digest){if("number"!=typeof iterations)throw new TypeError("Iterations not a number");if(0>iterations)throw new TypeError("Bad iterations");if("number"!=typeof keylen)throw new TypeError("Key length not a number");if(0>keylen)throw new TypeError("Bad key length");digest=digest||"sha1",Buffer.isBuffer(password)||(password=new Buffer(password)),Buffer.isBuffer(salt)||(salt=new Buffer(salt));var hLen,r,T,l=1,DK=new Buffer(keylen),block1=new Buffer(salt.length+4);salt.copy(block1,0,0,salt.length);for(var i=1;l>=i;i++){block1.writeUInt32BE(i,salt.length);var U=crypto.createHmac(digest,password).update(block1).digest();if(!hLen&&(hLen=U.length,T=new Buffer(hLen),l=Math.ceil(keylen/hLen),r=keylen-(l-1)*hLen,keylen>(Math.pow(2,32)-1)*hLen))throw new TypeError("keylen exceeds maximum length");U.copy(T,0,0,hLen);for(var j=1;iterations>j;j++){U=crypto.createHmac(digest,password).update(U).digest();for(var k=0;hLen>k;k++)T[k]^=U[k]}var destPos=(i-1)*hLen,len=i==l?r:hLen;T.copy(DK,destPos,0,len)}return DK}return{pbkdf2:pbkdf2,pbkdf2Sync:pbkdf2Sync}}}).call(exports,__webpack_require__(1).Buffer)},function(module,exports){/*! + * preserve * - * Copyright (c) 2015, Jon Schlinkert. - * Licensed under the MIT License. + * Copyright (c) 2014-2015, Jon Schlinkert. + * Licensed under the MIT license. */ -"use strict";function dirname(glob){return"/"===glob.slice(-1)?glob:path.dirname(glob)}var path=__webpack_require__(5),parent=__webpack_require__(88),isGlob=__webpack_require__(54);module.exports=function(pattern){if("string"!=typeof pattern)throw new TypeError("glob-base expects a string.");var res={};return res.base=parent(pattern),res.isGlob=isGlob(pattern),"."!==res.base?(res.glob=pattern.substr(res.base.length),"/"===res.glob.charAt(0)&&(res.glob=res.glob.substr(1))):res.glob=pattern,res.isGlob||(res.base=dirname(pattern),res.glob="."!==res.base?pattern.substr(res.base.length):pattern),"./"===res.glob.substr(0,2)&&(res.glob=res.glob.substr(2)),"/"===res.glob.charAt(0)&&(res.glob=res.glob.substr(1)),res}},function(module,exports){/*! - * is-dotfile +"use strict";function randomize(){return Math.random().toString().slice(2,7)}exports.before=function(str,re){return str.replace(re,function(match){var id=randomize();return cache[id]=match,"__ID"+id+"__"})},exports.after=function(str){return str.replace(/__ID(.{5})__/g,function(_,id){return cache[id]})};var cache={}},function(module,exports){"use strict";function hasOwnProperty(obj,prop){return Object.prototype.hasOwnProperty.call(obj,prop)}module.exports=function(qs,sep,eq,options){sep=sep||"&",eq=eq||"=";var obj={};if("string"!=typeof qs||0===qs.length)return obj;var regexp=/\+/g;qs=qs.split(sep);var maxKeys=1e3;options&&"number"==typeof options.maxKeys&&(maxKeys=options.maxKeys);var len=qs.length;maxKeys>0&&len>maxKeys&&(len=maxKeys);for(var i=0;len>i;++i){var kstr,vstr,k,v,x=qs[i].replace(regexp,"%20"),idx=x.indexOf(eq);idx>=0?(kstr=x.substr(0,idx),vstr=x.substr(idx+1)):(kstr=x,vstr=""),k=decodeURIComponent(kstr),v=decodeURIComponent(vstr),hasOwnProperty(obj,k)?Array.isArray(obj[k])?obj[k].push(v):obj[k]=[obj[k],v]:obj[k]=v}return obj}},function(module,exports){"use strict";var stringifyPrimitive=function(v){switch(typeof v){case"string":return v;case"boolean":return v?"true":"false";case"number":return isFinite(v)?v:"";default:return""}};module.exports=function(obj,sep,eq,name){return sep=sep||"&",eq=eq||"=",null===obj&&(obj=void 0),"object"==typeof obj?Object.keys(obj).map(function(k){var ks=encodeURIComponent(stringifyPrimitive(k))+eq;return Array.isArray(obj[k])?obj[k].map(function(v){return ks+encodeURIComponent(stringifyPrimitive(v))}).join(sep):ks+encodeURIComponent(stringifyPrimitive(obj[k]))}).join(sep):name?encodeURIComponent(stringifyPrimitive(name))+eq+encodeURIComponent(stringifyPrimitive(obj)):""}},function(module,exports,__webpack_require__){"use strict";exports.decode=exports.parse=__webpack_require__(272),exports.encode=exports.stringify=__webpack_require__(273)},function(module,exports,__webpack_require__){/*! + * randomatic * - * Copyright (c) 2015 Jon Schlinkert, contributors. - * Licensed under the MIT license. + * This was originally inspired by + * Copyright (c) 2014-2015, Jon Schlinkert. + * Licensed under the MIT License (MIT) */ -module.exports=function(str){if(46===str.charCodeAt(0)&&-1===str.indexOf("/",1))return!0;var last=str.lastIndexOf("/");return-1!==last?46===str.charCodeAt(last+1):!1}},function(module,exports,__webpack_require__){/*! +"use strict";function randomatic(pattern,length,options){if("undefined"==typeof pattern)throw new Error("randomatic expects a string or number.");var custom=!1;1===arguments.length&&("string"==typeof pattern?length=pattern.length:isNumber(pattern)&&(options={},length=pattern,pattern="*")),"object"===typeOf(length)&&length.hasOwnProperty("chars")&&(options=length,pattern=options.chars,length=pattern.length,custom=!0);var opts=options||{},mask="",res="";for(-1!==pattern.indexOf("?")&&(mask+=opts.chars),-1!==pattern.indexOf("a")&&(mask+=type.lower),-1!==pattern.indexOf("A")&&(mask+=type.upper),-1!==pattern.indexOf("0")&&(mask+=type.number),-1!==pattern.indexOf("!")&&(mask+=type.special),-1!==pattern.indexOf("*")&&(mask+=type.all),custom&&(mask+=pattern);length--;)res+=mask.charAt(parseInt(Math.random()*mask.length,10));return res}var isNumber=__webpack_require__(89),typeOf=__webpack_require__(51);module.exports=randomatic;var type={lower:"abcdefghijklmnopqrstuvwxyz",upper:"ABCDEFGHIJKLMNOPQRSTUVWXYZ",number:"0123456789",special:"~!@#$%^&()_+-={}[];',."};type.all=type.lower+type.upper+type.number},function(module,exports,__webpack_require__){module.exports=__webpack_require__(99)},function(module,exports,__webpack_require__){/*! * regex-cache * * Copyright (c) 2015 Jon Schlinkert. * Licensed under the MIT license. */ -"use strict";function regexCache(fn,str,opts){var regex,cached,key="_default_";if(!str&&!opts)return"function"!=typeof fn?fn:basic[key]||(basic[key]=fn());var isString="string"==typeof str;if(isString){if(!opts)return basic[str]||(basic[str]=fn(str));key=str}else opts=str;return cached=cache[key],cached&&equal(cached.opts,opts)?cached.regex:(memo(key,opts,regex=fn(str,opts)),regex)}function memo(key,opts,regex){cache[key]={regex:regex,opts:opts}}var equal=(__webpack_require__(94),__webpack_require__(243));module.exports=regexCache;var cache=module.exports.cache={},basic=module.exports.basic={}},function(module,exports,__webpack_require__){/*! - * is-equal-shallow - * - * Copyright (c) 2015, Jon Schlinkert. - * Licensed under the MIT License. - */ -"use strict";var isPrimitive=__webpack_require__(94);module.exports=function(a,b){if(!a&&!b)return!0;if(!a&&b||a&&!b)return!1;var key,numKeysA=0,numKeysB=0;for(key in b)if(numKeysB++,!isPrimitive(b[key])||!a.hasOwnProperty(key)||a[key]!==b[key])return!1;for(key in a)numKeysA++;return numKeysA===numKeysB}},function(module,exports,__webpack_require__){function addStream(streams,stream){if(!isReadable(stream))throw new Error("All input streams must be readable");var self=this;stream._buffer=[],stream.on("readable",function(){var chunk=stream.read();null!==chunk&&(this===streams[0]?self.push(chunk):this._buffer.push(chunk))}),stream.on("end",function(){for(var stream=streams[0];stream&&stream._readableState.ended;stream=streams[0]){for(;stream._buffer.length;)self.push(stream._buffer.shift());streams.shift()}streams.length||self.push(null)}),stream.on("error",this.emit.bind(this,"error")),streams.push(stream)}function OrderedStreams(streams,options){if(!(this instanceof OrderedStreams))return new OrderedStreams(streams,options);if(streams=streams||[],options=options||{},options.objectMode=!0,Readable.call(this,options),Array.isArray(streams)||(streams=[streams]),!streams.length)return this.push(null);var addStream_bind=addStream.bind(this,[]);streams.forEach(function(item){Array.isArray(item)?item.forEach(addStream_bind):addStream_bind(item)})}var Readable=__webpack_require__(249),isReadable=__webpack_require__(245).readable,util=__webpack_require__(7);util.inherits(OrderedStreams,Readable),OrderedStreams.prototype._read=function(){},module.exports=OrderedStreams},function(module,exports){"use strict";var isStream=module.exports=function(stream){return null!==stream&&"object"==typeof stream&&"function"==typeof stream.pipe};isStream.writable=function(stream){return isStream(stream)&&stream.writable!==!1&&"function"==typeof stream._write&&"object"==typeof stream._writableState},isStream.readable=function(stream){return isStream(stream)&&stream.readable!==!1&&"function"==typeof stream._read&&"object"==typeof stream._readableState},isStream.duplex=function(stream){return isStream.writable(stream)&&isStream.readable(stream)}},function(module,exports,__webpack_require__){"use strict";function PassThrough(options){return this instanceof PassThrough?void Transform.call(this,options):new PassThrough(options)}module.exports=PassThrough;var Transform=__webpack_require__(96),util=__webpack_require__(19);util.inherits=__webpack_require__(20),util.inherits(PassThrough,Transform),PassThrough.prototype._transform=function(chunk,encoding,cb){cb(null,chunk)}},function(module,exports){module.exports=Array.isArray||function(arr){return"[object Array]"==Object.prototype.toString.call(arr)}},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,__webpack_require__){var Stream=function(){try{return __webpack_require__(3)}catch(_){}}();exports=module.exports=__webpack_require__(95),exports.Stream=Stream||exports,exports.Readable=exports,exports.Writable=__webpack_require__(97),exports.Duplex=__webpack_require__(15),exports.Transform=__webpack_require__(96),exports.PassThrough=__webpack_require__(246)},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__(100).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__(253),Buffer=__webpack_require__(1).Buffer;Readable.ReadableState=ReadableState;var EE=__webpack_require__(4).EventEmitter;EE.listenerCount||(EE.listenerCount=function(emitter,type){return emitter.listeners(type).length});var Stream=__webpack_require__(3),util=__webpack_require__(39);util.inherits=__webpack_require__(40);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__(100).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++){var obj=arguments[i];isObject(obj)&&assign(o,obj)}return o}},function(module,exports){/*! - * is-extendable +"use strict";function regexCache(fn,str,opts){var regex,cached,key="_default_";if(!str&&!opts)return"function"!=typeof fn?fn:basic[key]||(basic[key]=fn());var isString="string"==typeof str;if(isString){if(!opts)return basic[str]||(basic[str]=fn(str));key=str}else opts=str;return cached=cache[key],cached&&equal(cached.opts,opts)?cached.regex:(memo(key,opts,regex=fn(str,opts)),regex)}function memo(key,opts,regex){cache[key]={regex:regex,opts:opts}}var equal=(__webpack_require__(90),__webpack_require__(242));module.exports=regexCache;var cache=module.exports.cache={},basic=module.exports.basic={}},function(module,exports){/*! + * repeat-string * - * Copyright (c) 2015, Jon Schlinkert. + * Copyright (c) 2014-2015, Jon Schlinkert. * Licensed under the MIT License. */ -"use strict";module.exports=function(val){return"undefined"!=typeof val&&null!==val&&("object"==typeof val||"function"==typeof val)}},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=JSON.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__(261).obj;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__){"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__(268),xtend=__webpack_require__(102)},function(module,exports,__webpack_require__){(function(process){"use strict";function ReadableState(options,stream){Duplex=Duplex||__webpack_require__(21),options=options||{},this.objectMode=!!options.objectMode,stream instanceof Duplex&&(this.objectMode=this.objectMode||!!options.readableObjectMode);var hwm=options.highWaterMark,defaultHwm=this.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.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__(101).StringDecoder),this.decoder=new StringDecoder(options.encoding),this.encoding=options.encoding)}function Readable(options){return Duplex=Duplex||__webpack_require__(21),this instanceof Readable?(this._readableState=new ReadableState(options,this),this.readable=!0,options&&"function"==typeof options.read&&(this._read=options.read),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)state.reading=!1,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:(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__(57),isArray=__webpack_require__(265),Buffer=__webpack_require__(1).Buffer;Readable.ReadableState=ReadableState;var Stream,EElistenerCount=(__webpack_require__(4),function(emitter,type){return emitter.listeners(type).length});!function(){try{Stream=__webpack_require__(3)}catch(_){}finally{Stream||(Stream=__webpack_require__(4).EventEmitter)}}();var Buffer=__webpack_require__(1).Buffer,util=__webpack_require__(41);util.inherits=__webpack_require__(42);var debug,debugUtil=__webpack_require__(406);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__(101).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 TransformState(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.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){module.exports=Array.isArray||function(arr){return"[object Array]"==Object.prototype.toString.call(arr)}},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,__webpack_require__){module.exports=__webpack_require__(263)},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__(267),inherits=__webpack_require__(7).inherits,xtend=__webpack_require__(102);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__){var http=__webpack_require__(110),https=module.exports;for(var key in http)http.hasOwnProperty(key)&&(https[key]=http[key]);https.request=function(params,cb){return params||(params={}),params.scheme="https",params.protocol="https:",http.request.call(this,params,cb)}},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.10.2",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-beta6","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-config-standard":"^4.4.0","eslint-plugin-standard":"^1.3.1","glob-stream":"5.3.1",gulp:"^3.9.0","gulp-bump":"^1.0.0","gulp-eslint":"^1.0.0","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.0","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__){"use strict";function PassThrough(options){return this instanceof PassThrough?void Transform.call(this,options):new PassThrough(options)}module.exports=PassThrough;var Transform=__webpack_require__(274),util=__webpack_require__(23);util.inherits=__webpack_require__(24),util.inherits(PassThrough,Transform),PassThrough.prototype._transform=function(chunk,encoding,cb){cb(null,chunk)}},function(module,exports,__webpack_require__){(function(process){"use strict";function ReadableState(options,stream){Duplex=Duplex||__webpack_require__(22),options=options||{},this.objectMode=!!options.objectMode,stream instanceof Duplex&&(this.objectMode=this.objectMode||!!options.readableObjectMode);var hwm=options.highWaterMark,defaultHwm=this.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.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__(104).StringDecoder),this.decoder=new StringDecoder(options.encoding),this.encoding=options.encoding)}function Readable(options){return Duplex=Duplex||__webpack_require__(22),this instanceof Readable?(this._readableState=new ReadableState(options,this),this.readable=!0,options&&"function"==typeof options.read&&(this._read=options.read),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)state.reading=!1,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:(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__(58),isArray=__webpack_require__(276),Buffer=__webpack_require__(1).Buffer;Readable.ReadableState=ReadableState;var Stream,EElistenerCount=(__webpack_require__(4),function(emitter,type){return emitter.listeners(type).length});!function(){try{Stream=__webpack_require__(3)}catch(_){}finally{Stream||(Stream=__webpack_require__(4).EventEmitter)}}();var Buffer=__webpack_require__(1).Buffer,util=__webpack_require__(23);util.inherits=__webpack_require__(24);var debug,debugUtil=__webpack_require__(407);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__(104).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 TransformState(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.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){module.exports=Array.isArray||function(arr){return"[object Array]"==Object.prototype.toString.call(arr)}},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,__webpack_require__){module.exports=__webpack_require__(272)},function(module,exports,__webpack_require__){var Buffer=__webpack_require__(1).Buffer;module.exports=function(a,b){if(Buffer.isBuffer(a)&&Buffer.isBuffer(b)){if("function"==typeof a.equals)return a.equals(b);if(a.length!==b.length)return!1;for(var i=0;i0;i--)argv.push("0");sections.splice.apply(sections,argv)}for(result=buff||new Buffer(offset+16),i=0;i>8&255,result[offset++]=255&word}}if(!result)throw Error("Invalid ip address: "+ip);return result},ip.toString=function(buff,offset,length){offset=~~offset,length=length||buff.length-offset;var result=[];if(4===length){for(var i=0;length>i;i++)result.push(buff[offset+i]);result=result.join(".")}else if(16===length){for(var i=0;length>i;i+=2)result.push(buff.readUInt16BE(offset+i).toString(16));result=result.join(":"),result=result.replace(/(^|:)0(:0)*:0(:|$)/,"$1::$3"),result=result.replace(/:{3,4}/,"::")}return result};var ipv4Regex=/^(\d{1,3}\.){3,3}\d{1,3}$/,ipv6Regex=/^(::)?(((\d{1,3}\.){3}(\d{1,3}){1})?([0-9a-f]){0,4}:{0,2}){1,8}(::)?$/i;ip.isV4Format=function(ip){return ipv4Regex.test(ip)},ip.isV6Format=function(ip){return ipv6Regex.test(ip)},ip.fromPrefixLen=function(prefixlen,family){family=prefixlen>32?"ipv6":_normalizeFamily(family);var len=4;"ipv6"===family&&(len=16);for(var buff=new Buffer(len),i=0,n=buff.length;n>i;++i){var bits=8;8>prefixlen&&(bits=prefixlen),prefixlen-=bits,buff[i]=~(255>>bits)}return ip.toString(buff)},ip.mask=function mask(addr,mask){addr=ip.toBuffer(addr),mask=ip.toBuffer(mask);var result=new Buffer(Math.max(addr.length,mask.length));if(addr.length===mask.length)for(var i=0;i=numberOfAddresses?ip.fromLong(networkAddress):ip.fromLong(networkAddress+1),lastAddress:2>=numberOfAddresses?ip.fromLong(networkAddress+numberOfAddresses-1):ip.fromLong(networkAddress+numberOfAddresses-2),broadcastAddress:ip.fromLong(networkAddress+numberOfAddresses-1),subnetMask:mask,subnetMaskLength:maskLength,numHosts:2>=numberOfAddresses?numberOfAddresses:numberOfAddresses-2,length:numberOfAddresses,contains:function(other){return networkAddress===ip.toLong(ip.mask(other,mask))}}},ip.cidrSubnet=function(cidrString){var cidrParts=cidrString.split("/"),addr=cidrParts[0];if(2!==cidrParts.length)throw new Error("invalid CIDR subnet: "+addr);var mask=ip.fromPrefixLen(parseInt(cidrParts[1],10));return ip.subnet(addr,mask)},ip.not=function(addr){for(var buff=ip.toBuffer(addr),i=0;ia.length&&(buff=b,other=a);for(var offset=buff.length-other.length,i=offset;ii;i++)if(0!==b[i])return!1;var word=b.readUInt16BE(10);if(0!==word&&65535!==word)return!1;for(var i=0;4>i;i++)if(a[i]!==b[i+12])return!1;return!0},ip.isPrivate=function(addr){return/^(::f{4}:)?10\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})$/.test(addr)||/^(::f{4}:)?192\.168\.([0-9]{1,3})\.([0-9]{1,3})$/.test(addr)||/^(::f{4}:)?172\.(1[6-9]|2\d|30|31)\.([0-9]{1,3})\.([0-9]{1,3})$/.test(addr)||/^(::f{4}:)?127\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})$/.test(addr)||/^(::f{4}:)?169\.254\.([0-9]{1,3})\.([0-9]{1,3})$/.test(addr)||/^fc00:/i.test(addr)||/^fe80:/i.test(addr)||/^::1$/.test(addr)||/^::$/.test(addr)},ip.isPublic=function(addr){return!ip.isPrivate(addr)},ip.isLoopback=function(addr){return/^(::f{4}:)?127\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})/.test(addr)||/^fe80::1$/.test(addr)||/^::1$/.test(addr)||/^::$/.test(addr)},ip.loopback=function(family){if(family=_normalizeFamily(family),"ipv4"!==family&&"ipv6"!==family)throw new Error("family must be ipv4 or ipv6");return"ipv4"===family?"127.0.0.1":"fe80::1"},ip.address=function(name,family){var all,interfaces=os.networkInterfaces();if(family=_normalizeFamily(family),name&&"private"!==name&&"public"!==name){var res=interfaces[name].filter(function(details){var itemFamily=details.family.toLowerCase();return itemFamily===family});if(0===res.length)return;return res[0].address}var all=Object.keys(interfaces).map(function(nic){var addresses=interfaces[nic].filter(function(details){return details.family=details.family.toLowerCase(),details.family!==family||ip.isLoopback(details.address)?!1:name?"public"===name?!ip.isPrivate(details.address):ip.isPrivate(details.address):!0});return addresses.length?addresses[0].address:void 0}).filter(Boolean);return all.length?all[0]:ip.loopback(family)},ip.toLong=function(ip){var ipl=0;return ip.split(".").forEach(function(octet){ipl<<=8,ipl+=parseInt(octet)}),ipl>>>0},ip.fromLong=function(ipl){return(ipl>>>24)+"."+(ipl>>16&255)+"."+(ipl>>8&255)+"."+(255&ipl)}},function(module,exports,__webpack_require__){function filter(collection,predicate,thisArg){var func=isArray(collection)?arrayFilter:baseFilter;return predicate=baseCallback(predicate,thisArg,3),func(collection,predicate)}var arrayFilter=__webpack_require__(282),baseCallback=__webpack_require__(283),baseFilter=__webpack_require__(288),isArray=__webpack_require__(43);module.exports=filter},function(module,exports){function arrayFilter(array,predicate){for(var index=-1,length=array.length,resIndex=-1,result=[];++indexindex;)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);++indexarrLength))return!1;for(;++index-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=global.Object.prototype,objectToString=objectProto.toString;module.exports=isTypedArray}).call(exports,function(){return this}())},function(module,exports){function bindCallback(func,thisArg,argCount){if("function"!=typeof func)return identity;if(void 0===thisArg)return func;switch(argCount){case 1:return function(value){return func.call(thisArg,value)};case 3:return function(value,index,collection){return func.call(thisArg,value,index,collection)};case 4:return function(accumulator,value,index,collection){return func.call(thisArg,accumulator,value,index,collection)};case 5:return function(value,other,key,object,source){return func.call(thisArg,value,other,key,object,source)}}return function(){return func.apply(thisArg,arguments)}}function identity(value){return value}module.exports=bindCallback},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-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__(59),MAX_SAFE_INTEGER=9007199254740991,baseEach=createBaseEach(baseForOwn),baseFor=createBaseFor(),getLength=baseProperty("length");module.exports=baseEach},function(module,exports){function isObjectLike(value){return!!value&&"object"==typeof value}function getNative(object,key){var value=null==object?void 0:object[key];return isNative(value)?value:void 0}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 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.*?")+"$");module.exports=getNative},function(module,exports){(function(global){function baseProperty(key){return function(object){return null==object?void 0:object[key]}}function isArguments(value){return isArrayLikeObject(value)&&hasOwnProperty.call(value,"callee")&&(!propertyIsEnumerable.call(value,"callee")||objectToString.call(value)==argsTag)}function isArrayLike(value){return null!=value&&!("function"==typeof value&&isFunction(value))&&isLength(getLength(value))}function isArrayLikeObject(value){return isObjectLike(value)&&isArrayLike(value)}function isFunction(value){var tag=isObject(value)?objectToString.call(value):"";return tag==funcTag||tag==genTag}function isLength(value){return"number"==typeof value&&value>-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=global.Object.prototype,hasOwnProperty=objectProto.hasOwnProperty,objectToString=objectProto.toString,propertyIsEnumerable=objectProto.propertyIsEnumerable,getLength=baseProperty("length");module.exports=isArguments}).call(exports,function(){return this}())},function(module,exports){function arrayMap(array,iteratee){for(var index=-1,length=array.length,result=Array(length);++indexindex;)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);++indexarrLength))return!1;for(;++index-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=global.Object.prototype,objectToString=objectProto.toString;module.exports=isTypedArray}).call(exports,function(){return this}())},function(module,exports){function bindCallback(func,thisArg,argCount){if("function"!=typeof func)return identity;if(void 0===thisArg)return func;switch(argCount){case 1:return function(value){return func.call(thisArg,value)};case 3:return function(value,index,collection){return func.call(thisArg,value,index,collection)};case 4:return function(accumulator,value,index,collection){return func.call(thisArg,accumulator,value,index,collection)};case 5:return function(value,other,key,object,source){return func.call(thisArg,value,other,key,object,source)}}return function(){return func.apply(thisArg,arguments)}}function identity(value){return value}module.exports=bindCallback},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-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__(61),MAX_SAFE_INTEGER=9007199254740991,baseEach=createBaseEach(baseForOwn),baseFor=createBaseFor(),getLength=baseProperty("length");module.exports=baseEach},function(module,exports){function isObjectLike(value){return!!value&&"object"==typeof value}function getNative(object,key){var value=null==object?void 0:object[key];return isNative(value)?value:void 0}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 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.*?")+"$");module.exports=getNative},function(module,exports){(function(global){function baseProperty(key){return function(object){return null==object?void 0:object[key]}}function isArguments(value){return isArrayLikeObject(value)&&hasOwnProperty.call(value,"callee")&&(!propertyIsEnumerable.call(value,"callee")||objectToString.call(value)==argsTag)}function isArrayLike(value){return null!=value&&!("function"==typeof value&&isFunction(value))&&isLength(getLength(value))}function isArrayLikeObject(value){return isObjectLike(value)&&isArrayLike(value)}function isFunction(value){var tag=isObject(value)?objectToString.call(value):"";return tag==funcTag||tag==genTag}function isLength(value){return"number"==typeof value&&value>-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=global.Object.prototype,hasOwnProperty=objectProto.hasOwnProperty,objectToString=objectProto.toString,propertyIsEnumerable=objectProto.propertyIsEnumerable,getLength=baseProperty("length");module.exports=isArguments}).call(exports,function(){return this}())},function(module,exports){function extend(){for(var target={},i=0;i=parts.length)throw ParseError("invalid address: "+str);tuples.push([part,parts[p]])}return tuples}function stringTuplesToString(tuples){var parts=[];return map(tuples,function(tup){var proto=protoFromTuple(tup);parts.push(proto.name),tup.length>1&&parts.push(tup[1])}),"/"+parts.join("/")}function stringTuplesToTuples(tuples){return map(tuples,function(tup){var proto=protoFromTuple(tup);return tup.length>1?[proto.code,convert.toBuffer(proto.code,tup[1])]:[proto.code]})}function tuplesToStringTuples(tuples){return map(tuples,function(tup){var proto=protoFromTuple(tup);return tup.length>1?[proto.code,convert.toString(proto.code,tup[1])]:[proto.code]})}function tuplesToBuffer(tuples){return fromBuffer(Buffer.concat(map(tuples,function(tup){var proto=protoFromTuple(tup),buf=new Buffer([proto.code]);return tup.length>1&&(buf=Buffer.concat([buf,tup[1]])),buf})))}function bufferToTuples(buf){for(var tuples=[],i=0;ibuf.length)throw ParseError("Invalid address buffer: "+buf.toString("hex"));tuples.push([code,addr])}return tuples}function bufferToString(buf){var a=bufferToTuples(buf),b=tuplesToStringTuples(a);return stringTuplesToString(b)}function stringToBuffer(str){str=cleanPath(str);var a=stringToStringTuples(str),b=stringTuplesToTuples(a);return tuplesToBuffer(b)}function fromString(str){return stringToBuffer(str); -}function fromBuffer(buf){var err=validateBuffer(buf);if(err)throw err;return new Buffer(buf)}function validateBuffer(buf){bufferToTuples(buf)}function isValidBuffer(buf){try{return validateBuffer(buf),!0}catch(e){return!1}}function cleanPath(str){return"/"+filter(str.trim().split("/")).join("/")}function ParseError(str){return new Error("Error parsing address: "+str)}function protoFromTuple(tup){var proto=protocols(tup[0]);if(tup.length>1&&0===proto.size)throw ParseError("tuple has address but protocol size is 0");return proto}var map=__webpack_require__(60),filter=__webpack_require__(281),convert=__webpack_require__(303),protocols=__webpack_require__(62);module.exports={stringToStringTuples:stringToStringTuples,stringTuplesToString:stringTuplesToString,tuplesToStringTuples:tuplesToStringTuples,stringTuplesToTuples:stringTuplesToTuples,bufferToTuples:bufferToTuples,tuplesToBuffer:tuplesToBuffer,bufferToString:bufferToString,stringToBuffer:stringToBuffer,fromString:fromString,fromBuffer:fromBuffer,validateBuffer:validateBuffer,isValidBuffer:isValidBuffer,cleanPath:cleanPath,ParseError:ParseError,protoFromTuple:protoFromTuple}}).call(exports,__webpack_require__(1).Buffer)},function(module,exports,__webpack_require__){(function(Buffer){function Convert(proto,a){return a instanceof Buffer?Convert.toString(proto,a):Convert.toBuffer(proto,a)}function port2buf(port){var buf=new Buffer(2);return buf.writeUInt16BE(port,0),buf}function buf2port(buf){return buf.readUInt16BE(0)}var ip=__webpack_require__(280),protocols=__webpack_require__(62);module.exports=Convert,Convert.toString=function(proto,buf){switch(proto=protocols(proto),proto.code){case 4:case 41:return ip.toString(buf);case 6:case 17:case 33:case 132:return buf2port(buf)}return buf.toString("hex")},Convert.toBuffer=function(proto,str){switch(proto=protocols(proto),proto.code){case 4:case 41:return ip.toBuffer(str);case 6:case 17:case 33:case 132:return port2buf(parseInt(str,10))}return new Buffer(str,"hex")}}).call(exports,__webpack_require__(1).Buffer)},function(module,exports,__webpack_require__){(function(Buffer){function Multiaddr(addr){if(!(this instanceof Multiaddr))return new Multiaddr(addr);if(addr||(addr=""),addr instanceof Buffer)this.buffer=codec.fromBuffer(addr);else if("string"==typeof addr||addr instanceof String)this.buffer=codec.fromString(addr);else{if(!(addr.buffer&&addr.protos&&addr.protoCodes))throw new Error("addr must be a string, Buffer, or Multiaddr");this.buffer=codec.fromBuffer(addr.buffer)}}var map=__webpack_require__(60),extend=__webpack_require__(301),codec=__webpack_require__(302),bufeq=__webpack_require__(279),protocols=__webpack_require__(62),NotImplemented=new Error("Sorry, Not Implemented Yet.");exports=module.exports=Multiaddr,exports.Buffer=Buffer,Multiaddr.prototype.toString=function(){return codec.bufferToString(this.buffer)},Multiaddr.prototype.toOptions=function(){var opts={},parsed=this.toString().split("/");return opts.family="ip4"===parsed[1]?"ipv4":"ipv6",opts.host=parsed[2],opts.port=parsed[4],opts},Multiaddr.prototype.inspect=function(){return""},Multiaddr.prototype.protos=function(){return map(this.protoCodes(),function(code){return extend(protocols(code))})},Multiaddr.prototype.protos=function(){return map(this.protoCodes(),function(code){return extend(protocols(code))})},Multiaddr.prototype.protoCodes=function(){for(var codes=[],i=0;ii)throw new Error("Address "+this+" does not contain subaddress: "+addr);return Multiaddr(s.slice(0,i))},Multiaddr.prototype.equals=function(addr){return bufeq(this.buffer,addr.buffer)},Multiaddr.prototype.nodeAddress=function(){if(!this.isThinWaistAddress())throw new Error('Multiaddr must be "thin waist" address for nodeAddress.');var codes=this.protoCodes(),parts=this.toString().split("/").slice(1);return{family:41===codes[0]?"IPv6":"IPv4",address:parts[1],port:parts[3]}},Multiaddr.fromNodeAddress=function(addr,transport){if(!addr)throw new Error("requires node address object");if(!transport)throw new Error("requires transport protocol");var ip="IPv6"===addr.family?"ip6":"ip4";return Multiaddr("/"+[ip,addr.address,transport,addr.port].join("/"))},Multiaddr.prototype.isThinWaistAddress=function(addr){var protos=(addr||this).protos();return 2!==protos.length?!1:4!==protos[0].code&&41!==protos[0].code?!1:6!==protos[1].code&&17!==protos[1].code?!1:!0},Multiaddr.prototype.fromStupidString=function(str){throw NotImplemented},Multiaddr.protocols=protocols}).call(exports,__webpack_require__(1).Buffer)},function(module,exports){"function"==typeof Object.create?module.exports=function(ctor,superCtor){ctor.super_=superCtor,ctor.prototype=Object.create(superCtor.prototype,{constructor:{value:ctor,enumerable:!1,writable:!0,configurable:!0}})}:module.exports=function(ctor,superCtor){ctor.super_=superCtor;var TempCtor=function(){};TempCtor.prototype=superCtor.prototype,ctor.prototype=new TempCtor,ctor.prototype.constructor=ctor}},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,__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;i0)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__(311),Buffer=__webpack_require__(1).Buffer;Readable.ReadableState=ReadableState;var EE=__webpack_require__(4).EventEmitter;EE.listenerCount||(EE.listenerCount=function(emitter,type){return emitter.listeners(type).length});var Stream=__webpack_require__(3),util=__webpack_require__(45);util.inherits=__webpack_require__(46);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__(108).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.lengthself._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){module.exports={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",308:"Permanent 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",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"}},function(module,exports,__webpack_require__){var Buffer=__webpack_require__(1).Buffer;module.exports=function(buf){if(buf instanceof Uint8Array){if(0===buf.byteOffset&&buf.byteLength===buf.buffer.byteLength)return buf.buffer;if("function"==typeof buf.buffer.slice)return buf.buffer.slice(buf.byteOffset,buf.byteOffset+buf.byteLength)}if(Buffer.isBuffer(buf)){for(var arrayCopy=new Uint8Array(buf.length),len=buf.length,i=0;len>i;i++)arrayCopy[i]=buf[i];return arrayCopy.buffer}throw new Error("Argument must be a Buffer")}},function(module,exports){function extend(){for(var target={},i=0;id})}},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:10),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__(12),readDir=__webpack_require__(329),readSymbolicLink=__webpack_require__(330),bufferFile=__webpack_require__(327),streamFile=__webpack_require__(114);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:10);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__(123),through=__webpack_require__(12),gs=__webpack_require__(203),File=__webpack_require__(67),duplexify=__webpack_require__(115),merge=__webpack_require__(103),sourcemaps=process.browser?null:__webpack_require__(121),filterSince=__webpack_require__(326),isValidGlob=__webpack_require__(344),getContents=__webpack_require__(328),resolveSymlinks=__webpack_require__(332);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__(12),fs=__webpack_require__(process.browser?6:10),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__(12),fs=__webpack_require__(process.browser?6:10),prepareWrite=__webpack_require__(113);module.exports=symlink}).call(exports,__webpack_require__(2))},function(module,exports,__webpack_require__){var once=__webpack_require__(336),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){function wrappy(fn,cb){function wrapper(){for(var args=new Array(arguments.length),i=0;iindex;index++){var key=keys[index];this[key]=options[key]}if(this.encoding&&this.setEncoding(this.encoding),void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(void 0===this.end)this.end=1/0;else if("number"!=typeof this.end)throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}return null!==this.fd?void process.nextTick(function(){self._read()}):void fs.open(this.path,this.flags,this.mode,function(err,fd){return err?(self.emit("error",err),void(self.readable=!1)):(self.fd=fd,self.emit("open",fd),void self._read())})}function WriteStream(path,options){if(!(this instanceof WriteStream))return new WriteStream(path,options);Stream.call(this),this.path=path,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,options=options||{};for(var keys=Object.keys(options),index=0,length=keys.length;length>index;index++){var key=keys[index];this[key]=options[key]}if(void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],null===this.fd&&(this._open=fs.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}return{ReadStream:ReadStream,WriteStream:WriteStream}}var Stream=__webpack_require__(3).Stream;module.exports=legacy}).call(exports,__webpack_require__(2))},function(module,exports,__webpack_require__){(function(process){function patch(fs){constants.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&patchLchmod(fs),fs.lutimes||patchLutimes(fs),fs.chown=chownFix(fs.chown),fs.fchown=chownFix(fs.fchown),fs.lchown=chownFix(fs.lchown),fs.chmod=chownFix(fs.chmod),fs.fchmod=chownFix(fs.fchmod),fs.lchmod=chownFix(fs.lchmod),fs.chownSync=chownFixSync(fs.chownSync),fs.fchownSync=chownFixSync(fs.fchownSync),fs.lchownSync=chownFixSync(fs.lchownSync),fs.chmodSync=chownFix(fs.chmodSync),fs.fchmodSync=chownFix(fs.fchmodSync),fs.lchmodSync=chownFix(fs.lchmodSync),fs.lchmod||(fs.lchmod=function(path,mode,cb){process.nextTick(cb)},fs.lchmodSync=function(){}),fs.lchown||(fs.lchown=function(path,uid,gid,cb){process.nextTick(cb)},fs.lchownSync=function(){}),"win32"===process.platform&&(fs.rename=function(fs$rename){return function(from,to,cb){var start=Date.now();fs$rename(from,to,function CB(er){return er&&("EACCES"===er.code||"EPERM"===er.code)&&Date.now()-start<1e3?fs$rename(from,to,CB):void(cb&&cb(er))})}}(fs.rename)),fs.read=function(fs$read){return function(fd,buffer,offset,length,position,callback_){var callback;if(callback_&&"function"==typeof callback_){var eagCounter=0;callback=function(er,_,__){return er&&"EAGAIN"===er.code&&10>eagCounter?(eagCounter++,fs$read.call(fs,fd,buffer,offset,length,position,callback)):void callback_.apply(this,arguments)}}return fs$read.call(fs,fd,buffer,offset,length,position,callback)}}(fs.read),fs.readSync=function(fs$readSync){return function(fd,buffer,offset,length,position){for(var eagCounter=0;;)try{return fs$readSync.call(fs,fd,buffer,offset,length,position)}catch(er){if("EAGAIN"===er.code&&10>eagCounter){eagCounter++;continue}throw er}}}(fs.readSync)}function patchLchmod(fs){fs.lchmod=function(path,mode,callback){callback=callback||noop,fs.open(path,constants.O_WRONLY|constants.O_SYMLINK,mode,function(err,fd){return err?void callback(err):void fs.fchmod(fd,mode,function(err){fs.close(fd,function(err2){callback(err||err2)})})})},fs.lchmodSync=function(path,mode){var ret,fd=fs.openSync(path,constants.O_WRONLY|constants.O_SYMLINK,mode),threw=!0;try{ret=fs.fchmodSync(fd,mode),threw=!1}finally{if(threw)try{fs.closeSync(fd)}catch(er){}else fs.closeSync(fd)}return ret}}function patchLutimes(fs){constants.hasOwnProperty("O_SYMLINK")?(fs.lutimes=function(path,at,mt,cb){fs.open(path,constants.O_SYMLINK,function(er,fd){return cb=cb||noop,er?cb(er):void fs.futimes(fd,at,mt,function(er){fs.close(fd,function(er2){return cb(er||er2)})})})},fs.lutimesSync=function(path,at,mt){var ret,fd=fs.openSync(path,constants.O_SYMLINK),threw=!0;try{ret=fs.futimesSync(fd,at,mt),threw=!1}finally{if(threw)try{fs.closeSync(fd)}catch(er){}else fs.closeSync(fd)}return ret}):(fs.lutimes=function(_a,_b,_c,cb){process.nextTick(cb)},fs.lutimesSync=function(){})}function chownFix(orig){return orig?function(target,uid,gid,cb){return orig.call(fs,target,uid,gid,function(er,res){chownErOk(er)&&(er=null),cb(er,res)})}:orig}function chownFixSync(orig){return orig?function(target,uid,gid){try{return orig.call(fs,target,uid,gid)}catch(er){if(!chownErOk(er))throw er}}:orig}function chownErOk(er){if(!er)return!0;if("ENOSYS"===er.code)return!0;var nonroot=!process.getuid||0!==process.getuid();return!nonroot||"EINVAL"!==er.code&&"EPERM"!==er.code?!1:!0}var fs=__webpack_require__(120),constants=__webpack_require__(270),origCwd=process.cwd,cwd=null;process.cwd=function(){return cwd||(cwd=origCwd.call(process)),cwd};try{process.cwd()}catch(er){}var chdir=process.chdir;process.chdir=function(d){cwd=null,chdir.call(process,d)},module.exports=patch}).call(exports,__webpack_require__(2))},function(module,exports,__webpack_require__){(function(Buffer){"use strict";function decodeBase64(base64){return new Buffer(base64,"base64").toString()}function stripComment(sm){return sm.split(",").pop()}function readFromFileMap(sm,dir){var r=mapFileCommentRx.exec(sm);mapFileCommentRx.lastIndex=0;var filename=r[1]||r[2],filepath=path.join(dir,filename);try{return fs.readFileSync(filepath,"utf8")}catch(e){throw new Error("An error occurred while trying to read the map file at "+filepath+"\n"+e)}}function Converter(sm,opts){opts=opts||{},opts.isFileComment&&(sm=readFromFileMap(sm,opts.commentFileDir)),opts.hasComment&&(sm=stripComment(sm)),opts.isEncoded&&(sm=decodeBase64(sm)),(opts.isJSON||opts.isEncoded)&&(sm=JSON.parse(sm)),this.sourcemap=sm}function convertFromLargeSource(content){for(var line,lines=content.split("\n"),i=lines.length-1;i>0;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){"use strict";function every(arr){for(var len=arr.length;len--;)if("string"!=typeof arr[len]||arr[len].length<=0)return!1;return!0}module.exports=function(glob){return"string"==typeof glob&&glob.length>0?!0:Array.isArray(glob)?0!==glob.length&&every(glob):!1}},function(module,exports,__webpack_require__){"use strict";var firstChunk=__webpack_require__(346),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(Buffer){"use strict";function ctor(options,transform){function FirstChunk(options2){return this instanceof FirstChunk?(Transform.call(this,options2),this._firstChunk=!0,this._transformCalled=!1,void(this._minSize=options.minSize)):new FirstChunk(options2)}if(util.inherits(FirstChunk,Transform),"function"==typeof options&&(transform=options,options={}),"function"!=typeof transform)throw new Error("transform function required");return FirstChunk.prototype._transform=function(chunk,enc,cb){return this._enc=enc,this._firstChunk?(this._firstChunk=!1,null==this._minSize?(transform.call(this,chunk,enc,cb),void(this._transformCalled=!0)):(this._buffer=chunk,void cb())):null==this._minSize?(this.push(chunk),void cb()):this._buffer.length=this._minSize?(transform.call(this,this._buffer.slice(),enc,function(){this.push(chunk),cb()}.bind(this)),this._transformCalled=!0,void(this._buffer=!1)):(this.push(chunk),void cb())},FirstChunk.prototype._flush=function(cb){return this._buffer?void(this._transformCalled?(this.push(this._buffer),cb()):transform.call(this,this._buffer.slice(),this._enc,cb)):void cb()},FirstChunk}var util=__webpack_require__(7),Transform=__webpack_require__(3).Transform;module.exports=function(){return ctor.apply(ctor,arguments)()},module.exports.ctor=ctor}).call(exports,__webpack_require__(1).Buffer)},function(module,exports){exports=module.exports=function(bytes){for(var i=0;i0)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__(65),isArray=__webpack_require__(353),Buffer=__webpack_require__(1).Buffer;Readable.ReadableState=ReadableState;var Stream,EElistenerCount=(__webpack_require__(4),function(emitter,type){return emitter.listeners(type).length});!function(){try{Stream=__webpack_require__(3)}catch(_){}finally{Stream||(Stream=__webpack_require__(4).EventEmitter)}}();var Buffer=__webpack_require__(1).Buffer,util=__webpack_require__(47);util.inherits=__webpack_require__(48);var debug,debugUtil=__webpack_require__(409);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__(124).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 TransformState(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.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){module.exports=Array.isArray||function(arr){return"[object Array]"==Object.prototype.toString.call(arr)}},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,__webpack_require__){module.exports=__webpack_require__(351)},function(module,exports){function extend(){for(var target={},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,__webpack_require__){function cloneStats(stats){var replacement=new Stat;return Object.keys(stats).forEach(function(key){replacement[key]=stats[key]}),replacement}var Stat=__webpack_require__(6).Stats;module.exports=cloneStats},function(module,exports,__webpack_require__){(function(Buffer){var clone=function(){"use strict";function clone(parent,circular,depth,prototype){function _clone(parent,depth){if(null===parent)return null;if(0==depth)return parent;var child,proto;if("object"!=typeof parent)return parent;if(clone.__isArray(parent))child=[];else if(clone.__isRegExp(parent))child=new RegExp(parent.source,__getRegExpFlags(parent)),parent.lastIndex&&(child.lastIndex=parent.lastIndex);else if(clone.__isDate(parent))child=new Date(parent.getTime());else{if(useBuffer&&Buffer.isBuffer(parent))return child=new Buffer(parent.length),parent.copy(child),child;"undefined"==typeof prototype?(proto=Object.getPrototypeOf(parent),child=Object.create(proto)):(child=Object.create(prototype),proto=prototype)}if(circular){var index=allParents.indexOf(parent);if(-1!=index)return allChildren[index];allParents.push(parent),allChildren.push(child)}for(var i in parent){var attrs;proto&&(attrs=Object.getOwnPropertyDescriptor(proto,i)),attrs&&null==attrs.set||(child[i]=_clone(parent[i],depth-1))}return child}var filter;"object"==typeof circular&&(depth=circular.depth,prototype=circular.prototype,filter=circular.filter,circular=circular.circular);var allParents=[],allChildren=[],useBuffer="undefined"!=typeof Buffer;return"undefined"==typeof circular&&(circular=!0),"undefined"==typeof depth&&(depth=1/0),_clone(parent,depth)}function __objToStr(o){return Object.prototype.toString.call(o)}function __isDate(o){return"object"==typeof o&&"[object Date]"===__objToStr(o)}function __isArray(o){return"object"==typeof o&&"[object Array]"===__objToStr(o)}function __isRegExp(o){return"object"==typeof o&&"[object RegExp]"===__objToStr(o)}function __getRegExpFlags(re){var flags="";return re.global&&(flags+="g"),re.ignoreCase&&(flags+="i"),re.multiline&&(flags+="m"),flags}return clone.clonePrototype=function(parent){if(null===parent)return null;var c=function(){};return c.prototype=parent,new c},clone.__objToStr=__objToStr,clone.__isDate=__isDate,clone.__isArray=__isArray,clone.__isRegExp=__isRegExp,clone.__getRegExpFlags=__getRegExpFlags,clone}();"object"==typeof module&&module.exports&&(module.exports=clone)}).call(exports,__webpack_require__(1).Buffer)},function(module,exports,__webpack_require__){var path=__webpack_require__(5);module.exports=function(npath,ext){if("string"!=typeof npath)return npath;if(0===npath.length)return npath;var nFileName=path.basename(npath,path.extname(npath))+ext;return path.join(path.dirname(npath),nFileName)}},function(module,exports){module.exports=function(module){return module.webpackPolyfill||(module.deprecate=function(){},module.paths=[],module.children=[],module.webpackPolyfill=1),module}},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){exports.read=function(buffer,offset,isLE,mLen,nBytes){var e,m,eLen=8*nBytes-mLen-1,eMax=(1<>1,nBits=-7,i=isLE?nBytes-1:0,d=isLE?-1:1,s=buffer[offset+i];for(i+=d,e=s&(1<<-nBits)-1,s>>=-nBits,nBits+=eLen;nBits>0;e=256*e+buffer[offset+i],i+=d,nBits-=8);for(m=e&(1<<-nBits)-1,e>>=-nBits,nBits+=mLen;nBits>0;m=256*m+buffer[offset+i],i+=d,nBits-=8);if(0===e)e=1-eBias;else{if(e===eMax)return m?NaN:(s?-1:1)*(1/0);m+=Math.pow(2,mLen),e-=eBias}return(s?-1:1)*m*Math.pow(2,e-mLen)},exports.write=function(buffer,value,offset,isLE,mLen,nBytes){var e,m,c,eLen=8*nBytes-mLen-1,eMax=(1<>1,rt=23===mLen?Math.pow(2,-24)-Math.pow(2,-77):0,i=isLE?0:nBytes-1,d=isLE?1:-1,s=0>value||0===value&&0>1/value?1:0;for(value=Math.abs(value),isNaN(value)||value===1/0?(m=isNaN(value)?1:0,e=eMax):(e=Math.floor(Math.log(value)/Math.LN2),value*(c=Math.pow(2,-e))<1&&(e--,c*=2),value+=e+eBias>=1?rt/c:rt*Math.pow(2,1-eBias),value*c>=2&&(e++,c/=2),e+eBias>=eMax?(m=0,e=eMax):e+eBias>=1?(m=(value*c-1)*Math.pow(2,mLen),e+=eBias):(m=value*Math.pow(2,eBias-1)*Math.pow(2,mLen),e=0));mLen>=8;buffer[offset+i]=255&m,i+=d,m/=256,mLen-=8);for(e=e<0;buffer[offset+i]=255&e,i+=d,e/=256,eLen-=8);buffer[offset+i-d]|=128*s}},function(module,exports){var toString={}.toString;module.exports=Array.isArray||function(arr){return"[object Array]"==toString.call(arr)}},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__(132),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__(380);module.exports=function(buf){return helpers.hash(buf,core_md5,16)}},function(module,exports,__webpack_require__){(function(Buffer){module.exports=function(crypto){function pbkdf2(password,salt,iterations,keylen,digest,callback){if("function"==typeof digest&&(callback=digest,digest=void 0),"function"!=typeof callback)throw new Error("No callback provided to pbkdf2");setTimeout(function(){var result;try{result=pbkdf2Sync(password,salt,iterations,keylen,digest)}catch(e){return callback(e)}callback(void 0,result)})}function pbkdf2Sync(password,salt,iterations,keylen,digest){if("number"!=typeof iterations)throw new TypeError("Iterations not a number");if(0>iterations)throw new TypeError("Bad iterations");if("number"!=typeof keylen)throw new TypeError("Key length not a number");if(0>keylen)throw new TypeError("Bad key length");digest=digest||"sha1",Buffer.isBuffer(password)||(password=new Buffer(password)),Buffer.isBuffer(salt)||(salt=new Buffer(salt));var hLen,r,T,l=1,DK=new Buffer(keylen),block1=new Buffer(salt.length+4);salt.copy(block1,0,0,salt.length);for(var i=1;l>=i;i++){block1.writeUInt32BE(i,salt.length);var U=crypto.createHmac(digest,password).update(block1).digest();if(!hLen&&(hLen=U.length,T=new Buffer(hLen),l=Math.ceil(keylen/hLen),r=keylen-(l-1)*hLen,keylen>(Math.pow(2,32)-1)*hLen))throw new TypeError("keylen exceeds maximum length");U.copy(T,0,0,hLen);for(var j=1;iterations>j;j++){U=crypto.createHmac(digest,password).update(U).digest();for(var k=0;hLen>k;k++)T[k]^=U[k]}var destPos=(i-1)*hLen,len=i==l?r:hLen;T.copy(DK,destPos,0,len)}return DK}return{pbkdf2:pbkdf2,pbkdf2Sync:pbkdf2Sync}}}).call(exports,__webpack_require__(1).Buffer)},function(module,exports,__webpack_require__){(function(Buffer){function f1(x,y,z){return x^y^z}function f2(x,y,z){return x&y|~x&z}function f3(x,y,z){return(x|~y)^z}function f4(x,y,z){return x&z|y&~z}function f5(x,y,z){return x^(y|~z)}function rotl(x,n){return x<>>32-n}function ripemd160(message){var H=[1732584193,4023233417,2562383102,271733878,3285377520];"string"==typeof message&&(message=new Buffer(message,"utf8"));var m=bytesToWords(message),nBitsLeft=8*message.length,nBitsTotal=8*message.length;m[nBitsLeft>>>5]|=128<<24-nBitsLeft%32,m[(nBitsLeft+64>>>9<<4)+14]=16711935&(nBitsTotal<<8|nBitsTotal>>>24)|4278255360&(nBitsTotal<<24|nBitsTotal>>>8);for(var i=0;ii;i++){var H_i=H[i];H[i]=16711935&(H_i<<8|H_i>>>24)|4278255360&(H_i<<24|H_i>>>8)}var digestbytes=wordsToBytes(H);return new Buffer(digestbytes)}module.exports=ripemd160;/** @preserve +"use strict";function repeat(str,num){if("string"!=typeof str)throw new TypeError("repeat-string expects a string.");if(1===num)return str;if(2===num)return str+str;var max=str.length*num;for((cache!==str||"undefined"==typeof cache)&&(cache=str,res="");max>res.length&&num>0&&(1&num&&(res+=str),num>>=1);)str+=str;return res.substr(0,max)}module.exports=repeat;var cache,res=""},function(module,exports,__webpack_require__){var path=__webpack_require__(5);module.exports=function(npath,ext){if("string"!=typeof npath)return npath;if(0===npath.length)return npath;var nFileName=path.basename(npath,path.extname(npath))+ext;return path.join(path.dirname(npath),nFileName)}},function(module,exports,__webpack_require__){(function(Buffer){function f1(x,y,z){return x^y^z}function f2(x,y,z){return x&y|~x&z}function f3(x,y,z){return(x|~y)^z}function f4(x,y,z){return x&z|y&~z}function f5(x,y,z){return x^(y|~z)}function rotl(x,n){return x<>>32-n}function ripemd160(message){var H=[1732584193,4023233417,2562383102,271733878,3285377520];"string"==typeof message&&(message=new Buffer(message,"utf8"));var m=bytesToWords(message),nBitsLeft=8*message.length,nBitsTotal=8*message.length;m[nBitsLeft>>>5]|=128<<24-nBitsLeft%32,m[(nBitsLeft+64>>>9<<4)+14]=16711935&(nBitsTotal<<8|nBitsTotal>>>24)|4278255360&(nBitsTotal<<24|nBitsTotal>>>8);for(var i=0;ii;i++){var H_i=H[i];H[i]=16711935&(H_i<<8|H_i>>>24)|4278255360&(H_i<<24|H_i>>>8)}var digestbytes=wordsToBytes(H);return new Buffer(digestbytes)}module.exports=ripemd160;/** @preserve (c) 2012 by Cédric Mesnil. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: @@ -228,4 +200,6 @@ if(!global.localStorage)return!1}catch(_){return!1}var val=global.localStorage[n 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){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__(385)(Buffer);exports.sha1=__webpack_require__(387)(Buffer,Hash),exports.sha256=__webpack_require__(388)(Buffer,Hash),exports.sha512=__webpack_require__(389)(Buffer,Hash)},function(module,exports,__webpack_require__){var inherits=__webpack_require__(7).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__(7).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__(7).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__){var pbkdf2Export=__webpack_require__(383);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__(411),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__){module.exports=__webpack_require__(13)},function(module,exports){module.exports=Array.isArray||function(arr){return"[object Array]"==Object.prototype.toString.call(arr)}},function(module,exports,__webpack_require__){module.exports=__webpack_require__(134)},function(module,exports,__webpack_require__){exports=module.exports=__webpack_require__(135),exports.Stream=__webpack_require__(3),exports.Readable=exports,exports.Writable=__webpack_require__(70),exports.Duplex=__webpack_require__(13),exports.Transform=__webpack_require__(69),exports.PassThrough=__webpack_require__(134)},function(module,exports,__webpack_require__){module.exports=__webpack_require__(69)},function(module,exports,__webpack_require__){module.exports=__webpack_require__(70)},function(module,exports){"function"==typeof Object.create?module.exports=function(ctor,superCtor){ctor.super_=superCtor,ctor.prototype=Object.create(superCtor.prototype,{constructor:{value:ctor,enumerable:!1,writable:!0,configurable:!0}})}:module.exports=function(ctor,superCtor){ctor.super_=superCtor;var TempCtor=function(){};TempCtor.prototype=superCtor.prototype,ctor.prototype=new TempCtor,ctor.prototype.constructor=ctor}},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__(375)(module),function(){return this}())},function(module,exports){"use strict";function hasOwnProperty(obj,prop){return Object.prototype.hasOwnProperty.call(obj,prop)}module.exports=function(qs,sep,eq,options){sep=sep||"&",eq=eq||"=";var obj={};if("string"!=typeof qs||0===qs.length)return obj;var regexp=/\+/g;qs=qs.split(sep);var maxKeys=1e3;options&&"number"==typeof options.maxKeys&&(maxKeys=options.maxKeys);var len=qs.length;maxKeys>0&&len>maxKeys&&(len=maxKeys);for(var i=0;len>i;++i){var kstr,vstr,k,v,x=qs[i].replace(regexp,"%20"),idx=x.indexOf(eq);idx>=0?(kstr=x.substr(0,idx),vstr=x.substr(idx+1)):(kstr=x,vstr=""),k=decodeURIComponent(kstr),v=decodeURIComponent(vstr),hasOwnProperty(obj,k)?Array.isArray(obj[k])?obj[k].push(v):obj[k]=[obj[k],v]:obj[k]=v}return obj}},function(module,exports){"use strict";var stringifyPrimitive=function(v){switch(typeof v){case"string":return v;case"boolean":return v?"true":"false";case"number":return isFinite(v)?v:"";default:return""}};module.exports=function(obj,sep,eq,name){return sep=sep||"&",eq=eq||"=",null===obj&&(obj=void 0),"object"==typeof obj?Object.keys(obj).map(function(k){var ks=encodeURIComponent(stringifyPrimitive(k))+eq;return Array.isArray(obj[k])?obj[k].map(function(v){return ks+encodeURIComponent(stringifyPrimitive(v))}).join(sep):ks+encodeURIComponent(stringifyPrimitive(obj[k]))}).join(sep):name?encodeURIComponent(stringifyPrimitive(name))+eq+encodeURIComponent(stringifyPrimitive(obj)):""}},function(module,exports,__webpack_require__){"use strict";exports.decode=exports.parse=__webpack_require__(400),exports.encode=exports.stringify=__webpack_require__(401)},function(module,exports){"function"==typeof Object.create?module.exports=function(ctor,superCtor){ctor.super_=superCtor,ctor.prototype=Object.create(superCtor.prototype,{constructor:{value:ctor,enumerable:!1,writable:!0,configurable:!0}})}:module.exports=function(ctor,superCtor){ctor.super_=superCtor;var TempCtor=function(){};TempCtor.prototype=superCtor.prototype,ctor.prototype=new TempCtor,ctor.prototype.constructor=ctor}},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){},function(module,exports){},function(module,exports){},function(module,exports){},function(module,exports){},function(module,exports){},function(module,exports){},function(module,exports){}]); \ No newline at end of file +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__(282)(Buffer);exports.sha1=__webpack_require__(284)(Buffer,Hash),exports.sha256=__webpack_require__(285)(Buffer,Hash),exports.sha512=__webpack_require__(286)(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=JSON.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;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__(330)(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__(319),dest:__webpack_require__(308),symlink:__webpack_require__(321)}},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__(309);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__(311),writeStream=__webpack_require__(312),writeBuffer=__webpack_require__(310),writeSymbolicLink=__webpack_require__(313);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__(317),readSymbolicLink=__webpack_require__(318),bufferFile=__webpack_require__(315),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__(314),isValidGlob=__webpack_require__(245),getContents=__webpack_require__(316),resolveSymlinks=__webpack_require__(320);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__(324),tree=__webpack_require__(325),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 5f39219b9542aa2ec30de301c91f81b90e56ff4a Mon Sep 17 00:00:00 2001 From: David Dias Date: Mon, 8 Feb 2016 17:25:07 +0000 Subject: [PATCH 05/17] chore: build --- dist/ipfsapi.js | 2 +- dist/ipfsapi.min.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/ipfsapi.js b/dist/ipfsapi.js index 728f261f9..baa1ede74 100644 --- a/dist/ipfsapi.js +++ b/dist/ipfsapi.js @@ -35,7 +35,7 @@ var ipfsAPI = /******/ __webpack_require__.c = installedModules; /******/ // __webpack_public_path__ -/******/ __webpack_require__.p = ""; +/******/ __webpack_require__.p = "/_karma_webpack_//"; /******/ // Load entry module and return exports /******/ return __webpack_require__(0); diff --git a/dist/ipfsapi.min.js b/dist/ipfsapi.min.js index c620aaf1c..ae336bbc6 100644 --- a/dist/ipfsapi.min.js +++ b/dist/ipfsapi.min.js @@ -1,4 +1,4 @@ -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="",__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__(265),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__(24),_typeof3=_interopRequireDefault(_typeof2),multiaddr=__webpack_require__(265),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 From 2bcb488468d01a569ec59b48593c2c5755267f0f Mon Sep 17 00:00:00 2001 From: David Dias Date: Mon, 8 Feb 2016 17:25:08 +0000 Subject: [PATCH 06/17] chore: release version v2.12.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f43ac5faf..2603b0433 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ipfs-api", - "version": "2.11.0", + "version": "2.12.0", "description": "A client library for the IPFS API", "main": "src/index.js", "dependencies": { From 09ebc5604b5f20ee58744da4fcd89e74b04a1551 Mon Sep 17 00:00:00 2001 From: dignifiedquire Date: Mon, 8 Feb 2016 09:43:14 +0100 Subject: [PATCH 07/17] refactor: Update dependencies to latest --- gulpfile.js | 2 +- package.json | 8 ++++--- src/api/add.js | 2 +- src/api/block.js | 2 +- src/api/cat.js | 2 +- src/api/commands.js | 2 +- src/api/config.js | 2 +- src/api/dht.js | 6 ++--- src/api/diag.js | 2 +- src/api/id.js | 2 +- src/api/log.js | 4 ++-- src/api/ls.js | 2 +- src/api/mount.js | 2 +- src/api/name.js | 2 +- src/api/object.js | 2 +- src/api/pin.js | 2 +- src/api/ping.js | 4 ++-- src/api/refs.js | 2 +- src/api/swarm.js | 2 +- src/api/update.js | 2 +- src/api/version.js | 2 +- src/load-commands.js | 2 +- tasks/build.js | 4 ++-- tasks/daemons.js | 18 +++++++------- tasks/release.js | 10 ++++---- tasks/test.js | 11 +++++---- test/api/add.spec.js | 26 ++++++++++---------- test/api/block.spec.js | 14 +++++------ test/api/cat.spec.js | 50 +++++++++++++++++++++++---------------- test/api/commands.spec.js | 8 +++---- test/api/config.spec.js | 20 +++++++++------- test/api/dht.spec.js | 12 +++++----- test/api/diag.spec.js | 8 +++---- test/api/id.spec.js | 4 ++-- test/api/log.spec.js | 16 ++++++------- test/api/ls.spec.js | 14 +++++------ test/api/name.spec.js | 8 +++---- test/api/object.spec.js | 50 +++++++++++++++++++++++---------------- test/api/pin.spec.js | 14 +++++------ test/api/ping.spec.js | 6 ++--- test/api/refs.spec.js | 4 ++-- test/api/swarm.spec.js | 6 ++--- test/api/version.spec.js | 12 +++++----- test/setup.js | 4 ++-- 44 files changed, 201 insertions(+), 176 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 4d38d7855..5dcffd35d 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -5,7 +5,7 @@ const runSequence = require('run-sequence') require('require-dir')('tasks') -gulp.task('default', done => { +gulp.task('default', (done) => { runSequence( 'lint', 'test', diff --git a/package.json b/package.json index 2603b0433..4b0ada131 100644 --- a/package.json +++ b/package.json @@ -24,19 +24,21 @@ }, "devDependencies": { "babel-core": "^6.1.21", - "babel-eslint": "^5.0.0-beta6", + "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-config-standard": "^4.4.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": "^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", diff --git a/src/api/add.js b/src/api/add.js index 0083458eb..3d0a33d6e 100644 --- a/src/api/add.js +++ b/src/api/add.js @@ -1,6 +1,6 @@ const Wreck = require('wreck') -module.exports = send => { +module.exports = (send) => { return function add (files, opts, cb) { if (typeof (opts) === 'function' && cb === undefined) { cb = opts diff --git a/src/api/block.js b/src/api/block.js index fba2cfc59..2d8bc7b12 100644 --- a/src/api/block.js +++ b/src/api/block.js @@ -2,7 +2,7 @@ const argCommand = require('../cmd-helpers').argCommand -module.exports = send => { +module.exports = (send) => { return { get: argCommand(send, 'block/get'), stat: argCommand(send, 'block/stat'), diff --git a/src/api/cat.js b/src/api/cat.js index 8da4a3324..6a9639688 100644 --- a/src/api/cat.js +++ b/src/api/cat.js @@ -2,6 +2,6 @@ const argCommand = require('../cmd-helpers').argCommand -module.exports = send => { +module.exports = (send) => { return argCommand(send, 'cat') } diff --git a/src/api/commands.js b/src/api/commands.js index a49430071..18eaee4d5 100644 --- a/src/api/commands.js +++ b/src/api/commands.js @@ -2,6 +2,6 @@ const command = require('../cmd-helpers').command -module.exports = send => { +module.exports = (send) => { return command(send, 'commands') } diff --git a/src/api/config.js b/src/api/config.js index 7c5ff3e98..3ba502084 100644 --- a/src/api/config.js +++ b/src/api/config.js @@ -2,7 +2,7 @@ const argCommand = require('../cmd-helpers').argCommand -module.exports = send => { +module.exports = (send) => { return { get: argCommand(send, 'config'), set (key, value, opts, cb) { diff --git a/src/api/dht.js b/src/api/dht.js index 5c70d0897..aa02da5ce 100644 --- a/src/api/dht.js +++ b/src/api/dht.js @@ -2,7 +2,7 @@ const argCommand = require('../cmd-helpers').argCommand -module.exports = send => { +module.exports = (send) => { return { findprovs: argCommand(send, 'dht/findprovs'), get (key, opts, cb) { @@ -37,8 +37,8 @@ module.exports = send => { return send('dht/get', key, opts) .then( - res => handleResult(done, null, res), - err => handleResult(done, err) + (res) => handleResult(done, null, res), + (err) => handleResult(done, err) ) } diff --git a/src/api/diag.js b/src/api/diag.js index 1286cf686..d4f6ac2c6 100644 --- a/src/api/diag.js +++ b/src/api/diag.js @@ -2,7 +2,7 @@ const command = require('../cmd-helpers').command -module.exports = send => { +module.exports = (send) => { return { net: command(send, 'diag/net'), sys: command(send, 'diag/sys') diff --git a/src/api/id.js b/src/api/id.js index b9df9f0fc..ab4d44e8d 100644 --- a/src/api/id.js +++ b/src/api/id.js @@ -1,6 +1,6 @@ 'use strict' -module.exports = send => { +module.exports = (send) => { return function id (idParam, cb) { if (typeof idParam === 'function') { cb = idParam diff --git a/src/api/log.js b/src/api/log.js index b246a8a09..1c85767d8 100644 --- a/src/api/log.js +++ b/src/api/log.js @@ -2,12 +2,12 @@ const ndjson = require('ndjson') -module.exports = send => { +module.exports = (send) => { return { tail (cb) { if (typeof cb !== 'function' && typeof Promise !== 'undefined') { return send('log/tail', null, {}, null, false) - .then(res => res.pipe(ndjson.parse())) + .then((res) => res.pipe(ndjson.parse())) } return send('log/tail', null, {}, null, false, (err, res) => { diff --git a/src/api/ls.js b/src/api/ls.js index f87b7cc50..4f109b6fe 100644 --- a/src/api/ls.js +++ b/src/api/ls.js @@ -2,6 +2,6 @@ const argCommand = require('../cmd-helpers').argCommand -module.exports = send => { +module.exports = (send) => { return argCommand(send, 'ls') } diff --git a/src/api/mount.js b/src/api/mount.js index 6e600869f..917fa0b90 100644 --- a/src/api/mount.js +++ b/src/api/mount.js @@ -1,6 +1,6 @@ 'use strict' -module.exports = send => { +module.exports = (send) => { return function mount (ipfs, ipns, cb) { if (typeof ipfs === 'function') { cb = ipfs diff --git a/src/api/name.js b/src/api/name.js index 1385e4b9e..70e7b72b9 100644 --- a/src/api/name.js +++ b/src/api/name.js @@ -2,7 +2,7 @@ const argCommand = require('../cmd-helpers').argCommand -module.exports = send => { +module.exports = (send) => { return { publish: argCommand(send, 'name/publish'), resolve: argCommand(send, 'name/resolve') diff --git a/src/api/object.js b/src/api/object.js index ff5d7ba3f..00cc63838 100644 --- a/src/api/object.js +++ b/src/api/object.js @@ -2,7 +2,7 @@ const argCommand = require('../cmd-helpers').argCommand -module.exports = send => { +module.exports = (send) => { return { get: argCommand(send, 'object/get'), put (file, encoding, cb) { diff --git a/src/api/pin.js b/src/api/pin.js index 00655c6d5..e48facf47 100644 --- a/src/api/pin.js +++ b/src/api/pin.js @@ -1,6 +1,6 @@ 'use strict' -module.exports = send => { +module.exports = (send) => { return { add (hash, opts, cb) { if (typeof opts === 'function') { diff --git a/src/api/ping.js b/src/api/ping.js index f4261e01e..f2853a675 100644 --- a/src/api/ping.js +++ b/src/api/ping.js @@ -1,10 +1,10 @@ 'use strict' -module.exports = send => { +module.exports = (send) => { return function ping (id, cb) { if (typeof cb !== 'function' && typeof Promise !== 'undefined') { return send('ping', id, {n: 1}, null) - .then(res => res[1]) + .then((res) => res[1]) } return send('ping', id, { n: 1 }, null, function (err, res) { diff --git a/src/api/refs.js b/src/api/refs.js index bd39fa4ba..1788512f7 100644 --- a/src/api/refs.js +++ b/src/api/refs.js @@ -2,7 +2,7 @@ const cmds = require('../cmd-helpers') -module.exports = send => { +module.exports = (send) => { const refs = cmds.argCommand(send, 'refs') refs.local = cmds.command(send, 'refs/local') diff --git a/src/api/swarm.js b/src/api/swarm.js index 9e42d0e41..7619b8630 100644 --- a/src/api/swarm.js +++ b/src/api/swarm.js @@ -2,7 +2,7 @@ const cmds = require('../cmd-helpers') -module.exports = send => { +module.exports = (send) => { return { peers: cmds.command(send, 'swarm/peers'), connect: cmds.argCommand(send, 'swarm/connect') diff --git a/src/api/update.js b/src/api/update.js index 13c057023..5eca2c3ec 100644 --- a/src/api/update.js +++ b/src/api/update.js @@ -2,7 +2,7 @@ const command = require('../cmd-helpers').command -module.exports = send => { +module.exports = (send) => { return { apply: command(send, 'update'), check: command(send, 'update/check'), diff --git a/src/api/version.js b/src/api/version.js index 3447b1a20..9221b6275 100644 --- a/src/api/version.js +++ b/src/api/version.js @@ -2,6 +2,6 @@ const command = require('../cmd-helpers').command -module.exports = send => { +module.exports = (send) => { return command(send, 'version') } diff --git a/src/load-commands.js b/src/load-commands.js index f6be472ac..087f73976 100644 --- a/src/load-commands.js +++ b/src/load-commands.js @@ -32,7 +32,7 @@ function loadCommands (send) { const files = requireCommands() const cmds = {} - Object.keys(files).forEach(file => { + Object.keys(files).forEach((file) => { cmds[file] = files[file](send) }) diff --git a/tasks/build.js b/tasks/build.js index f3ef434c5..573673c92 100644 --- a/tasks/build.js +++ b/tasks/build.js @@ -8,7 +8,7 @@ const runSequence = require('run-sequence') const config = require('./config') -gulp.task('clean', done => { +gulp.task('clean', (done) => { rimraf('./dist', done) }) @@ -30,7 +30,7 @@ gulp.task('build:minified', () => { .pipe(gulp.dest('dist/')) }) -gulp.task('build', ['clean'], done => { +gulp.task('build', ['clean'], (done) => { runSequence( 'build:nonminified', 'build:minified', diff --git a/tasks/daemons.js b/tasks/daemons.js index 6bebbfd35..7d127edcc 100644 --- a/tasks/daemons.js +++ b/tasks/daemons.js @@ -2,17 +2,18 @@ const gulp = require('gulp') const fs = require('fs') +const path = require('path') let daemons -gulp.task('daemons:start', done => { - startDisposableDaemons(d => { +gulp.task('daemons:start', (done) => { + startDisposableDaemons((d) => { daemons = d done() }) }) -gulp.task('daemons:stop', done => { +gulp.task('daemons:stop', (done) => { stopDisposableDaemons(daemons, () => { daemons = null done() @@ -33,7 +34,8 @@ function startDisposableDaemons (callback) { function finish () { counter++ if (counter === 3) { - fs.writeFileSync(__dirname + '/../test/tmp-disposable-nodes-addrs.json', JSON.stringify(apiAddrs)) + const targetPath = path.join(__dirname, '/../test/tmp-disposable-nodes-addrs.json') + fs.writeFileSync(targetPath, JSON.stringify(apiAddrs)) callback(ipfsNodes) } } @@ -48,11 +50,11 @@ function startDisposableDaemons (callback) { console.log(' ipfs init done - (bootstrap and mdns off) - ' + key) - ipfsNodes[key].setConfig('Bootstrap', null, err => { + ipfsNodes[key].setConfig('Bootstrap', null, (err) => { if (err) { throw err } - ipfsNodes[key].setConfig('Discovery', '{}', err => { + ipfsNodes[key].setConfig('Discovery', '{}', (err) => { if (err) { throw err } @@ -62,7 +64,7 @@ function startDisposableDaemons (callback) { 'Access-Control-Allow-Origin': ['*'] } } - ipfsNodes[key].setConfig('API', JSON.stringify(headers), err => { + ipfsNodes[key].setConfig('API', JSON.stringify(headers), (err) => { if (err) { throw err } @@ -97,7 +99,7 @@ function stopDisposableDaemons (daemons, callback) { function stopIPFSNode (daemons, key, cb) { let nodeStopped - daemons[key].stopDaemon(err => { + daemons[key].stopDaemon((err) => { if (err) { throw err } diff --git a/tasks/release.js b/tasks/release.js index 7fb97c36e..d750229b8 100644 --- a/tasks/release.js +++ b/tasks/release.js @@ -20,7 +20,7 @@ function npmPublish (done) { const publish = spawn('npm', ['publish']) publish.stdout.pipe(process.stdout) publish.stderr.pipe(process.stderr) - publish.on('close', code => { + publish.on('close', (code) => { if (code !== 0) return fail(`npm publish. Exiting with ${code}.`) $.util.log('Published to npm.') @@ -54,10 +54,10 @@ gulp.task('release:bump', () => { .pipe($.tagVersion()) }) -gulp.task('release:push', done => { +gulp.task('release:push', (done) => { const remote = $.util.remote || 'origin' $.util.log('Pushing to git...') - $.git.push(remote, 'master', {args: '--tags'}, err => { + $.git.push(remote, 'master', {args: '--tags'}, (err) => { if (err) return fail(err.message) $.util.log(`Pushed to git ${remote}:master`) @@ -65,7 +65,7 @@ gulp.task('release:push', done => { }) }) -gulp.task('release:publish', done => { +gulp.task('release:publish', (done) => { $.git.status({args: '-s'}, (err, stdout) => { if (err) return fail(err.message) @@ -80,7 +80,7 @@ gulp.task('release:publish', done => { }) }) -gulp.task('release', done => { +gulp.task('release', (done) => { runSequence( 'lint', 'test', diff --git a/tasks/test.js b/tasks/test.js index 0c32dfb16..83c4d361b 100644 --- a/tasks/test.js +++ b/tasks/test.js @@ -4,12 +4,13 @@ const gulp = require('gulp') const Server = require('karma').Server const $ = require('gulp-load-plugins')() const runSequence = require('run-sequence') +const path = require('path') const config = require('./config') require('./daemons') -gulp.task('test', done => { +gulp.task('test', (done) => { runSequence( 'test:node', 'test:browser', @@ -17,7 +18,7 @@ gulp.task('test', done => { ) }) -gulp.task('test:node', done => { +gulp.task('test:node', (done) => { runSequence( 'daemons:start', 'mocha', @@ -26,7 +27,7 @@ gulp.task('test:node', done => { ) }) -gulp.task('test:browser', done => { +gulp.task('test:browser', (done) => { runSequence( 'daemons:start', 'karma', @@ -45,9 +46,9 @@ gulp.task('mocha', () => { })) }) -gulp.task('karma', done => { +gulp.task('karma', (done) => { new Server({ - configFile: __dirname + '/../karma.conf.js', + configFile: path.join(__dirname, '/../karma.conf.js'), singleRun: true }, done).start() }) diff --git a/test/api/add.spec.js b/test/api/add.spec.js index 1432e299e..aefd401ec 100644 --- a/test/api/add.spec.js +++ b/test/api/add.spec.js @@ -6,14 +6,14 @@ const Readable = require('stream').Readable const isNode = !global.window -const testfilePath = __dirname + '/../testfile.txt' +const testfilePath = path.join(__dirname, '/../testfile.txt') let testfile let testfileBig if (isNode) { - testfile = require('fs').readFileSync(__dirname + '/../testfile.txt') - testfileBig = require('fs').createReadStream(__dirname + '/../15mb.random', { bufferSize: 128 }) - // testfileBig = require('fs').createReadStream(__dirname + '/../100mb.random', { bufferSize: 128 }) + testfile = require('fs').readFileSync(path.join(__dirname, '/../testfile.txt')) + testfileBig = require('fs').createReadStream(path.join(__dirname, '/../15mb.random'), { bufferSize: 128 }) + // testfileBig = require('fs').createReadStream(path.join(__dirname, '/../100mb.random'), { bufferSize: 128 }) } else { testfile = require('raw!../testfile.txt') // browser goes nuts with a 100mb in memory @@ -21,7 +21,7 @@ if (isNode) { } describe('.add', () => { - it('add file', done => { + it('add file', (done) => { if (!isNode) { return done() } @@ -43,7 +43,7 @@ describe('.add', () => { }) }) - it('add buffer', done => { + it('add buffer', (done) => { let buf = new Buffer(testfile) apiClients['a'].add(buf, (err, res) => { expect(err).to.not.exist @@ -53,7 +53,7 @@ describe('.add', () => { }) }) - it('add BIG buffer', done => { + it('add BIG buffer', (done) => { if (!isNode) { return done() } @@ -66,7 +66,7 @@ describe('.add', () => { }) }) - it('add path', done => { + it('add path', (done) => { if (!isNode) { return done() } @@ -80,8 +80,8 @@ describe('.add', () => { }) }) - it('add a nested dir', done => { - apiClients['a'].add(__dirname + '/../test-folder', { recursive: true }, (err, res) => { + it('add a nested dir', (done) => { + apiClients['a'].add(path.join(__dirname, '/../test-folder'), { recursive: true }, (err, res) => { if (isNode) { expect(err).to.not.exist @@ -95,7 +95,7 @@ describe('.add', () => { }) }) - it('add stream', done => { + it('add stream', (done) => { const stream = new Readable() stream.push('Hello world') stream.push(null) @@ -108,7 +108,7 @@ describe('.add', () => { }) }) - it('add url', done => { + it('add url', (done) => { const url = 'https://raw.githubusercontent.com/ipfs/js-ipfs-api/2a9cc63d7427353f2145af6b1a768a69e67c0588/README.md' apiClients['a'].add(url, (err, res) => { expect(err).to.not.exist @@ -123,7 +123,7 @@ describe('.add', () => { it('add buffer', () => { let buf = new Buffer(testfile) return apiClients['a'].add(buf) - .then(res => { + .then((res) => { expect(res).to.have.length(1) expect(res[0]).to.have.property('Hash', 'Qma4hjFTnCasJ8PVp3mZbZK5g2vGDT4LByLJ7m8ciyRFZP') }) diff --git a/test/api/block.spec.js b/test/api/block.spec.js index cedc9bd9f..eadeedec9 100644 --- a/test/api/block.spec.js +++ b/test/api/block.spec.js @@ -4,7 +4,7 @@ describe('.block', () => { const blorbKey = 'QmPv52ekjS75L4JmHpXVeuJ5uX2ecSfSZo88NSyxwA3rAQ' const blorb = Buffer('blorb') - it('block.put', done => { + it('block.put', (done) => { apiClients['a'].block.put(blorb, (err, res) => { expect(err).to.not.exist expect(res).to.have.a.property('Key', 'QmPv52ekjS75L4JmHpXVeuJ5uX2ecSfSZo88NSyxwA3rAQ') @@ -12,7 +12,7 @@ describe('.block', () => { }) }) - it('block.get', done => { + it('block.get', (done) => { apiClients['a'].block.get(blorbKey, (err, res) => { expect(err).to.not.exist @@ -26,7 +26,7 @@ describe('.block', () => { }) }) - it('block.stat', done => { + it('block.stat', (done) => { apiClients['a'].block.stat(blorbKey, (err, res) => { expect(err).to.not.exist expect(res).to.have.property('Key') @@ -38,14 +38,14 @@ describe('.block', () => { describe('promise', () => { it('block.put', () => { return apiClients['a'].block.put(blorb) - .then(res => { + .then((res) => { expect(res).to.have.a.property('Key', 'QmPv52ekjS75L4JmHpXVeuJ5uX2ecSfSZo88NSyxwA3rAQ') }) }) - it('block.get', done => { + it('block.get', (done) => { return apiClients['a'].block.get(blorbKey) - .then(res => { + .then((res) => { let buf = '' res .on('data', function (data) { buf += data }) @@ -58,7 +58,7 @@ describe('.block', () => { it('block.stat', () => { return apiClients['a'].block.stat(blorbKey) - .then(res => { + .then((res) => { expect(res).to.have.property('Key') expect(res).to.have.property('Size') }) diff --git a/test/api/cat.spec.js b/test/api/cat.spec.js index 04cf9bb17..a170b164a 100644 --- a/test/api/cat.spec.js +++ b/test/api/cat.spec.js @@ -1,34 +1,40 @@ 'use strict' +const path = require('path') const streamEqual = require('stream-equal') let testfile let testfileBig if (isNode) { - testfile = require('fs').readFileSync(__dirname + '/../testfile.txt') - testfileBig = require('fs').createReadStream(__dirname + '/../15mb.random', { bufferSize: 128 }) + testfile = require('fs').readFileSync(path.join(__dirname, '/../testfile.txt')) + testfileBig = require('fs').createReadStream(path.join(__dirname, '/../15mb.random'), { bufferSize: 128 }) } else { testfile = require('raw!../testfile.txt') } describe('.cat', () => { - it('cat', done => { - apiClients['a'].cat('Qma4hjFTnCasJ8PVp3mZbZK5g2vGDT4LByLJ7m8ciyRFZP', (err, res) => { - expect(err).to.not.exist + it('cat', (done) => { + apiClients['a'] + .cat('Qma4hjFTnCasJ8PVp3mZbZK5g2vGDT4LByLJ7m8ciyRFZP', (err, res) => { + expect(err).to.not.exist - let buf = '' - res - .on('error', err => { throw err }) - .on('data', data => buf += data) - .on('end', () => { - expect(buf).to.be.equal(testfile.toString()) - done() - }) - }) + let buf = '' + res + .on('error', (err) => { + throw err + }) + .on('data', (data) => { + buf += data + }) + .on('end', () => { + expect(buf).to.be.equal(testfile.toString()) + done() + }) + }) }) - it('cat BIG file', done => { + it('cat BIG file', (done) => { if (!isNode) { return done() } @@ -36,7 +42,7 @@ describe('.cat', () => { apiClients['a'].cat('Qme79tX2bViL26vNjPsF3DP1R9rMKMvnPYJiKTTKPrXJjq', (err, res) => { expect(err).to.not.exist - testfileBig = require('fs').createReadStream(__dirname + '/../15mb.random', { bufferSize: 128 }) + testfileBig = require('fs').createReadStream(path.join(__dirname, '/../15mb.random'), { bufferSize: 128 }) // Do not blow out the memory of nodejs :) streamEqual(res, testfileBig, (err, equal) => { @@ -48,13 +54,17 @@ describe('.cat', () => { }) describe('promise', () => { - it('cat', done => { + it('cat', (done) => { return apiClients['a'].cat('Qma4hjFTnCasJ8PVp3mZbZK5g2vGDT4LByLJ7m8ciyRFZP') - .then(res => { + .then((res) => { let buf = '' res - .on('error', err => { throw err }) - .on('data', data => buf += data) + .on('error', (err) => { + throw err + }) + .on('data', (data) => { + buf += data + }) .on('end', () => { expect(buf).to.be.equal(testfile.toString()) done() diff --git a/test/api/commands.spec.js b/test/api/commands.spec.js index a76e23c36..e1447862a 100644 --- a/test/api/commands.spec.js +++ b/test/api/commands.spec.js @@ -1,7 +1,7 @@ 'use strict' describe('.commands', () => { - it('lists commands', done => { + it('lists commands', (done) => { apiClients['a'].commands((err, res) => { expect(err).to.not.exist expect(res).to.exist @@ -12,9 +12,9 @@ describe('.commands', () => { describe('promise', () => { it('lists commands', () => { return apiClients['a'].commands() - .then(res => { - expect(res).to.exist - }) + .then((res) => { + expect(res).to.exist + }) }) }) }) diff --git a/test/api/config.spec.js b/test/api/config.spec.js index 2241b6e2c..d8029e6f3 100644 --- a/test/api/config.spec.js +++ b/test/api/config.spec.js @@ -1,7 +1,9 @@ 'use strict' +const path = require('path') + describe('.config', () => { - it('.config.{set, get}', done => { + it('.config.{set, get}', (done) => { const confKey = 'arbitraryKey' const confVal = 'arbitraryVal' @@ -15,7 +17,7 @@ describe('.config', () => { }) }) - it('.config.show', done => { + it('.config.show', (done) => { apiClients['c'].config.show((err, res) => { expect(err).to.not.exist expect(res).to.exist @@ -23,12 +25,12 @@ describe('.config', () => { }) }) - it('.config.replace', done => { + it('.config.replace', (done) => { if (!isNode) { return done() } - apiClients['c'].config.replace(__dirname + '/../r-config.json', (err, res) => { + apiClients['c'].config.replace(path.join(__dirname, '/../r-config.json'), (err, res) => { expect(err).to.not.exist expect(res).to.be.equal(null) done() @@ -41,17 +43,17 @@ describe('.config', () => { const confVal = 'arbitraryVal' return apiClients['a'].config.set(confKey, confVal) - .then(res => { + .then((res) => { return apiClients['a'].config.get(confKey) }) - .then(res => { + .then((res) => { expect(res).to.have.a.property('Value', confVal) }) }) it('.config.show', () => { return apiClients['c'].config.show() - .then(res => { + .then((res) => { expect(res).to.exist }) }) @@ -61,8 +63,8 @@ describe('.config', () => { return } - return apiClients['c'].config.replace(__dirname + '/../r-config.json') - .then(res => { + return apiClients['c'].config.replace(path.join(__dirname, '/../r-config.json')) + .then((res) => { expect(res).to.be.equal(null) }) }) diff --git a/test/api/dht.spec.js b/test/api/dht.spec.js index ff6e7c5d3..d3154d673 100644 --- a/test/api/dht.spec.js +++ b/test/api/dht.spec.js @@ -2,14 +2,14 @@ describe('.dht', () => { it('returns an error when getting a non-existent key from the DHT', - done => { + (done) => { apiClients['a'].dht.get('non-existent', {timeout: '100ms'}, (err, value) => { expect(err).to.be.an.instanceof(Error) done() }) }) - it('puts and gets a key value pair in the DHT', done => { + it('puts and gets a key value pair in the DHT', (done) => { apiClients['a'].dht.put('scope', 'interplanetary', (err, res) => { expect(err).to.not.exist @@ -28,7 +28,7 @@ describe('.dht', () => { }) }) - it('.dht.findprovs', done => { + it('.dht.findprovs', (done) => { apiClients['a'].dht.findprovs('Qma4hjFTnCasJ8PVp3mZbZK5g2vGDT4LByLJ7m8ciyRFZP', (err, res) => { expect(err).to.not.exist @@ -40,21 +40,21 @@ describe('.dht', () => { describe('promise', () => { it('returns an error when getting a non-existent key from the DHT', () => { return apiClients['a'].dht.get('non-existent', {timeout: '100ms'}) - .catch(err => { + .catch((err) => { expect(err).to.be.an.instanceof(Error) }) }) it('puts a key value pair in the DHT', () => { return apiClients['a'].dht.put('scope', 'interplanetary') - .then(res => { + .then((res) => { expect(res).to.be.an('array') }) }) it('.dht.findprovs', () => { return apiClients['a'].dht.findprovs('Qma4hjFTnCasJ8PVp3mZbZK5g2vGDT4LByLJ7m8ciyRFZP') - .then(res => { + .then((res) => { expect(res).to.be.an('array') }) }) diff --git a/test/api/diag.spec.js b/test/api/diag.spec.js index e598c7d7f..63dc9ed24 100644 --- a/test/api/diag.spec.js +++ b/test/api/diag.spec.js @@ -1,7 +1,7 @@ 'use strict' describe('.diag', () => { - it('.diag.net', done => { + it('.diag.net', (done) => { apiClients['a'].diag.net((err, res) => { expect(err).to.not.exist expect(res).to.exist @@ -9,7 +9,7 @@ describe('.diag', () => { }) }) - it('.diag.sys', done => { + it('.diag.sys', (done) => { apiClients['a'].diag.sys((err, res) => { expect(err).to.not.exist expect(res).to.exist @@ -22,14 +22,14 @@ describe('.diag', () => { describe('promise', () => { it('.diag.net', () => { return apiClients['a'].diag.net() - .then(res => { + .then((res) => { expect(res).to.exist }) }) it('.diag.sys', () => { return apiClients['a'].diag.sys() - .then(res => { + .then((res) => { expect(res).to.exist expect(res).to.have.a.property('memory') expect(res).to.have.a.property('diskinfo') diff --git a/test/api/id.spec.js b/test/api/id.spec.js index c32b459e2..fef9e5b72 100644 --- a/test/api/id.spec.js +++ b/test/api/id.spec.js @@ -1,7 +1,7 @@ 'use strict' describe('.id', () => { - it('id', done => { + it('id', (done) => { apiClients['a'].id((err, res) => { expect(err).to.not.exist expect(res).to.have.a.property('ID') @@ -13,7 +13,7 @@ describe('.id', () => { describe('promise', () => { it('id', () => { return apiClients['a'].id() - .then(res => { + .then((res) => { expect(res).to.have.a.property('ID') expect(res).to.have.a.property('PublicKey') }) diff --git a/test/api/log.spec.js b/test/api/log.spec.js index 40ca49595..7e89c3c1c 100644 --- a/test/api/log.spec.js +++ b/test/api/log.spec.js @@ -1,13 +1,13 @@ 'use strict' describe('.log', () => { - it('.log.tail', done => { + it('.log.tail', (done) => { const req = apiClients['a'].log.tail((err, res) => { expect(err).to.not.exist expect(req).to.exist - res.once('data', obj => { + res.once('data', (obj) => { expect(obj).to.be.an('object') done() }) @@ -15,14 +15,14 @@ describe('.log', () => { }) describe('promise', () => { - it('.log.tail', done => { + it('.log.tail', (done) => { return apiClients['a'].log.tail() - .then(res => { - res.once('data', obj => { - expect(obj).to.be.an('object') - done() + .then((res) => { + res.once('data', (obj) => { + expect(obj).to.be.an('object') + done() + }) }) - }) }) }) }) diff --git a/test/api/ls.spec.js b/test/api/ls.spec.js index 59ce03611..8ebe3cdff 100644 --- a/test/api/ls.spec.js +++ b/test/api/ls.spec.js @@ -39,16 +39,16 @@ describe('ls', function () { if (!isNode) return return apiClients['a'].ls('QmSzLpCVbWnEm3XoTWnv6DT6Ju5BsVoLhzvxKXZeQ2cmdg') - .then(res => { - expect(res).to.have.a.property('Objects') - expect(res.Objects[0]).to.have.a.property('Links') - expect(res.Objects[0]).to.have.property('Hash', 'QmSzLpCVbWnEm3XoTWnv6DT6Ju5BsVoLhzvxKXZeQ2cmdg') - }) + .then((res) => { + expect(res).to.have.a.property('Objects') + expect(res.Objects[0]).to.have.a.property('Links') + expect(res.Objects[0]).to.have.property('Hash', 'QmSzLpCVbWnEm3XoTWnv6DT6Ju5BsVoLhzvxKXZeQ2cmdg') + }) }) it('should correctly handle a nonexisting hash', () => { return apiClients['a'].ls('surelynotavalidhashheh?') - .catch(err => { + .catch((err) => { expect(err).to.exist }) }) @@ -57,7 +57,7 @@ describe('ls', function () { if (!isNode) return return apiClients['a'].ls('QmTDH2RXGn8XyDAo9YyfbZAUXwL1FCr44YJCN9HBZmL9Gj/folder_that_isnt_there') - .catch(err => { + .catch((err) => { expect(err).to.exist }) }) diff --git a/test/api/name.spec.js b/test/api/name.spec.js index a834f96dd..1bac2fffe 100644 --- a/test/api/name.spec.js +++ b/test/api/name.spec.js @@ -3,7 +3,7 @@ describe('.name', () => { let name - it('.name.publish', done => { + it('.name.publish', (done) => { apiClients['a'].name.publish('Qma4hjFTnCasJ8PVp3mZbZK5g2vGDT4LByLJ7m8ciyRFZP', (err, res) => { expect(err).to.not.exist name = res @@ -12,7 +12,7 @@ describe('.name', () => { }) }) - it('.name.resolve', done => { + it('.name.resolve', (done) => { apiClients['a'].name.resolve(name.Name, (err, res) => { expect(err).to.not.exist expect(res).to.exist @@ -26,7 +26,7 @@ describe('.name', () => { describe('promise', () => { it('.name.publish', () => { return apiClients['a'].name.publish('Qma4hjFTnCasJ8PVp3mZbZK5g2vGDT4LByLJ7m8ciyRFZP') - .then(res => { + .then((res) => { name = res expect(name).to.exist }) @@ -34,7 +34,7 @@ describe('.name', () => { it('.name.resolve', () => { return apiClients['a'].name.resolve(name.Name) - .then(res => { + .then((res) => { expect(res).to.exist expect(res).to.be.eql({ Path: '/ipfs/' + name.Value diff --git a/test/api/object.spec.js b/test/api/object.spec.js index dca7abdb9..1263ce37c 100644 --- a/test/api/object.spec.js +++ b/test/api/object.spec.js @@ -6,7 +6,7 @@ describe('.object', () => { const testPatchObject = Buffer(JSON.stringify({Data: 'new test data'})) const testPatchObjectHash = 'QmWJDtdQWQSajQPx1UVAGWKaSGrHVWdjnrNhbooHP7LuF2' - it('object.put', done => { + it('object.put', (done) => { apiClients['a'].object.put(testObject, 'json', (err, res) => { expect(err).to.not.exist expect(res).to.have.a.property('Hash', testObjectHash) @@ -15,7 +15,7 @@ describe('.object', () => { }) }) - it('object.get', done => { + it('object.get', (done) => { apiClients['a'].object.get(testObjectHash, (err, res) => { expect(err).to.not.exist expect(res).to.have.a.property('Data', 'testdata') @@ -24,14 +24,18 @@ describe('.object', () => { }) }) - it('object.data', done => { + it('object.data', (done) => { apiClients['a'].object.data(testObjectHash, (err, res) => { expect(err).to.not.exist let buf = '' res - .on('error', err => { throw err }) - .on('data', data => buf += data) + .on('error', (err) => { + throw err + }) + .on('data', (data) => { + buf += data + }) .on('end', () => { expect(buf).to.equal('testdata') done() @@ -39,7 +43,7 @@ describe('.object', () => { }) }) - it('object.stat', done => { + it('object.stat', (done) => { apiClients['a'].object.stat(testObjectHash, (err, res) => { expect(err).to.not.exist expect(res).to.be.eql({ @@ -54,7 +58,7 @@ describe('.object', () => { }) }) - it('object.links', done => { + it('object.links', (done) => { apiClients['a'].object.links(testObjectHash, (err, res) => { expect(err).to.not.exist @@ -66,7 +70,7 @@ describe('.object', () => { }) }) - it('object.patch', done => { + it('object.patch', (done) => { apiClients['a'].object.put(testPatchObject, 'json', (err, res) => { expect(err).to.not.exist apiClients['a'].object.patch(testObjectHash, ['add-link', 'next', testPatchObjectHash], (err, res) => { @@ -91,7 +95,7 @@ describe('.object', () => { }) }) - it('object.new', done => { + it('object.new', (done) => { apiClients['a'].object.new('unixfs-dir', (err, res) => { expect(err).to.not.exist expect(res).to.deep.equal({ @@ -105,7 +109,7 @@ describe('.object', () => { describe('promise', () => { it('object.put', () => { return apiClients['a'].object.put(testObject, 'json') - .then(res => { + .then((res) => { expect(res).to.have.a.property('Hash', testObjectHash) expect(res.Links).to.be.empty }) @@ -113,19 +117,23 @@ describe('.object', () => { it('object.get', () => { return apiClients['a'].object.get(testObjectHash) - .then(res => { + .then((res) => { expect(res).to.have.a.property('Data', 'testdata') expect(res.Links).to.be.empty }) }) - it('object.data', done => { + it('object.data', (done) => { return apiClients['a'].object.data(testObjectHash) - .then(res => { + .then((res) => { let buf = '' res - .on('error', err => { throw err }) - .on('data', data => buf += data) + .on('error', (err) => { + throw err + }) + .on('data', (data) => { + buf += data + }) .on('end', () => { expect(buf).to.equal('testdata') done() @@ -135,7 +143,7 @@ describe('.object', () => { it('object.stat', () => { return apiClients['a'].object.stat(testObjectHash) - .then(res => { + .then((res) => { expect(res).to.be.eql({ Hash: 'QmPTkMuuL6PD8L2SwTwbcs1NPg14U8mRzerB1ZrrBrkSDD', NumLinks: 0, @@ -149,7 +157,7 @@ describe('.object', () => { it('object.links', () => { return apiClients['a'].object.links(testObjectHash) - .then(res => { + .then((res) => { expect(res).to.be.eql({ Hash: 'QmPTkMuuL6PD8L2SwTwbcs1NPg14U8mRzerB1ZrrBrkSDD', Links: [] @@ -159,18 +167,18 @@ describe('.object', () => { it('object.patch', () => { return apiClients['a'].object.put(testPatchObject, 'json') - .then(res => { + .then((res) => { return apiClients['a'].object .patch(testObjectHash, ['add-link', 'next', testPatchObjectHash]) }) - .then(res => { + .then((res) => { expect(res).to.be.eql({ Hash: 'QmZFdJ3CQsY4kkyQtjoUo8oAzsEs5BNguxBhp8sjQMpgkd', Links: null }) return apiClients['a'].object.get(res.Hash) }) - .then(res => { + .then((res) => { expect(res).to.be.eql({ Data: 'testdata', Links: [{ @@ -184,7 +192,7 @@ describe('.object', () => { it('object.new', () => { return apiClients['a'].object.new('unixfs-dir') - .then(res => { + .then((res) => { expect(res).to.deep.equal({ Hash: 'QmUNLLsPACCz1vLxQVkXqqLX5R1X345qqfHbsf67hvA3Nn', Links: null diff --git a/test/api/pin.spec.js b/test/api/pin.spec.js index f018fdfce..33f7682f6 100644 --- a/test/api/pin.spec.js +++ b/test/api/pin.spec.js @@ -1,7 +1,7 @@ 'use strict' describe('.pin', () => { - it('.pin.add', done => { + it('.pin.add', (done) => { apiClients['b'].pin.add('Qma4hjFTnCasJ8PVp3mZbZK5g2vGDT4LByLJ7m8ciyRFZP', {recursive: false}, (err, res) => { expect(err).to.not.exist expect(res.Pinned[0]).to.be.equal('Qma4hjFTnCasJ8PVp3mZbZK5g2vGDT4LByLJ7m8ciyRFZP') @@ -9,7 +9,7 @@ describe('.pin', () => { }) }) - it('.pin.list', done => { + it('.pin.list', (done) => { apiClients['b'].pin.list((err, res) => { expect(err).to.not.exist expect(res).to.exist @@ -17,7 +17,7 @@ describe('.pin', () => { }) }) - it('.pin.remove', done => { + it('.pin.remove', (done) => { apiClients['b'].pin.remove('Qma4hjFTnCasJ8PVp3mZbZK5g2vGDT4LByLJ7m8ciyRFZP', {recursive: false}, (err, res) => { expect(err).to.not.exist expect(res).to.exist @@ -34,14 +34,14 @@ describe('.pin', () => { it('.pin.add', () => { return apiClients['b'].pin .add('Qma4hjFTnCasJ8PVp3mZbZK5g2vGDT4LByLJ7m8ciyRFZP', {recursive: false}) - .then(res => { + .then((res) => { expect(res.Pinned[0]).to.be.equal('Qma4hjFTnCasJ8PVp3mZbZK5g2vGDT4LByLJ7m8ciyRFZP') }) }) it('.pin.list', () => { return apiClients['b'].pin.list() - .then(res => { + .then((res) => { expect(res).to.exist }) }) @@ -49,11 +49,11 @@ describe('.pin', () => { it('.pin.remove', () => { return apiClients['b'].pin .remove('Qma4hjFTnCasJ8PVp3mZbZK5g2vGDT4LByLJ7m8ciyRFZP', {recursive: false}) - .then(res => { + .then((res) => { expect(res).to.exist return apiClients['b'].pin.list('direct') }) - .then(res => { + .then((res) => { expect(res).to.exist expect(res.Keys).to.be.empty }) diff --git a/test/api/ping.spec.js b/test/api/ping.spec.js index 6d409216b..b65f9d5b6 100644 --- a/test/api/ping.spec.js +++ b/test/api/ping.spec.js @@ -1,7 +1,7 @@ 'use strict' describe('.ping', () => { - it('ping another peer', done => { + it('ping another peer', (done) => { apiClients['b'].id((err, id) => { expect(err).to.not.exist @@ -16,10 +16,10 @@ describe('.ping', () => { describe('promise', () => { it('ping another peer', () => { return apiClients['b'].id() - .then(id => { + .then((id) => { return apiClients['a'].ping(id.ID) }) - .then(res => { + .then((res) => { expect(res).to.have.a.property('Success') }) }) diff --git a/test/api/refs.spec.js b/test/api/refs.spec.js index 07ad6276c..f08bd18e9 100644 --- a/test/api/refs.spec.js +++ b/test/api/refs.spec.js @@ -25,7 +25,7 @@ describe('.refs', () => { Err: '' }] - it('refs', done => { + it('refs', (done) => { if (!isNode) { return done() } @@ -44,7 +44,7 @@ describe('.refs', () => { if (!isNode) return return apiClients['a'].refs(folder, {'format': ' '}) - .then(objs => { + .then((objs) => { expect(objs).to.eql(result) }) }) diff --git a/test/api/swarm.spec.js b/test/api/swarm.spec.js index ea5595e42..2fa81aafc 100644 --- a/test/api/swarm.spec.js +++ b/test/api/swarm.spec.js @@ -1,7 +1,7 @@ 'use strict' describe('.swarm', () => { - it('.swarm.peers', done => { + it('.swarm.peers', (done) => { apiClients['a'].swarm.peers((err, res) => { expect(err).to.not.exist @@ -10,7 +10,7 @@ describe('.swarm', () => { }) }) - it('.swarm.connect', done => { + it('.swarm.connect', (done) => { // Done in the 'before' segment done() }) @@ -18,7 +18,7 @@ describe('.swarm', () => { describe('promise', () => { it('.swarm.peers', () => { return apiClients['a'].swarm.peers() - .then(res => { + .then((res) => { expect(res.Strings).to.have.length.above(1) }) }) diff --git a/test/api/version.spec.js b/test/api/version.spec.js index 34f688a65..3449f6f0e 100644 --- a/test/api/version.spec.js +++ b/test/api/version.spec.js @@ -3,7 +3,7 @@ describe('.version', () => { // note, IPFS HTTP-API returns always the same object, the filtering // happens on the CLI - it('checks the version', done => { + it('checks the version', (done) => { apiClients['a'].version((err, res) => { expect(err).to.not.exist expect(res).to.have.a.property('Version') @@ -13,7 +13,7 @@ describe('.version', () => { }) }) - it('with number option', done => { + it('with number option', (done) => { apiClients['a'].version({number: true}, (err, res) => { expect(err).to.not.exist expect(res).to.have.a.property('Version') @@ -23,7 +23,7 @@ describe('.version', () => { }) }) - it('with commit option', done => { + it('with commit option', (done) => { apiClients['a'].version({commit: true}, (err, res) => { expect(err).to.not.exist expect(res).to.have.a.property('Version') @@ -33,7 +33,7 @@ describe('.version', () => { }) }) - it('with repo option', done => { + it('with repo option', (done) => { apiClients['a'].version({commit: true}, (err, res) => { expect(err).to.not.exist expect(res).to.have.a.property('Version') @@ -46,7 +46,7 @@ describe('.version', () => { describe('promise', () => { it('checks the version', () => { return apiClients['a'].version() - .then(res => { + .then((res) => { expect(res).to.have.a.property('Version') expect(res).to.have.a.property('Commit') expect(res).to.have.a.property('Repo') @@ -55,7 +55,7 @@ describe('.version', () => { it('with number option', () => { return apiClients['a'].version({number: true}) - .then(res => { + .then((res) => { expect(res).to.have.a.property('Version') expect(res).to.have.a.property('Commit') expect(res).to.have.a.property('Repo') diff --git a/test/setup.js b/test/setup.js index 81ad12929..38bec0952 100644 --- a/test/setup.js +++ b/test/setup.js @@ -36,7 +36,7 @@ function connectNodes (done) { if (err) { throw err } - apiClients['a'].swarm.connect(addrs['c'], err => { + apiClients['a'].swarm.connect(addrs['c'], (err) => { if (err) { throw err } @@ -49,7 +49,7 @@ function connectNodes (done) { before(function (done) { this.timeout(20000) - Object.keys(apiAddrs).forEach(key => { + Object.keys(apiAddrs).forEach((key) => { global.apiClients[key] = ipfsAPI(apiAddrs[key]) }) From 32918c146c2bd655d2d66cf5872f446ab2295c89 Mon Sep 17 00:00:00 2001 From: David Dias Date: Mon, 8 Feb 2016 22:53:17 +0000 Subject: [PATCH 08/17] chore: build --- dist/ipfsapi.js | 4 ++-- dist/ipfsapi.min.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/ipfsapi.js b/dist/ipfsapi.js index baa1ede74..bf8d31b18 100644 --- a/dist/ipfsapi.js +++ b/dist/ipfsapi.js @@ -35,7 +35,7 @@ var ipfsAPI = /******/ __webpack_require__.c = installedModules; /******/ // __webpack_public_path__ -/******/ __webpack_require__.p = "/_karma_webpack_//"; +/******/ __webpack_require__.p = ""; /******/ // Load entry module and return exports /******/ return __webpack_require__(0); @@ -1287,7 +1287,7 @@ var ipfsAPI = /* 207 */ /***/ function(module, exports) { - eval("module.exports = {\n\t\"name\": \"ipfs-api\",\n\t\"version\": \"2.11.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-beta6\",\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-config-standard\": \"^4.4.0\",\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\": \"^1.0.0\",\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.12.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?"); /***/ }, /* 208 */ diff --git a/dist/ipfsapi.min.js b/dist/ipfsapi.min.js index ae336bbc6..c67a3e9fb 100644 --- a/dist/ipfsapi.min.js +++ b/dist/ipfsapi.min.js @@ -1,4 +1,4 @@ -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__(265),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="",__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__(265),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 @@ -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.11.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-beta6","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-config-standard":"^4.4.0","eslint-plugin-standard":"^1.3.1","glob-stream":"5.3.1",gulp:"^3.9.0","gulp-bump":"^1.0.0","gulp-eslint":"^1.0.0","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){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":"^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){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. From 75b6515b44ae597d97869b3f79877ccdc82dda8c Mon Sep 17 00:00:00 2001 From: David Dias Date: Mon, 8 Feb 2016 22:54:56 +0000 Subject: [PATCH 09/17] chore: build --- dist/ipfsapi.js | 2 +- dist/ipfsapi.min.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/ipfsapi.js b/dist/ipfsapi.js index bf8d31b18..47be73591 100644 --- a/dist/ipfsapi.js +++ b/dist/ipfsapi.js @@ -35,7 +35,7 @@ var ipfsAPI = /******/ __webpack_require__.c = installedModules; /******/ // __webpack_public_path__ -/******/ __webpack_require__.p = ""; +/******/ __webpack_require__.p = "/_karma_webpack_//"; /******/ // Load entry module and return exports /******/ return __webpack_require__(0); diff --git a/dist/ipfsapi.min.js b/dist/ipfsapi.min.js index c67a3e9fb..4c815e8c3 100644 --- a/dist/ipfsapi.min.js +++ b/dist/ipfsapi.min.js @@ -1,4 +1,4 @@ -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="",__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__(265),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__(24),_typeof3=_interopRequireDefault(_typeof2),multiaddr=__webpack_require__(265),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 From 4dc87c769b87863b3e32f4822c217142f57897f9 Mon Sep 17 00:00:00 2001 From: David Dias Date: Mon, 8 Feb 2016 22:54:56 +0000 Subject: [PATCH 10/17] chore: release version v2.13.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4b0ada131..3a42307b3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ipfs-api", - "version": "2.12.0", + "version": "2.13.0", "description": "A client library for the IPFS API", "main": "src/index.js", "dependencies": { From 90ed807eccc0d991529fed597822c8d9481a9b8d Mon Sep 17 00:00:00 2001 From: dignifiedquire Date: Sun, 21 Feb 2016 11:43:02 +0100 Subject: [PATCH 11/17] fix(request): Improve json content-type detection js-ipfs serves a content type including the charset `application/json; charset=utf-8` so the previous check for json failed, resulting in non parsed json. Fixes https://github.com/ipfs/js-ipfs/pull/69/files#r53560321 --- src/request-api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/request-api.js b/src/request-api.js index 2f6ef176f..37ef7d75b 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'] === 'application/json' + const isJson = res.headers['content-type'].indexOf('application/json') === 0 if (res.statusCode >= 400 || !res.statusCode) { const error = new Error(`Server responded with ${res.statusCode}`) From 5993787cf9afd8ffab0a0c1312a0ac111bea5819 Mon Sep 17 00:00:00 2001 From: David Dias Date: Sun, 21 Feb 2016 19:22:35 +0000 Subject: [PATCH 12/17] chore:build --- dist/ipfsapi.js | 290 ++++++++++++++++++++++++-------------------- dist/ipfsapi.min.js | 40 +++--- 2 files changed, 177 insertions(+), 153 deletions(-) diff --git a/dist/ipfsapi.js b/dist/ipfsapi.js index 47be73591..0763bd14f 100644 --- a/dist/ipfsapi.js +++ b/dist/ipfsapi.js @@ -35,7 +35,7 @@ var ipfsAPI = /******/ __webpack_require__.c = installedModules; /******/ // __webpack_public_path__ -/******/ __webpack_require__.p = "/_karma_webpack_//"; +/******/ __webpack_require__.p = ""; /******/ // Load entry module and return exports /******/ return __webpack_require__(0); @@ -405,7 +405,7 @@ var ipfsAPI = /* 60 */ /***/ function(module, exports) { - eval("/**\n * lodash 3.0.4 (Custom Build) \n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright 2012-2016 The Dojo Foundation \n * Based on Underscore.js 1.8.3 \n * Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n * Available under MIT license \n */\n\n/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n objectTag = '[object Object]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n weakMapTag = '[object WeakMap]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/** Used to identify `toStringTag` values of typed arrays. */\nvar typedArrayTags = {};\ntypedArrayTags[float32Tag] = typedArrayTags[float64Tag] =\ntypedArrayTags[int8Tag] = typedArrayTags[int16Tag] =\ntypedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =\ntypedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =\ntypedArrayTags[uint32Tag] = true;\ntypedArrayTags[argsTag] = typedArrayTags[arrayTag] =\ntypedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =\ntypedArrayTags[dateTag] = typedArrayTags[errorTag] =\ntypedArrayTags[funcTag] = typedArrayTags[mapTag] =\ntypedArrayTags[numberTag] = typedArrayTags[objectTag] =\ntypedArrayTags[regexpTag] = typedArrayTags[setTag] =\ntypedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false;\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar objectToString = objectProto.toString;\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This function is loosely based on [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\nfunction isLength(value) {\n return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return !!value && typeof value == 'object';\n}\n\n/**\n * Checks if `value` is classified as a typed array.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.\n * @example\n *\n * _.isTypedArray(new Uint8Array);\n * // => true\n *\n * _.isTypedArray([]);\n * // => false\n */\nfunction isTypedArray(value) {\n return isObjectLike(value) && isLength(value.length) && !!typedArrayTags[objectToString.call(value)];\n}\n\nmodule.exports = isTypedArray;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/lodash.istypedarray/index.js\n ** module id = 60\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/lodash.istypedarray/index.js?"); + eval("/**\n * lodash 3.0.5 (Custom Build) \n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright 2012-2016 The Dojo Foundation \n * Based on Underscore.js 1.8.3 \n * Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n * Available under MIT license \n */\n\n/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n objectTag = '[object Object]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n weakMapTag = '[object WeakMap]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n/** Used to identify `toStringTag` values of typed arrays. */\nvar typedArrayTags = {};\ntypedArrayTags[float32Tag] = typedArrayTags[float64Tag] =\ntypedArrayTags[int8Tag] = typedArrayTags[int16Tag] =\ntypedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =\ntypedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =\ntypedArrayTags[uint32Tag] = true;\ntypedArrayTags[argsTag] = typedArrayTags[arrayTag] =\ntypedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =\ntypedArrayTags[dateTag] = typedArrayTags[errorTag] =\ntypedArrayTags[funcTag] = typedArrayTags[mapTag] =\ntypedArrayTags[numberTag] = typedArrayTags[objectTag] =\ntypedArrayTags[regexpTag] = typedArrayTags[setTag] =\ntypedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false;\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar objectToString = objectProto.toString;\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This function is loosely based on [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\nfunction isLength(value) {\n return typeof value == 'number' &&\n value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return !!value && typeof value == 'object';\n}\n\n/**\n * Checks if `value` is classified as a typed array.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.\n * @example\n *\n * _.isTypedArray(new Uint8Array);\n * // => true\n *\n * _.isTypedArray([]);\n * // => false\n */\nfunction isTypedArray(value) {\n return isObjectLike(value) &&\n isLength(value.length) && !!typedArrayTags[objectToString.call(value)];\n}\n\nmodule.exports = isTypedArray;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/lodash.istypedarray/index.js\n ** module id = 60\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/lodash.istypedarray/index.js?"); /***/ }, /* 61 */ @@ -423,7 +423,7 @@ var ipfsAPI = /* 63 */ /***/ function(module, exports) { - eval("/**\n * lodash 3.0.6 (Custom Build) \n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright 2012-2016 The Dojo Foundation \n * Based on Underscore.js 1.8.3 \n * Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n * Available under MIT license \n */\n\n/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar objectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n\n/**\n * The base implementation of `_.property` without support for deep paths.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @returns {Function} Returns the new function.\n */\nfunction baseProperty(key) {\n return function(object) {\n return object == null ? undefined : object[key];\n };\n}\n\n/**\n * Gets the \"length\" property value of `object`.\n *\n * **Note:** This function is used to avoid a [JIT bug](https://bugs.webkit.org/show_bug.cgi?id=142792)\n * that affects Safari on at least iOS 8.1-8.3 ARM64.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {*} Returns the \"length\" value.\n */\nvar getLength = baseProperty('length');\n\n/**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\nfunction isArguments(value) {\n // Safari 8.1 incorrectly makes `arguments.callee` enumerable in strict mode.\n return isArrayLikeObject(value) && hasOwnProperty.call(value, 'callee') &&\n (!propertyIsEnumerable.call(value, 'callee') || objectToString.call(value) == argsTag);\n}\n\n/**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @type Function\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\nfunction isArrayLike(value) {\n return value != null &&\n !(typeof value == 'function' && isFunction(value)) && isLength(getLength(value));\n}\n\n/**\n * This method is like `_.isArrayLike` except that it also checks if `value`\n * is an object.\n *\n * @static\n * @memberOf _\n * @type Function\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array-like object, else `false`.\n * @example\n *\n * _.isArrayLikeObject([1, 2, 3]);\n * // => true\n *\n * _.isArrayLikeObject(document.body.children);\n * // => true\n *\n * _.isArrayLikeObject('abc');\n * // => false\n *\n * _.isArrayLikeObject(_.noop);\n * // => false\n */\nfunction isArrayLikeObject(value) {\n return isObjectLike(value) && isArrayLike(value);\n}\n\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\nfunction isFunction(value) {\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 8 which returns 'object' for typed array constructors, and\n // PhantomJS 1.9 which returns 'function' for `NodeList` instances.\n var tag = isObject(value) ? objectToString.call(value) : '';\n return tag == funcTag || tag == genTag;\n}\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This function is loosely based on [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\nfunction isLength(value) {\n return typeof value == 'number' && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\n/**\n * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`.\n * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return !!value && (type == 'object' || type == 'function');\n}\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return !!value && typeof value == 'object';\n}\n\nmodule.exports = isArguments;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/lodash.isarguments/index.js\n ** module id = 63\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/lodash.isarguments/index.js?"); + eval("/**\n * lodash 3.0.7 (Custom Build) \n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright 2012-2016 The Dojo Foundation \n * Based on Underscore.js 1.8.3 \n * Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n * Available under MIT license \n */\n\n/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar objectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n\n/**\n * The base implementation of `_.property` without support for deep paths.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @returns {Function} Returns the new function.\n */\nfunction baseProperty(key) {\n return function(object) {\n return object == null ? undefined : object[key];\n };\n}\n\n/**\n * Gets the \"length\" property value of `object`.\n *\n * **Note:** This function is used to avoid a [JIT bug](https://bugs.webkit.org/show_bug.cgi?id=142792)\n * that affects Safari on at least iOS 8.1-8.3 ARM64.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {*} Returns the \"length\" value.\n */\nvar getLength = baseProperty('length');\n\n/**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\nfunction isArguments(value) {\n // Safari 8.1 incorrectly makes `arguments.callee` enumerable in strict mode.\n return isArrayLikeObject(value) && hasOwnProperty.call(value, 'callee') &&\n (!propertyIsEnumerable.call(value, 'callee') || objectToString.call(value) == argsTag);\n}\n\n/**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\nfunction isArrayLike(value) {\n return value != null &&\n !(typeof value == 'function' && isFunction(value)) && isLength(getLength(value));\n}\n\n/**\n * This method is like `_.isArrayLike` except that it also checks if `value`\n * is an object.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array-like object, else `false`.\n * @example\n *\n * _.isArrayLikeObject([1, 2, 3]);\n * // => true\n *\n * _.isArrayLikeObject(document.body.children);\n * // => true\n *\n * _.isArrayLikeObject('abc');\n * // => false\n *\n * _.isArrayLikeObject(_.noop);\n * // => false\n */\nfunction isArrayLikeObject(value) {\n return isObjectLike(value) && isArrayLike(value);\n}\n\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\nfunction isFunction(value) {\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 8 which returns 'object' for typed array constructors, and\n // PhantomJS 1.9 which returns 'function' for `NodeList` instances.\n var tag = isObject(value) ? objectToString.call(value) : '';\n return tag == funcTag || tag == genTag;\n}\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This function is loosely based on [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\nfunction isLength(value) {\n return typeof value == 'number' &&\n value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\n/**\n * Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`.\n * (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return !!value && (type == 'object' || type == 'function');\n}\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return !!value && typeof value == 'object';\n}\n\nmodule.exports = isArguments;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/lodash.isarguments/index.js\n ** module id = 63\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/lodash.isarguments/index.js?"); /***/ }, /* 64 */ @@ -729,7 +729,7 @@ var ipfsAPI = /* 114 */ /***/ function(module, exports) { - eval("module.exports = {\n \"100\": \"Continue\",\n \"101\": \"Switching Protocols\",\n \"102\": \"Processing\",\n \"200\": \"OK\",\n \"201\": \"Created\",\n \"202\": \"Accepted\",\n \"203\": \"Non-Authoritative Information\",\n \"204\": \"No Content\",\n \"205\": \"Reset Content\",\n \"206\": \"Partial Content\",\n \"207\": \"Multi-Status\",\n \"300\": \"Multiple Choices\",\n \"301\": \"Moved Permanently\",\n \"302\": \"Moved Temporarily\",\n \"303\": \"See Other\",\n \"304\": \"Not Modified\",\n \"305\": \"Use Proxy\",\n \"307\": \"Temporary Redirect\",\n \"308\": \"Permanent Redirect\",\n \"400\": \"Bad Request\",\n \"401\": \"Unauthorized\",\n \"402\": \"Payment Required\",\n \"403\": \"Forbidden\",\n \"404\": \"Not Found\",\n \"405\": \"Method Not Allowed\",\n \"406\": \"Not Acceptable\",\n \"407\": \"Proxy Authentication Required\",\n \"408\": \"Request Time-out\",\n \"409\": \"Conflict\",\n \"410\": \"Gone\",\n \"411\": \"Length Required\",\n \"412\": \"Precondition Failed\",\n \"413\": \"Request Entity Too Large\",\n \"414\": \"Request-URI Too Large\",\n \"415\": \"Unsupported Media Type\",\n \"416\": \"Requested Range Not Satisfiable\",\n \"417\": \"Expectation Failed\",\n \"418\": \"I'm a teapot\",\n \"422\": \"Unprocessable Entity\",\n \"423\": \"Locked\",\n \"424\": \"Failed Dependency\",\n \"425\": \"Unordered Collection\",\n \"426\": \"Upgrade Required\",\n \"428\": \"Precondition Required\",\n \"429\": \"Too Many Requests\",\n \"431\": \"Request Header Fields Too Large\",\n \"500\": \"Internal Server Error\",\n \"501\": \"Not Implemented\",\n \"502\": \"Bad Gateway\",\n \"503\": \"Service Unavailable\",\n \"504\": \"Gateway Time-out\",\n \"505\": \"HTTP Version Not Supported\",\n \"506\": \"Variant Also Negotiates\",\n \"507\": \"Insufficient Storage\",\n \"509\": \"Bandwidth Limit Exceeded\",\n \"510\": \"Not Extended\",\n \"511\": \"Network Authentication Required\"\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/builtin-status-codes/browser.js\n ** module id = 114\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/builtin-status-codes/browser.js?"); + eval("module.exports = {\n \"100\": \"Continue\",\n \"101\": \"Switching Protocols\",\n \"102\": \"Processing\",\n \"200\": \"OK\",\n \"201\": \"Created\",\n \"202\": \"Accepted\",\n \"203\": \"Non-Authoritative Information\",\n \"204\": \"No Content\",\n \"205\": \"Reset Content\",\n \"206\": \"Partial Content\",\n \"207\": \"Multi-Status\",\n \"208\": \"Already Reported\",\n \"226\": \"IM Used\",\n \"300\": \"Multiple Choices\",\n \"301\": \"Moved Permanently\",\n \"302\": \"Found\",\n \"303\": \"See Other\",\n \"304\": \"Not Modified\",\n \"305\": \"Use Proxy\",\n \"307\": \"Temporary Redirect\",\n \"308\": \"Permanent Redirect\",\n \"400\": \"Bad Request\",\n \"401\": \"Unauthorized\",\n \"402\": \"Payment Required\",\n \"403\": \"Forbidden\",\n \"404\": \"Not Found\",\n \"405\": \"Method Not Allowed\",\n \"406\": \"Not Acceptable\",\n \"407\": \"Proxy Authentication Required\",\n \"408\": \"Request Timeout\",\n \"409\": \"Conflict\",\n \"410\": \"Gone\",\n \"411\": \"Length Required\",\n \"412\": \"Precondition Failed\",\n \"413\": \"Payload Too Large\",\n \"414\": \"URI Too Long\",\n \"415\": \"Unsupported Media Type\",\n \"416\": \"Range Not Satisfiable\",\n \"417\": \"Expectation Failed\",\n \"418\": \"I'm a teapot\",\n \"421\": \"Misdirected Request\",\n \"422\": \"Unprocessable Entity\",\n \"423\": \"Locked\",\n \"424\": \"Failed Dependency\",\n \"425\": \"Unordered Collection\",\n \"426\": \"Upgrade Required\",\n \"428\": \"Precondition Required\",\n \"429\": \"Too Many Requests\",\n \"431\": \"Request Header Fields Too Large\",\n \"500\": \"Internal Server Error\",\n \"501\": \"Not Implemented\",\n \"502\": \"Bad Gateway\",\n \"503\": \"Service Unavailable\",\n \"504\": \"Gateway Timeout\",\n \"505\": \"HTTP Version Not Supported\",\n \"506\": \"Variant Also Negotiates\",\n \"507\": \"Insufficient Storage\",\n \"508\": \"Loop Detected\",\n \"509\": \"Bandwidth Limit Exceeded\",\n \"510\": \"Not Extended\",\n \"511\": \"Network Authentication Required\"\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/builtin-status-codes/browser.js\n ** module id = 114\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/builtin-status-codes/browser.js?"); /***/ }, /* 115 */ @@ -1287,13 +1287,13 @@ var ipfsAPI = /* 207 */ /***/ function(module, exports) { - eval("module.exports = {\n\t\"name\": \"ipfs-api\",\n\t\"version\": \"2.12.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.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?"); /***/ }, /* 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'] === 'application/json';\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\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?"); /***/ }, /* 209 */ @@ -1323,7 +1323,7 @@ var ipfsAPI = /* 213 */ /***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(Buffer) {'use strict';\n\nvar File = __webpack_require__(214);\nvar vinylfs = __webpack_require__(223);\nvar vmps = __webpack_require__(327);\nvar stream = __webpack_require__(98);\nvar Merge = __webpack_require__(296);\n\nexports = module.exports = getFilesStream;\n\nfunction getFilesStream(files, opts) {\n if (!files) return null;\n\n // merge all inputs into one stream\n var adder = new Merge();\n\n // single stream for pushing directly\n var single = new stream.PassThrough({ objectMode: true });\n adder.add(single);\n\n for (var i = 0; i < files.length; i++) {\n var file = files[i];\n\n if (typeof file === 'string') {\n var srcOpts = {\n buffer: false,\n stripBOM: false,\n followSymlinks: opts.followSymlinks != null ? opts.followSymlinks : true\n };\n\n // add the file or dir itself\n adder.add(vinylfs.src(file, srcOpts));\n\n // if recursive, glob the contents\n if (opts.recursive) {\n adder.add(vinylfs.src(file + '/**/*', srcOpts));\n }\n } else {\n // try to create a single vinyl file, and push it.\n // throws if cannot use the file.\n single.push(vinylFile(file));\n }\n }\n\n single.end();\n return adder.pipe(vmps());\n}\n\n// vinylFile tries to cast a file object to a vinyl file.\n// it's agressive. If it _cannot_ be converted to a file,\n// it returns null.\nfunction vinylFile(file) {\n if (file instanceof File) {\n return file; // it's a vinyl file.\n }\n\n // let's try to make a vinyl file?\n var f = { cwd: '/', base: '/', path: '' };\n if (file.contents && file.path) {\n // set the cwd + base, if there.\n f.path = file.path;\n f.cwd = file.cwd || f.cwd;\n f.base = file.base || f.base;\n f.contents = file.contents;\n } else {\n // ok maybe we just have contents?\n f.contents = file;\n }\n\n // ensure the contents are safe to pass.\n // throws if vinyl cannot use the contents\n f.contents = vinylContentsSafe(f.contents);\n return new File(f);\n}\n\nfunction vinylContentsSafe(c) {\n if (Buffer.isBuffer(c)) return c;\n if (typeof c === 'string') return c;\n if (c instanceof stream.Stream) return c;\n if (typeof c.pipe === 'function') {\n // hey, looks like a stream. but vinyl won't detect it.\n // pipe it to a PassThrough, and use that\n var s = new stream.PassThrough();\n return c.pipe(s);\n }\n\n throw new Error('vinyl will not accept: ' + c);\n}\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1).Buffer))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/get-files-stream.js\n ** module id = 213\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./src/get-files-stream.js?"); + eval("/* WEBPACK VAR INJECTION */(function(Buffer) {'use strict';\n\nvar File = __webpack_require__(214);\nvar vinylfs = __webpack_require__(223);\nvar vmps = __webpack_require__(331);\nvar stream = __webpack_require__(98);\nvar Merge = __webpack_require__(300);\n\nexports = module.exports = getFilesStream;\n\nfunction getFilesStream(files, opts) {\n if (!files) return null;\n\n // merge all inputs into one stream\n var adder = new Merge();\n\n // single stream for pushing directly\n var single = new stream.PassThrough({ objectMode: true });\n adder.add(single);\n\n for (var i = 0; i < files.length; i++) {\n var file = files[i];\n\n if (typeof file === 'string') {\n var srcOpts = {\n buffer: false,\n stripBOM: false,\n followSymlinks: opts.followSymlinks != null ? opts.followSymlinks : true\n };\n\n // add the file or dir itself\n adder.add(vinylfs.src(file, srcOpts));\n\n // if recursive, glob the contents\n if (opts.recursive) {\n adder.add(vinylfs.src(file + '/**/*', srcOpts));\n }\n } else {\n // try to create a single vinyl file, and push it.\n // throws if cannot use the file.\n single.push(vinylFile(file));\n }\n }\n\n single.end();\n return adder.pipe(vmps());\n}\n\n// vinylFile tries to cast a file object to a vinyl file.\n// it's agressive. If it _cannot_ be converted to a file,\n// it returns null.\nfunction vinylFile(file) {\n if (file instanceof File) {\n return file; // it's a vinyl file.\n }\n\n // let's try to make a vinyl file?\n var f = { cwd: '/', base: '/', path: '' };\n if (file.contents && file.path) {\n // set the cwd + base, if there.\n f.path = file.path;\n f.cwd = file.cwd || f.cwd;\n f.base = file.base || f.base;\n f.contents = file.contents;\n } else {\n // ok maybe we just have contents?\n f.contents = file;\n }\n\n // ensure the contents are safe to pass.\n // throws if vinyl cannot use the contents\n f.contents = vinylContentsSafe(f.contents);\n return new File(f);\n}\n\nfunction vinylContentsSafe(c) {\n if (Buffer.isBuffer(c)) return c;\n if (typeof c === 'string') return c;\n if (c instanceof stream.Stream) return c;\n if (typeof c.pipe === 'function') {\n // hey, looks like a stream. but vinyl won't detect it.\n // pipe it to a PassThrough, and use that\n var s = new stream.PassThrough();\n return c.pipe(s);\n }\n\n throw new Error('vinyl will not accept: ' + c);\n}\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1).Buffer))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./src/get-files-stream.js\n ** module id = 213\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./src/get-files-stream.js?"); /***/ }, /* 214 */ @@ -1383,13 +1383,13 @@ var ipfsAPI = /* 223 */ /***/ function(module, exports, __webpack_require__) { - eval("'use strict';\n\nmodule.exports = {\n src: __webpack_require__(224),\n dest: __webpack_require__(318),\n symlink: __webpack_require__(326)\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/index.js\n ** module id = 223\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/index.js?"); + eval("'use strict';\n\nmodule.exports = {\n src: __webpack_require__(224),\n dest: __webpack_require__(322),\n symlink: __webpack_require__(330)\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/index.js\n ** module id = 223\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/index.js?"); /***/ }, /* 224 */ /***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(process) {'use strict';\n\nvar assign = __webpack_require__(225);\nvar through = __webpack_require__(226);\nvar gs = __webpack_require__(235);\nvar File = __webpack_require__(214);\nvar duplexify = __webpack_require__(294);\nvar merge = __webpack_require__(296);\nvar sourcemaps = process.browser ? null : __webpack_require__(298);\nvar filterSince = __webpack_require__(308);\nvar isValidGlob = __webpack_require__(309);\n\nvar getContents = __webpack_require__(310);\nvar resolveSymlinks = __webpack_require__(317);\n\nfunction createFile(globFile, enc, cb) {\n cb(null, new File(globFile));\n}\n\nfunction src(glob, opt) {\n var options = assign({\n read: true,\n buffer: true,\n stripBOM: true,\n sourcemaps: false,\n passthrough: false,\n followSymlinks: true\n }, opt);\n\n var inputPass;\n\n if (!isValidGlob(glob)) {\n throw new Error('Invalid glob argument: ' + glob);\n }\n\n var globStream = gs.create(glob, options);\n\n var outputStream = globStream\n .pipe(resolveSymlinks(options))\n .pipe(through.obj(createFile));\n\n if (options.since != null) {\n outputStream = outputStream\n .pipe(filterSince(options.since));\n }\n\n if (options.read !== false) {\n outputStream = outputStream\n .pipe(getContents(options));\n }\n\n if (options.passthrough === true) {\n inputPass = through.obj();\n outputStream = duplexify.obj(inputPass, merge(outputStream, inputPass));\n }\n if (options.sourcemaps === true) {\n outputStream = outputStream\n .pipe(sourcemaps.init({loadMaps: true}));\n }\n globStream.on('error', outputStream.emit.bind(outputStream, 'error'));\n return outputStream;\n}\n\nmodule.exports = src;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/lib/src/index.js\n ** module id = 224\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/lib/src/index.js?"); + eval("/* WEBPACK VAR INJECTION */(function(process) {'use strict';\n\nvar assign = __webpack_require__(225);\nvar through = __webpack_require__(226);\nvar gs = __webpack_require__(235);\nvar File = __webpack_require__(214);\nvar duplexify = __webpack_require__(298);\nvar merge = __webpack_require__(300);\nvar sourcemaps = process.browser ? null : __webpack_require__(302);\nvar filterSince = __webpack_require__(312);\nvar isValidGlob = __webpack_require__(313);\n\nvar getContents = __webpack_require__(314);\nvar resolveSymlinks = __webpack_require__(321);\n\nfunction createFile(globFile, enc, cb) {\n cb(null, new File(globFile));\n}\n\nfunction src(glob, opt) {\n var options = assign({\n read: true,\n buffer: true,\n stripBOM: true,\n sourcemaps: false,\n passthrough: false,\n followSymlinks: true\n }, opt);\n\n var inputPass;\n\n if (!isValidGlob(glob)) {\n throw new Error('Invalid glob argument: ' + glob);\n }\n\n var globStream = gs.create(glob, options);\n\n var outputStream = globStream\n .pipe(resolveSymlinks(options))\n .pipe(through.obj(createFile));\n\n if (options.since != null) {\n outputStream = outputStream\n .pipe(filterSince(options.since));\n }\n\n if (options.read !== false) {\n outputStream = outputStream\n .pipe(getContents(options));\n }\n\n if (options.passthrough === true) {\n inputPass = through.obj();\n outputStream = duplexify.obj(inputPass, merge(outputStream, inputPass));\n }\n if (options.sourcemaps === true) {\n outputStream = outputStream\n .pipe(sourcemaps.init({loadMaps: true}));\n }\n globStream.on('error', outputStream.emit.bind(outputStream, 'error'));\n return outputStream;\n}\n\nmodule.exports = src;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/lib/src/index.js\n ** module id = 224\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/lib/src/index.js?"); /***/ }, /* 225 */ @@ -1455,7 +1455,7 @@ var ipfsAPI = /* 235 */ /***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(process) {'use strict';\n\nvar through2 = __webpack_require__(189);\nvar Combine = __webpack_require__(236);\nvar unique = __webpack_require__(240);\n\nvar glob = __webpack_require__(243);\nvar micromatch = __webpack_require__(255);\nvar resolveGlob = __webpack_require__(291);\nvar globParent = __webpack_require__(284);\nvar path = __webpack_require__(149);\nvar extend = __webpack_require__(293);\n\nvar gs = {\n // Creates a stream for a single glob or filter\n createStream: function(ourGlob, negatives, opt) {\n\n // Remove path relativity to make globs make sense\n ourGlob = resolveGlob(ourGlob, opt);\n var ourOpt = extend({}, opt);\n delete ourOpt.root;\n\n // Create globbing stuff\n var globber = new glob.Glob(ourGlob, ourOpt);\n\n // Extract base path from glob\n var basePath = opt.base || globParent(ourGlob) + path.sep;\n\n // Create stream and map events from globber to it\n var stream = through2.obj(opt,\n negatives.length ? filterNegatives : undefined);\n\n var found = false;\n\n globber.on('error', stream.emit.bind(stream, 'error'));\n globber.once('end', function() {\n if (opt.allowEmpty !== true && !found && globIsSingular(globber)) {\n stream.emit('error',\n new Error('File not found with singular glob: ' + ourGlob));\n }\n\n stream.end();\n });\n globber.on('match', function(filename) {\n found = true;\n\n stream.write({\n cwd: opt.cwd,\n base: basePath,\n path: filename,\n });\n });\n\n return stream;\n\n function filterNegatives(filename, enc, cb) {\n var matcha = isMatch.bind(null, filename);\n if (negatives.every(matcha)) {\n cb(null, filename); // Pass\n } else {\n cb(); // Ignore\n }\n }\n },\n\n // Creates a stream for multiple globs or filters\n create: function(globs, opt) {\n if (!opt) {\n opt = {};\n }\n if (typeof opt.cwd !== 'string') {\n opt.cwd = process.cwd();\n }\n if (typeof opt.dot !== 'boolean') {\n opt.dot = false;\n }\n if (typeof opt.silent !== 'boolean') {\n opt.silent = true;\n }\n if (typeof opt.nonull !== 'boolean') {\n opt.nonull = false;\n }\n if (typeof opt.cwdbase !== 'boolean') {\n opt.cwdbase = false;\n }\n if (opt.cwdbase) {\n opt.base = opt.cwd;\n }\n\n // Only one glob no need to aggregate\n if (!Array.isArray(globs)) {\n globs = [globs];\n }\n\n var positives = [];\n var negatives = [];\n\n var ourOpt = extend({}, opt);\n delete ourOpt.root;\n\n globs.forEach(function(glob, index) {\n if (typeof glob !== 'string' && !(glob instanceof RegExp)) {\n throw new Error('Invalid glob at index ' + index);\n }\n\n var globArray = isNegative(glob) ? negatives : positives;\n\n // Create Minimatch instances for negative glob patterns\n if (globArray === negatives && typeof glob === 'string') {\n var ourGlob = resolveGlob(glob, opt);\n glob = micromatch.matcher(ourGlob, ourOpt);\n }\n\n globArray.push({\n index: index,\n glob: glob,\n });\n });\n\n if (positives.length === 0) {\n throw new Error('Missing positive glob');\n }\n\n // Only one positive glob no need to aggregate\n if (positives.length === 1) {\n return streamFromPositive(positives[0]);\n }\n\n // Create all individual streams\n var streams = positives.map(streamFromPositive);\n\n // Then just pipe them to a single unique stream and return it\n var aggregate = new Combine(streams);\n var uniqueStream = unique('path');\n var returnStream = aggregate.pipe(uniqueStream);\n\n aggregate.on('error', function(err) {\n returnStream.emit('error', err);\n });\n\n return returnStream;\n\n function streamFromPositive(positive) {\n var negativeGlobs = negatives.filter(indexGreaterThan(positive.index))\n .map(toGlob);\n return gs.createStream(positive.glob, negativeGlobs, opt);\n }\n },\n};\n\nfunction isMatch(file, matcher) {\n if (typeof matcher === 'function') {\n return matcher(file.path);\n }\n if (matcher instanceof RegExp) {\n return matcher.test(file.path);\n }\n}\n\nfunction isNegative(pattern) {\n if (typeof pattern === 'string') {\n return pattern[0] === '!';\n }\n if (pattern instanceof RegExp) {\n return true;\n }\n}\n\nfunction indexGreaterThan(index) {\n return function(obj) {\n return obj.index > index;\n };\n}\n\nfunction toGlob(obj) {\n return obj.glob;\n}\n\nfunction globIsSingular(glob) {\n var globSet = glob.minimatch.set;\n\n if (globSet.length !== 1) {\n return false;\n }\n\n return globSet[0].every(function isString(value) {\n return typeof value === 'string';\n });\n}\n\nmodule.exports = gs;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/index.js\n ** module id = 235\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/index.js?"); + eval("/* WEBPACK VAR INJECTION */(function(process) {'use strict';\n\nvar through2 = __webpack_require__(189);\nvar Combine = __webpack_require__(236);\nvar unique = __webpack_require__(240);\n\nvar glob = __webpack_require__(247);\nvar micromatch = __webpack_require__(259);\nvar resolveGlob = __webpack_require__(295);\nvar globParent = __webpack_require__(288);\nvar path = __webpack_require__(149);\nvar extend = __webpack_require__(297);\n\nvar gs = {\n // Creates a stream for a single glob or filter\n createStream: function(ourGlob, negatives, opt) {\n\n // Remove path relativity to make globs make sense\n ourGlob = resolveGlob(ourGlob, opt);\n var ourOpt = extend({}, opt);\n delete ourOpt.root;\n\n // Create globbing stuff\n var globber = new glob.Glob(ourGlob, ourOpt);\n\n // Extract base path from glob\n var basePath = opt.base || globParent(ourGlob) + path.sep;\n\n // Create stream and map events from globber to it\n var stream = through2.obj(opt,\n negatives.length ? filterNegatives : undefined);\n\n var found = false;\n\n globber.on('error', stream.emit.bind(stream, 'error'));\n globber.once('end', function() {\n if (opt.allowEmpty !== true && !found && globIsSingular(globber)) {\n stream.emit('error',\n new Error('File not found with singular glob: ' + ourGlob));\n }\n\n stream.end();\n });\n globber.on('match', function(filename) {\n found = true;\n\n stream.write({\n cwd: opt.cwd,\n base: basePath,\n path: filename,\n });\n });\n\n return stream;\n\n function filterNegatives(filename, enc, cb) {\n var matcha = isMatch.bind(null, filename);\n if (negatives.every(matcha)) {\n cb(null, filename); // Pass\n } else {\n cb(); // Ignore\n }\n }\n },\n\n // Creates a stream for multiple globs or filters\n create: function(globs, opt) {\n if (!opt) {\n opt = {};\n }\n if (typeof opt.cwd !== 'string') {\n opt.cwd = process.cwd();\n }\n if (typeof opt.dot !== 'boolean') {\n opt.dot = false;\n }\n if (typeof opt.silent !== 'boolean') {\n opt.silent = true;\n }\n if (typeof opt.nonull !== 'boolean') {\n opt.nonull = false;\n }\n if (typeof opt.cwdbase !== 'boolean') {\n opt.cwdbase = false;\n }\n if (opt.cwdbase) {\n opt.base = opt.cwd;\n }\n\n // Only one glob no need to aggregate\n if (!Array.isArray(globs)) {\n globs = [globs];\n }\n\n var positives = [];\n var negatives = [];\n\n var ourOpt = extend({}, opt);\n delete ourOpt.root;\n\n globs.forEach(function(glob, index) {\n if (typeof glob !== 'string' && !(glob instanceof RegExp)) {\n throw new Error('Invalid glob at index ' + index);\n }\n\n var globArray = isNegative(glob) ? negatives : positives;\n\n // Create Minimatch instances for negative glob patterns\n if (globArray === negatives && typeof glob === 'string') {\n var ourGlob = resolveGlob(glob, opt);\n glob = micromatch.matcher(ourGlob, ourOpt);\n }\n\n globArray.push({\n index: index,\n glob: glob,\n });\n });\n\n if (positives.length === 0) {\n throw new Error('Missing positive glob');\n }\n\n // Only one positive glob no need to aggregate\n if (positives.length === 1) {\n return streamFromPositive(positives[0]);\n }\n\n // Create all individual streams\n var streams = positives.map(streamFromPositive);\n\n // Then just pipe them to a single unique stream and return it\n var aggregate = new Combine(streams);\n var uniqueStream = unique('path');\n var returnStream = aggregate.pipe(uniqueStream);\n\n aggregate.on('error', function(err) {\n returnStream.emit('error', err);\n });\n\n return returnStream;\n\n function streamFromPositive(positive) {\n var negativeGlobs = negatives.filter(indexGreaterThan(positive.index))\n .map(toGlob);\n return gs.createStream(positive.glob, negativeGlobs, opt);\n }\n },\n};\n\nfunction isMatch(file, matcher) {\n if (typeof matcher === 'function') {\n return matcher(file.path);\n }\n if (matcher instanceof RegExp) {\n return matcher.test(file.path);\n }\n}\n\nfunction isNegative(pattern) {\n if (typeof pattern === 'string') {\n return pattern[0] === '!';\n }\n if (pattern instanceof RegExp) {\n return true;\n }\n}\n\nfunction indexGreaterThan(index) {\n return function(obj) {\n return obj.index > index;\n };\n}\n\nfunction toGlob(obj) {\n return obj.glob;\n}\n\nfunction globIsSingular(glob) {\n var globSet = glob.minimatch.set;\n\n if (globSet.length !== 1) {\n return false;\n }\n\n return globSet[0].every(function isString(value) {\n return typeof value === 'string';\n });\n}\n\nmodule.exports = gs;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-stream/index.js\n ** module id = 235\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-stream/index.js?"); /***/ }, /* 236 */ @@ -1485,7 +1485,7 @@ var ipfsAPI = /* 240 */ /***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(global) {'use strict';\n\nvar filter = __webpack_require__(241).obj;\nvar ES6Set;\nif (typeof global.Set === 'function') {\n ES6Set = global.Set;\n} else {\n ES6Set = function() {\n this.keys = [];\n this.has = function(val) {\n return this.keys.indexOf(val) !== -1;\n },\n this.add = function(val) {\n this.keys.push(val);\n }\n }\n}\n\nfunction prop(propName) {\n return function (data) {\n return data[propName];\n };\n}\n\nmodule.exports = unique;\nfunction unique(propName, keyStore) {\n keyStore = keyStore || new ES6Set();\n\n var keyfn = JSON.stringify;\n if (typeof propName === 'string') {\n keyfn = prop(propName);\n } else if (typeof propName === 'function') {\n keyfn = propName;\n }\n\n return filter(function (data) {\n var key = keyfn(data);\n\n if (keyStore.has(key)) {\n return false;\n }\n\n keyStore.add(key);\n return true;\n });\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/unique-stream/index.js\n ** module id = 240\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/unique-stream/index.js?"); + eval("/* WEBPACK VAR INJECTION */(function(global) {'use strict';\n\nvar filter = __webpack_require__(241).obj;\nvar stringify = __webpack_require__(243);\n\nvar ES6Set;\nif (typeof global.Set === 'function') {\n ES6Set = global.Set;\n} else {\n ES6Set = function() {\n this.keys = [];\n this.has = function(val) {\n return this.keys.indexOf(val) !== -1;\n },\n this.add = function(val) {\n this.keys.push(val);\n }\n }\n}\n\nfunction prop(propName) {\n return function (data) {\n return data[propName];\n };\n}\n\nmodule.exports = unique;\nfunction unique(propName, keyStore) {\n keyStore = keyStore || new ES6Set();\n\n var keyfn = stringify;\n if (typeof propName === 'string') {\n keyfn = prop(propName);\n } else if (typeof propName === 'function') {\n keyfn = propName;\n }\n\n return filter(function (data) {\n var key = keyfn(data);\n\n if (keyStore.has(key)) {\n return false;\n }\n\n keyStore.add(key);\n return true;\n });\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }())))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/unique-stream/index.js\n ** module id = 240\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/unique-stream/index.js?"); /***/ }, /* 241 */ @@ -1503,547 +1503,571 @@ var ipfsAPI = /* 243 */ /***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(process) {// Approach:\n//\n// 1. Get the minimatch set\n// 2. For each pattern in the set, PROCESS(pattern, false)\n// 3. Store matches per-set, then uniq them\n//\n// PROCESS(pattern, inGlobStar)\n// Get the first [n] items from pattern that are all strings\n// Join these together. This is PREFIX.\n// If there is no more remaining, then stat(PREFIX) and\n// add to matches if it succeeds. END.\n//\n// If inGlobStar and PREFIX is symlink and points to dir\n// set ENTRIES = []\n// else readdir(PREFIX) as ENTRIES\n// If fail, END\n//\n// with ENTRIES\n// If pattern[n] is GLOBSTAR\n// // handle the case where the globstar match is empty\n// // by pruning it out, and testing the resulting pattern\n// PROCESS(pattern[0..n] + pattern[n+1 .. $], false)\n// // handle other cases.\n// for ENTRY in ENTRIES (not dotfiles)\n// // attach globstar + tail onto the entry\n// // Mark that this entry is a globstar match\n// PROCESS(pattern[0..n] + ENTRY + pattern[n .. $], true)\n//\n// else // not globstar\n// for ENTRY in ENTRIES (not dotfiles, unless pattern[n] is dot)\n// Test ENTRY against pattern[n]\n// If fails, continue\n// If passes, PROCESS(pattern[0..n] + item + pattern[n+1 .. $])\n//\n// Caveat:\n// Cache all stats and readdirs results to minimize syscall. Since all\n// we ever care about is existence and directory-ness, we can just keep\n// `true` for files, and [children,...] for directories, or `false` for\n// things that don't exist.\n\nmodule.exports = glob\n\nvar fs = __webpack_require__(82)\nvar minimatch = __webpack_require__(244)\nvar Minimatch = minimatch.Minimatch\nvar inherits = __webpack_require__(96)\nvar EE = __webpack_require__(86).EventEmitter\nvar path = __webpack_require__(149)\nvar assert = __webpack_require__(248)\nvar isAbsolute = __webpack_require__(249)\nvar globSync = __webpack_require__(250)\nvar common = __webpack_require__(251)\nvar alphasort = common.alphasort\nvar alphasorti = common.alphasorti\nvar setopts = common.setopts\nvar ownProp = common.ownProp\nvar inflight = __webpack_require__(252)\nvar util = __webpack_require__(139)\nvar childrenIgnored = common.childrenIgnored\nvar isIgnored = common.isIgnored\n\nvar once = __webpack_require__(254)\n\nfunction glob (pattern, options, cb) {\n if (typeof options === 'function') cb = options, options = {}\n if (!options) options = {}\n\n if (options.sync) {\n if (cb)\n throw new TypeError('callback provided to sync glob')\n return globSync(pattern, options)\n }\n\n return new Glob(pattern, options, cb)\n}\n\nglob.sync = globSync\nvar GlobSync = glob.GlobSync = globSync.GlobSync\n\n// old api surface\nglob.glob = glob\n\nglob.hasMagic = function (pattern, options_) {\n var options = util._extend({}, options_)\n options.noprocess = true\n\n var g = new Glob(pattern, options)\n var set = g.minimatch.set\n if (set.length > 1)\n return true\n\n for (var j = 0; j < set[0].length; j++) {\n if (typeof set[0][j] !== 'string')\n return true\n }\n\n return false\n}\n\nglob.Glob = Glob\ninherits(Glob, EE)\nfunction Glob (pattern, options, cb) {\n if (typeof options === 'function') {\n cb = options\n options = null\n }\n\n if (options && options.sync) {\n if (cb)\n throw new TypeError('callback provided to sync glob')\n return new GlobSync(pattern, options)\n }\n\n if (!(this instanceof Glob))\n return new Glob(pattern, options, cb)\n\n setopts(this, pattern, options)\n this._didRealPath = false\n\n // process each pattern in the minimatch set\n var n = this.minimatch.set.length\n\n // The matches are stored as {: true,...} so that\n // duplicates are automagically pruned.\n // Later, we do an Object.keys() on these.\n // Keep them as a list so we can fill in when nonull is set.\n this.matches = new Array(n)\n\n if (typeof cb === 'function') {\n cb = once(cb)\n this.on('error', cb)\n this.on('end', function (matches) {\n cb(null, matches)\n })\n }\n\n var self = this\n var n = this.minimatch.set.length\n this._processing = 0\n this.matches = new Array(n)\n\n this._emitQueue = []\n this._processQueue = []\n this.paused = false\n\n if (this.noprocess)\n return this\n\n if (n === 0)\n return done()\n\n for (var i = 0; i < n; i ++) {\n this._process(this.minimatch.set[i], i, false, done)\n }\n\n function done () {\n --self._processing\n if (self._processing <= 0)\n self._finish()\n }\n}\n\nGlob.prototype._finish = function () {\n assert(this instanceof Glob)\n if (this.aborted)\n return\n\n if (this.realpath && !this._didRealpath)\n return this._realpath()\n\n common.finish(this)\n this.emit('end', this.found)\n}\n\nGlob.prototype._realpath = function () {\n if (this._didRealpath)\n return\n\n this._didRealpath = true\n\n var n = this.matches.length\n if (n === 0)\n return this._finish()\n\n var self = this\n for (var i = 0; i < this.matches.length; i++)\n this._realpathSet(i, next)\n\n function next () {\n if (--n === 0)\n self._finish()\n }\n}\n\nGlob.prototype._realpathSet = function (index, cb) {\n var matchset = this.matches[index]\n if (!matchset)\n return cb()\n\n var found = Object.keys(matchset)\n var self = this\n var n = found.length\n\n if (n === 0)\n return cb()\n\n var set = this.matches[index] = Object.create(null)\n found.forEach(function (p, i) {\n // If there's a problem with the stat, then it means that\n // one or more of the links in the realpath couldn't be\n // resolved. just return the abs value in that case.\n p = self._makeAbs(p)\n fs.realpath(p, self.realpathCache, function (er, real) {\n if (!er)\n set[real] = true\n else if (er.syscall === 'stat')\n set[p] = true\n else\n self.emit('error', er) // srsly wtf right here\n\n if (--n === 0) {\n self.matches[index] = set\n cb()\n }\n })\n })\n}\n\nGlob.prototype._mark = function (p) {\n return common.mark(this, p)\n}\n\nGlob.prototype._makeAbs = function (f) {\n return common.makeAbs(this, f)\n}\n\nGlob.prototype.abort = function () {\n this.aborted = true\n this.emit('abort')\n}\n\nGlob.prototype.pause = function () {\n if (!this.paused) {\n this.paused = true\n this.emit('pause')\n }\n}\n\nGlob.prototype.resume = function () {\n if (this.paused) {\n this.emit('resume')\n this.paused = false\n if (this._emitQueue.length) {\n var eq = this._emitQueue.slice(0)\n this._emitQueue.length = 0\n for (var i = 0; i < eq.length; i ++) {\n var e = eq[i]\n this._emitMatch(e[0], e[1])\n }\n }\n if (this._processQueue.length) {\n var pq = this._processQueue.slice(0)\n this._processQueue.length = 0\n for (var i = 0; i < pq.length; i ++) {\n var p = pq[i]\n this._processing--\n this._process(p[0], p[1], p[2], p[3])\n }\n }\n }\n}\n\nGlob.prototype._process = function (pattern, index, inGlobStar, cb) {\n assert(this instanceof Glob)\n assert(typeof cb === 'function')\n\n if (this.aborted)\n return\n\n this._processing++\n if (this.paused) {\n this._processQueue.push([pattern, index, inGlobStar, cb])\n return\n }\n\n //console.error('PROCESS %d', this._processing, pattern)\n\n // Get the first [n] parts of pattern that are all strings.\n var n = 0\n while (typeof pattern[n] === 'string') {\n n ++\n }\n // now n is the index of the first one that is *not* a string.\n\n // see if there's anything else\n var prefix\n switch (n) {\n // if not, then this is rather simple\n case pattern.length:\n this._processSimple(pattern.join('/'), index, cb)\n return\n\n case 0:\n // pattern *starts* with some non-trivial item.\n // going to readdir(cwd), but not include the prefix in matches.\n prefix = null\n break\n\n default:\n // pattern has some string bits in the front.\n // whatever it starts with, whether that's 'absolute' like /foo/bar,\n // or 'relative' like '../baz'\n prefix = pattern.slice(0, n).join('/')\n break\n }\n\n var remain = pattern.slice(n)\n\n // get the list of entries.\n var read\n if (prefix === null)\n read = '.'\n else if (isAbsolute(prefix) || isAbsolute(pattern.join('/'))) {\n if (!prefix || !isAbsolute(prefix))\n prefix = '/' + prefix\n read = prefix\n } else\n read = prefix\n\n var abs = this._makeAbs(read)\n\n //if ignored, skip _processing\n if (childrenIgnored(this, read))\n return cb()\n\n var isGlobStar = remain[0] === minimatch.GLOBSTAR\n if (isGlobStar)\n this._processGlobStar(prefix, read, abs, remain, index, inGlobStar, cb)\n else\n this._processReaddir(prefix, read, abs, remain, index, inGlobStar, cb)\n}\n\nGlob.prototype._processReaddir = function (prefix, read, abs, remain, index, inGlobStar, cb) {\n var self = this\n this._readdir(abs, inGlobStar, function (er, entries) {\n return self._processReaddir2(prefix, read, abs, remain, index, inGlobStar, entries, cb)\n })\n}\n\nGlob.prototype._processReaddir2 = function (prefix, read, abs, remain, index, inGlobStar, entries, cb) {\n\n // if the abs isn't a dir, then nothing can match!\n if (!entries)\n return cb()\n\n // It will only match dot entries if it starts with a dot, or if\n // dot is set. Stuff like @(.foo|.bar) isn't allowed.\n var pn = remain[0]\n var negate = !!this.minimatch.negate\n var rawGlob = pn._glob\n var dotOk = this.dot || rawGlob.charAt(0) === '.'\n\n var matchedEntries = []\n for (var i = 0; i < entries.length; i++) {\n var e = entries[i]\n if (e.charAt(0) !== '.' || dotOk) {\n var m\n if (negate && !prefix) {\n m = !e.match(pn)\n } else {\n m = e.match(pn)\n }\n if (m)\n matchedEntries.push(e)\n }\n }\n\n //console.error('prd2', prefix, entries, remain[0]._glob, matchedEntries)\n\n var len = matchedEntries.length\n // If there are no matched entries, then nothing matches.\n if (len === 0)\n return cb()\n\n // if this is the last remaining pattern bit, then no need for\n // an additional stat *unless* the user has specified mark or\n // stat explicitly. We know they exist, since readdir returned\n // them.\n\n if (remain.length === 1 && !this.mark && !this.stat) {\n if (!this.matches[index])\n this.matches[index] = Object.create(null)\n\n for (var i = 0; i < len; i ++) {\n var e = matchedEntries[i]\n if (prefix) {\n if (prefix !== '/')\n e = prefix + '/' + e\n else\n e = prefix + e\n }\n\n if (e.charAt(0) === '/' && !this.nomount) {\n e = path.join(this.root, e)\n }\n this._emitMatch(index, e)\n }\n // This was the last one, and no stats were needed\n return cb()\n }\n\n // now test all matched entries as stand-ins for that part\n // of the pattern.\n remain.shift()\n for (var i = 0; i < len; i ++) {\n var e = matchedEntries[i]\n var newPattern\n if (prefix) {\n if (prefix !== '/')\n e = prefix + '/' + e\n else\n e = prefix + e\n }\n this._process([e].concat(remain), index, inGlobStar, cb)\n }\n cb()\n}\n\nGlob.prototype._emitMatch = function (index, e) {\n if (this.aborted)\n return\n\n if (this.matches[index][e])\n return\n\n if (isIgnored(this, e))\n return\n\n if (this.paused) {\n this._emitQueue.push([index, e])\n return\n }\n\n var abs = this._makeAbs(e)\n\n if (this.nodir) {\n var c = this.cache[abs]\n if (c === 'DIR' || Array.isArray(c))\n return\n }\n\n if (this.mark)\n e = this._mark(e)\n\n this.matches[index][e] = true\n\n var st = this.statCache[abs]\n if (st)\n this.emit('stat', e, st)\n\n this.emit('match', e)\n}\n\nGlob.prototype._readdirInGlobStar = function (abs, cb) {\n if (this.aborted)\n return\n\n // follow all symlinked directories forever\n // just proceed as if this is a non-globstar situation\n if (this.follow)\n return this._readdir(abs, false, cb)\n\n var lstatkey = 'lstat\\0' + abs\n var self = this\n var lstatcb = inflight(lstatkey, lstatcb_)\n\n if (lstatcb)\n fs.lstat(abs, lstatcb)\n\n function lstatcb_ (er, lstat) {\n if (er)\n return cb()\n\n var isSym = lstat.isSymbolicLink()\n self.symlinks[abs] = isSym\n\n // If it's not a symlink or a dir, then it's definitely a regular file.\n // don't bother doing a readdir in that case.\n if (!isSym && !lstat.isDirectory()) {\n self.cache[abs] = 'FILE'\n cb()\n } else\n self._readdir(abs, false, cb)\n }\n}\n\nGlob.prototype._readdir = function (abs, inGlobStar, cb) {\n if (this.aborted)\n return\n\n cb = inflight('readdir\\0'+abs+'\\0'+inGlobStar, cb)\n if (!cb)\n return\n\n //console.error('RD %j %j', +inGlobStar, abs)\n if (inGlobStar && !ownProp(this.symlinks, abs))\n return this._readdirInGlobStar(abs, cb)\n\n if (ownProp(this.cache, abs)) {\n var c = this.cache[abs]\n if (!c || c === 'FILE')\n return cb()\n\n if (Array.isArray(c))\n return cb(null, c)\n }\n\n var self = this\n fs.readdir(abs, readdirCb(this, abs, cb))\n}\n\nfunction readdirCb (self, abs, cb) {\n return function (er, entries) {\n if (er)\n self._readdirError(abs, er, cb)\n else\n self._readdirEntries(abs, entries, cb)\n }\n}\n\nGlob.prototype._readdirEntries = function (abs, entries, cb) {\n if (this.aborted)\n return\n\n // if we haven't asked to stat everything, then just\n // assume that everything in there exists, so we can avoid\n // having to stat it a second time.\n if (!this.mark && !this.stat) {\n for (var i = 0; i < entries.length; i ++) {\n var e = entries[i]\n if (abs === '/')\n e = abs + e\n else\n e = abs + '/' + e\n this.cache[e] = true\n }\n }\n\n this.cache[abs] = entries\n return cb(null, entries)\n}\n\nGlob.prototype._readdirError = function (f, er, cb) {\n if (this.aborted)\n return\n\n // handle errors, and cache the information\n switch (er.code) {\n case 'ENOTSUP': // https://github.com/isaacs/node-glob/issues/205\n case 'ENOTDIR': // totally normal. means it *does* exist.\n this.cache[this._makeAbs(f)] = 'FILE'\n break\n\n case 'ENOENT': // not terribly unusual\n case 'ELOOP':\n case 'ENAMETOOLONG':\n case 'UNKNOWN':\n this.cache[this._makeAbs(f)] = false\n break\n\n default: // some unusual error. Treat as failure.\n this.cache[this._makeAbs(f)] = false\n if (this.strict) {\n this.emit('error', er)\n // If the error is handled, then we abort\n // if not, we threw out of here\n this.abort()\n }\n if (!this.silent)\n console.error('glob error', er)\n break\n }\n\n return cb()\n}\n\nGlob.prototype._processGlobStar = function (prefix, read, abs, remain, index, inGlobStar, cb) {\n var self = this\n this._readdir(abs, inGlobStar, function (er, entries) {\n self._processGlobStar2(prefix, read, abs, remain, index, inGlobStar, entries, cb)\n })\n}\n\n\nGlob.prototype._processGlobStar2 = function (prefix, read, abs, remain, index, inGlobStar, entries, cb) {\n //console.error('pgs2', prefix, remain[0], entries)\n\n // no entries means not a dir, so it can never have matches\n // foo.txt/** doesn't match foo.txt\n if (!entries)\n return cb()\n\n // test without the globstar, and with every child both below\n // and replacing the globstar.\n var remainWithoutGlobStar = remain.slice(1)\n var gspref = prefix ? [ prefix ] : []\n var noGlobStar = gspref.concat(remainWithoutGlobStar)\n\n // the noGlobStar pattern exits the inGlobStar state\n this._process(noGlobStar, index, false, cb)\n\n var isSym = this.symlinks[abs]\n var len = entries.length\n\n // If it's a symlink, and we're in a globstar, then stop\n if (isSym && inGlobStar)\n return cb()\n\n for (var i = 0; i < len; i++) {\n var e = entries[i]\n if (e.charAt(0) === '.' && !this.dot)\n continue\n\n // these two cases enter the inGlobStar state\n var instead = gspref.concat(entries[i], remainWithoutGlobStar)\n this._process(instead, index, true, cb)\n\n var below = gspref.concat(entries[i], remain)\n this._process(below, index, true, cb)\n }\n\n cb()\n}\n\nGlob.prototype._processSimple = function (prefix, index, cb) {\n // XXX review this. Shouldn't it be doing the mounting etc\n // before doing stat? kinda weird?\n var self = this\n this._stat(prefix, function (er, exists) {\n self._processSimple2(prefix, index, er, exists, cb)\n })\n}\nGlob.prototype._processSimple2 = function (prefix, index, er, exists, cb) {\n\n //console.error('ps2', prefix, exists)\n\n if (!this.matches[index])\n this.matches[index] = Object.create(null)\n\n // If it doesn't exist, then just mark the lack of results\n if (!exists)\n return cb()\n\n if (prefix && isAbsolute(prefix) && !this.nomount) {\n var trail = /[\\/\\\\]$/.test(prefix)\n if (prefix.charAt(0) === '/') {\n prefix = path.join(this.root, prefix)\n } else {\n prefix = path.resolve(this.root, prefix)\n if (trail)\n prefix += '/'\n }\n }\n\n if (process.platform === 'win32')\n prefix = prefix.replace(/\\\\/g, '/')\n\n // Mark this as a match\n this._emitMatch(index, prefix)\n cb()\n}\n\n// Returns either 'DIR', 'FILE', or false\nGlob.prototype._stat = function (f, cb) {\n var abs = this._makeAbs(f)\n var needDir = f.slice(-1) === '/'\n\n if (f.length > this.maxLength)\n return cb()\n\n if (!this.stat && ownProp(this.cache, abs)) {\n var c = this.cache[abs]\n\n if (Array.isArray(c))\n c = 'DIR'\n\n // It exists, but maybe not how we need it\n if (!needDir || c === 'DIR')\n return cb(null, c)\n\n if (needDir && c === 'FILE')\n return cb()\n\n // otherwise we have to stat, because maybe c=true\n // if we know it exists, but not what it is.\n }\n\n var exists\n var stat = this.statCache[abs]\n if (stat !== undefined) {\n if (stat === false)\n return cb(null, stat)\n else {\n var type = stat.isDirectory() ? 'DIR' : 'FILE'\n if (needDir && type === 'FILE')\n return cb()\n else\n return cb(null, type, stat)\n }\n }\n\n var self = this\n var statcb = inflight('stat\\0' + abs, lstatcb_)\n if (statcb)\n fs.lstat(abs, statcb)\n\n function lstatcb_ (er, lstat) {\n if (lstat && lstat.isSymbolicLink()) {\n // If it's a symlink, then treat it as the target, unless\n // the target does not exist, then treat it as a file.\n return fs.stat(abs, function (er, stat) {\n if (er)\n self._stat2(f, abs, null, lstat, cb)\n else\n self._stat2(f, abs, er, stat, cb)\n })\n } else {\n self._stat2(f, abs, er, lstat, cb)\n }\n }\n}\n\nGlob.prototype._stat2 = function (f, abs, er, stat, cb) {\n if (er) {\n this.statCache[abs] = false\n return cb()\n }\n\n var needDir = f.slice(-1) === '/'\n this.statCache[abs] = stat\n\n if (abs.slice(-1) === '/' && !stat.isDirectory())\n return cb(null, false, stat)\n\n var c = stat.isDirectory() ? 'DIR' : 'FILE'\n this.cache[abs] = this.cache[abs] || c\n\n if (needDir && c !== 'DIR')\n return cb()\n\n return cb(null, c, stat)\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob/glob.js\n ** module id = 243\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob/glob.js?"); + eval("var json = typeof JSON !== 'undefined' ? JSON : __webpack_require__(244);\n\nmodule.exports = function (obj, opts) {\n if (!opts) opts = {};\n if (typeof opts === 'function') opts = { cmp: opts };\n var space = opts.space || '';\n if (typeof space === 'number') space = Array(space+1).join(' ');\n var cycles = (typeof opts.cycles === 'boolean') ? opts.cycles : false;\n var replacer = opts.replacer || function(key, value) { return value; };\n\n var cmp = opts.cmp && (function (f) {\n return function (node) {\n return function (a, b) {\n var aobj = { key: a, value: node[a] };\n var bobj = { key: b, value: node[b] };\n return f(aobj, bobj);\n };\n };\n })(opts.cmp);\n\n var seen = [];\n return (function stringify (parent, key, node, level) {\n var indent = space ? ('\\n' + new Array(level + 1).join(space)) : '';\n var colonSeparator = space ? ': ' : ':';\n\n if (node && node.toJSON && typeof node.toJSON === 'function') {\n node = node.toJSON();\n }\n\n node = replacer.call(parent, key, node);\n\n if (node === undefined) {\n return;\n }\n if (typeof node !== 'object' || node === null) {\n return json.stringify(node);\n }\n if (isArray(node)) {\n var out = [];\n for (var i = 0; i < node.length; i++) {\n var item = stringify(node, i, node[i], level+1) || json.stringify(null);\n out.push(indent + space + item);\n }\n return '[' + out.join(',') + indent + ']';\n }\n else {\n if (seen.indexOf(node) !== -1) {\n if (cycles) return json.stringify('__cycle__');\n throw new TypeError('Converting circular structure to JSON');\n }\n else seen.push(node);\n\n var keys = objectKeys(node).sort(cmp && cmp(node));\n var out = [];\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n var value = stringify(node, key, node[key], level+1);\n\n if(!value) continue;\n\n var keyValue = json.stringify(key)\n + colonSeparator\n + value;\n ;\n out.push(indent + space + keyValue);\n }\n seen.splice(seen.indexOf(node), 1);\n return '{' + out.join(',') + indent + '}';\n }\n })({ '': obj }, '', obj, 0);\n};\n\nvar isArray = Array.isArray || function (x) {\n return {}.toString.call(x) === '[object Array]';\n};\n\nvar objectKeys = Object.keys || function (obj) {\n var has = Object.prototype.hasOwnProperty || function () { return true };\n var keys = [];\n for (var key in obj) {\n if (has.call(obj, key)) keys.push(key);\n }\n return keys;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/json-stable-stringify/index.js\n ** module id = 243\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/json-stable-stringify/index.js?"); /***/ }, /* 244 */ /***/ function(module, exports, __webpack_require__) { - eval("module.exports = minimatch\nminimatch.Minimatch = Minimatch\n\nvar path = { sep: '/' }\ntry {\n path = __webpack_require__(149)\n} catch (er) {}\n\nvar GLOBSTAR = minimatch.GLOBSTAR = Minimatch.GLOBSTAR = {}\nvar expand = __webpack_require__(245)\n\n// any single thing other than /\n// don't need to escape / when using new RegExp()\nvar qmark = '[^/]'\n\n// * => any number of characters\nvar star = qmark + '*?'\n\n// ** when dots are allowed. Anything goes, except .. and .\n// not (^ or / followed by one or two dots followed by $ or /),\n// followed by anything, any number of times.\nvar twoStarDot = '(?:(?!(?:\\\\\\/|^)(?:\\\\.{1,2})($|\\\\\\/)).)*?'\n\n// not a ^ or / followed by a dot,\n// followed by anything, any number of times.\nvar twoStarNoDot = '(?:(?!(?:\\\\\\/|^)\\\\.).)*?'\n\n// characters that need to be escaped in RegExp.\nvar reSpecials = charSet('().*{}+?[]^$\\\\!')\n\n// \"abc\" -> { a:true, b:true, c:true }\nfunction charSet (s) {\n return s.split('').reduce(function (set, c) {\n set[c] = true\n return set\n }, {})\n}\n\n// normalizes slashes.\nvar slashSplit = /\\/+/\n\nminimatch.filter = filter\nfunction filter (pattern, options) {\n options = options || {}\n return function (p, i, list) {\n return minimatch(p, pattern, options)\n }\n}\n\nfunction ext (a, b) {\n a = a || {}\n b = b || {}\n var t = {}\n Object.keys(b).forEach(function (k) {\n t[k] = b[k]\n })\n Object.keys(a).forEach(function (k) {\n t[k] = a[k]\n })\n return t\n}\n\nminimatch.defaults = function (def) {\n if (!def || !Object.keys(def).length) return minimatch\n\n var orig = minimatch\n\n var m = function minimatch (p, pattern, options) {\n return orig.minimatch(p, pattern, ext(def, options))\n }\n\n m.Minimatch = function Minimatch (pattern, options) {\n return new orig.Minimatch(pattern, ext(def, options))\n }\n\n return m\n}\n\nMinimatch.defaults = function (def) {\n if (!def || !Object.keys(def).length) return Minimatch\n return minimatch.defaults(def).Minimatch\n}\n\nfunction minimatch (p, pattern, options) {\n if (typeof pattern !== 'string') {\n throw new TypeError('glob pattern string required')\n }\n\n if (!options) options = {}\n\n // shortcut: comments match nothing.\n if (!options.nocomment && pattern.charAt(0) === '#') {\n return false\n }\n\n // \"\" only matches \"\"\n if (pattern.trim() === '') return p === ''\n\n return new Minimatch(pattern, options).match(p)\n}\n\nfunction Minimatch (pattern, options) {\n if (!(this instanceof Minimatch)) {\n return new Minimatch(pattern, options)\n }\n\n if (typeof pattern !== 'string') {\n throw new TypeError('glob pattern string required')\n }\n\n if (!options) options = {}\n pattern = pattern.trim()\n\n // windows support: need to use /, not \\\n if (path.sep !== '/') {\n pattern = pattern.split(path.sep).join('/')\n }\n\n this.options = options\n this.set = []\n this.pattern = pattern\n this.regexp = null\n this.negate = false\n this.comment = false\n this.empty = false\n\n // make the set of regexps etc.\n this.make()\n}\n\nMinimatch.prototype.debug = function () {}\n\nMinimatch.prototype.make = make\nfunction make () {\n // don't do it more than once.\n if (this._made) return\n\n var pattern = this.pattern\n var options = this.options\n\n // empty patterns and comments match nothing.\n if (!options.nocomment && pattern.charAt(0) === '#') {\n this.comment = true\n return\n }\n if (!pattern) {\n this.empty = true\n return\n }\n\n // step 1: figure out negation, etc.\n this.parseNegate()\n\n // step 2: expand braces\n var set = this.globSet = this.braceExpand()\n\n if (options.debug) this.debug = console.error\n\n this.debug(this.pattern, set)\n\n // step 3: now we have a set, so turn each one into a series of path-portion\n // matching patterns.\n // These will be regexps, except in the case of \"**\", which is\n // set to the GLOBSTAR object for globstar behavior,\n // and will not contain any / characters\n set = this.globParts = set.map(function (s) {\n return s.split(slashSplit)\n })\n\n this.debug(this.pattern, set)\n\n // glob --> regexps\n set = set.map(function (s, si, set) {\n return s.map(this.parse, this)\n }, this)\n\n this.debug(this.pattern, set)\n\n // filter out everything that didn't compile properly.\n set = set.filter(function (s) {\n return s.indexOf(false) === -1\n })\n\n this.debug(this.pattern, set)\n\n this.set = set\n}\n\nMinimatch.prototype.parseNegate = parseNegate\nfunction parseNegate () {\n var pattern = this.pattern\n var negate = false\n var options = this.options\n var negateOffset = 0\n\n if (options.nonegate) return\n\n for (var i = 0, l = pattern.length\n ; i < l && pattern.charAt(i) === '!'\n ; i++) {\n negate = !negate\n negateOffset++\n }\n\n if (negateOffset) this.pattern = pattern.substr(negateOffset)\n this.negate = negate\n}\n\n// Brace expansion:\n// a{b,c}d -> abd acd\n// a{b,}c -> abc ac\n// a{0..3}d -> a0d a1d a2d a3d\n// a{b,c{d,e}f}g -> abg acdfg acefg\n// a{b,c}d{e,f}g -> abdeg acdeg abdeg abdfg\n//\n// Invalid sets are not expanded.\n// a{2..}b -> a{2..}b\n// a{b}c -> a{b}c\nminimatch.braceExpand = function (pattern, options) {\n return braceExpand(pattern, options)\n}\n\nMinimatch.prototype.braceExpand = braceExpand\n\nfunction braceExpand (pattern, options) {\n if (!options) {\n if (this instanceof Minimatch) {\n options = this.options\n } else {\n options = {}\n }\n }\n\n pattern = typeof pattern === 'undefined'\n ? this.pattern : pattern\n\n if (typeof pattern === 'undefined') {\n throw new Error('undefined pattern')\n }\n\n if (options.nobrace ||\n !pattern.match(/\\{.*\\}/)) {\n // shortcut. no need to expand.\n return [pattern]\n }\n\n return expand(pattern)\n}\n\n// parse a component of the expanded set.\n// At this point, no pattern may contain \"/\" in it\n// so we're going to return a 2d array, where each entry is the full\n// pattern, split on '/', and then turned into a regular expression.\n// A regexp is made at the end which joins each array with an\n// escaped /, and another full one which joins each regexp with |.\n//\n// Following the lead of Bash 4.1, note that \"**\" only has special meaning\n// when it is the *only* thing in a path portion. Otherwise, any series\n// of * is equivalent to a single *. Globstar behavior is enabled by\n// default, and can be disabled by setting options.noglobstar.\nMinimatch.prototype.parse = parse\nvar SUBPARSE = {}\nfunction parse (pattern, isSub) {\n var options = this.options\n\n // shortcuts\n if (!options.noglobstar && pattern === '**') return GLOBSTAR\n if (pattern === '') return ''\n\n var re = ''\n var hasMagic = !!options.nocase\n var escaping = false\n // ? => one single character\n var patternListStack = []\n var negativeLists = []\n var plType\n var stateChar\n var inClass = false\n var reClassStart = -1\n var classStart = -1\n // . and .. never match anything that doesn't start with .,\n // even when options.dot is set.\n var patternStart = pattern.charAt(0) === '.' ? '' // anything\n // not (start or / followed by . or .. followed by / or end)\n : options.dot ? '(?!(?:^|\\\\\\/)\\\\.{1,2}(?:$|\\\\\\/))'\n : '(?!\\\\.)'\n var self = this\n\n function clearStateChar () {\n if (stateChar) {\n // we had some state-tracking character\n // that wasn't consumed by this pass.\n switch (stateChar) {\n case '*':\n re += star\n hasMagic = true\n break\n case '?':\n re += qmark\n hasMagic = true\n break\n default:\n re += '\\\\' + stateChar\n break\n }\n self.debug('clearStateChar %j %j', stateChar, re)\n stateChar = false\n }\n }\n\n for (var i = 0, len = pattern.length, c\n ; (i < len) && (c = pattern.charAt(i))\n ; i++) {\n this.debug('%s\\t%s %s %j', pattern, i, re, c)\n\n // skip over any that are escaped.\n if (escaping && reSpecials[c]) {\n re += '\\\\' + c\n escaping = false\n continue\n }\n\n switch (c) {\n case '/':\n // completely not allowed, even escaped.\n // Should already be path-split by now.\n return false\n\n case '\\\\':\n clearStateChar()\n escaping = true\n continue\n\n // the various stateChar values\n // for the \"extglob\" stuff.\n case '?':\n case '*':\n case '+':\n case '@':\n case '!':\n this.debug('%s\\t%s %s %j <-- stateChar', pattern, i, re, c)\n\n // all of those are literals inside a class, except that\n // the glob [!a] means [^a] in regexp\n if (inClass) {\n this.debug(' in class')\n if (c === '!' && i === classStart + 1) c = '^'\n re += c\n continue\n }\n\n // if we already have a stateChar, then it means\n // that there was something like ** or +? in there.\n // Handle the stateChar, then proceed with this one.\n self.debug('call clearStateChar %j', stateChar)\n clearStateChar()\n stateChar = c\n // if extglob is disabled, then +(asdf|foo) isn't a thing.\n // just clear the statechar *now*, rather than even diving into\n // the patternList stuff.\n if (options.noext) clearStateChar()\n continue\n\n case '(':\n if (inClass) {\n re += '('\n continue\n }\n\n if (!stateChar) {\n re += '\\\\('\n continue\n }\n\n plType = stateChar\n patternListStack.push({\n type: plType,\n start: i - 1,\n reStart: re.length\n })\n // negation is (?:(?!js)[^/]*)\n re += stateChar === '!' ? '(?:(?!(?:' : '(?:'\n this.debug('plType %j %j', stateChar, re)\n stateChar = false\n continue\n\n case ')':\n if (inClass || !patternListStack.length) {\n re += '\\\\)'\n continue\n }\n\n clearStateChar()\n hasMagic = true\n re += ')'\n var pl = patternListStack.pop()\n plType = pl.type\n // negation is (?:(?!js)[^/]*)\n // The others are (?:)\n switch (plType) {\n case '!':\n negativeLists.push(pl)\n re += ')[^/]*?)'\n pl.reEnd = re.length\n break\n case '?':\n case '+':\n case '*':\n re += plType\n break\n case '@': break // the default anyway\n }\n continue\n\n case '|':\n if (inClass || !patternListStack.length || escaping) {\n re += '\\\\|'\n escaping = false\n continue\n }\n\n clearStateChar()\n re += '|'\n continue\n\n // these are mostly the same in regexp and glob\n case '[':\n // swallow any state-tracking char before the [\n clearStateChar()\n\n if (inClass) {\n re += '\\\\' + c\n continue\n }\n\n inClass = true\n classStart = i\n reClassStart = re.length\n re += c\n continue\n\n case ']':\n // a right bracket shall lose its special\n // meaning and represent itself in\n // a bracket expression if it occurs\n // first in the list. -- POSIX.2 2.8.3.2\n if (i === classStart + 1 || !inClass) {\n re += '\\\\' + c\n escaping = false\n continue\n }\n\n // handle the case where we left a class open.\n // \"[z-a]\" is valid, equivalent to \"\\[z-a\\]\"\n if (inClass) {\n // split where the last [ was, make sure we don't have\n // an invalid re. if so, re-walk the contents of the\n // would-be class to re-translate any characters that\n // were passed through as-is\n // TODO: It would probably be faster to determine this\n // without a try/catch and a new RegExp, but it's tricky\n // to do safely. For now, this is safe and works.\n var cs = pattern.substring(classStart + 1, i)\n try {\n RegExp('[' + cs + ']')\n } catch (er) {\n // not a valid class!\n var sp = this.parse(cs, SUBPARSE)\n re = re.substr(0, reClassStart) + '\\\\[' + sp[0] + '\\\\]'\n hasMagic = hasMagic || sp[1]\n inClass = false\n continue\n }\n }\n\n // finish up the class.\n hasMagic = true\n inClass = false\n re += c\n continue\n\n default:\n // swallow any state char that wasn't consumed\n clearStateChar()\n\n if (escaping) {\n // no need\n escaping = false\n } else if (reSpecials[c]\n && !(c === '^' && inClass)) {\n re += '\\\\'\n }\n\n re += c\n\n } // switch\n } // for\n\n // handle the case where we left a class open.\n // \"[abc\" is valid, equivalent to \"\\[abc\"\n if (inClass) {\n // split where the last [ was, and escape it\n // this is a huge pita. We now have to re-walk\n // the contents of the would-be class to re-translate\n // any characters that were passed through as-is\n cs = pattern.substr(classStart + 1)\n sp = this.parse(cs, SUBPARSE)\n re = re.substr(0, reClassStart) + '\\\\[' + sp[0]\n hasMagic = hasMagic || sp[1]\n }\n\n // handle the case where we had a +( thing at the *end*\n // of the pattern.\n // each pattern list stack adds 3 chars, and we need to go through\n // and escape any | chars that were passed through as-is for the regexp.\n // Go through and escape them, taking care not to double-escape any\n // | chars that were already escaped.\n for (pl = patternListStack.pop(); pl; pl = patternListStack.pop()) {\n var tail = re.slice(pl.reStart + 3)\n // maybe some even number of \\, then maybe 1 \\, followed by a |\n tail = tail.replace(/((?:\\\\{2})*)(\\\\?)\\|/g, function (_, $1, $2) {\n if (!$2) {\n // the | isn't already escaped, so escape it.\n $2 = '\\\\'\n }\n\n // need to escape all those slashes *again*, without escaping the\n // one that we need for escaping the | character. As it works out,\n // escaping an even number of slashes can be done by simply repeating\n // it exactly after itself. That's why this trick works.\n //\n // I am sorry that you have to see this.\n return $1 + $1 + $2 + '|'\n })\n\n this.debug('tail=%j\\n %s', tail, tail)\n var t = pl.type === '*' ? star\n : pl.type === '?' ? qmark\n : '\\\\' + pl.type\n\n hasMagic = true\n re = re.slice(0, pl.reStart) + t + '\\\\(' + tail\n }\n\n // handle trailing things that only matter at the very end.\n clearStateChar()\n if (escaping) {\n // trailing \\\\\n re += '\\\\\\\\'\n }\n\n // only need to apply the nodot start if the re starts with\n // something that could conceivably capture a dot\n var addPatternStart = false\n switch (re.charAt(0)) {\n case '.':\n case '[':\n case '(': addPatternStart = true\n }\n\n // Hack to work around lack of negative lookbehind in JS\n // A pattern like: *.!(x).!(y|z) needs to ensure that a name\n // like 'a.xyz.yz' doesn't match. So, the first negative\n // lookahead, has to look ALL the way ahead, to the end of\n // the pattern.\n for (var n = negativeLists.length - 1; n > -1; n--) {\n var nl = negativeLists[n]\n\n var nlBefore = re.slice(0, nl.reStart)\n var nlFirst = re.slice(nl.reStart, nl.reEnd - 8)\n var nlLast = re.slice(nl.reEnd - 8, nl.reEnd)\n var nlAfter = re.slice(nl.reEnd)\n\n nlLast += nlAfter\n\n // Handle nested stuff like *(*.js|!(*.json)), where open parens\n // mean that we should *not* include the ) in the bit that is considered\n // \"after\" the negated section.\n var openParensBefore = nlBefore.split('(').length - 1\n var cleanAfter = nlAfter\n for (i = 0; i < openParensBefore; i++) {\n cleanAfter = cleanAfter.replace(/\\)[+*?]?/, '')\n }\n nlAfter = cleanAfter\n\n var dollar = ''\n if (nlAfter === '' && isSub !== SUBPARSE) {\n dollar = '$'\n }\n var newRe = nlBefore + nlFirst + nlAfter + dollar + nlLast\n re = newRe\n }\n\n // if the re is not \"\" at this point, then we need to make sure\n // it doesn't match against an empty path part.\n // Otherwise a/* will match a/, which it should not.\n if (re !== '' && hasMagic) {\n re = '(?=.)' + re\n }\n\n if (addPatternStart) {\n re = patternStart + re\n }\n\n // parsing just a piece of a larger pattern.\n if (isSub === SUBPARSE) {\n return [re, hasMagic]\n }\n\n // skip the regexp for non-magical patterns\n // unescape anything in it, though, so that it'll be\n // an exact match against a file etc.\n if (!hasMagic) {\n return globUnescape(pattern)\n }\n\n var flags = options.nocase ? 'i' : ''\n var regExp = new RegExp('^' + re + '$', flags)\n\n regExp._glob = pattern\n regExp._src = re\n\n return regExp\n}\n\nminimatch.makeRe = function (pattern, options) {\n return new Minimatch(pattern, options || {}).makeRe()\n}\n\nMinimatch.prototype.makeRe = makeRe\nfunction makeRe () {\n if (this.regexp || this.regexp === false) return this.regexp\n\n // at this point, this.set is a 2d array of partial\n // pattern strings, or \"**\".\n //\n // It's better to use .match(). This function shouldn't\n // be used, really, but it's pretty convenient sometimes,\n // when you just want to work with a regex.\n var set = this.set\n\n if (!set.length) {\n this.regexp = false\n return this.regexp\n }\n var options = this.options\n\n var twoStar = options.noglobstar ? star\n : options.dot ? twoStarDot\n : twoStarNoDot\n var flags = options.nocase ? 'i' : ''\n\n var re = set.map(function (pattern) {\n return pattern.map(function (p) {\n return (p === GLOBSTAR) ? twoStar\n : (typeof p === 'string') ? regExpEscape(p)\n : p._src\n }).join('\\\\\\/')\n }).join('|')\n\n // must match entire pattern\n // ending in a * or ** will make it less strict.\n re = '^(?:' + re + ')$'\n\n // can match anything, as long as it's not this.\n if (this.negate) re = '^(?!' + re + ').*$'\n\n try {\n this.regexp = new RegExp(re, flags)\n } catch (ex) {\n this.regexp = false\n }\n return this.regexp\n}\n\nminimatch.match = function (list, pattern, options) {\n options = options || {}\n var mm = new Minimatch(pattern, options)\n list = list.filter(function (f) {\n return mm.match(f)\n })\n if (mm.options.nonull && !list.length) {\n list.push(pattern)\n }\n return list\n}\n\nMinimatch.prototype.match = match\nfunction match (f, partial) {\n this.debug('match', f, this.pattern)\n // short-circuit in the case of busted things.\n // comments, etc.\n if (this.comment) return false\n if (this.empty) return f === ''\n\n if (f === '/' && partial) return true\n\n var options = this.options\n\n // windows: need to use /, not \\\n if (path.sep !== '/') {\n f = f.split(path.sep).join('/')\n }\n\n // treat the test path as a set of pathparts.\n f = f.split(slashSplit)\n this.debug(this.pattern, 'split', f)\n\n // just ONE of the pattern sets in this.set needs to match\n // in order for it to be valid. If negating, then just one\n // match means that we have failed.\n // Either way, return on the first hit.\n\n var set = this.set\n this.debug(this.pattern, 'set', set)\n\n // Find the basename of the path by looking for the last non-empty segment\n var filename\n var i\n for (i = f.length - 1; i >= 0; i--) {\n filename = f[i]\n if (filename) break\n }\n\n for (i = 0; i < set.length; i++) {\n var pattern = set[i]\n var file = f\n if (options.matchBase && pattern.length === 1) {\n file = [filename]\n }\n var hit = this.matchOne(file, pattern, partial)\n if (hit) {\n if (options.flipNegate) return true\n return !this.negate\n }\n }\n\n // didn't get any hits. this is success if it's a negative\n // pattern, failure otherwise.\n if (options.flipNegate) return false\n return this.negate\n}\n\n// set partial to true to test if, for example,\n// \"/a/b\" matches the start of \"/*/b/*/d\"\n// Partial means, if you run out of file before you run\n// out of pattern, then that's fine, as long as all\n// the parts match.\nMinimatch.prototype.matchOne = function (file, pattern, partial) {\n var options = this.options\n\n this.debug('matchOne',\n { 'this': this, file: file, pattern: pattern })\n\n this.debug('matchOne', file.length, pattern.length)\n\n for (var fi = 0,\n pi = 0,\n fl = file.length,\n pl = pattern.length\n ; (fi < fl) && (pi < pl)\n ; fi++, pi++) {\n this.debug('matchOne loop')\n var p = pattern[pi]\n var f = file[fi]\n\n this.debug(pattern, p, f)\n\n // should be impossible.\n // some invalid regexp stuff in the set.\n if (p === false) return false\n\n if (p === GLOBSTAR) {\n this.debug('GLOBSTAR', [pattern, p, f])\n\n // \"**\"\n // a/**/b/**/c would match the following:\n // a/b/x/y/z/c\n // a/x/y/z/b/c\n // a/b/x/b/x/c\n // a/b/c\n // To do this, take the rest of the pattern after\n // the **, and see if it would match the file remainder.\n // If so, return success.\n // If not, the ** \"swallows\" a segment, and try again.\n // This is recursively awful.\n //\n // a/**/b/**/c matching a/b/x/y/z/c\n // - a matches a\n // - doublestar\n // - matchOne(b/x/y/z/c, b/**/c)\n // - b matches b\n // - doublestar\n // - matchOne(x/y/z/c, c) -> no\n // - matchOne(y/z/c, c) -> no\n // - matchOne(z/c, c) -> no\n // - matchOne(c, c) yes, hit\n var fr = fi\n var pr = pi + 1\n if (pr === pl) {\n this.debug('** at the end')\n // a ** at the end will just swallow the rest.\n // We have found a match.\n // however, it will not swallow /.x, unless\n // options.dot is set.\n // . and .. are *never* matched by **, for explosively\n // exponential reasons.\n for (; fi < fl; fi++) {\n if (file[fi] === '.' || file[fi] === '..' ||\n (!options.dot && file[fi].charAt(0) === '.')) return false\n }\n return true\n }\n\n // ok, let's see if we can swallow whatever we can.\n while (fr < fl) {\n var swallowee = file[fr]\n\n this.debug('\\nglobstar while', file, fr, pattern, pr, swallowee)\n\n // XXX remove this slice. Just pass the start index.\n if (this.matchOne(file.slice(fr), pattern.slice(pr), partial)) {\n this.debug('globstar found match!', fr, fl, swallowee)\n // found a match.\n return true\n } else {\n // can't swallow \".\" or \"..\" ever.\n // can only swallow \".foo\" when explicitly asked.\n if (swallowee === '.' || swallowee === '..' ||\n (!options.dot && swallowee.charAt(0) === '.')) {\n this.debug('dot detected!', file, fr, pattern, pr)\n break\n }\n\n // ** swallows a segment, and continue.\n this.debug('globstar swallow a segment, and continue')\n fr++\n }\n }\n\n // no match was found.\n // However, in partial mode, we can't say this is necessarily over.\n // If there's more *pattern* left, then\n if (partial) {\n // ran out of file\n this.debug('\\n>>> no match, partial?', file, fr, pattern, pr)\n if (fr === fl) return true\n }\n return false\n }\n\n // something other than **\n // non-magic patterns just have to match exactly\n // patterns with magic have been turned into regexps.\n var hit\n if (typeof p === 'string') {\n if (options.nocase) {\n hit = f.toLowerCase() === p.toLowerCase()\n } else {\n hit = f === p\n }\n this.debug('string match', p, f, hit)\n } else {\n hit = f.match(p)\n this.debug('pattern match', p, f, hit)\n }\n\n if (!hit) return false\n }\n\n // Note: ending in / means that we'll get a final \"\"\n // at the end of the pattern. This can only match a\n // corresponding \"\" at the end of the file.\n // If the file ends in /, then it can only match a\n // a pattern that ends in /, unless the pattern just\n // doesn't have any more for it. But, a/b/ should *not*\n // match \"a/b/*\", even though \"\" matches against the\n // [^/]*? pattern, except in partial mode, where it might\n // simply not be reached yet.\n // However, a/b/ should still satisfy a/*\n\n // now either we fell off the end of the pattern, or we're done.\n if (fi === fl && pi === pl) {\n // ran out of pattern and filename at the same time.\n // an exact hit!\n return true\n } else if (fi === fl) {\n // ran out of file, but still had pattern left.\n // this is ok if we're doing the match as part of\n // a glob fs traversal.\n return partial\n } else if (pi === pl) {\n // ran out of pattern, still have file left.\n // this is only acceptable if we're on the very last\n // empty segment of a file with a trailing slash.\n // a/* should match a/b/\n var emptyFileEnd = (fi === fl - 1) && (file[fi] === '')\n return emptyFileEnd\n }\n\n // should be unreachable.\n throw new Error('wtf?')\n}\n\n// replace stuff like \\* with *\nfunction globUnescape (s) {\n return s.replace(/\\\\(.)/g, '$1')\n}\n\nfunction regExpEscape (s) {\n return s.replace(/[-[\\]{}()*+?.,\\\\^$|#\\s]/g, '\\\\$&')\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/minimatch/minimatch.js\n ** module id = 244\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/minimatch/minimatch.js?"); + eval("exports.parse = __webpack_require__(245);\nexports.stringify = __webpack_require__(246);\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/jsonify/index.js\n ** module id = 244\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/jsonify/index.js?"); /***/ }, /* 245 */ -/***/ function(module, exports, __webpack_require__) { +/***/ function(module, exports) { - eval("var concatMap = __webpack_require__(246);\nvar balanced = __webpack_require__(247);\n\nmodule.exports = expandTop;\n\nvar escSlash = '\\0SLASH'+Math.random()+'\\0';\nvar escOpen = '\\0OPEN'+Math.random()+'\\0';\nvar escClose = '\\0CLOSE'+Math.random()+'\\0';\nvar escComma = '\\0COMMA'+Math.random()+'\\0';\nvar escPeriod = '\\0PERIOD'+Math.random()+'\\0';\n\nfunction numeric(str) {\n return parseInt(str, 10) == str\n ? parseInt(str, 10)\n : str.charCodeAt(0);\n}\n\nfunction escapeBraces(str) {\n return str.split('\\\\\\\\').join(escSlash)\n .split('\\\\{').join(escOpen)\n .split('\\\\}').join(escClose)\n .split('\\\\,').join(escComma)\n .split('\\\\.').join(escPeriod);\n}\n\nfunction unescapeBraces(str) {\n return str.split(escSlash).join('\\\\')\n .split(escOpen).join('{')\n .split(escClose).join('}')\n .split(escComma).join(',')\n .split(escPeriod).join('.');\n}\n\n\n// Basically just str.split(\",\"), but handling cases\n// where we have nested braced sections, which should be\n// treated as individual members, like {a,{b,c},d}\nfunction parseCommaParts(str) {\n if (!str)\n return [''];\n\n var parts = [];\n var m = balanced('{', '}', str);\n\n if (!m)\n return str.split(',');\n\n var pre = m.pre;\n var body = m.body;\n var post = m.post;\n var p = pre.split(',');\n\n p[p.length-1] += '{' + body + '}';\n var postParts = parseCommaParts(post);\n if (post.length) {\n p[p.length-1] += postParts.shift();\n p.push.apply(p, postParts);\n }\n\n parts.push.apply(parts, p);\n\n return parts;\n}\n\nfunction expandTop(str) {\n if (!str)\n return [];\n\n return expand(escapeBraces(str), true).map(unescapeBraces);\n}\n\nfunction identity(e) {\n return e;\n}\n\nfunction embrace(str) {\n return '{' + str + '}';\n}\nfunction isPadded(el) {\n return /^-?0\\d/.test(el);\n}\n\nfunction lte(i, y) {\n return i <= y;\n}\nfunction gte(i, y) {\n return i >= y;\n}\n\nfunction expand(str, isTop) {\n var expansions = [];\n\n var m = balanced('{', '}', str);\n if (!m || /\\$$/.test(m.pre)) return [str];\n\n var isNumericSequence = /^-?\\d+\\.\\.-?\\d+(?:\\.\\.-?\\d+)?$/.test(m.body);\n var isAlphaSequence = /^[a-zA-Z]\\.\\.[a-zA-Z](?:\\.\\.-?\\d+)?$/.test(m.body);\n var isSequence = isNumericSequence || isAlphaSequence;\n var isOptions = /^(.*,)+(.+)?$/.test(m.body);\n if (!isSequence && !isOptions) {\n // {a},b}\n if (m.post.match(/,.*}/)) {\n str = m.pre + '{' + m.body + escClose + m.post;\n return expand(str);\n }\n return [str];\n }\n\n var n;\n if (isSequence) {\n n = m.body.split(/\\.\\./);\n } else {\n n = parseCommaParts(m.body);\n if (n.length === 1) {\n // x{{a,b}}y ==> x{a}y x{b}y\n n = expand(n[0], false).map(embrace);\n if (n.length === 1) {\n var post = m.post.length\n ? expand(m.post, false)\n : [''];\n return post.map(function(p) {\n return m.pre + n[0] + p;\n });\n }\n }\n }\n\n // at this point, n is the parts, and we know it's not a comma set\n // with a single entry.\n\n // no need to expand pre, since it is guaranteed to be free of brace-sets\n var pre = m.pre;\n var post = m.post.length\n ? expand(m.post, false)\n : [''];\n\n var N;\n\n if (isSequence) {\n var x = numeric(n[0]);\n var y = numeric(n[1]);\n var width = Math.max(n[0].length, n[1].length)\n var incr = n.length == 3\n ? Math.abs(numeric(n[2]))\n : 1;\n var test = lte;\n var reverse = y < x;\n if (reverse) {\n incr *= -1;\n test = gte;\n }\n var pad = n.some(isPadded);\n\n N = [];\n\n for (var i = x; test(i, y); i += incr) {\n var c;\n if (isAlphaSequence) {\n c = String.fromCharCode(i);\n if (c === '\\\\')\n c = '';\n } else {\n c = String(i);\n if (pad) {\n var need = width - c.length;\n if (need > 0) {\n var z = new Array(need + 1).join('0');\n if (i < 0)\n c = '-' + z + c.slice(1);\n else\n c = z + c;\n }\n }\n }\n N.push(c);\n }\n } else {\n N = concatMap(n, function(el) { return expand(el, false) });\n }\n\n for (var j = 0; j < N.length; j++) {\n for (var k = 0; k < post.length; k++) {\n var expansion = pre + N[j] + post[k];\n if (!isTop || isSequence || expansion)\n expansions.push(expansion);\n }\n }\n\n return expansions;\n}\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/brace-expansion/index.js\n ** module id = 245\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/brace-expansion/index.js?"); + eval("var at, // The index of the current character\n ch, // The current character\n escapee = {\n '\"': '\"',\n '\\\\': '\\\\',\n '/': '/',\n b: '\\b',\n f: '\\f',\n n: '\\n',\n r: '\\r',\n t: '\\t'\n },\n text,\n\n error = function (m) {\n // Call error when something is wrong.\n throw {\n name: 'SyntaxError',\n message: m,\n at: at,\n text: text\n };\n },\n \n next = function (c) {\n // If a c parameter is provided, verify that it matches the current character.\n if (c && c !== ch) {\n error(\"Expected '\" + c + \"' instead of '\" + ch + \"'\");\n }\n \n // Get the next character. When there are no more characters,\n // return the empty string.\n \n ch = text.charAt(at);\n at += 1;\n return ch;\n },\n \n number = function () {\n // Parse a number value.\n var number,\n string = '';\n \n if (ch === '-') {\n string = '-';\n next('-');\n }\n while (ch >= '0' && ch <= '9') {\n string += ch;\n next();\n }\n if (ch === '.') {\n string += '.';\n while (next() && ch >= '0' && ch <= '9') {\n string += ch;\n }\n }\n if (ch === 'e' || ch === 'E') {\n string += ch;\n next();\n if (ch === '-' || ch === '+') {\n string += ch;\n next();\n }\n while (ch >= '0' && ch <= '9') {\n string += ch;\n next();\n }\n }\n number = +string;\n if (!isFinite(number)) {\n error(\"Bad number\");\n } else {\n return number;\n }\n },\n \n string = function () {\n // Parse a string value.\n var hex,\n i,\n string = '',\n uffff;\n \n // When parsing for string values, we must look for \" and \\ characters.\n if (ch === '\"') {\n while (next()) {\n if (ch === '\"') {\n next();\n return string;\n } else if (ch === '\\\\') {\n next();\n if (ch === 'u') {\n uffff = 0;\n for (i = 0; i < 4; i += 1) {\n hex = parseInt(next(), 16);\n if (!isFinite(hex)) {\n break;\n }\n uffff = uffff * 16 + hex;\n }\n string += String.fromCharCode(uffff);\n } else if (typeof escapee[ch] === 'string') {\n string += escapee[ch];\n } else {\n break;\n }\n } else {\n string += ch;\n }\n }\n }\n error(\"Bad string\");\n },\n\n white = function () {\n\n// Skip whitespace.\n\n while (ch && ch <= ' ') {\n next();\n }\n },\n\n word = function () {\n\n// true, false, or null.\n\n switch (ch) {\n case 't':\n next('t');\n next('r');\n next('u');\n next('e');\n return true;\n case 'f':\n next('f');\n next('a');\n next('l');\n next('s');\n next('e');\n return false;\n case 'n':\n next('n');\n next('u');\n next('l');\n next('l');\n return null;\n }\n error(\"Unexpected '\" + ch + \"'\");\n },\n\n value, // Place holder for the value function.\n\n array = function () {\n\n// Parse an array value.\n\n var array = [];\n\n if (ch === '[') {\n next('[');\n white();\n if (ch === ']') {\n next(']');\n return array; // empty array\n }\n while (ch) {\n array.push(value());\n white();\n if (ch === ']') {\n next(']');\n return array;\n }\n next(',');\n white();\n }\n }\n error(\"Bad array\");\n },\n\n object = function () {\n\n// Parse an object value.\n\n var key,\n object = {};\n\n if (ch === '{') {\n next('{');\n white();\n if (ch === '}') {\n next('}');\n return object; // empty object\n }\n while (ch) {\n key = string();\n white();\n next(':');\n if (Object.hasOwnProperty.call(object, key)) {\n error('Duplicate key \"' + key + '\"');\n }\n object[key] = value();\n white();\n if (ch === '}') {\n next('}');\n return object;\n }\n next(',');\n white();\n }\n }\n error(\"Bad object\");\n };\n\nvalue = function () {\n\n// Parse a JSON value. It could be an object, an array, a string, a number,\n// or a word.\n\n white();\n switch (ch) {\n case '{':\n return object();\n case '[':\n return array();\n case '\"':\n return string();\n case '-':\n return number();\n default:\n return ch >= '0' && ch <= '9' ? number() : word();\n }\n};\n\n// Return the json_parse function. It will have access to all of the above\n// functions and variables.\n\nmodule.exports = function (source, reviver) {\n var result;\n \n text = source;\n at = 0;\n ch = ' ';\n result = value();\n white();\n if (ch) {\n error(\"Syntax error\");\n }\n\n // If there is a reviver function, we recursively walk the new structure,\n // passing each name/value pair to the reviver function for possible\n // transformation, starting with a temporary root object that holds the result\n // in an empty key. If there is not a reviver function, we simply return the\n // result.\n\n return typeof reviver === 'function' ? (function walk(holder, key) {\n var k, v, value = holder[key];\n if (value && typeof value === 'object') {\n for (k in value) {\n if (Object.prototype.hasOwnProperty.call(value, k)) {\n v = walk(value, k);\n if (v !== undefined) {\n value[k] = v;\n } else {\n delete value[k];\n }\n }\n }\n }\n return reviver.call(holder, key, value);\n }({'': result}, '')) : result;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/jsonify/lib/parse.js\n ** module id = 245\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/jsonify/lib/parse.js?"); /***/ }, /* 246 */ /***/ function(module, exports) { - eval("module.exports = function (xs, fn) {\n var res = [];\n for (var i = 0; i < xs.length; i++) {\n var x = fn(xs[i], i);\n if (isArray(x)) res.push.apply(res, x);\n else res.push(x);\n }\n return res;\n};\n\nvar isArray = Array.isArray || function (xs) {\n return Object.prototype.toString.call(xs) === '[object Array]';\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/concat-map/index.js\n ** module id = 246\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/concat-map/index.js?"); + eval("var cx = /[\\u0000\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]/g,\n escapable = /[\\\\\\\"\\x00-\\x1f\\x7f-\\x9f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]/g,\n gap,\n indent,\n meta = { // table of character substitutions\n '\\b': '\\\\b',\n '\\t': '\\\\t',\n '\\n': '\\\\n',\n '\\f': '\\\\f',\n '\\r': '\\\\r',\n '\"' : '\\\\\"',\n '\\\\': '\\\\\\\\'\n },\n rep;\n\nfunction quote(string) {\n // If the string contains no control characters, no quote characters, and no\n // backslash characters, then we can safely slap some quotes around it.\n // Otherwise we must also replace the offending characters with safe escape\n // sequences.\n \n escapable.lastIndex = 0;\n return escapable.test(string) ? '\"' + string.replace(escapable, function (a) {\n var c = meta[a];\n return typeof c === 'string' ? c :\n '\\\\u' + ('0000' + a.charCodeAt(0).toString(16)).slice(-4);\n }) + '\"' : '\"' + string + '\"';\n}\n\nfunction str(key, holder) {\n // Produce a string from holder[key].\n var i, // The loop counter.\n k, // The member key.\n v, // The member value.\n length,\n mind = gap,\n partial,\n value = holder[key];\n \n // If the value has a toJSON method, call it to obtain a replacement value.\n if (value && typeof value === 'object' &&\n typeof value.toJSON === 'function') {\n value = value.toJSON(key);\n }\n \n // If we were called with a replacer function, then call the replacer to\n // obtain a replacement value.\n if (typeof rep === 'function') {\n value = rep.call(holder, key, value);\n }\n \n // What happens next depends on the value's type.\n switch (typeof value) {\n case 'string':\n return quote(value);\n \n case 'number':\n // JSON numbers must be finite. Encode non-finite numbers as null.\n return isFinite(value) ? String(value) : 'null';\n \n case 'boolean':\n case 'null':\n // If the value is a boolean or null, convert it to a string. Note:\n // typeof null does not produce 'null'. The case is included here in\n // the remote chance that this gets fixed someday.\n return String(value);\n \n case 'object':\n if (!value) return 'null';\n gap += indent;\n partial = [];\n \n // Array.isArray\n if (Object.prototype.toString.apply(value) === '[object Array]') {\n length = value.length;\n for (i = 0; i < length; i += 1) {\n partial[i] = str(i, value) || 'null';\n }\n \n // Join all of the elements together, separated with commas, and\n // wrap them in brackets.\n v = partial.length === 0 ? '[]' : gap ?\n '[\\n' + gap + partial.join(',\\n' + gap) + '\\n' + mind + ']' :\n '[' + partial.join(',') + ']';\n gap = mind;\n return v;\n }\n \n // If the replacer is an array, use it to select the members to be\n // stringified.\n if (rep && typeof rep === 'object') {\n length = rep.length;\n for (i = 0; i < length; i += 1) {\n k = rep[i];\n if (typeof k === 'string') {\n v = str(k, value);\n if (v) {\n partial.push(quote(k) + (gap ? ': ' : ':') + v);\n }\n }\n }\n }\n else {\n // Otherwise, iterate through all of the keys in the object.\n for (k in value) {\n if (Object.prototype.hasOwnProperty.call(value, k)) {\n v = str(k, value);\n if (v) {\n partial.push(quote(k) + (gap ? ': ' : ':') + v);\n }\n }\n }\n }\n \n // Join all of the member texts together, separated with commas,\n // and wrap them in braces.\n\n v = partial.length === 0 ? '{}' : gap ?\n '{\\n' + gap + partial.join(',\\n' + gap) + '\\n' + mind + '}' :\n '{' + partial.join(',') + '}';\n gap = mind;\n return v;\n }\n}\n\nmodule.exports = function (value, replacer, space) {\n var i;\n gap = '';\n indent = '';\n \n // If the space parameter is a number, make an indent string containing that\n // many spaces.\n if (typeof space === 'number') {\n for (i = 0; i < space; i += 1) {\n indent += ' ';\n }\n }\n // If the space parameter is a string, it will be used as the indent string.\n else if (typeof space === 'string') {\n indent = space;\n }\n\n // If there is a replacer, it must be a function or an array.\n // Otherwise, throw an error.\n rep = replacer;\n if (replacer && typeof replacer !== 'function'\n && (typeof replacer !== 'object' || typeof replacer.length !== 'number')) {\n throw new Error('JSON.stringify');\n }\n \n // Make a fake root object containing our value under the key of ''.\n // Return the result of stringifying the value.\n return str('', {'': value});\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/jsonify/lib/stringify.js\n ** module id = 246\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/jsonify/lib/stringify.js?"); /***/ }, /* 247 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("module.exports = balanced;\nfunction balanced(a, b, str) {\n var r = range(a, b, str);\n\n return r && {\n start: r[0],\n end: r[1],\n pre: str.slice(0, r[0]),\n body: str.slice(r[0] + a.length, r[1]),\n post: str.slice(r[1] + b.length)\n };\n}\n\nbalanced.range = range;\nfunction range(a, b, str) {\n var begs, beg, left, right, result;\n var ai = str.indexOf(a);\n var bi = str.indexOf(b, ai + 1);\n var i = ai;\n\n if (ai >= 0 && bi > 0) {\n begs = [];\n left = str.length;\n\n while (i < str.length && i >= 0 && ! result) {\n if (i == ai) {\n begs.push(i);\n ai = str.indexOf(a, i + 1);\n } else if (begs.length == 1) {\n result = [ begs.pop(), bi ];\n } else {\n beg = begs.pop();\n if (beg < left) {\n left = beg;\n right = bi;\n }\n\n bi = str.indexOf(b, i + 1);\n }\n\n i = ai < bi && ai >= 0 ? ai : bi;\n }\n\n if (begs.length) {\n result = [ left, right ];\n }\n }\n\n return result;\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/balanced-match/index.js\n ** module id = 247\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/balanced-match/index.js?"); + eval("/* WEBPACK VAR INJECTION */(function(process) {// Approach:\n//\n// 1. Get the minimatch set\n// 2. For each pattern in the set, PROCESS(pattern, false)\n// 3. Store matches per-set, then uniq them\n//\n// PROCESS(pattern, inGlobStar)\n// Get the first [n] items from pattern that are all strings\n// Join these together. This is PREFIX.\n// If there is no more remaining, then stat(PREFIX) and\n// add to matches if it succeeds. END.\n//\n// If inGlobStar and PREFIX is symlink and points to dir\n// set ENTRIES = []\n// else readdir(PREFIX) as ENTRIES\n// If fail, END\n//\n// with ENTRIES\n// If pattern[n] is GLOBSTAR\n// // handle the case where the globstar match is empty\n// // by pruning it out, and testing the resulting pattern\n// PROCESS(pattern[0..n] + pattern[n+1 .. $], false)\n// // handle other cases.\n// for ENTRY in ENTRIES (not dotfiles)\n// // attach globstar + tail onto the entry\n// // Mark that this entry is a globstar match\n// PROCESS(pattern[0..n] + ENTRY + pattern[n .. $], true)\n//\n// else // not globstar\n// for ENTRY in ENTRIES (not dotfiles, unless pattern[n] is dot)\n// Test ENTRY against pattern[n]\n// If fails, continue\n// If passes, PROCESS(pattern[0..n] + item + pattern[n+1 .. $])\n//\n// Caveat:\n// Cache all stats and readdirs results to minimize syscall. Since all\n// we ever care about is existence and directory-ness, we can just keep\n// `true` for files, and [children,...] for directories, or `false` for\n// things that don't exist.\n\nmodule.exports = glob\n\nvar fs = __webpack_require__(82)\nvar minimatch = __webpack_require__(248)\nvar Minimatch = minimatch.Minimatch\nvar inherits = __webpack_require__(96)\nvar EE = __webpack_require__(86).EventEmitter\nvar path = __webpack_require__(149)\nvar assert = __webpack_require__(252)\nvar isAbsolute = __webpack_require__(253)\nvar globSync = __webpack_require__(254)\nvar common = __webpack_require__(255)\nvar alphasort = common.alphasort\nvar alphasorti = common.alphasorti\nvar setopts = common.setopts\nvar ownProp = common.ownProp\nvar inflight = __webpack_require__(256)\nvar util = __webpack_require__(139)\nvar childrenIgnored = common.childrenIgnored\nvar isIgnored = common.isIgnored\n\nvar once = __webpack_require__(258)\n\nfunction glob (pattern, options, cb) {\n if (typeof options === 'function') cb = options, options = {}\n if (!options) options = {}\n\n if (options.sync) {\n if (cb)\n throw new TypeError('callback provided to sync glob')\n return globSync(pattern, options)\n }\n\n return new Glob(pattern, options, cb)\n}\n\nglob.sync = globSync\nvar GlobSync = glob.GlobSync = globSync.GlobSync\n\n// old api surface\nglob.glob = glob\n\nglob.hasMagic = function (pattern, options_) {\n var options = util._extend({}, options_)\n options.noprocess = true\n\n var g = new Glob(pattern, options)\n var set = g.minimatch.set\n if (set.length > 1)\n return true\n\n for (var j = 0; j < set[0].length; j++) {\n if (typeof set[0][j] !== 'string')\n return true\n }\n\n return false\n}\n\nglob.Glob = Glob\ninherits(Glob, EE)\nfunction Glob (pattern, options, cb) {\n if (typeof options === 'function') {\n cb = options\n options = null\n }\n\n if (options && options.sync) {\n if (cb)\n throw new TypeError('callback provided to sync glob')\n return new GlobSync(pattern, options)\n }\n\n if (!(this instanceof Glob))\n return new Glob(pattern, options, cb)\n\n setopts(this, pattern, options)\n this._didRealPath = false\n\n // process each pattern in the minimatch set\n var n = this.minimatch.set.length\n\n // The matches are stored as {: true,...} so that\n // duplicates are automagically pruned.\n // Later, we do an Object.keys() on these.\n // Keep them as a list so we can fill in when nonull is set.\n this.matches = new Array(n)\n\n if (typeof cb === 'function') {\n cb = once(cb)\n this.on('error', cb)\n this.on('end', function (matches) {\n cb(null, matches)\n })\n }\n\n var self = this\n var n = this.minimatch.set.length\n this._processing = 0\n this.matches = new Array(n)\n\n this._emitQueue = []\n this._processQueue = []\n this.paused = false\n\n if (this.noprocess)\n return this\n\n if (n === 0)\n return done()\n\n for (var i = 0; i < n; i ++) {\n this._process(this.minimatch.set[i], i, false, done)\n }\n\n function done () {\n --self._processing\n if (self._processing <= 0)\n self._finish()\n }\n}\n\nGlob.prototype._finish = function () {\n assert(this instanceof Glob)\n if (this.aborted)\n return\n\n if (this.realpath && !this._didRealpath)\n return this._realpath()\n\n common.finish(this)\n this.emit('end', this.found)\n}\n\nGlob.prototype._realpath = function () {\n if (this._didRealpath)\n return\n\n this._didRealpath = true\n\n var n = this.matches.length\n if (n === 0)\n return this._finish()\n\n var self = this\n for (var i = 0; i < this.matches.length; i++)\n this._realpathSet(i, next)\n\n function next () {\n if (--n === 0)\n self._finish()\n }\n}\n\nGlob.prototype._realpathSet = function (index, cb) {\n var matchset = this.matches[index]\n if (!matchset)\n return cb()\n\n var found = Object.keys(matchset)\n var self = this\n var n = found.length\n\n if (n === 0)\n return cb()\n\n var set = this.matches[index] = Object.create(null)\n found.forEach(function (p, i) {\n // If there's a problem with the stat, then it means that\n // one or more of the links in the realpath couldn't be\n // resolved. just return the abs value in that case.\n p = self._makeAbs(p)\n fs.realpath(p, self.realpathCache, function (er, real) {\n if (!er)\n set[real] = true\n else if (er.syscall === 'stat')\n set[p] = true\n else\n self.emit('error', er) // srsly wtf right here\n\n if (--n === 0) {\n self.matches[index] = set\n cb()\n }\n })\n })\n}\n\nGlob.prototype._mark = function (p) {\n return common.mark(this, p)\n}\n\nGlob.prototype._makeAbs = function (f) {\n return common.makeAbs(this, f)\n}\n\nGlob.prototype.abort = function () {\n this.aborted = true\n this.emit('abort')\n}\n\nGlob.prototype.pause = function () {\n if (!this.paused) {\n this.paused = true\n this.emit('pause')\n }\n}\n\nGlob.prototype.resume = function () {\n if (this.paused) {\n this.emit('resume')\n this.paused = false\n if (this._emitQueue.length) {\n var eq = this._emitQueue.slice(0)\n this._emitQueue.length = 0\n for (var i = 0; i < eq.length; i ++) {\n var e = eq[i]\n this._emitMatch(e[0], e[1])\n }\n }\n if (this._processQueue.length) {\n var pq = this._processQueue.slice(0)\n this._processQueue.length = 0\n for (var i = 0; i < pq.length; i ++) {\n var p = pq[i]\n this._processing--\n this._process(p[0], p[1], p[2], p[3])\n }\n }\n }\n}\n\nGlob.prototype._process = function (pattern, index, inGlobStar, cb) {\n assert(this instanceof Glob)\n assert(typeof cb === 'function')\n\n if (this.aborted)\n return\n\n this._processing++\n if (this.paused) {\n this._processQueue.push([pattern, index, inGlobStar, cb])\n return\n }\n\n //console.error('PROCESS %d', this._processing, pattern)\n\n // Get the first [n] parts of pattern that are all strings.\n var n = 0\n while (typeof pattern[n] === 'string') {\n n ++\n }\n // now n is the index of the first one that is *not* a string.\n\n // see if there's anything else\n var prefix\n switch (n) {\n // if not, then this is rather simple\n case pattern.length:\n this._processSimple(pattern.join('/'), index, cb)\n return\n\n case 0:\n // pattern *starts* with some non-trivial item.\n // going to readdir(cwd), but not include the prefix in matches.\n prefix = null\n break\n\n default:\n // pattern has some string bits in the front.\n // whatever it starts with, whether that's 'absolute' like /foo/bar,\n // or 'relative' like '../baz'\n prefix = pattern.slice(0, n).join('/')\n break\n }\n\n var remain = pattern.slice(n)\n\n // get the list of entries.\n var read\n if (prefix === null)\n read = '.'\n else if (isAbsolute(prefix) || isAbsolute(pattern.join('/'))) {\n if (!prefix || !isAbsolute(prefix))\n prefix = '/' + prefix\n read = prefix\n } else\n read = prefix\n\n var abs = this._makeAbs(read)\n\n //if ignored, skip _processing\n if (childrenIgnored(this, read))\n return cb()\n\n var isGlobStar = remain[0] === minimatch.GLOBSTAR\n if (isGlobStar)\n this._processGlobStar(prefix, read, abs, remain, index, inGlobStar, cb)\n else\n this._processReaddir(prefix, read, abs, remain, index, inGlobStar, cb)\n}\n\nGlob.prototype._processReaddir = function (prefix, read, abs, remain, index, inGlobStar, cb) {\n var self = this\n this._readdir(abs, inGlobStar, function (er, entries) {\n return self._processReaddir2(prefix, read, abs, remain, index, inGlobStar, entries, cb)\n })\n}\n\nGlob.prototype._processReaddir2 = function (prefix, read, abs, remain, index, inGlobStar, entries, cb) {\n\n // if the abs isn't a dir, then nothing can match!\n if (!entries)\n return cb()\n\n // It will only match dot entries if it starts with a dot, or if\n // dot is set. Stuff like @(.foo|.bar) isn't allowed.\n var pn = remain[0]\n var negate = !!this.minimatch.negate\n var rawGlob = pn._glob\n var dotOk = this.dot || rawGlob.charAt(0) === '.'\n\n var matchedEntries = []\n for (var i = 0; i < entries.length; i++) {\n var e = entries[i]\n if (e.charAt(0) !== '.' || dotOk) {\n var m\n if (negate && !prefix) {\n m = !e.match(pn)\n } else {\n m = e.match(pn)\n }\n if (m)\n matchedEntries.push(e)\n }\n }\n\n //console.error('prd2', prefix, entries, remain[0]._glob, matchedEntries)\n\n var len = matchedEntries.length\n // If there are no matched entries, then nothing matches.\n if (len === 0)\n return cb()\n\n // if this is the last remaining pattern bit, then no need for\n // an additional stat *unless* the user has specified mark or\n // stat explicitly. We know they exist, since readdir returned\n // them.\n\n if (remain.length === 1 && !this.mark && !this.stat) {\n if (!this.matches[index])\n this.matches[index] = Object.create(null)\n\n for (var i = 0; i < len; i ++) {\n var e = matchedEntries[i]\n if (prefix) {\n if (prefix !== '/')\n e = prefix + '/' + e\n else\n e = prefix + e\n }\n\n if (e.charAt(0) === '/' && !this.nomount) {\n e = path.join(this.root, e)\n }\n this._emitMatch(index, e)\n }\n // This was the last one, and no stats were needed\n return cb()\n }\n\n // now test all matched entries as stand-ins for that part\n // of the pattern.\n remain.shift()\n for (var i = 0; i < len; i ++) {\n var e = matchedEntries[i]\n var newPattern\n if (prefix) {\n if (prefix !== '/')\n e = prefix + '/' + e\n else\n e = prefix + e\n }\n this._process([e].concat(remain), index, inGlobStar, cb)\n }\n cb()\n}\n\nGlob.prototype._emitMatch = function (index, e) {\n if (this.aborted)\n return\n\n if (this.matches[index][e])\n return\n\n if (isIgnored(this, e))\n return\n\n if (this.paused) {\n this._emitQueue.push([index, e])\n return\n }\n\n var abs = this._makeAbs(e)\n\n if (this.nodir) {\n var c = this.cache[abs]\n if (c === 'DIR' || Array.isArray(c))\n return\n }\n\n if (this.mark)\n e = this._mark(e)\n\n this.matches[index][e] = true\n\n var st = this.statCache[abs]\n if (st)\n this.emit('stat', e, st)\n\n this.emit('match', e)\n}\n\nGlob.prototype._readdirInGlobStar = function (abs, cb) {\n if (this.aborted)\n return\n\n // follow all symlinked directories forever\n // just proceed as if this is a non-globstar situation\n if (this.follow)\n return this._readdir(abs, false, cb)\n\n var lstatkey = 'lstat\\0' + abs\n var self = this\n var lstatcb = inflight(lstatkey, lstatcb_)\n\n if (lstatcb)\n fs.lstat(abs, lstatcb)\n\n function lstatcb_ (er, lstat) {\n if (er)\n return cb()\n\n var isSym = lstat.isSymbolicLink()\n self.symlinks[abs] = isSym\n\n // If it's not a symlink or a dir, then it's definitely a regular file.\n // don't bother doing a readdir in that case.\n if (!isSym && !lstat.isDirectory()) {\n self.cache[abs] = 'FILE'\n cb()\n } else\n self._readdir(abs, false, cb)\n }\n}\n\nGlob.prototype._readdir = function (abs, inGlobStar, cb) {\n if (this.aborted)\n return\n\n cb = inflight('readdir\\0'+abs+'\\0'+inGlobStar, cb)\n if (!cb)\n return\n\n //console.error('RD %j %j', +inGlobStar, abs)\n if (inGlobStar && !ownProp(this.symlinks, abs))\n return this._readdirInGlobStar(abs, cb)\n\n if (ownProp(this.cache, abs)) {\n var c = this.cache[abs]\n if (!c || c === 'FILE')\n return cb()\n\n if (Array.isArray(c))\n return cb(null, c)\n }\n\n var self = this\n fs.readdir(abs, readdirCb(this, abs, cb))\n}\n\nfunction readdirCb (self, abs, cb) {\n return function (er, entries) {\n if (er)\n self._readdirError(abs, er, cb)\n else\n self._readdirEntries(abs, entries, cb)\n }\n}\n\nGlob.prototype._readdirEntries = function (abs, entries, cb) {\n if (this.aborted)\n return\n\n // if we haven't asked to stat everything, then just\n // assume that everything in there exists, so we can avoid\n // having to stat it a second time.\n if (!this.mark && !this.stat) {\n for (var i = 0; i < entries.length; i ++) {\n var e = entries[i]\n if (abs === '/')\n e = abs + e\n else\n e = abs + '/' + e\n this.cache[e] = true\n }\n }\n\n this.cache[abs] = entries\n return cb(null, entries)\n}\n\nGlob.prototype._readdirError = function (f, er, cb) {\n if (this.aborted)\n return\n\n // handle errors, and cache the information\n switch (er.code) {\n case 'ENOTSUP': // https://github.com/isaacs/node-glob/issues/205\n case 'ENOTDIR': // totally normal. means it *does* exist.\n this.cache[this._makeAbs(f)] = 'FILE'\n break\n\n case 'ENOENT': // not terribly unusual\n case 'ELOOP':\n case 'ENAMETOOLONG':\n case 'UNKNOWN':\n this.cache[this._makeAbs(f)] = false\n break\n\n default: // some unusual error. Treat as failure.\n this.cache[this._makeAbs(f)] = false\n if (this.strict) {\n this.emit('error', er)\n // If the error is handled, then we abort\n // if not, we threw out of here\n this.abort()\n }\n if (!this.silent)\n console.error('glob error', er)\n break\n }\n\n return cb()\n}\n\nGlob.prototype._processGlobStar = function (prefix, read, abs, remain, index, inGlobStar, cb) {\n var self = this\n this._readdir(abs, inGlobStar, function (er, entries) {\n self._processGlobStar2(prefix, read, abs, remain, index, inGlobStar, entries, cb)\n })\n}\n\n\nGlob.prototype._processGlobStar2 = function (prefix, read, abs, remain, index, inGlobStar, entries, cb) {\n //console.error('pgs2', prefix, remain[0], entries)\n\n // no entries means not a dir, so it can never have matches\n // foo.txt/** doesn't match foo.txt\n if (!entries)\n return cb()\n\n // test without the globstar, and with every child both below\n // and replacing the globstar.\n var remainWithoutGlobStar = remain.slice(1)\n var gspref = prefix ? [ prefix ] : []\n var noGlobStar = gspref.concat(remainWithoutGlobStar)\n\n // the noGlobStar pattern exits the inGlobStar state\n this._process(noGlobStar, index, false, cb)\n\n var isSym = this.symlinks[abs]\n var len = entries.length\n\n // If it's a symlink, and we're in a globstar, then stop\n if (isSym && inGlobStar)\n return cb()\n\n for (var i = 0; i < len; i++) {\n var e = entries[i]\n if (e.charAt(0) === '.' && !this.dot)\n continue\n\n // these two cases enter the inGlobStar state\n var instead = gspref.concat(entries[i], remainWithoutGlobStar)\n this._process(instead, index, true, cb)\n\n var below = gspref.concat(entries[i], remain)\n this._process(below, index, true, cb)\n }\n\n cb()\n}\n\nGlob.prototype._processSimple = function (prefix, index, cb) {\n // XXX review this. Shouldn't it be doing the mounting etc\n // before doing stat? kinda weird?\n var self = this\n this._stat(prefix, function (er, exists) {\n self._processSimple2(prefix, index, er, exists, cb)\n })\n}\nGlob.prototype._processSimple2 = function (prefix, index, er, exists, cb) {\n\n //console.error('ps2', prefix, exists)\n\n if (!this.matches[index])\n this.matches[index] = Object.create(null)\n\n // If it doesn't exist, then just mark the lack of results\n if (!exists)\n return cb()\n\n if (prefix && isAbsolute(prefix) && !this.nomount) {\n var trail = /[\\/\\\\]$/.test(prefix)\n if (prefix.charAt(0) === '/') {\n prefix = path.join(this.root, prefix)\n } else {\n prefix = path.resolve(this.root, prefix)\n if (trail)\n prefix += '/'\n }\n }\n\n if (process.platform === 'win32')\n prefix = prefix.replace(/\\\\/g, '/')\n\n // Mark this as a match\n this._emitMatch(index, prefix)\n cb()\n}\n\n// Returns either 'DIR', 'FILE', or false\nGlob.prototype._stat = function (f, cb) {\n var abs = this._makeAbs(f)\n var needDir = f.slice(-1) === '/'\n\n if (f.length > this.maxLength)\n return cb()\n\n if (!this.stat && ownProp(this.cache, abs)) {\n var c = this.cache[abs]\n\n if (Array.isArray(c))\n c = 'DIR'\n\n // It exists, but maybe not how we need it\n if (!needDir || c === 'DIR')\n return cb(null, c)\n\n if (needDir && c === 'FILE')\n return cb()\n\n // otherwise we have to stat, because maybe c=true\n // if we know it exists, but not what it is.\n }\n\n var exists\n var stat = this.statCache[abs]\n if (stat !== undefined) {\n if (stat === false)\n return cb(null, stat)\n else {\n var type = stat.isDirectory() ? 'DIR' : 'FILE'\n if (needDir && type === 'FILE')\n return cb()\n else\n return cb(null, type, stat)\n }\n }\n\n var self = this\n var statcb = inflight('stat\\0' + abs, lstatcb_)\n if (statcb)\n fs.lstat(abs, statcb)\n\n function lstatcb_ (er, lstat) {\n if (lstat && lstat.isSymbolicLink()) {\n // If it's a symlink, then treat it as the target, unless\n // the target does not exist, then treat it as a file.\n return fs.stat(abs, function (er, stat) {\n if (er)\n self._stat2(f, abs, null, lstat, cb)\n else\n self._stat2(f, abs, er, stat, cb)\n })\n } else {\n self._stat2(f, abs, er, lstat, cb)\n }\n }\n}\n\nGlob.prototype._stat2 = function (f, abs, er, stat, cb) {\n if (er) {\n this.statCache[abs] = false\n return cb()\n }\n\n var needDir = f.slice(-1) === '/'\n this.statCache[abs] = stat\n\n if (abs.slice(-1) === '/' && !stat.isDirectory())\n return cb(null, false, stat)\n\n var c = stat.isDirectory() ? 'DIR' : 'FILE'\n this.cache[abs] = this.cache[abs] || c\n\n if (needDir && c !== 'DIR')\n return cb()\n\n return cb(null, c, stat)\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob/glob.js\n ** module id = 247\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob/glob.js?"); /***/ }, /* 248 */ /***/ function(module, exports, __webpack_require__) { - eval("// http://wiki.commonjs.org/wiki/Unit_Testing/1.0\n//\n// THIS IS NOT TESTED NOR LIKELY TO WORK OUTSIDE V8!\n//\n// Originally from narwhal.js (http://narwhaljs.org)\n// Copyright (c) 2009 Thomas Robinson <280north.com>\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the 'Software'), to\n// deal in the Software without restriction, including without limitation the\n// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n// sell copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN\n// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\n// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// when used in node, this will actually load the util module we depend on\n// versus loading the builtin util module as happens otherwise\n// this is a bug in node module loading as far as I am concerned\nvar util = __webpack_require__(139);\n\nvar pSlice = Array.prototype.slice;\nvar hasOwn = Object.prototype.hasOwnProperty;\n\n// 1. The assert module provides functions that throw\n// AssertionError's when particular conditions are not met. The\n// assert module must conform to the following interface.\n\nvar assert = module.exports = ok;\n\n// 2. The AssertionError is defined in assert.\n// new assert.AssertionError({ message: message,\n// actual: actual,\n// expected: expected })\n\nassert.AssertionError = function AssertionError(options) {\n this.name = 'AssertionError';\n this.actual = options.actual;\n this.expected = options.expected;\n this.operator = options.operator;\n if (options.message) {\n this.message = options.message;\n this.generatedMessage = false;\n } else {\n this.message = getMessage(this);\n this.generatedMessage = true;\n }\n var stackStartFunction = options.stackStartFunction || fail;\n\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, stackStartFunction);\n }\n else {\n // non v8 browsers so we can have a stacktrace\n var err = new Error();\n if (err.stack) {\n var out = err.stack;\n\n // try to strip useless frames\n var fn_name = stackStartFunction.name;\n var idx = out.indexOf('\\n' + fn_name);\n if (idx >= 0) {\n // once we have located the function frame\n // we need to strip out everything before it (and its line)\n var next_line = out.indexOf('\\n', idx + 1);\n out = out.substring(next_line + 1);\n }\n\n this.stack = out;\n }\n }\n};\n\n// assert.AssertionError instanceof Error\nutil.inherits(assert.AssertionError, Error);\n\nfunction replacer(key, value) {\n if (util.isUndefined(value)) {\n return '' + value;\n }\n if (util.isNumber(value) && !isFinite(value)) {\n return value.toString();\n }\n if (util.isFunction(value) || util.isRegExp(value)) {\n return value.toString();\n }\n return value;\n}\n\nfunction truncate(s, n) {\n if (util.isString(s)) {\n return s.length < n ? s : s.slice(0, n);\n } else {\n return s;\n }\n}\n\nfunction getMessage(self) {\n return truncate(JSON.stringify(self.actual, replacer), 128) + ' ' +\n self.operator + ' ' +\n truncate(JSON.stringify(self.expected, replacer), 128);\n}\n\n// At present only the three keys mentioned above are used and\n// understood by the spec. Implementations or sub modules can pass\n// other keys to the AssertionError's constructor - they will be\n// ignored.\n\n// 3. All of the following functions must throw an AssertionError\n// when a corresponding condition is not met, with a message that\n// may be undefined if not provided. All assertion methods provide\n// both the actual and expected values to the assertion error for\n// display purposes.\n\nfunction fail(actual, expected, message, operator, stackStartFunction) {\n throw new assert.AssertionError({\n message: message,\n actual: actual,\n expected: expected,\n operator: operator,\n stackStartFunction: stackStartFunction\n });\n}\n\n// EXTENSION! allows for well behaved errors defined elsewhere.\nassert.fail = fail;\n\n// 4. Pure assertion tests whether a value is truthy, as determined\n// by !!guard.\n// assert.ok(guard, message_opt);\n// This statement is equivalent to assert.equal(true, !!guard,\n// message_opt);. To test strictly for the value true, use\n// assert.strictEqual(true, guard, message_opt);.\n\nfunction ok(value, message) {\n if (!value) fail(value, true, message, '==', assert.ok);\n}\nassert.ok = ok;\n\n// 5. The equality assertion tests shallow, coercive equality with\n// ==.\n// assert.equal(actual, expected, message_opt);\n\nassert.equal = function equal(actual, expected, message) {\n if (actual != expected) fail(actual, expected, message, '==', assert.equal);\n};\n\n// 6. The non-equality assertion tests for whether two objects are not equal\n// with != assert.notEqual(actual, expected, message_opt);\n\nassert.notEqual = function notEqual(actual, expected, message) {\n if (actual == expected) {\n fail(actual, expected, message, '!=', assert.notEqual);\n }\n};\n\n// 7. The equivalence assertion tests a deep equality relation.\n// assert.deepEqual(actual, expected, message_opt);\n\nassert.deepEqual = function deepEqual(actual, expected, message) {\n if (!_deepEqual(actual, expected)) {\n fail(actual, expected, message, 'deepEqual', assert.deepEqual);\n }\n};\n\nfunction _deepEqual(actual, expected) {\n // 7.1. All identical values are equivalent, as determined by ===.\n if (actual === expected) {\n return true;\n\n } else if (util.isBuffer(actual) && util.isBuffer(expected)) {\n if (actual.length != expected.length) return false;\n\n for (var i = 0; i < actual.length; i++) {\n if (actual[i] !== expected[i]) return false;\n }\n\n return true;\n\n // 7.2. If the expected value is a Date object, the actual value is\n // equivalent if it is also a Date object that refers to the same time.\n } else if (util.isDate(actual) && util.isDate(expected)) {\n return actual.getTime() === expected.getTime();\n\n // 7.3 If the expected value is a RegExp object, the actual value is\n // equivalent if it is also a RegExp object with the same source and\n // properties (`global`, `multiline`, `lastIndex`, `ignoreCase`).\n } else if (util.isRegExp(actual) && util.isRegExp(expected)) {\n return actual.source === expected.source &&\n actual.global === expected.global &&\n actual.multiline === expected.multiline &&\n actual.lastIndex === expected.lastIndex &&\n actual.ignoreCase === expected.ignoreCase;\n\n // 7.4. Other pairs that do not both pass typeof value == 'object',\n // equivalence is determined by ==.\n } else if (!util.isObject(actual) && !util.isObject(expected)) {\n return actual == expected;\n\n // 7.5 For all other Object pairs, including Array objects, equivalence is\n // determined by having the same number of owned properties (as verified\n // with Object.prototype.hasOwnProperty.call), the same set of keys\n // (although not necessarily the same order), equivalent values for every\n // corresponding key, and an identical 'prototype' property. Note: this\n // accounts for both named and indexed properties on Arrays.\n } else {\n return objEquiv(actual, expected);\n }\n}\n\nfunction isArguments(object) {\n return Object.prototype.toString.call(object) == '[object Arguments]';\n}\n\nfunction objEquiv(a, b) {\n if (util.isNullOrUndefined(a) || util.isNullOrUndefined(b))\n return false;\n // an identical 'prototype' property.\n if (a.prototype !== b.prototype) return false;\n // if one is a primitive, the other must be same\n if (util.isPrimitive(a) || util.isPrimitive(b)) {\n return a === b;\n }\n var aIsArgs = isArguments(a),\n bIsArgs = isArguments(b);\n if ((aIsArgs && !bIsArgs) || (!aIsArgs && bIsArgs))\n return false;\n if (aIsArgs) {\n a = pSlice.call(a);\n b = pSlice.call(b);\n return _deepEqual(a, b);\n }\n var ka = objectKeys(a),\n kb = objectKeys(b),\n key, i;\n // having the same number of owned properties (keys incorporates\n // hasOwnProperty)\n if (ka.length != kb.length)\n return false;\n //the same set of keys (although not necessarily the same order),\n ka.sort();\n kb.sort();\n //~~~cheap key test\n for (i = ka.length - 1; i >= 0; i--) {\n if (ka[i] != kb[i])\n return false;\n }\n //equivalent values for every corresponding key, and\n //~~~possibly expensive deep test\n for (i = ka.length - 1; i >= 0; i--) {\n key = ka[i];\n if (!_deepEqual(a[key], b[key])) return false;\n }\n return true;\n}\n\n// 8. The non-equivalence assertion tests for any deep inequality.\n// assert.notDeepEqual(actual, expected, message_opt);\n\nassert.notDeepEqual = function notDeepEqual(actual, expected, message) {\n if (_deepEqual(actual, expected)) {\n fail(actual, expected, message, 'notDeepEqual', assert.notDeepEqual);\n }\n};\n\n// 9. The strict equality assertion tests strict equality, as determined by ===.\n// assert.strictEqual(actual, expected, message_opt);\n\nassert.strictEqual = function strictEqual(actual, expected, message) {\n if (actual !== expected) {\n fail(actual, expected, message, '===', assert.strictEqual);\n }\n};\n\n// 10. The strict non-equality assertion tests for strict inequality, as\n// determined by !==. assert.notStrictEqual(actual, expected, message_opt);\n\nassert.notStrictEqual = function notStrictEqual(actual, expected, message) {\n if (actual === expected) {\n fail(actual, expected, message, '!==', assert.notStrictEqual);\n }\n};\n\nfunction expectedException(actual, expected) {\n if (!actual || !expected) {\n return false;\n }\n\n if (Object.prototype.toString.call(expected) == '[object RegExp]') {\n return expected.test(actual);\n } else if (actual instanceof expected) {\n return true;\n } else if (expected.call({}, actual) === true) {\n return true;\n }\n\n return false;\n}\n\nfunction _throws(shouldThrow, block, expected, message) {\n var actual;\n\n if (util.isString(expected)) {\n message = expected;\n expected = null;\n }\n\n try {\n block();\n } catch (e) {\n actual = e;\n }\n\n message = (expected && expected.name ? ' (' + expected.name + ').' : '.') +\n (message ? ' ' + message : '.');\n\n if (shouldThrow && !actual) {\n fail(actual, expected, 'Missing expected exception' + message);\n }\n\n if (!shouldThrow && expectedException(actual, expected)) {\n fail(actual, expected, 'Got unwanted exception' + message);\n }\n\n if ((shouldThrow && actual && expected &&\n !expectedException(actual, expected)) || (!shouldThrow && actual)) {\n throw actual;\n }\n}\n\n// 11. Expected to throw an error:\n// assert.throws(block, Error_opt, message_opt);\n\nassert.throws = function(block, /*optional*/error, /*optional*/message) {\n _throws.apply(this, [true].concat(pSlice.call(arguments)));\n};\n\n// EXTENSION! This is annoying to write outside this module.\nassert.doesNotThrow = function(block, /*optional*/message) {\n _throws.apply(this, [false].concat(pSlice.call(arguments)));\n};\n\nassert.ifError = function(err) { if (err) {throw err;}};\n\nvar objectKeys = Object.keys || function (obj) {\n var keys = [];\n for (var key in obj) {\n if (hasOwn.call(obj, key)) keys.push(key);\n }\n return keys;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/assert/assert.js\n ** module id = 248\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/assert/assert.js?"); + eval("module.exports = minimatch\nminimatch.Minimatch = Minimatch\n\nvar path = { sep: '/' }\ntry {\n path = __webpack_require__(149)\n} catch (er) {}\n\nvar GLOBSTAR = minimatch.GLOBSTAR = Minimatch.GLOBSTAR = {}\nvar expand = __webpack_require__(249)\n\n// any single thing other than /\n// don't need to escape / when using new RegExp()\nvar qmark = '[^/]'\n\n// * => any number of characters\nvar star = qmark + '*?'\n\n// ** when dots are allowed. Anything goes, except .. and .\n// not (^ or / followed by one or two dots followed by $ or /),\n// followed by anything, any number of times.\nvar twoStarDot = '(?:(?!(?:\\\\\\/|^)(?:\\\\.{1,2})($|\\\\\\/)).)*?'\n\n// not a ^ or / followed by a dot,\n// followed by anything, any number of times.\nvar twoStarNoDot = '(?:(?!(?:\\\\\\/|^)\\\\.).)*?'\n\n// characters that need to be escaped in RegExp.\nvar reSpecials = charSet('().*{}+?[]^$\\\\!')\n\n// \"abc\" -> { a:true, b:true, c:true }\nfunction charSet (s) {\n return s.split('').reduce(function (set, c) {\n set[c] = true\n return set\n }, {})\n}\n\n// normalizes slashes.\nvar slashSplit = /\\/+/\n\nminimatch.filter = filter\nfunction filter (pattern, options) {\n options = options || {}\n return function (p, i, list) {\n return minimatch(p, pattern, options)\n }\n}\n\nfunction ext (a, b) {\n a = a || {}\n b = b || {}\n var t = {}\n Object.keys(b).forEach(function (k) {\n t[k] = b[k]\n })\n Object.keys(a).forEach(function (k) {\n t[k] = a[k]\n })\n return t\n}\n\nminimatch.defaults = function (def) {\n if (!def || !Object.keys(def).length) return minimatch\n\n var orig = minimatch\n\n var m = function minimatch (p, pattern, options) {\n return orig.minimatch(p, pattern, ext(def, options))\n }\n\n m.Minimatch = function Minimatch (pattern, options) {\n return new orig.Minimatch(pattern, ext(def, options))\n }\n\n return m\n}\n\nMinimatch.defaults = function (def) {\n if (!def || !Object.keys(def).length) return Minimatch\n return minimatch.defaults(def).Minimatch\n}\n\nfunction minimatch (p, pattern, options) {\n if (typeof pattern !== 'string') {\n throw new TypeError('glob pattern string required')\n }\n\n if (!options) options = {}\n\n // shortcut: comments match nothing.\n if (!options.nocomment && pattern.charAt(0) === '#') {\n return false\n }\n\n // \"\" only matches \"\"\n if (pattern.trim() === '') return p === ''\n\n return new Minimatch(pattern, options).match(p)\n}\n\nfunction Minimatch (pattern, options) {\n if (!(this instanceof Minimatch)) {\n return new Minimatch(pattern, options)\n }\n\n if (typeof pattern !== 'string') {\n throw new TypeError('glob pattern string required')\n }\n\n if (!options) options = {}\n pattern = pattern.trim()\n\n // windows support: need to use /, not \\\n if (path.sep !== '/') {\n pattern = pattern.split(path.sep).join('/')\n }\n\n this.options = options\n this.set = []\n this.pattern = pattern\n this.regexp = null\n this.negate = false\n this.comment = false\n this.empty = false\n\n // make the set of regexps etc.\n this.make()\n}\n\nMinimatch.prototype.debug = function () {}\n\nMinimatch.prototype.make = make\nfunction make () {\n // don't do it more than once.\n if (this._made) return\n\n var pattern = this.pattern\n var options = this.options\n\n // empty patterns and comments match nothing.\n if (!options.nocomment && pattern.charAt(0) === '#') {\n this.comment = true\n return\n }\n if (!pattern) {\n this.empty = true\n return\n }\n\n // step 1: figure out negation, etc.\n this.parseNegate()\n\n // step 2: expand braces\n var set = this.globSet = this.braceExpand()\n\n if (options.debug) this.debug = console.error\n\n this.debug(this.pattern, set)\n\n // step 3: now we have a set, so turn each one into a series of path-portion\n // matching patterns.\n // These will be regexps, except in the case of \"**\", which is\n // set to the GLOBSTAR object for globstar behavior,\n // and will not contain any / characters\n set = this.globParts = set.map(function (s) {\n return s.split(slashSplit)\n })\n\n this.debug(this.pattern, set)\n\n // glob --> regexps\n set = set.map(function (s, si, set) {\n return s.map(this.parse, this)\n }, this)\n\n this.debug(this.pattern, set)\n\n // filter out everything that didn't compile properly.\n set = set.filter(function (s) {\n return s.indexOf(false) === -1\n })\n\n this.debug(this.pattern, set)\n\n this.set = set\n}\n\nMinimatch.prototype.parseNegate = parseNegate\nfunction parseNegate () {\n var pattern = this.pattern\n var negate = false\n var options = this.options\n var negateOffset = 0\n\n if (options.nonegate) return\n\n for (var i = 0, l = pattern.length\n ; i < l && pattern.charAt(i) === '!'\n ; i++) {\n negate = !negate\n negateOffset++\n }\n\n if (negateOffset) this.pattern = pattern.substr(negateOffset)\n this.negate = negate\n}\n\n// Brace expansion:\n// a{b,c}d -> abd acd\n// a{b,}c -> abc ac\n// a{0..3}d -> a0d a1d a2d a3d\n// a{b,c{d,e}f}g -> abg acdfg acefg\n// a{b,c}d{e,f}g -> abdeg acdeg abdeg abdfg\n//\n// Invalid sets are not expanded.\n// a{2..}b -> a{2..}b\n// a{b}c -> a{b}c\nminimatch.braceExpand = function (pattern, options) {\n return braceExpand(pattern, options)\n}\n\nMinimatch.prototype.braceExpand = braceExpand\n\nfunction braceExpand (pattern, options) {\n if (!options) {\n if (this instanceof Minimatch) {\n options = this.options\n } else {\n options = {}\n }\n }\n\n pattern = typeof pattern === 'undefined'\n ? this.pattern : pattern\n\n if (typeof pattern === 'undefined') {\n throw new Error('undefined pattern')\n }\n\n if (options.nobrace ||\n !pattern.match(/\\{.*\\}/)) {\n // shortcut. no need to expand.\n return [pattern]\n }\n\n return expand(pattern)\n}\n\n// parse a component of the expanded set.\n// At this point, no pattern may contain \"/\" in it\n// so we're going to return a 2d array, where each entry is the full\n// pattern, split on '/', and then turned into a regular expression.\n// A regexp is made at the end which joins each array with an\n// escaped /, and another full one which joins each regexp with |.\n//\n// Following the lead of Bash 4.1, note that \"**\" only has special meaning\n// when it is the *only* thing in a path portion. Otherwise, any series\n// of * is equivalent to a single *. Globstar behavior is enabled by\n// default, and can be disabled by setting options.noglobstar.\nMinimatch.prototype.parse = parse\nvar SUBPARSE = {}\nfunction parse (pattern, isSub) {\n var options = this.options\n\n // shortcuts\n if (!options.noglobstar && pattern === '**') return GLOBSTAR\n if (pattern === '') return ''\n\n var re = ''\n var hasMagic = !!options.nocase\n var escaping = false\n // ? => one single character\n var patternListStack = []\n var negativeLists = []\n var plType\n var stateChar\n var inClass = false\n var reClassStart = -1\n var classStart = -1\n // . and .. never match anything that doesn't start with .,\n // even when options.dot is set.\n var patternStart = pattern.charAt(0) === '.' ? '' // anything\n // not (start or / followed by . or .. followed by / or end)\n : options.dot ? '(?!(?:^|\\\\\\/)\\\\.{1,2}(?:$|\\\\\\/))'\n : '(?!\\\\.)'\n var self = this\n\n function clearStateChar () {\n if (stateChar) {\n // we had some state-tracking character\n // that wasn't consumed by this pass.\n switch (stateChar) {\n case '*':\n re += star\n hasMagic = true\n break\n case '?':\n re += qmark\n hasMagic = true\n break\n default:\n re += '\\\\' + stateChar\n break\n }\n self.debug('clearStateChar %j %j', stateChar, re)\n stateChar = false\n }\n }\n\n for (var i = 0, len = pattern.length, c\n ; (i < len) && (c = pattern.charAt(i))\n ; i++) {\n this.debug('%s\\t%s %s %j', pattern, i, re, c)\n\n // skip over any that are escaped.\n if (escaping && reSpecials[c]) {\n re += '\\\\' + c\n escaping = false\n continue\n }\n\n switch (c) {\n case '/':\n // completely not allowed, even escaped.\n // Should already be path-split by now.\n return false\n\n case '\\\\':\n clearStateChar()\n escaping = true\n continue\n\n // the various stateChar values\n // for the \"extglob\" stuff.\n case '?':\n case '*':\n case '+':\n case '@':\n case '!':\n this.debug('%s\\t%s %s %j <-- stateChar', pattern, i, re, c)\n\n // all of those are literals inside a class, except that\n // the glob [!a] means [^a] in regexp\n if (inClass) {\n this.debug(' in class')\n if (c === '!' && i === classStart + 1) c = '^'\n re += c\n continue\n }\n\n // if we already have a stateChar, then it means\n // that there was something like ** or +? in there.\n // Handle the stateChar, then proceed with this one.\n self.debug('call clearStateChar %j', stateChar)\n clearStateChar()\n stateChar = c\n // if extglob is disabled, then +(asdf|foo) isn't a thing.\n // just clear the statechar *now*, rather than even diving into\n // the patternList stuff.\n if (options.noext) clearStateChar()\n continue\n\n case '(':\n if (inClass) {\n re += '('\n continue\n }\n\n if (!stateChar) {\n re += '\\\\('\n continue\n }\n\n plType = stateChar\n patternListStack.push({\n type: plType,\n start: i - 1,\n reStart: re.length\n })\n // negation is (?:(?!js)[^/]*)\n re += stateChar === '!' ? '(?:(?!(?:' : '(?:'\n this.debug('plType %j %j', stateChar, re)\n stateChar = false\n continue\n\n case ')':\n if (inClass || !patternListStack.length) {\n re += '\\\\)'\n continue\n }\n\n clearStateChar()\n hasMagic = true\n re += ')'\n var pl = patternListStack.pop()\n plType = pl.type\n // negation is (?:(?!js)[^/]*)\n // The others are (?:)\n switch (plType) {\n case '!':\n negativeLists.push(pl)\n re += ')[^/]*?)'\n pl.reEnd = re.length\n break\n case '?':\n case '+':\n case '*':\n re += plType\n break\n case '@': break // the default anyway\n }\n continue\n\n case '|':\n if (inClass || !patternListStack.length || escaping) {\n re += '\\\\|'\n escaping = false\n continue\n }\n\n clearStateChar()\n re += '|'\n continue\n\n // these are mostly the same in regexp and glob\n case '[':\n // swallow any state-tracking char before the [\n clearStateChar()\n\n if (inClass) {\n re += '\\\\' + c\n continue\n }\n\n inClass = true\n classStart = i\n reClassStart = re.length\n re += c\n continue\n\n case ']':\n // a right bracket shall lose its special\n // meaning and represent itself in\n // a bracket expression if it occurs\n // first in the list. -- POSIX.2 2.8.3.2\n if (i === classStart + 1 || !inClass) {\n re += '\\\\' + c\n escaping = false\n continue\n }\n\n // handle the case where we left a class open.\n // \"[z-a]\" is valid, equivalent to \"\\[z-a\\]\"\n if (inClass) {\n // split where the last [ was, make sure we don't have\n // an invalid re. if so, re-walk the contents of the\n // would-be class to re-translate any characters that\n // were passed through as-is\n // TODO: It would probably be faster to determine this\n // without a try/catch and a new RegExp, but it's tricky\n // to do safely. For now, this is safe and works.\n var cs = pattern.substring(classStart + 1, i)\n try {\n RegExp('[' + cs + ']')\n } catch (er) {\n // not a valid class!\n var sp = this.parse(cs, SUBPARSE)\n re = re.substr(0, reClassStart) + '\\\\[' + sp[0] + '\\\\]'\n hasMagic = hasMagic || sp[1]\n inClass = false\n continue\n }\n }\n\n // finish up the class.\n hasMagic = true\n inClass = false\n re += c\n continue\n\n default:\n // swallow any state char that wasn't consumed\n clearStateChar()\n\n if (escaping) {\n // no need\n escaping = false\n } else if (reSpecials[c]\n && !(c === '^' && inClass)) {\n re += '\\\\'\n }\n\n re += c\n\n } // switch\n } // for\n\n // handle the case where we left a class open.\n // \"[abc\" is valid, equivalent to \"\\[abc\"\n if (inClass) {\n // split where the last [ was, and escape it\n // this is a huge pita. We now have to re-walk\n // the contents of the would-be class to re-translate\n // any characters that were passed through as-is\n cs = pattern.substr(classStart + 1)\n sp = this.parse(cs, SUBPARSE)\n re = re.substr(0, reClassStart) + '\\\\[' + sp[0]\n hasMagic = hasMagic || sp[1]\n }\n\n // handle the case where we had a +( thing at the *end*\n // of the pattern.\n // each pattern list stack adds 3 chars, and we need to go through\n // and escape any | chars that were passed through as-is for the regexp.\n // Go through and escape them, taking care not to double-escape any\n // | chars that were already escaped.\n for (pl = patternListStack.pop(); pl; pl = patternListStack.pop()) {\n var tail = re.slice(pl.reStart + 3)\n // maybe some even number of \\, then maybe 1 \\, followed by a |\n tail = tail.replace(/((?:\\\\{2})*)(\\\\?)\\|/g, function (_, $1, $2) {\n if (!$2) {\n // the | isn't already escaped, so escape it.\n $2 = '\\\\'\n }\n\n // need to escape all those slashes *again*, without escaping the\n // one that we need for escaping the | character. As it works out,\n // escaping an even number of slashes can be done by simply repeating\n // it exactly after itself. That's why this trick works.\n //\n // I am sorry that you have to see this.\n return $1 + $1 + $2 + '|'\n })\n\n this.debug('tail=%j\\n %s', tail, tail)\n var t = pl.type === '*' ? star\n : pl.type === '?' ? qmark\n : '\\\\' + pl.type\n\n hasMagic = true\n re = re.slice(0, pl.reStart) + t + '\\\\(' + tail\n }\n\n // handle trailing things that only matter at the very end.\n clearStateChar()\n if (escaping) {\n // trailing \\\\\n re += '\\\\\\\\'\n }\n\n // only need to apply the nodot start if the re starts with\n // something that could conceivably capture a dot\n var addPatternStart = false\n switch (re.charAt(0)) {\n case '.':\n case '[':\n case '(': addPatternStart = true\n }\n\n // Hack to work around lack of negative lookbehind in JS\n // A pattern like: *.!(x).!(y|z) needs to ensure that a name\n // like 'a.xyz.yz' doesn't match. So, the first negative\n // lookahead, has to look ALL the way ahead, to the end of\n // the pattern.\n for (var n = negativeLists.length - 1; n > -1; n--) {\n var nl = negativeLists[n]\n\n var nlBefore = re.slice(0, nl.reStart)\n var nlFirst = re.slice(nl.reStart, nl.reEnd - 8)\n var nlLast = re.slice(nl.reEnd - 8, nl.reEnd)\n var nlAfter = re.slice(nl.reEnd)\n\n nlLast += nlAfter\n\n // Handle nested stuff like *(*.js|!(*.json)), where open parens\n // mean that we should *not* include the ) in the bit that is considered\n // \"after\" the negated section.\n var openParensBefore = nlBefore.split('(').length - 1\n var cleanAfter = nlAfter\n for (i = 0; i < openParensBefore; i++) {\n cleanAfter = cleanAfter.replace(/\\)[+*?]?/, '')\n }\n nlAfter = cleanAfter\n\n var dollar = ''\n if (nlAfter === '' && isSub !== SUBPARSE) {\n dollar = '$'\n }\n var newRe = nlBefore + nlFirst + nlAfter + dollar + nlLast\n re = newRe\n }\n\n // if the re is not \"\" at this point, then we need to make sure\n // it doesn't match against an empty path part.\n // Otherwise a/* will match a/, which it should not.\n if (re !== '' && hasMagic) {\n re = '(?=.)' + re\n }\n\n if (addPatternStart) {\n re = patternStart + re\n }\n\n // parsing just a piece of a larger pattern.\n if (isSub === SUBPARSE) {\n return [re, hasMagic]\n }\n\n // skip the regexp for non-magical patterns\n // unescape anything in it, though, so that it'll be\n // an exact match against a file etc.\n if (!hasMagic) {\n return globUnescape(pattern)\n }\n\n var flags = options.nocase ? 'i' : ''\n var regExp = new RegExp('^' + re + '$', flags)\n\n regExp._glob = pattern\n regExp._src = re\n\n return regExp\n}\n\nminimatch.makeRe = function (pattern, options) {\n return new Minimatch(pattern, options || {}).makeRe()\n}\n\nMinimatch.prototype.makeRe = makeRe\nfunction makeRe () {\n if (this.regexp || this.regexp === false) return this.regexp\n\n // at this point, this.set is a 2d array of partial\n // pattern strings, or \"**\".\n //\n // It's better to use .match(). This function shouldn't\n // be used, really, but it's pretty convenient sometimes,\n // when you just want to work with a regex.\n var set = this.set\n\n if (!set.length) {\n this.regexp = false\n return this.regexp\n }\n var options = this.options\n\n var twoStar = options.noglobstar ? star\n : options.dot ? twoStarDot\n : twoStarNoDot\n var flags = options.nocase ? 'i' : ''\n\n var re = set.map(function (pattern) {\n return pattern.map(function (p) {\n return (p === GLOBSTAR) ? twoStar\n : (typeof p === 'string') ? regExpEscape(p)\n : p._src\n }).join('\\\\\\/')\n }).join('|')\n\n // must match entire pattern\n // ending in a * or ** will make it less strict.\n re = '^(?:' + re + ')$'\n\n // can match anything, as long as it's not this.\n if (this.negate) re = '^(?!' + re + ').*$'\n\n try {\n this.regexp = new RegExp(re, flags)\n } catch (ex) {\n this.regexp = false\n }\n return this.regexp\n}\n\nminimatch.match = function (list, pattern, options) {\n options = options || {}\n var mm = new Minimatch(pattern, options)\n list = list.filter(function (f) {\n return mm.match(f)\n })\n if (mm.options.nonull && !list.length) {\n list.push(pattern)\n }\n return list\n}\n\nMinimatch.prototype.match = match\nfunction match (f, partial) {\n this.debug('match', f, this.pattern)\n // short-circuit in the case of busted things.\n // comments, etc.\n if (this.comment) return false\n if (this.empty) return f === ''\n\n if (f === '/' && partial) return true\n\n var options = this.options\n\n // windows: need to use /, not \\\n if (path.sep !== '/') {\n f = f.split(path.sep).join('/')\n }\n\n // treat the test path as a set of pathparts.\n f = f.split(slashSplit)\n this.debug(this.pattern, 'split', f)\n\n // just ONE of the pattern sets in this.set needs to match\n // in order for it to be valid. If negating, then just one\n // match means that we have failed.\n // Either way, return on the first hit.\n\n var set = this.set\n this.debug(this.pattern, 'set', set)\n\n // Find the basename of the path by looking for the last non-empty segment\n var filename\n var i\n for (i = f.length - 1; i >= 0; i--) {\n filename = f[i]\n if (filename) break\n }\n\n for (i = 0; i < set.length; i++) {\n var pattern = set[i]\n var file = f\n if (options.matchBase && pattern.length === 1) {\n file = [filename]\n }\n var hit = this.matchOne(file, pattern, partial)\n if (hit) {\n if (options.flipNegate) return true\n return !this.negate\n }\n }\n\n // didn't get any hits. this is success if it's a negative\n // pattern, failure otherwise.\n if (options.flipNegate) return false\n return this.negate\n}\n\n// set partial to true to test if, for example,\n// \"/a/b\" matches the start of \"/*/b/*/d\"\n// Partial means, if you run out of file before you run\n// out of pattern, then that's fine, as long as all\n// the parts match.\nMinimatch.prototype.matchOne = function (file, pattern, partial) {\n var options = this.options\n\n this.debug('matchOne',\n { 'this': this, file: file, pattern: pattern })\n\n this.debug('matchOne', file.length, pattern.length)\n\n for (var fi = 0,\n pi = 0,\n fl = file.length,\n pl = pattern.length\n ; (fi < fl) && (pi < pl)\n ; fi++, pi++) {\n this.debug('matchOne loop')\n var p = pattern[pi]\n var f = file[fi]\n\n this.debug(pattern, p, f)\n\n // should be impossible.\n // some invalid regexp stuff in the set.\n if (p === false) return false\n\n if (p === GLOBSTAR) {\n this.debug('GLOBSTAR', [pattern, p, f])\n\n // \"**\"\n // a/**/b/**/c would match the following:\n // a/b/x/y/z/c\n // a/x/y/z/b/c\n // a/b/x/b/x/c\n // a/b/c\n // To do this, take the rest of the pattern after\n // the **, and see if it would match the file remainder.\n // If so, return success.\n // If not, the ** \"swallows\" a segment, and try again.\n // This is recursively awful.\n //\n // a/**/b/**/c matching a/b/x/y/z/c\n // - a matches a\n // - doublestar\n // - matchOne(b/x/y/z/c, b/**/c)\n // - b matches b\n // - doublestar\n // - matchOne(x/y/z/c, c) -> no\n // - matchOne(y/z/c, c) -> no\n // - matchOne(z/c, c) -> no\n // - matchOne(c, c) yes, hit\n var fr = fi\n var pr = pi + 1\n if (pr === pl) {\n this.debug('** at the end')\n // a ** at the end will just swallow the rest.\n // We have found a match.\n // however, it will not swallow /.x, unless\n // options.dot is set.\n // . and .. are *never* matched by **, for explosively\n // exponential reasons.\n for (; fi < fl; fi++) {\n if (file[fi] === '.' || file[fi] === '..' ||\n (!options.dot && file[fi].charAt(0) === '.')) return false\n }\n return true\n }\n\n // ok, let's see if we can swallow whatever we can.\n while (fr < fl) {\n var swallowee = file[fr]\n\n this.debug('\\nglobstar while', file, fr, pattern, pr, swallowee)\n\n // XXX remove this slice. Just pass the start index.\n if (this.matchOne(file.slice(fr), pattern.slice(pr), partial)) {\n this.debug('globstar found match!', fr, fl, swallowee)\n // found a match.\n return true\n } else {\n // can't swallow \".\" or \"..\" ever.\n // can only swallow \".foo\" when explicitly asked.\n if (swallowee === '.' || swallowee === '..' ||\n (!options.dot && swallowee.charAt(0) === '.')) {\n this.debug('dot detected!', file, fr, pattern, pr)\n break\n }\n\n // ** swallows a segment, and continue.\n this.debug('globstar swallow a segment, and continue')\n fr++\n }\n }\n\n // no match was found.\n // However, in partial mode, we can't say this is necessarily over.\n // If there's more *pattern* left, then\n if (partial) {\n // ran out of file\n this.debug('\\n>>> no match, partial?', file, fr, pattern, pr)\n if (fr === fl) return true\n }\n return false\n }\n\n // something other than **\n // non-magic patterns just have to match exactly\n // patterns with magic have been turned into regexps.\n var hit\n if (typeof p === 'string') {\n if (options.nocase) {\n hit = f.toLowerCase() === p.toLowerCase()\n } else {\n hit = f === p\n }\n this.debug('string match', p, f, hit)\n } else {\n hit = f.match(p)\n this.debug('pattern match', p, f, hit)\n }\n\n if (!hit) return false\n }\n\n // Note: ending in / means that we'll get a final \"\"\n // at the end of the pattern. This can only match a\n // corresponding \"\" at the end of the file.\n // If the file ends in /, then it can only match a\n // a pattern that ends in /, unless the pattern just\n // doesn't have any more for it. But, a/b/ should *not*\n // match \"a/b/*\", even though \"\" matches against the\n // [^/]*? pattern, except in partial mode, where it might\n // simply not be reached yet.\n // However, a/b/ should still satisfy a/*\n\n // now either we fell off the end of the pattern, or we're done.\n if (fi === fl && pi === pl) {\n // ran out of pattern and filename at the same time.\n // an exact hit!\n return true\n } else if (fi === fl) {\n // ran out of file, but still had pattern left.\n // this is ok if we're doing the match as part of\n // a glob fs traversal.\n return partial\n } else if (pi === pl) {\n // ran out of pattern, still have file left.\n // this is only acceptable if we're on the very last\n // empty segment of a file with a trailing slash.\n // a/* should match a/b/\n var emptyFileEnd = (fi === fl - 1) && (file[fi] === '')\n return emptyFileEnd\n }\n\n // should be unreachable.\n throw new Error('wtf?')\n}\n\n// replace stuff like \\* with *\nfunction globUnescape (s) {\n return s.replace(/\\\\(.)/g, '$1')\n}\n\nfunction regExpEscape (s) {\n return s.replace(/[-[\\]{}()*+?.,\\\\^$|#\\s]/g, '\\\\$&')\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/minimatch/minimatch.js\n ** module id = 248\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/minimatch/minimatch.js?"); /***/ }, /* 249 */ /***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(process) {'use strict';\n\nfunction posix(path) {\n\treturn path.charAt(0) === '/';\n};\n\nfunction win32(path) {\n\t// https://github.com/joyent/node/blob/b3fcc245fb25539909ef1d5eaa01dbf92e168633/lib/path.js#L56\n\tvar splitDeviceRe = /^([a-zA-Z]:|[\\\\\\/]{2}[^\\\\\\/]+[\\\\\\/]+[^\\\\\\/]+)?([\\\\\\/])?([\\s\\S]*?)$/;\n\tvar result = splitDeviceRe.exec(path);\n\tvar device = result[1] || '';\n\tvar isUnc = !!device && device.charAt(1) !== ':';\n\n\t// UNC paths are always absolute\n\treturn !!result[2] || isUnc;\n};\n\nmodule.exports = process.platform === 'win32' ? win32 : posix;\nmodule.exports.posix = posix;\nmodule.exports.win32 = win32;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/path-is-absolute/index.js\n ** module id = 249\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/path-is-absolute/index.js?"); + eval("var concatMap = __webpack_require__(250);\nvar balanced = __webpack_require__(251);\n\nmodule.exports = expandTop;\n\nvar escSlash = '\\0SLASH'+Math.random()+'\\0';\nvar escOpen = '\\0OPEN'+Math.random()+'\\0';\nvar escClose = '\\0CLOSE'+Math.random()+'\\0';\nvar escComma = '\\0COMMA'+Math.random()+'\\0';\nvar escPeriod = '\\0PERIOD'+Math.random()+'\\0';\n\nfunction numeric(str) {\n return parseInt(str, 10) == str\n ? parseInt(str, 10)\n : str.charCodeAt(0);\n}\n\nfunction escapeBraces(str) {\n return str.split('\\\\\\\\').join(escSlash)\n .split('\\\\{').join(escOpen)\n .split('\\\\}').join(escClose)\n .split('\\\\,').join(escComma)\n .split('\\\\.').join(escPeriod);\n}\n\nfunction unescapeBraces(str) {\n return str.split(escSlash).join('\\\\')\n .split(escOpen).join('{')\n .split(escClose).join('}')\n .split(escComma).join(',')\n .split(escPeriod).join('.');\n}\n\n\n// Basically just str.split(\",\"), but handling cases\n// where we have nested braced sections, which should be\n// treated as individual members, like {a,{b,c},d}\nfunction parseCommaParts(str) {\n if (!str)\n return [''];\n\n var parts = [];\n var m = balanced('{', '}', str);\n\n if (!m)\n return str.split(',');\n\n var pre = m.pre;\n var body = m.body;\n var post = m.post;\n var p = pre.split(',');\n\n p[p.length-1] += '{' + body + '}';\n var postParts = parseCommaParts(post);\n if (post.length) {\n p[p.length-1] += postParts.shift();\n p.push.apply(p, postParts);\n }\n\n parts.push.apply(parts, p);\n\n return parts;\n}\n\nfunction expandTop(str) {\n if (!str)\n return [];\n\n return expand(escapeBraces(str), true).map(unescapeBraces);\n}\n\nfunction identity(e) {\n return e;\n}\n\nfunction embrace(str) {\n return '{' + str + '}';\n}\nfunction isPadded(el) {\n return /^-?0\\d/.test(el);\n}\n\nfunction lte(i, y) {\n return i <= y;\n}\nfunction gte(i, y) {\n return i >= y;\n}\n\nfunction expand(str, isTop) {\n var expansions = [];\n\n var m = balanced('{', '}', str);\n if (!m || /\\$$/.test(m.pre)) return [str];\n\n var isNumericSequence = /^-?\\d+\\.\\.-?\\d+(?:\\.\\.-?\\d+)?$/.test(m.body);\n var isAlphaSequence = /^[a-zA-Z]\\.\\.[a-zA-Z](?:\\.\\.-?\\d+)?$/.test(m.body);\n var isSequence = isNumericSequence || isAlphaSequence;\n var isOptions = /^(.*,)+(.+)?$/.test(m.body);\n if (!isSequence && !isOptions) {\n // {a},b}\n if (m.post.match(/,.*\\}/)) {\n str = m.pre + '{' + m.body + escClose + m.post;\n return expand(str);\n }\n return [str];\n }\n\n var n;\n if (isSequence) {\n n = m.body.split(/\\.\\./);\n } else {\n n = parseCommaParts(m.body);\n if (n.length === 1) {\n // x{{a,b}}y ==> x{a}y x{b}y\n n = expand(n[0], false).map(embrace);\n if (n.length === 1) {\n var post = m.post.length\n ? expand(m.post, false)\n : [''];\n return post.map(function(p) {\n return m.pre + n[0] + p;\n });\n }\n }\n }\n\n // at this point, n is the parts, and we know it's not a comma set\n // with a single entry.\n\n // no need to expand pre, since it is guaranteed to be free of brace-sets\n var pre = m.pre;\n var post = m.post.length\n ? expand(m.post, false)\n : [''];\n\n var N;\n\n if (isSequence) {\n var x = numeric(n[0]);\n var y = numeric(n[1]);\n var width = Math.max(n[0].length, n[1].length)\n var incr = n.length == 3\n ? Math.abs(numeric(n[2]))\n : 1;\n var test = lte;\n var reverse = y < x;\n if (reverse) {\n incr *= -1;\n test = gte;\n }\n var pad = n.some(isPadded);\n\n N = [];\n\n for (var i = x; test(i, y); i += incr) {\n var c;\n if (isAlphaSequence) {\n c = String.fromCharCode(i);\n if (c === '\\\\')\n c = '';\n } else {\n c = String(i);\n if (pad) {\n var need = width - c.length;\n if (need > 0) {\n var z = new Array(need + 1).join('0');\n if (i < 0)\n c = '-' + z + c.slice(1);\n else\n c = z + c;\n }\n }\n }\n N.push(c);\n }\n } else {\n N = concatMap(n, function(el) { return expand(el, false) });\n }\n\n for (var j = 0; j < N.length; j++) {\n for (var k = 0; k < post.length; k++) {\n var expansion = pre + N[j] + post[k];\n if (!isTop || isSequence || expansion)\n expansions.push(expansion);\n }\n }\n\n return expansions;\n}\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/brace-expansion/index.js\n ** module id = 249\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/brace-expansion/index.js?"); /***/ }, /* 250 */ -/***/ function(module, exports, __webpack_require__) { +/***/ function(module, exports) { - eval("/* WEBPACK VAR INJECTION */(function(process) {module.exports = globSync\nglobSync.GlobSync = GlobSync\n\nvar fs = __webpack_require__(82)\nvar minimatch = __webpack_require__(244)\nvar Minimatch = minimatch.Minimatch\nvar Glob = __webpack_require__(243).Glob\nvar util = __webpack_require__(139)\nvar path = __webpack_require__(149)\nvar assert = __webpack_require__(248)\nvar isAbsolute = __webpack_require__(249)\nvar common = __webpack_require__(251)\nvar alphasort = common.alphasort\nvar alphasorti = common.alphasorti\nvar setopts = common.setopts\nvar ownProp = common.ownProp\nvar childrenIgnored = common.childrenIgnored\n\nfunction globSync (pattern, options) {\n if (typeof options === 'function' || arguments.length === 3)\n throw new TypeError('callback provided to sync glob\\n'+\n 'See: https://github.com/isaacs/node-glob/issues/167')\n\n return new GlobSync(pattern, options).found\n}\n\nfunction GlobSync (pattern, options) {\n if (!pattern)\n throw new Error('must provide pattern')\n\n if (typeof options === 'function' || arguments.length === 3)\n throw new TypeError('callback provided to sync glob\\n'+\n 'See: https://github.com/isaacs/node-glob/issues/167')\n\n if (!(this instanceof GlobSync))\n return new GlobSync(pattern, options)\n\n setopts(this, pattern, options)\n\n if (this.noprocess)\n return this\n\n var n = this.minimatch.set.length\n this.matches = new Array(n)\n for (var i = 0; i < n; i ++) {\n this._process(this.minimatch.set[i], i, false)\n }\n this._finish()\n}\n\nGlobSync.prototype._finish = function () {\n assert(this instanceof GlobSync)\n if (this.realpath) {\n var self = this\n this.matches.forEach(function (matchset, index) {\n var set = self.matches[index] = Object.create(null)\n for (var p in matchset) {\n try {\n p = self._makeAbs(p)\n var real = fs.realpathSync(p, self.realpathCache)\n set[real] = true\n } catch (er) {\n if (er.syscall === 'stat')\n set[self._makeAbs(p)] = true\n else\n throw er\n }\n }\n })\n }\n common.finish(this)\n}\n\n\nGlobSync.prototype._process = function (pattern, index, inGlobStar) {\n assert(this instanceof GlobSync)\n\n // Get the first [n] parts of pattern that are all strings.\n var n = 0\n while (typeof pattern[n] === 'string') {\n n ++\n }\n // now n is the index of the first one that is *not* a string.\n\n // See if there's anything else\n var prefix\n switch (n) {\n // if not, then this is rather simple\n case pattern.length:\n this._processSimple(pattern.join('/'), index)\n return\n\n case 0:\n // pattern *starts* with some non-trivial item.\n // going to readdir(cwd), but not include the prefix in matches.\n prefix = null\n break\n\n default:\n // pattern has some string bits in the front.\n // whatever it starts with, whether that's 'absolute' like /foo/bar,\n // or 'relative' like '../baz'\n prefix = pattern.slice(0, n).join('/')\n break\n }\n\n var remain = pattern.slice(n)\n\n // get the list of entries.\n var read\n if (prefix === null)\n read = '.'\n else if (isAbsolute(prefix) || isAbsolute(pattern.join('/'))) {\n if (!prefix || !isAbsolute(prefix))\n prefix = '/' + prefix\n read = prefix\n } else\n read = prefix\n\n var abs = this._makeAbs(read)\n\n //if ignored, skip processing\n if (childrenIgnored(this, read))\n return\n\n var isGlobStar = remain[0] === minimatch.GLOBSTAR\n if (isGlobStar)\n this._processGlobStar(prefix, read, abs, remain, index, inGlobStar)\n else\n this._processReaddir(prefix, read, abs, remain, index, inGlobStar)\n}\n\n\nGlobSync.prototype._processReaddir = function (prefix, read, abs, remain, index, inGlobStar) {\n var entries = this._readdir(abs, inGlobStar)\n\n // if the abs isn't a dir, then nothing can match!\n if (!entries)\n return\n\n // It will only match dot entries if it starts with a dot, or if\n // dot is set. Stuff like @(.foo|.bar) isn't allowed.\n var pn = remain[0]\n var negate = !!this.minimatch.negate\n var rawGlob = pn._glob\n var dotOk = this.dot || rawGlob.charAt(0) === '.'\n\n var matchedEntries = []\n for (var i = 0; i < entries.length; i++) {\n var e = entries[i]\n if (e.charAt(0) !== '.' || dotOk) {\n var m\n if (negate && !prefix) {\n m = !e.match(pn)\n } else {\n m = e.match(pn)\n }\n if (m)\n matchedEntries.push(e)\n }\n }\n\n var len = matchedEntries.length\n // If there are no matched entries, then nothing matches.\n if (len === 0)\n return\n\n // if this is the last remaining pattern bit, then no need for\n // an additional stat *unless* the user has specified mark or\n // stat explicitly. We know they exist, since readdir returned\n // them.\n\n if (remain.length === 1 && !this.mark && !this.stat) {\n if (!this.matches[index])\n this.matches[index] = Object.create(null)\n\n for (var i = 0; i < len; i ++) {\n var e = matchedEntries[i]\n if (prefix) {\n if (prefix.slice(-1) !== '/')\n e = prefix + '/' + e\n else\n e = prefix + e\n }\n\n if (e.charAt(0) === '/' && !this.nomount) {\n e = path.join(this.root, e)\n }\n this.matches[index][e] = true\n }\n // This was the last one, and no stats were needed\n return\n }\n\n // now test all matched entries as stand-ins for that part\n // of the pattern.\n remain.shift()\n for (var i = 0; i < len; i ++) {\n var e = matchedEntries[i]\n var newPattern\n if (prefix)\n newPattern = [prefix, e]\n else\n newPattern = [e]\n this._process(newPattern.concat(remain), index, inGlobStar)\n }\n}\n\n\nGlobSync.prototype._emitMatch = function (index, e) {\n var abs = this._makeAbs(e)\n if (this.mark)\n e = this._mark(e)\n\n if (this.matches[index][e])\n return\n\n if (this.nodir) {\n var c = this.cache[this._makeAbs(e)]\n if (c === 'DIR' || Array.isArray(c))\n return\n }\n\n this.matches[index][e] = true\n if (this.stat)\n this._stat(e)\n}\n\n\nGlobSync.prototype._readdirInGlobStar = function (abs) {\n // follow all symlinked directories forever\n // just proceed as if this is a non-globstar situation\n if (this.follow)\n return this._readdir(abs, false)\n\n var entries\n var lstat\n var stat\n try {\n lstat = fs.lstatSync(abs)\n } catch (er) {\n // lstat failed, doesn't exist\n return null\n }\n\n var isSym = lstat.isSymbolicLink()\n this.symlinks[abs] = isSym\n\n // If it's not a symlink or a dir, then it's definitely a regular file.\n // don't bother doing a readdir in that case.\n if (!isSym && !lstat.isDirectory())\n this.cache[abs] = 'FILE'\n else\n entries = this._readdir(abs, false)\n\n return entries\n}\n\nGlobSync.prototype._readdir = function (abs, inGlobStar) {\n var entries\n\n if (inGlobStar && !ownProp(this.symlinks, abs))\n return this._readdirInGlobStar(abs)\n\n if (ownProp(this.cache, abs)) {\n var c = this.cache[abs]\n if (!c || c === 'FILE')\n return null\n\n if (Array.isArray(c))\n return c\n }\n\n try {\n return this._readdirEntries(abs, fs.readdirSync(abs))\n } catch (er) {\n this._readdirError(abs, er)\n return null\n }\n}\n\nGlobSync.prototype._readdirEntries = function (abs, entries) {\n // if we haven't asked to stat everything, then just\n // assume that everything in there exists, so we can avoid\n // having to stat it a second time.\n if (!this.mark && !this.stat) {\n for (var i = 0; i < entries.length; i ++) {\n var e = entries[i]\n if (abs === '/')\n e = abs + e\n else\n e = abs + '/' + e\n this.cache[e] = true\n }\n }\n\n this.cache[abs] = entries\n\n // mark and cache dir-ness\n return entries\n}\n\nGlobSync.prototype._readdirError = function (f, er) {\n // handle errors, and cache the information\n switch (er.code) {\n case 'ENOTSUP': // https://github.com/isaacs/node-glob/issues/205\n case 'ENOTDIR': // totally normal. means it *does* exist.\n this.cache[this._makeAbs(f)] = 'FILE'\n break\n\n case 'ENOENT': // not terribly unusual\n case 'ELOOP':\n case 'ENAMETOOLONG':\n case 'UNKNOWN':\n this.cache[this._makeAbs(f)] = false\n break\n\n default: // some unusual error. Treat as failure.\n this.cache[this._makeAbs(f)] = false\n if (this.strict)\n throw er\n if (!this.silent)\n console.error('glob error', er)\n break\n }\n}\n\nGlobSync.prototype._processGlobStar = function (prefix, read, abs, remain, index, inGlobStar) {\n\n var entries = this._readdir(abs, inGlobStar)\n\n // no entries means not a dir, so it can never have matches\n // foo.txt/** doesn't match foo.txt\n if (!entries)\n return\n\n // test without the globstar, and with every child both below\n // and replacing the globstar.\n var remainWithoutGlobStar = remain.slice(1)\n var gspref = prefix ? [ prefix ] : []\n var noGlobStar = gspref.concat(remainWithoutGlobStar)\n\n // the noGlobStar pattern exits the inGlobStar state\n this._process(noGlobStar, index, false)\n\n var len = entries.length\n var isSym = this.symlinks[abs]\n\n // If it's a symlink, and we're in a globstar, then stop\n if (isSym && inGlobStar)\n return\n\n for (var i = 0; i < len; i++) {\n var e = entries[i]\n if (e.charAt(0) === '.' && !this.dot)\n continue\n\n // these two cases enter the inGlobStar state\n var instead = gspref.concat(entries[i], remainWithoutGlobStar)\n this._process(instead, index, true)\n\n var below = gspref.concat(entries[i], remain)\n this._process(below, index, true)\n }\n}\n\nGlobSync.prototype._processSimple = function (prefix, index) {\n // XXX review this. Shouldn't it be doing the mounting etc\n // before doing stat? kinda weird?\n var exists = this._stat(prefix)\n\n if (!this.matches[index])\n this.matches[index] = Object.create(null)\n\n // If it doesn't exist, then just mark the lack of results\n if (!exists)\n return\n\n if (prefix && isAbsolute(prefix) && !this.nomount) {\n var trail = /[\\/\\\\]$/.test(prefix)\n if (prefix.charAt(0) === '/') {\n prefix = path.join(this.root, prefix)\n } else {\n prefix = path.resolve(this.root, prefix)\n if (trail)\n prefix += '/'\n }\n }\n\n if (process.platform === 'win32')\n prefix = prefix.replace(/\\\\/g, '/')\n\n // Mark this as a match\n this.matches[index][prefix] = true\n}\n\n// Returns either 'DIR', 'FILE', or false\nGlobSync.prototype._stat = function (f) {\n var abs = this._makeAbs(f)\n var needDir = f.slice(-1) === '/'\n\n if (f.length > this.maxLength)\n return false\n\n if (!this.stat && ownProp(this.cache, abs)) {\n var c = this.cache[abs]\n\n if (Array.isArray(c))\n c = 'DIR'\n\n // It exists, but maybe not how we need it\n if (!needDir || c === 'DIR')\n return c\n\n if (needDir && c === 'FILE')\n return false\n\n // otherwise we have to stat, because maybe c=true\n // if we know it exists, but not what it is.\n }\n\n var exists\n var stat = this.statCache[abs]\n if (!stat) {\n var lstat\n try {\n lstat = fs.lstatSync(abs)\n } catch (er) {\n return false\n }\n\n if (lstat.isSymbolicLink()) {\n try {\n stat = fs.statSync(abs)\n } catch (er) {\n stat = lstat\n }\n } else {\n stat = lstat\n }\n }\n\n this.statCache[abs] = stat\n\n var c = stat.isDirectory() ? 'DIR' : 'FILE'\n this.cache[abs] = this.cache[abs] || c\n\n if (needDir && c !== 'DIR')\n return false\n\n return c\n}\n\nGlobSync.prototype._mark = function (p) {\n return common.mark(this, p)\n}\n\nGlobSync.prototype._makeAbs = function (f) {\n return common.makeAbs(this, f)\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob/sync.js\n ** module id = 250\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob/sync.js?"); + eval("module.exports = function (xs, fn) {\n var res = [];\n for (var i = 0; i < xs.length; i++) {\n var x = fn(xs[i], i);\n if (isArray(x)) res.push.apply(res, x);\n else res.push(x);\n }\n return res;\n};\n\nvar isArray = Array.isArray || function (xs) {\n return Object.prototype.toString.call(xs) === '[object Array]';\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/concat-map/index.js\n ** module id = 250\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/concat-map/index.js?"); /***/ }, /* 251 */ -/***/ function(module, exports, __webpack_require__) { +/***/ function(module, exports) { - eval("/* WEBPACK VAR INJECTION */(function(process) {exports.alphasort = alphasort\nexports.alphasorti = alphasorti\nexports.setopts = setopts\nexports.ownProp = ownProp\nexports.makeAbs = makeAbs\nexports.finish = finish\nexports.mark = mark\nexports.isIgnored = isIgnored\nexports.childrenIgnored = childrenIgnored\n\nfunction ownProp (obj, field) {\n return Object.prototype.hasOwnProperty.call(obj, field)\n}\n\nvar path = __webpack_require__(149)\nvar minimatch = __webpack_require__(244)\nvar isAbsolute = __webpack_require__(249)\nvar Minimatch = minimatch.Minimatch\n\nfunction alphasorti (a, b) {\n return a.toLowerCase().localeCompare(b.toLowerCase())\n}\n\nfunction alphasort (a, b) {\n return a.localeCompare(b)\n}\n\nfunction setupIgnores (self, options) {\n self.ignore = options.ignore || []\n\n if (!Array.isArray(self.ignore))\n self.ignore = [self.ignore]\n\n if (self.ignore.length) {\n self.ignore = self.ignore.map(ignoreMap)\n }\n}\n\nfunction ignoreMap (pattern) {\n var gmatcher = null\n if (pattern.slice(-3) === '/**') {\n var gpattern = pattern.replace(/(\\/\\*\\*)+$/, '')\n gmatcher = new Minimatch(gpattern)\n }\n\n return {\n matcher: new Minimatch(pattern),\n gmatcher: gmatcher\n }\n}\n\nfunction setopts (self, pattern, options) {\n if (!options)\n options = {}\n\n // base-matching: just use globstar for that.\n if (options.matchBase && -1 === pattern.indexOf(\"/\")) {\n if (options.noglobstar) {\n throw new Error(\"base matching requires globstar\")\n }\n pattern = \"**/\" + pattern\n }\n\n self.silent = !!options.silent\n self.pattern = pattern\n self.strict = options.strict !== false\n self.realpath = !!options.realpath\n self.realpathCache = options.realpathCache || Object.create(null)\n self.follow = !!options.follow\n self.dot = !!options.dot\n self.mark = !!options.mark\n self.nodir = !!options.nodir\n if (self.nodir)\n self.mark = true\n self.sync = !!options.sync\n self.nounique = !!options.nounique\n self.nonull = !!options.nonull\n self.nosort = !!options.nosort\n self.nocase = !!options.nocase\n self.stat = !!options.stat\n self.noprocess = !!options.noprocess\n\n self.maxLength = options.maxLength || Infinity\n self.cache = options.cache || Object.create(null)\n self.statCache = options.statCache || Object.create(null)\n self.symlinks = options.symlinks || Object.create(null)\n\n setupIgnores(self, options)\n\n self.changedCwd = false\n var cwd = process.cwd()\n if (!ownProp(options, \"cwd\"))\n self.cwd = cwd\n else {\n self.cwd = options.cwd\n self.changedCwd = path.resolve(options.cwd) !== cwd\n }\n\n self.root = options.root || path.resolve(self.cwd, \"/\")\n self.root = path.resolve(self.root)\n if (process.platform === \"win32\")\n self.root = self.root.replace(/\\\\/g, \"/\")\n\n self.nomount = !!options.nomount\n\n // disable comments and negation unless the user explicitly\n // passes in false as the option.\n options.nonegate = options.nonegate === false ? false : true\n options.nocomment = options.nocomment === false ? false : true\n deprecationWarning(options)\n\n self.minimatch = new Minimatch(pattern, options)\n self.options = self.minimatch.options\n}\n\n// TODO(isaacs): remove entirely in v6\n// exported to reset in tests\nexports.deprecationWarned\nfunction deprecationWarning(options) {\n if (!options.nonegate || !options.nocomment) {\n if (process.noDeprecation !== true && !exports.deprecationWarned) {\n var msg = 'glob WARNING: comments and negation will be disabled in v6'\n if (process.throwDeprecation)\n throw new Error(msg)\n else if (process.traceDeprecation)\n console.trace(msg)\n else\n console.error(msg)\n\n exports.deprecationWarned = true\n }\n }\n}\n\nfunction finish (self) {\n var nou = self.nounique\n var all = nou ? [] : Object.create(null)\n\n for (var i = 0, l = self.matches.length; i < l; i ++) {\n var matches = self.matches[i]\n if (!matches || Object.keys(matches).length === 0) {\n if (self.nonull) {\n // do like the shell, and spit out the literal glob\n var literal = self.minimatch.globSet[i]\n if (nou)\n all.push(literal)\n else\n all[literal] = true\n }\n } else {\n // had matches\n var m = Object.keys(matches)\n if (nou)\n all.push.apply(all, m)\n else\n m.forEach(function (m) {\n all[m] = true\n })\n }\n }\n\n if (!nou)\n all = Object.keys(all)\n\n if (!self.nosort)\n all = all.sort(self.nocase ? alphasorti : alphasort)\n\n // at *some* point we statted all of these\n if (self.mark) {\n for (var i = 0; i < all.length; i++) {\n all[i] = self._mark(all[i])\n }\n if (self.nodir) {\n all = all.filter(function (e) {\n return !(/\\/$/.test(e))\n })\n }\n }\n\n if (self.ignore.length)\n all = all.filter(function(m) {\n return !isIgnored(self, m)\n })\n\n self.found = all\n}\n\nfunction mark (self, p) {\n var abs = makeAbs(self, p)\n var c = self.cache[abs]\n var m = p\n if (c) {\n var isDir = c === 'DIR' || Array.isArray(c)\n var slash = p.slice(-1) === '/'\n\n if (isDir && !slash)\n m += '/'\n else if (!isDir && slash)\n m = m.slice(0, -1)\n\n if (m !== p) {\n var mabs = makeAbs(self, m)\n self.statCache[mabs] = self.statCache[abs]\n self.cache[mabs] = self.cache[abs]\n }\n }\n\n return m\n}\n\n// lotta situps...\nfunction makeAbs (self, f) {\n var abs = f\n if (f.charAt(0) === '/') {\n abs = path.join(self.root, f)\n } else if (isAbsolute(f) || f === '') {\n abs = f\n } else if (self.changedCwd) {\n abs = path.resolve(self.cwd, f)\n } else {\n abs = path.resolve(f)\n }\n return abs\n}\n\n\n// Return true, if pattern ends with globstar '**', for the accompanying parent directory.\n// Ex:- If node_modules/** is the pattern, add 'node_modules' to ignore list along with it's contents\nfunction isIgnored (self, path) {\n if (!self.ignore.length)\n return false\n\n return self.ignore.some(function(item) {\n return item.matcher.match(path) || !!(item.gmatcher && item.gmatcher.match(path))\n })\n}\n\nfunction childrenIgnored (self, path) {\n if (!self.ignore.length)\n return false\n\n return self.ignore.some(function(item) {\n return !!(item.gmatcher && item.gmatcher.match(path))\n })\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob/common.js\n ** module id = 251\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob/common.js?"); + eval("module.exports = balanced;\nfunction balanced(a, b, str) {\n var r = range(a, b, str);\n\n return r && {\n start: r[0],\n end: r[1],\n pre: str.slice(0, r[0]),\n body: str.slice(r[0] + a.length, r[1]),\n post: str.slice(r[1] + b.length)\n };\n}\n\nbalanced.range = range;\nfunction range(a, b, str) {\n var begs, beg, left, right, result;\n var ai = str.indexOf(a);\n var bi = str.indexOf(b, ai + 1);\n var i = ai;\n\n if (ai >= 0 && bi > 0) {\n begs = [];\n left = str.length;\n\n while (i < str.length && i >= 0 && ! result) {\n if (i == ai) {\n begs.push(i);\n ai = str.indexOf(a, i + 1);\n } else if (begs.length == 1) {\n result = [ begs.pop(), bi ];\n } else {\n beg = begs.pop();\n if (beg < left) {\n left = beg;\n right = bi;\n }\n\n bi = str.indexOf(b, i + 1);\n }\n\n i = ai < bi && ai >= 0 ? ai : bi;\n }\n\n if (begs.length) {\n result = [ left, right ];\n }\n }\n\n return result;\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/balanced-match/index.js\n ** module id = 251\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/balanced-match/index.js?"); /***/ }, /* 252 */ /***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(process) {var wrappy = __webpack_require__(253)\nvar reqs = Object.create(null)\nvar once = __webpack_require__(254)\n\nmodule.exports = wrappy(inflight)\n\nfunction inflight (key, cb) {\n if (reqs[key]) {\n reqs[key].push(cb)\n return null\n } else {\n reqs[key] = [cb]\n return makeres(key)\n }\n}\n\nfunction makeres (key) {\n return once(function RES () {\n var cbs = reqs[key]\n var len = cbs.length\n var args = slice(arguments)\n for (var i = 0; i < len; i++) {\n cbs[i].apply(null, args)\n }\n if (cbs.length > len) {\n // added more in the interim.\n // de-zalgo, just in case, but don't call again.\n cbs.splice(0, len)\n process.nextTick(function () {\n RES.apply(null, args)\n })\n } else {\n delete reqs[key]\n }\n })\n}\n\nfunction slice (args) {\n var length = args.length\n var array = []\n\n for (var i = 0; i < length; i++) array[i] = args[i]\n return array\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/inflight/inflight.js\n ** module id = 252\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/inflight/inflight.js?"); + eval("// http://wiki.commonjs.org/wiki/Unit_Testing/1.0\n//\n// THIS IS NOT TESTED NOR LIKELY TO WORK OUTSIDE V8!\n//\n// Originally from narwhal.js (http://narwhaljs.org)\n// Copyright (c) 2009 Thomas Robinson <280north.com>\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the 'Software'), to\n// deal in the Software without restriction, including without limitation the\n// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n// sell copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN\n// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\n// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// when used in node, this will actually load the util module we depend on\n// versus loading the builtin util module as happens otherwise\n// this is a bug in node module loading as far as I am concerned\nvar util = __webpack_require__(139);\n\nvar pSlice = Array.prototype.slice;\nvar hasOwn = Object.prototype.hasOwnProperty;\n\n// 1. The assert module provides functions that throw\n// AssertionError's when particular conditions are not met. The\n// assert module must conform to the following interface.\n\nvar assert = module.exports = ok;\n\n// 2. The AssertionError is defined in assert.\n// new assert.AssertionError({ message: message,\n// actual: actual,\n// expected: expected })\n\nassert.AssertionError = function AssertionError(options) {\n this.name = 'AssertionError';\n this.actual = options.actual;\n this.expected = options.expected;\n this.operator = options.operator;\n if (options.message) {\n this.message = options.message;\n this.generatedMessage = false;\n } else {\n this.message = getMessage(this);\n this.generatedMessage = true;\n }\n var stackStartFunction = options.stackStartFunction || fail;\n\n if (Error.captureStackTrace) {\n Error.captureStackTrace(this, stackStartFunction);\n }\n else {\n // non v8 browsers so we can have a stacktrace\n var err = new Error();\n if (err.stack) {\n var out = err.stack;\n\n // try to strip useless frames\n var fn_name = stackStartFunction.name;\n var idx = out.indexOf('\\n' + fn_name);\n if (idx >= 0) {\n // once we have located the function frame\n // we need to strip out everything before it (and its line)\n var next_line = out.indexOf('\\n', idx + 1);\n out = out.substring(next_line + 1);\n }\n\n this.stack = out;\n }\n }\n};\n\n// assert.AssertionError instanceof Error\nutil.inherits(assert.AssertionError, Error);\n\nfunction replacer(key, value) {\n if (util.isUndefined(value)) {\n return '' + value;\n }\n if (util.isNumber(value) && !isFinite(value)) {\n return value.toString();\n }\n if (util.isFunction(value) || util.isRegExp(value)) {\n return value.toString();\n }\n return value;\n}\n\nfunction truncate(s, n) {\n if (util.isString(s)) {\n return s.length < n ? s : s.slice(0, n);\n } else {\n return s;\n }\n}\n\nfunction getMessage(self) {\n return truncate(JSON.stringify(self.actual, replacer), 128) + ' ' +\n self.operator + ' ' +\n truncate(JSON.stringify(self.expected, replacer), 128);\n}\n\n// At present only the three keys mentioned above are used and\n// understood by the spec. Implementations or sub modules can pass\n// other keys to the AssertionError's constructor - they will be\n// ignored.\n\n// 3. All of the following functions must throw an AssertionError\n// when a corresponding condition is not met, with a message that\n// may be undefined if not provided. All assertion methods provide\n// both the actual and expected values to the assertion error for\n// display purposes.\n\nfunction fail(actual, expected, message, operator, stackStartFunction) {\n throw new assert.AssertionError({\n message: message,\n actual: actual,\n expected: expected,\n operator: operator,\n stackStartFunction: stackStartFunction\n });\n}\n\n// EXTENSION! allows for well behaved errors defined elsewhere.\nassert.fail = fail;\n\n// 4. Pure assertion tests whether a value is truthy, as determined\n// by !!guard.\n// assert.ok(guard, message_opt);\n// This statement is equivalent to assert.equal(true, !!guard,\n// message_opt);. To test strictly for the value true, use\n// assert.strictEqual(true, guard, message_opt);.\n\nfunction ok(value, message) {\n if (!value) fail(value, true, message, '==', assert.ok);\n}\nassert.ok = ok;\n\n// 5. The equality assertion tests shallow, coercive equality with\n// ==.\n// assert.equal(actual, expected, message_opt);\n\nassert.equal = function equal(actual, expected, message) {\n if (actual != expected) fail(actual, expected, message, '==', assert.equal);\n};\n\n// 6. The non-equality assertion tests for whether two objects are not equal\n// with != assert.notEqual(actual, expected, message_opt);\n\nassert.notEqual = function notEqual(actual, expected, message) {\n if (actual == expected) {\n fail(actual, expected, message, '!=', assert.notEqual);\n }\n};\n\n// 7. The equivalence assertion tests a deep equality relation.\n// assert.deepEqual(actual, expected, message_opt);\n\nassert.deepEqual = function deepEqual(actual, expected, message) {\n if (!_deepEqual(actual, expected)) {\n fail(actual, expected, message, 'deepEqual', assert.deepEqual);\n }\n};\n\nfunction _deepEqual(actual, expected) {\n // 7.1. All identical values are equivalent, as determined by ===.\n if (actual === expected) {\n return true;\n\n } else if (util.isBuffer(actual) && util.isBuffer(expected)) {\n if (actual.length != expected.length) return false;\n\n for (var i = 0; i < actual.length; i++) {\n if (actual[i] !== expected[i]) return false;\n }\n\n return true;\n\n // 7.2. If the expected value is a Date object, the actual value is\n // equivalent if it is also a Date object that refers to the same time.\n } else if (util.isDate(actual) && util.isDate(expected)) {\n return actual.getTime() === expected.getTime();\n\n // 7.3 If the expected value is a RegExp object, the actual value is\n // equivalent if it is also a RegExp object with the same source and\n // properties (`global`, `multiline`, `lastIndex`, `ignoreCase`).\n } else if (util.isRegExp(actual) && util.isRegExp(expected)) {\n return actual.source === expected.source &&\n actual.global === expected.global &&\n actual.multiline === expected.multiline &&\n actual.lastIndex === expected.lastIndex &&\n actual.ignoreCase === expected.ignoreCase;\n\n // 7.4. Other pairs that do not both pass typeof value == 'object',\n // equivalence is determined by ==.\n } else if (!util.isObject(actual) && !util.isObject(expected)) {\n return actual == expected;\n\n // 7.5 For all other Object pairs, including Array objects, equivalence is\n // determined by having the same number of owned properties (as verified\n // with Object.prototype.hasOwnProperty.call), the same set of keys\n // (although not necessarily the same order), equivalent values for every\n // corresponding key, and an identical 'prototype' property. Note: this\n // accounts for both named and indexed properties on Arrays.\n } else {\n return objEquiv(actual, expected);\n }\n}\n\nfunction isArguments(object) {\n return Object.prototype.toString.call(object) == '[object Arguments]';\n}\n\nfunction objEquiv(a, b) {\n if (util.isNullOrUndefined(a) || util.isNullOrUndefined(b))\n return false;\n // an identical 'prototype' property.\n if (a.prototype !== b.prototype) return false;\n // if one is a primitive, the other must be same\n if (util.isPrimitive(a) || util.isPrimitive(b)) {\n return a === b;\n }\n var aIsArgs = isArguments(a),\n bIsArgs = isArguments(b);\n if ((aIsArgs && !bIsArgs) || (!aIsArgs && bIsArgs))\n return false;\n if (aIsArgs) {\n a = pSlice.call(a);\n b = pSlice.call(b);\n return _deepEqual(a, b);\n }\n var ka = objectKeys(a),\n kb = objectKeys(b),\n key, i;\n // having the same number of owned properties (keys incorporates\n // hasOwnProperty)\n if (ka.length != kb.length)\n return false;\n //the same set of keys (although not necessarily the same order),\n ka.sort();\n kb.sort();\n //~~~cheap key test\n for (i = ka.length - 1; i >= 0; i--) {\n if (ka[i] != kb[i])\n return false;\n }\n //equivalent values for every corresponding key, and\n //~~~possibly expensive deep test\n for (i = ka.length - 1; i >= 0; i--) {\n key = ka[i];\n if (!_deepEqual(a[key], b[key])) return false;\n }\n return true;\n}\n\n// 8. The non-equivalence assertion tests for any deep inequality.\n// assert.notDeepEqual(actual, expected, message_opt);\n\nassert.notDeepEqual = function notDeepEqual(actual, expected, message) {\n if (_deepEqual(actual, expected)) {\n fail(actual, expected, message, 'notDeepEqual', assert.notDeepEqual);\n }\n};\n\n// 9. The strict equality assertion tests strict equality, as determined by ===.\n// assert.strictEqual(actual, expected, message_opt);\n\nassert.strictEqual = function strictEqual(actual, expected, message) {\n if (actual !== expected) {\n fail(actual, expected, message, '===', assert.strictEqual);\n }\n};\n\n// 10. The strict non-equality assertion tests for strict inequality, as\n// determined by !==. assert.notStrictEqual(actual, expected, message_opt);\n\nassert.notStrictEqual = function notStrictEqual(actual, expected, message) {\n if (actual === expected) {\n fail(actual, expected, message, '!==', assert.notStrictEqual);\n }\n};\n\nfunction expectedException(actual, expected) {\n if (!actual || !expected) {\n return false;\n }\n\n if (Object.prototype.toString.call(expected) == '[object RegExp]') {\n return expected.test(actual);\n } else if (actual instanceof expected) {\n return true;\n } else if (expected.call({}, actual) === true) {\n return true;\n }\n\n return false;\n}\n\nfunction _throws(shouldThrow, block, expected, message) {\n var actual;\n\n if (util.isString(expected)) {\n message = expected;\n expected = null;\n }\n\n try {\n block();\n } catch (e) {\n actual = e;\n }\n\n message = (expected && expected.name ? ' (' + expected.name + ').' : '.') +\n (message ? ' ' + message : '.');\n\n if (shouldThrow && !actual) {\n fail(actual, expected, 'Missing expected exception' + message);\n }\n\n if (!shouldThrow && expectedException(actual, expected)) {\n fail(actual, expected, 'Got unwanted exception' + message);\n }\n\n if ((shouldThrow && actual && expected &&\n !expectedException(actual, expected)) || (!shouldThrow && actual)) {\n throw actual;\n }\n}\n\n// 11. Expected to throw an error:\n// assert.throws(block, Error_opt, message_opt);\n\nassert.throws = function(block, /*optional*/error, /*optional*/message) {\n _throws.apply(this, [true].concat(pSlice.call(arguments)));\n};\n\n// EXTENSION! This is annoying to write outside this module.\nassert.doesNotThrow = function(block, /*optional*/message) {\n _throws.apply(this, [false].concat(pSlice.call(arguments)));\n};\n\nassert.ifError = function(err) { if (err) {throw err;}};\n\nvar objectKeys = Object.keys || function (obj) {\n var keys = [];\n for (var key in obj) {\n if (hasOwn.call(obj, key)) keys.push(key);\n }\n return keys;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/assert/assert.js\n ** module id = 252\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/assert/assert.js?"); /***/ }, /* 253 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("// Returns a wrapper function that returns a wrapped callback\n// The wrapper function should do some stuff, and return a\n// presumably different callback function.\n// This makes sure that own properties are retained, so that\n// decorations and such are not lost along the way.\nmodule.exports = wrappy\nfunction wrappy (fn, cb) {\n if (fn && cb) return wrappy(fn)(cb)\n\n if (typeof fn !== 'function')\n throw new TypeError('need wrapper function')\n\n Object.keys(fn).forEach(function (k) {\n wrapper[k] = fn[k]\n })\n\n return wrapper\n\n function wrapper() {\n var args = new Array(arguments.length)\n for (var i = 0; i < args.length; i++) {\n args[i] = arguments[i]\n }\n var ret = fn.apply(this, args)\n var cb = args[args.length-1]\n if (typeof ret === 'function' && ret !== cb) {\n Object.keys(cb).forEach(function (k) {\n ret[k] = cb[k]\n })\n }\n return ret\n }\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/wrappy/wrappy.js\n ** module id = 253\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/wrappy/wrappy.js?"); + eval("/* WEBPACK VAR INJECTION */(function(process) {'use strict';\n\nfunction posix(path) {\n\treturn path.charAt(0) === '/';\n};\n\nfunction win32(path) {\n\t// https://github.com/joyent/node/blob/b3fcc245fb25539909ef1d5eaa01dbf92e168633/lib/path.js#L56\n\tvar splitDeviceRe = /^([a-zA-Z]:|[\\\\\\/]{2}[^\\\\\\/]+[\\\\\\/]+[^\\\\\\/]+)?([\\\\\\/])?([\\s\\S]*?)$/;\n\tvar result = splitDeviceRe.exec(path);\n\tvar device = result[1] || '';\n\tvar isUnc = !!device && device.charAt(1) !== ':';\n\n\t// UNC paths are always absolute\n\treturn !!result[2] || isUnc;\n};\n\nmodule.exports = process.platform === 'win32' ? win32 : posix;\nmodule.exports.posix = posix;\nmodule.exports.win32 = win32;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/path-is-absolute/index.js\n ** module id = 253\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/path-is-absolute/index.js?"); /***/ }, /* 254 */ /***/ function(module, exports, __webpack_require__) { - eval("var wrappy = __webpack_require__(253)\nmodule.exports = wrappy(once)\n\nonce.proto = once(function () {\n Object.defineProperty(Function.prototype, 'once', {\n value: function () {\n return once(this)\n },\n configurable: true\n })\n})\n\nfunction once (fn) {\n var f = function () {\n if (f.called) return f.value\n f.called = true\n return f.value = fn.apply(this, arguments)\n }\n f.called = false\n return f\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/once/once.js\n ** module id = 254\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/once/once.js?"); + eval("/* WEBPACK VAR INJECTION */(function(process) {module.exports = globSync\nglobSync.GlobSync = GlobSync\n\nvar fs = __webpack_require__(82)\nvar minimatch = __webpack_require__(248)\nvar Minimatch = minimatch.Minimatch\nvar Glob = __webpack_require__(247).Glob\nvar util = __webpack_require__(139)\nvar path = __webpack_require__(149)\nvar assert = __webpack_require__(252)\nvar isAbsolute = __webpack_require__(253)\nvar common = __webpack_require__(255)\nvar alphasort = common.alphasort\nvar alphasorti = common.alphasorti\nvar setopts = common.setopts\nvar ownProp = common.ownProp\nvar childrenIgnored = common.childrenIgnored\n\nfunction globSync (pattern, options) {\n if (typeof options === 'function' || arguments.length === 3)\n throw new TypeError('callback provided to sync glob\\n'+\n 'See: https://github.com/isaacs/node-glob/issues/167')\n\n return new GlobSync(pattern, options).found\n}\n\nfunction GlobSync (pattern, options) {\n if (!pattern)\n throw new Error('must provide pattern')\n\n if (typeof options === 'function' || arguments.length === 3)\n throw new TypeError('callback provided to sync glob\\n'+\n 'See: https://github.com/isaacs/node-glob/issues/167')\n\n if (!(this instanceof GlobSync))\n return new GlobSync(pattern, options)\n\n setopts(this, pattern, options)\n\n if (this.noprocess)\n return this\n\n var n = this.minimatch.set.length\n this.matches = new Array(n)\n for (var i = 0; i < n; i ++) {\n this._process(this.minimatch.set[i], i, false)\n }\n this._finish()\n}\n\nGlobSync.prototype._finish = function () {\n assert(this instanceof GlobSync)\n if (this.realpath) {\n var self = this\n this.matches.forEach(function (matchset, index) {\n var set = self.matches[index] = Object.create(null)\n for (var p in matchset) {\n try {\n p = self._makeAbs(p)\n var real = fs.realpathSync(p, self.realpathCache)\n set[real] = true\n } catch (er) {\n if (er.syscall === 'stat')\n set[self._makeAbs(p)] = true\n else\n throw er\n }\n }\n })\n }\n common.finish(this)\n}\n\n\nGlobSync.prototype._process = function (pattern, index, inGlobStar) {\n assert(this instanceof GlobSync)\n\n // Get the first [n] parts of pattern that are all strings.\n var n = 0\n while (typeof pattern[n] === 'string') {\n n ++\n }\n // now n is the index of the first one that is *not* a string.\n\n // See if there's anything else\n var prefix\n switch (n) {\n // if not, then this is rather simple\n case pattern.length:\n this._processSimple(pattern.join('/'), index)\n return\n\n case 0:\n // pattern *starts* with some non-trivial item.\n // going to readdir(cwd), but not include the prefix in matches.\n prefix = null\n break\n\n default:\n // pattern has some string bits in the front.\n // whatever it starts with, whether that's 'absolute' like /foo/bar,\n // or 'relative' like '../baz'\n prefix = pattern.slice(0, n).join('/')\n break\n }\n\n var remain = pattern.slice(n)\n\n // get the list of entries.\n var read\n if (prefix === null)\n read = '.'\n else if (isAbsolute(prefix) || isAbsolute(pattern.join('/'))) {\n if (!prefix || !isAbsolute(prefix))\n prefix = '/' + prefix\n read = prefix\n } else\n read = prefix\n\n var abs = this._makeAbs(read)\n\n //if ignored, skip processing\n if (childrenIgnored(this, read))\n return\n\n var isGlobStar = remain[0] === minimatch.GLOBSTAR\n if (isGlobStar)\n this._processGlobStar(prefix, read, abs, remain, index, inGlobStar)\n else\n this._processReaddir(prefix, read, abs, remain, index, inGlobStar)\n}\n\n\nGlobSync.prototype._processReaddir = function (prefix, read, abs, remain, index, inGlobStar) {\n var entries = this._readdir(abs, inGlobStar)\n\n // if the abs isn't a dir, then nothing can match!\n if (!entries)\n return\n\n // It will only match dot entries if it starts with a dot, or if\n // dot is set. Stuff like @(.foo|.bar) isn't allowed.\n var pn = remain[0]\n var negate = !!this.minimatch.negate\n var rawGlob = pn._glob\n var dotOk = this.dot || rawGlob.charAt(0) === '.'\n\n var matchedEntries = []\n for (var i = 0; i < entries.length; i++) {\n var e = entries[i]\n if (e.charAt(0) !== '.' || dotOk) {\n var m\n if (negate && !prefix) {\n m = !e.match(pn)\n } else {\n m = e.match(pn)\n }\n if (m)\n matchedEntries.push(e)\n }\n }\n\n var len = matchedEntries.length\n // If there are no matched entries, then nothing matches.\n if (len === 0)\n return\n\n // if this is the last remaining pattern bit, then no need for\n // an additional stat *unless* the user has specified mark or\n // stat explicitly. We know they exist, since readdir returned\n // them.\n\n if (remain.length === 1 && !this.mark && !this.stat) {\n if (!this.matches[index])\n this.matches[index] = Object.create(null)\n\n for (var i = 0; i < len; i ++) {\n var e = matchedEntries[i]\n if (prefix) {\n if (prefix.slice(-1) !== '/')\n e = prefix + '/' + e\n else\n e = prefix + e\n }\n\n if (e.charAt(0) === '/' && !this.nomount) {\n e = path.join(this.root, e)\n }\n this.matches[index][e] = true\n }\n // This was the last one, and no stats were needed\n return\n }\n\n // now test all matched entries as stand-ins for that part\n // of the pattern.\n remain.shift()\n for (var i = 0; i < len; i ++) {\n var e = matchedEntries[i]\n var newPattern\n if (prefix)\n newPattern = [prefix, e]\n else\n newPattern = [e]\n this._process(newPattern.concat(remain), index, inGlobStar)\n }\n}\n\n\nGlobSync.prototype._emitMatch = function (index, e) {\n var abs = this._makeAbs(e)\n if (this.mark)\n e = this._mark(e)\n\n if (this.matches[index][e])\n return\n\n if (this.nodir) {\n var c = this.cache[this._makeAbs(e)]\n if (c === 'DIR' || Array.isArray(c))\n return\n }\n\n this.matches[index][e] = true\n if (this.stat)\n this._stat(e)\n}\n\n\nGlobSync.prototype._readdirInGlobStar = function (abs) {\n // follow all symlinked directories forever\n // just proceed as if this is a non-globstar situation\n if (this.follow)\n return this._readdir(abs, false)\n\n var entries\n var lstat\n var stat\n try {\n lstat = fs.lstatSync(abs)\n } catch (er) {\n // lstat failed, doesn't exist\n return null\n }\n\n var isSym = lstat.isSymbolicLink()\n this.symlinks[abs] = isSym\n\n // If it's not a symlink or a dir, then it's definitely a regular file.\n // don't bother doing a readdir in that case.\n if (!isSym && !lstat.isDirectory())\n this.cache[abs] = 'FILE'\n else\n entries = this._readdir(abs, false)\n\n return entries\n}\n\nGlobSync.prototype._readdir = function (abs, inGlobStar) {\n var entries\n\n if (inGlobStar && !ownProp(this.symlinks, abs))\n return this._readdirInGlobStar(abs)\n\n if (ownProp(this.cache, abs)) {\n var c = this.cache[abs]\n if (!c || c === 'FILE')\n return null\n\n if (Array.isArray(c))\n return c\n }\n\n try {\n return this._readdirEntries(abs, fs.readdirSync(abs))\n } catch (er) {\n this._readdirError(abs, er)\n return null\n }\n}\n\nGlobSync.prototype._readdirEntries = function (abs, entries) {\n // if we haven't asked to stat everything, then just\n // assume that everything in there exists, so we can avoid\n // having to stat it a second time.\n if (!this.mark && !this.stat) {\n for (var i = 0; i < entries.length; i ++) {\n var e = entries[i]\n if (abs === '/')\n e = abs + e\n else\n e = abs + '/' + e\n this.cache[e] = true\n }\n }\n\n this.cache[abs] = entries\n\n // mark and cache dir-ness\n return entries\n}\n\nGlobSync.prototype._readdirError = function (f, er) {\n // handle errors, and cache the information\n switch (er.code) {\n case 'ENOTSUP': // https://github.com/isaacs/node-glob/issues/205\n case 'ENOTDIR': // totally normal. means it *does* exist.\n this.cache[this._makeAbs(f)] = 'FILE'\n break\n\n case 'ENOENT': // not terribly unusual\n case 'ELOOP':\n case 'ENAMETOOLONG':\n case 'UNKNOWN':\n this.cache[this._makeAbs(f)] = false\n break\n\n default: // some unusual error. Treat as failure.\n this.cache[this._makeAbs(f)] = false\n if (this.strict)\n throw er\n if (!this.silent)\n console.error('glob error', er)\n break\n }\n}\n\nGlobSync.prototype._processGlobStar = function (prefix, read, abs, remain, index, inGlobStar) {\n\n var entries = this._readdir(abs, inGlobStar)\n\n // no entries means not a dir, so it can never have matches\n // foo.txt/** doesn't match foo.txt\n if (!entries)\n return\n\n // test without the globstar, and with every child both below\n // and replacing the globstar.\n var remainWithoutGlobStar = remain.slice(1)\n var gspref = prefix ? [ prefix ] : []\n var noGlobStar = gspref.concat(remainWithoutGlobStar)\n\n // the noGlobStar pattern exits the inGlobStar state\n this._process(noGlobStar, index, false)\n\n var len = entries.length\n var isSym = this.symlinks[abs]\n\n // If it's a symlink, and we're in a globstar, then stop\n if (isSym && inGlobStar)\n return\n\n for (var i = 0; i < len; i++) {\n var e = entries[i]\n if (e.charAt(0) === '.' && !this.dot)\n continue\n\n // these two cases enter the inGlobStar state\n var instead = gspref.concat(entries[i], remainWithoutGlobStar)\n this._process(instead, index, true)\n\n var below = gspref.concat(entries[i], remain)\n this._process(below, index, true)\n }\n}\n\nGlobSync.prototype._processSimple = function (prefix, index) {\n // XXX review this. Shouldn't it be doing the mounting etc\n // before doing stat? kinda weird?\n var exists = this._stat(prefix)\n\n if (!this.matches[index])\n this.matches[index] = Object.create(null)\n\n // If it doesn't exist, then just mark the lack of results\n if (!exists)\n return\n\n if (prefix && isAbsolute(prefix) && !this.nomount) {\n var trail = /[\\/\\\\]$/.test(prefix)\n if (prefix.charAt(0) === '/') {\n prefix = path.join(this.root, prefix)\n } else {\n prefix = path.resolve(this.root, prefix)\n if (trail)\n prefix += '/'\n }\n }\n\n if (process.platform === 'win32')\n prefix = prefix.replace(/\\\\/g, '/')\n\n // Mark this as a match\n this.matches[index][prefix] = true\n}\n\n// Returns either 'DIR', 'FILE', or false\nGlobSync.prototype._stat = function (f) {\n var abs = this._makeAbs(f)\n var needDir = f.slice(-1) === '/'\n\n if (f.length > this.maxLength)\n return false\n\n if (!this.stat && ownProp(this.cache, abs)) {\n var c = this.cache[abs]\n\n if (Array.isArray(c))\n c = 'DIR'\n\n // It exists, but maybe not how we need it\n if (!needDir || c === 'DIR')\n return c\n\n if (needDir && c === 'FILE')\n return false\n\n // otherwise we have to stat, because maybe c=true\n // if we know it exists, but not what it is.\n }\n\n var exists\n var stat = this.statCache[abs]\n if (!stat) {\n var lstat\n try {\n lstat = fs.lstatSync(abs)\n } catch (er) {\n return false\n }\n\n if (lstat.isSymbolicLink()) {\n try {\n stat = fs.statSync(abs)\n } catch (er) {\n stat = lstat\n }\n } else {\n stat = lstat\n }\n }\n\n this.statCache[abs] = stat\n\n var c = stat.isDirectory() ? 'DIR' : 'FILE'\n this.cache[abs] = this.cache[abs] || c\n\n if (needDir && c !== 'DIR')\n return false\n\n return c\n}\n\nGlobSync.prototype._mark = function (p) {\n return common.mark(this, p)\n}\n\nGlobSync.prototype._makeAbs = function (f) {\n return common.makeAbs(this, f)\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob/sync.js\n ** module id = 254\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob/sync.js?"); /***/ }, /* 255 */ /***/ function(module, exports, __webpack_require__) { - eval("/*!\n * micromatch \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nvar expand = __webpack_require__(256);\nvar utils = __webpack_require__(257);\n\n/**\n * The main function. Pass an array of filepaths,\n * and a string or array of glob patterns\n *\n * @param {Array|String} `files`\n * @param {Array|String} `patterns`\n * @param {Object} `opts`\n * @return {Array} Array of matches\n */\n\nfunction micromatch(files, patterns, opts) {\n if (!files || !patterns) return [];\n opts = opts || {};\n\n if (typeof opts.cache === 'undefined') {\n opts.cache = true;\n }\n\n if (!Array.isArray(patterns)) {\n return match(files, patterns, opts);\n }\n\n var len = patterns.length, i = 0;\n var omit = [], keep = [];\n\n while (len--) {\n var glob = patterns[i++];\n if (typeof glob === 'string' && glob.charCodeAt(0) === 33 /* ! */) {\n omit.push.apply(omit, match(files, glob.slice(1), opts));\n } else {\n keep.push.apply(keep, match(files, glob, opts));\n }\n }\n return utils.diff(keep, omit);\n}\n\n/**\n * Pass an array of files and a glob pattern as a string.\n *\n * This function is called by the main `micromatch` function\n * If you only need to pass a single pattern you might get\n * very minor speed improvements using this function.\n *\n * @param {Array} `files`\n * @param {Array} `pattern`\n * @param {Object} `options`\n * @return {Array}\n */\n\nfunction match(files, pattern, opts) {\n if (utils.typeOf(files) !== 'string' && !Array.isArray(files)) {\n throw new Error(msg('match', 'files', 'a string or array'));\n }\n\n files = utils.arrayify(files);\n opts = opts || {};\n\n var negate = opts.negate || false;\n var orig = pattern;\n\n if (typeof pattern === 'string') {\n negate = pattern.charAt(0) === '!';\n if (negate) {\n pattern = pattern.slice(1);\n }\n\n // we need to remove the character regardless,\n // so the above logic is still needed\n if (opts.nonegate === true) {\n negate = false;\n }\n }\n\n var _isMatch = matcher(pattern, opts);\n var len = files.length, i = 0;\n var res = [];\n\n while (i < len) {\n var file = files[i++];\n var fp = utils.unixify(file, opts);\n\n if (!_isMatch(fp)) { continue; }\n res.push(fp);\n }\n\n if (res.length === 0) {\n if (opts.failglob === true) {\n throw new Error('micromatch.match() found no matches for: \"' + orig + '\".');\n }\n\n if (opts.nonull || opts.nullglob) {\n res.push(utils.unescapeGlob(orig));\n }\n }\n\n // if `negate` was defined, diff negated files\n if (negate) { res = utils.diff(files, res); }\n\n // if `ignore` was defined, diff ignored filed\n if (opts.ignore && opts.ignore.length) {\n pattern = opts.ignore;\n opts = utils.omit(opts, ['ignore']);\n res = utils.diff(res, micromatch(res, pattern, opts));\n }\n\n if (opts.nodupes) {\n return utils.unique(res);\n }\n return res;\n}\n\n/**\n * Returns a function that takes a glob pattern or array of glob patterns\n * to be used with `Array#filter()`. (Internally this function generates\n * the matching function using the [matcher] method).\n *\n * ```js\n * var fn = mm.filter('[a-c]');\n * ['a', 'b', 'c', 'd', 'e'].filter(fn);\n * //=> ['a', 'b', 'c']\n * ```\n *\n * @param {String|Array} `patterns` Can be a glob or array of globs.\n * @param {Options} `opts` Options to pass to the [matcher] method.\n * @return {Function} Filter function to be passed to `Array#filter()`.\n */\n\nfunction filter(patterns, opts) {\n if (!Array.isArray(patterns) && typeof patterns !== 'string') {\n throw new TypeError(msg('filter', 'patterns', 'a string or array'));\n }\n\n patterns = utils.arrayify(patterns);\n var len = patterns.length, i = 0;\n var patternMatchers = Array(len);\n while (i < len) {\n patternMatchers[i] = matcher(patterns[i++], opts);\n }\n\n return function(fp) {\n if (fp == null) return [];\n var len = patternMatchers.length, i = 0;\n var res = true;\n\n fp = utils.unixify(fp, opts);\n while (i < len) {\n var fn = patternMatchers[i++];\n if (!fn(fp)) {\n res = false;\n break;\n }\n }\n return res;\n };\n}\n\n/**\n * Returns true if the filepath contains the given\n * pattern. Can also return a function for matching.\n *\n * ```js\n * isMatch('foo.md', '*.md', {});\n * //=> true\n *\n * isMatch('*.md', {})('foo.md')\n * //=> true\n * ```\n *\n * @param {String} `fp`\n * @param {String} `pattern`\n * @param {Object} `opts`\n * @return {Boolean}\n */\n\nfunction isMatch(fp, pattern, opts) {\n if (typeof fp !== 'string') {\n throw new TypeError(msg('isMatch', 'filepath', 'a string'));\n }\n\n fp = utils.unixify(fp, opts);\n if (utils.typeOf(pattern) === 'object') {\n return matcher(fp, pattern);\n }\n return matcher(pattern, opts)(fp);\n}\n\n/**\n * Returns true if the filepath matches the\n * given pattern.\n */\n\nfunction contains(fp, pattern, opts) {\n if (typeof fp !== 'string') {\n throw new TypeError(msg('contains', 'pattern', 'a string'));\n }\n\n opts = opts || {};\n opts.contains = (pattern !== '');\n fp = utils.unixify(fp, opts);\n\n if (opts.contains && !utils.isGlob(pattern)) {\n return fp.indexOf(pattern) !== -1;\n }\n return matcher(pattern, opts)(fp);\n}\n\n/**\n * Returns true if a file path matches any of the\n * given patterns.\n *\n * @param {String} `fp` The filepath to test.\n * @param {String|Array} `patterns` Glob patterns to use.\n * @param {Object} `opts` Options to pass to the `matcher()` function.\n * @return {String}\n */\n\nfunction any(fp, patterns, opts) {\n if (!Array.isArray(patterns) && typeof patterns !== 'string') {\n throw new TypeError(msg('any', 'patterns', 'a string or array'));\n }\n\n patterns = utils.arrayify(patterns);\n var len = patterns.length;\n\n fp = utils.unixify(fp, opts);\n while (len--) {\n var isMatch = matcher(patterns[len], opts);\n if (isMatch(fp)) {\n return true;\n }\n }\n return false;\n}\n\n/**\n * Filter the keys of an object with the given `glob` pattern\n * and `options`\n *\n * @param {Object} `object`\n * @param {Pattern} `object`\n * @return {Array}\n */\n\nfunction matchKeys(obj, glob, options) {\n if (utils.typeOf(obj) !== 'object') {\n throw new TypeError(msg('matchKeys', 'first argument', 'an object'));\n }\n\n var fn = matcher(glob, options);\n var res = {};\n\n for (var key in obj) {\n if (obj.hasOwnProperty(key) && fn(key)) {\n res[key] = obj[key];\n }\n }\n return res;\n}\n\n/**\n * Return a function for matching based on the\n * given `pattern` and `options`.\n *\n * @param {String} `pattern`\n * @param {Object} `options`\n * @return {Function}\n */\n\nfunction matcher(pattern, opts) {\n // pattern is a function\n if (typeof pattern === 'function') {\n return pattern;\n }\n // pattern is a regex\n if (pattern instanceof RegExp) {\n return function(fp) {\n return pattern.test(fp);\n };\n }\n\n if (typeof pattern !== 'string') {\n throw new TypeError(msg('matcher', 'pattern', 'a string, regex, or function'));\n }\n\n // strings, all the way down...\n pattern = utils.unixify(pattern, opts);\n\n // pattern is a non-glob string\n if (!utils.isGlob(pattern)) {\n return utils.matchPath(pattern, opts);\n }\n // pattern is a glob string\n var re = makeRe(pattern, opts);\n\n // `matchBase` is defined\n if (opts && opts.matchBase) {\n return utils.hasFilename(re, opts);\n }\n // `matchBase` is not defined\n return function(fp) {\n fp = utils.unixify(fp, opts);\n return re.test(fp);\n };\n}\n\n/**\n * Create and cache a regular expression for matching\n * file paths.\n *\n * If the leading character in the `glob` is `!`, a negation\n * regex is returned.\n *\n * @param {String} `glob`\n * @param {Object} `options`\n * @return {RegExp}\n */\n\nfunction toRegex(glob, options) {\n // clone options to prevent mutating the original object\n var opts = Object.create(options || {});\n var flags = opts.flags || '';\n if (opts.nocase && flags.indexOf('i') === -1) {\n flags += 'i';\n }\n\n var parsed = expand(glob, opts);\n\n // pass in tokens to avoid parsing more than once\n opts.negated = opts.negated || parsed.negated;\n opts.negate = opts.negated;\n glob = wrapGlob(parsed.pattern, opts);\n var re;\n\n try {\n re = new RegExp(glob, flags);\n return re;\n } catch (err) {\n err.reason = 'micromatch invalid regex: (' + re + ')';\n if (opts.strict) throw new SyntaxError(err);\n }\n\n // we're only here if a bad pattern was used and the user\n // passed `options.silent`, so match nothing\n return /$^/;\n}\n\n/**\n * Create the regex to do the matching. If the leading\n * character in the `glob` is `!` a negation regex is returned.\n *\n * @param {String} `glob`\n * @param {Boolean} `negate`\n */\n\nfunction wrapGlob(glob, opts) {\n var prefix = (opts && !opts.contains) ? '^' : '';\n var after = (opts && !opts.contains) ? '$' : '';\n glob = ('(?:' + glob + ')' + after);\n if (opts && opts.negate) {\n return prefix + ('(?!^' + glob + ').*$');\n }\n return prefix + glob;\n}\n\n/**\n * Wrap `toRegex` to memoize the generated regex when\n * the string and options don't change\n */\n\nfunction makeRe(glob, opts) {\n if (utils.typeOf(glob) !== 'string') {\n throw new Error(msg('makeRe', 'glob', 'a string'));\n }\n return utils.cache(toRegex, glob, opts);\n}\n\n/**\n * Make error messages consistent. Follows this format:\n *\n * ```js\n * msg(methodName, argNumber, nativeType);\n * // example:\n * msg('matchKeys', 'first', 'an object');\n * ```\n *\n * @param {String} `method`\n * @param {String} `num`\n * @param {String} `type`\n * @return {String}\n */\n\nfunction msg(method, what, type) {\n return 'micromatch.' + method + '(): ' + what + ' should be ' + type + '.';\n}\n\n/**\n * Public methods\n */\n\n/* eslint no-multi-spaces: 0 */\nmicromatch.any = any;\nmicromatch.braces = micromatch.braceExpand = utils.braces;\nmicromatch.contains = contains;\nmicromatch.expand = expand;\nmicromatch.filter = filter;\nmicromatch.isMatch = isMatch;\nmicromatch.makeRe = makeRe;\nmicromatch.match = match;\nmicromatch.matcher = matcher;\nmicromatch.matchKeys = matchKeys;\n\n/**\n * Expose `micromatch`\n */\n\nmodule.exports = micromatch;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/micromatch/index.js\n ** module id = 255\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/micromatch/index.js?"); + eval("/* WEBPACK VAR INJECTION */(function(process) {exports.alphasort = alphasort\nexports.alphasorti = alphasorti\nexports.setopts = setopts\nexports.ownProp = ownProp\nexports.makeAbs = makeAbs\nexports.finish = finish\nexports.mark = mark\nexports.isIgnored = isIgnored\nexports.childrenIgnored = childrenIgnored\n\nfunction ownProp (obj, field) {\n return Object.prototype.hasOwnProperty.call(obj, field)\n}\n\nvar path = __webpack_require__(149)\nvar minimatch = __webpack_require__(248)\nvar isAbsolute = __webpack_require__(253)\nvar Minimatch = minimatch.Minimatch\n\nfunction alphasorti (a, b) {\n return a.toLowerCase().localeCompare(b.toLowerCase())\n}\n\nfunction alphasort (a, b) {\n return a.localeCompare(b)\n}\n\nfunction setupIgnores (self, options) {\n self.ignore = options.ignore || []\n\n if (!Array.isArray(self.ignore))\n self.ignore = [self.ignore]\n\n if (self.ignore.length) {\n self.ignore = self.ignore.map(ignoreMap)\n }\n}\n\nfunction ignoreMap (pattern) {\n var gmatcher = null\n if (pattern.slice(-3) === '/**') {\n var gpattern = pattern.replace(/(\\/\\*\\*)+$/, '')\n gmatcher = new Minimatch(gpattern)\n }\n\n return {\n matcher: new Minimatch(pattern),\n gmatcher: gmatcher\n }\n}\n\nfunction setopts (self, pattern, options) {\n if (!options)\n options = {}\n\n // base-matching: just use globstar for that.\n if (options.matchBase && -1 === pattern.indexOf(\"/\")) {\n if (options.noglobstar) {\n throw new Error(\"base matching requires globstar\")\n }\n pattern = \"**/\" + pattern\n }\n\n self.silent = !!options.silent\n self.pattern = pattern\n self.strict = options.strict !== false\n self.realpath = !!options.realpath\n self.realpathCache = options.realpathCache || Object.create(null)\n self.follow = !!options.follow\n self.dot = !!options.dot\n self.mark = !!options.mark\n self.nodir = !!options.nodir\n if (self.nodir)\n self.mark = true\n self.sync = !!options.sync\n self.nounique = !!options.nounique\n self.nonull = !!options.nonull\n self.nosort = !!options.nosort\n self.nocase = !!options.nocase\n self.stat = !!options.stat\n self.noprocess = !!options.noprocess\n\n self.maxLength = options.maxLength || Infinity\n self.cache = options.cache || Object.create(null)\n self.statCache = options.statCache || Object.create(null)\n self.symlinks = options.symlinks || Object.create(null)\n\n setupIgnores(self, options)\n\n self.changedCwd = false\n var cwd = process.cwd()\n if (!ownProp(options, \"cwd\"))\n self.cwd = cwd\n else {\n self.cwd = options.cwd\n self.changedCwd = path.resolve(options.cwd) !== cwd\n }\n\n self.root = options.root || path.resolve(self.cwd, \"/\")\n self.root = path.resolve(self.root)\n if (process.platform === \"win32\")\n self.root = self.root.replace(/\\\\/g, \"/\")\n\n self.nomount = !!options.nomount\n\n // disable comments and negation unless the user explicitly\n // passes in false as the option.\n options.nonegate = options.nonegate === false ? false : true\n options.nocomment = options.nocomment === false ? false : true\n deprecationWarning(options)\n\n self.minimatch = new Minimatch(pattern, options)\n self.options = self.minimatch.options\n}\n\n// TODO(isaacs): remove entirely in v6\n// exported to reset in tests\nexports.deprecationWarned\nfunction deprecationWarning(options) {\n if (!options.nonegate || !options.nocomment) {\n if (process.noDeprecation !== true && !exports.deprecationWarned) {\n var msg = 'glob WARNING: comments and negation will be disabled in v6'\n if (process.throwDeprecation)\n throw new Error(msg)\n else if (process.traceDeprecation)\n console.trace(msg)\n else\n console.error(msg)\n\n exports.deprecationWarned = true\n }\n }\n}\n\nfunction finish (self) {\n var nou = self.nounique\n var all = nou ? [] : Object.create(null)\n\n for (var i = 0, l = self.matches.length; i < l; i ++) {\n var matches = self.matches[i]\n if (!matches || Object.keys(matches).length === 0) {\n if (self.nonull) {\n // do like the shell, and spit out the literal glob\n var literal = self.minimatch.globSet[i]\n if (nou)\n all.push(literal)\n else\n all[literal] = true\n }\n } else {\n // had matches\n var m = Object.keys(matches)\n if (nou)\n all.push.apply(all, m)\n else\n m.forEach(function (m) {\n all[m] = true\n })\n }\n }\n\n if (!nou)\n all = Object.keys(all)\n\n if (!self.nosort)\n all = all.sort(self.nocase ? alphasorti : alphasort)\n\n // at *some* point we statted all of these\n if (self.mark) {\n for (var i = 0; i < all.length; i++) {\n all[i] = self._mark(all[i])\n }\n if (self.nodir) {\n all = all.filter(function (e) {\n return !(/\\/$/.test(e))\n })\n }\n }\n\n if (self.ignore.length)\n all = all.filter(function(m) {\n return !isIgnored(self, m)\n })\n\n self.found = all\n}\n\nfunction mark (self, p) {\n var abs = makeAbs(self, p)\n var c = self.cache[abs]\n var m = p\n if (c) {\n var isDir = c === 'DIR' || Array.isArray(c)\n var slash = p.slice(-1) === '/'\n\n if (isDir && !slash)\n m += '/'\n else if (!isDir && slash)\n m = m.slice(0, -1)\n\n if (m !== p) {\n var mabs = makeAbs(self, m)\n self.statCache[mabs] = self.statCache[abs]\n self.cache[mabs] = self.cache[abs]\n }\n }\n\n return m\n}\n\n// lotta situps...\nfunction makeAbs (self, f) {\n var abs = f\n if (f.charAt(0) === '/') {\n abs = path.join(self.root, f)\n } else if (isAbsolute(f) || f === '') {\n abs = f\n } else if (self.changedCwd) {\n abs = path.resolve(self.cwd, f)\n } else {\n abs = path.resolve(f)\n }\n return abs\n}\n\n\n// Return true, if pattern ends with globstar '**', for the accompanying parent directory.\n// Ex:- If node_modules/** is the pattern, add 'node_modules' to ignore list along with it's contents\nfunction isIgnored (self, path) {\n if (!self.ignore.length)\n return false\n\n return self.ignore.some(function(item) {\n return item.matcher.match(path) || !!(item.gmatcher && item.gmatcher.match(path))\n })\n}\n\nfunction childrenIgnored (self, path) {\n if (!self.ignore.length)\n return false\n\n return self.ignore.some(function(item) {\n return !!(item.gmatcher && item.gmatcher.match(path))\n })\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob/common.js\n ** module id = 255\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob/common.js?"); /***/ }, /* 256 */ /***/ function(module, exports, __webpack_require__) { - eval("/*!\n * micromatch \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nvar utils = __webpack_require__(257);\nvar Glob = __webpack_require__(289);\n\n/**\n * Expose `expand`\n */\n\nmodule.exports = expand;\n\n/**\n * Expand a glob pattern to resolve braces and\n * similar patterns before converting to regex.\n *\n * @param {String|Array} `pattern`\n * @param {Array} `files`\n * @param {Options} `opts`\n * @return {Array}\n */\n\nfunction expand(pattern, options) {\n if (typeof pattern !== 'string') {\n throw new TypeError('micromatch.expand(): argument should be a string.');\n }\n\n var glob = new Glob(pattern, options || {});\n var opts = glob.options;\n\n if (!utils.isGlob(pattern)) {\n glob.pattern = glob.pattern.replace(/([\\/.])/g, '\\\\$1');\n return glob;\n }\n\n glob.pattern = glob.pattern.replace(/(\\+)(?!\\()/g, '\\\\$1');\n glob.pattern = glob.pattern.split('$').join('\\\\$');\n\n if (typeof opts.braces !== 'boolean' && typeof opts.nobraces !== 'boolean') {\n opts.braces = true;\n }\n\n if (glob.pattern === '.*') {\n return {\n pattern: '\\\\.' + star,\n tokens: tok,\n options: opts\n };\n }\n\n if (glob.pattern === '*') {\n return {\n pattern: oneStar(opts.dot),\n tokens: tok,\n options: opts\n };\n }\n\n // parse the glob pattern into tokens\n glob.parse();\n var tok = glob.tokens;\n tok.is.negated = opts.negated;\n\n // dotfile handling\n if ((opts.dotfiles === true || tok.is.dotfile) && opts.dot !== false) {\n opts.dotfiles = true;\n opts.dot = true;\n }\n\n if ((opts.dotdirs === true || tok.is.dotdir) && opts.dot !== false) {\n opts.dotdirs = true;\n opts.dot = true;\n }\n\n // check for braces with a dotfile pattern\n if (/[{,]\\./.test(glob.pattern)) {\n opts.makeRe = false;\n opts.dot = true;\n }\n\n if (opts.nonegate !== true) {\n opts.negated = glob.negated;\n }\n\n // if the leading character is a dot or a slash, escape it\n if (glob.pattern.charAt(0) === '.' && glob.pattern.charAt(1) !== '/') {\n glob.pattern = '\\\\' + glob.pattern;\n }\n\n /**\n * Extended globs\n */\n\n // expand braces, e.g `{1..5}`\n glob.track('before braces');\n if (tok.is.braces) {\n glob.braces();\n }\n glob.track('after braces');\n\n // expand extglobs, e.g `foo/!(a|b)`\n glob.track('before extglob');\n if (tok.is.extglob) {\n glob.extglob();\n }\n glob.track('after extglob');\n\n // expand brackets, e.g `[[:alpha:]]`\n glob.track('before brackets');\n if (tok.is.brackets) {\n glob.brackets();\n }\n glob.track('after brackets');\n\n // special patterns\n glob._replace('[!', '[^');\n glob._replace('(?', '(%~');\n glob._replace(/\\[\\]/, '\\\\[\\\\]');\n glob._replace('/[', '/' + (opts.dot ? dotfiles : nodot) + '[', true);\n glob._replace('/?', '/' + (opts.dot ? dotfiles : nodot) + '[^/]', true);\n glob._replace('/.', '/(?=.)\\\\.', true);\n\n // windows drives\n glob._replace(/^(\\w):([\\\\\\/]+?)/gi, '(?=.)$1:$2', true);\n\n // negate slashes in exclusion ranges\n if (glob.pattern.indexOf('[^') !== -1) {\n glob.pattern = negateSlash(glob.pattern);\n }\n\n if (opts.globstar !== false && glob.pattern === '**') {\n glob.pattern = globstar(opts.dot);\n\n } else {\n // '/*/*/*' => '(?:/*){3}'\n glob._replace(/(\\/\\*)+/g, function(match) {\n var len = match.length / 2;\n if (len === 1) { return match; }\n return '(?:\\\\/*){' + len + '}';\n });\n\n glob.pattern = balance(glob.pattern, '[', ']');\n glob.escape(glob.pattern);\n\n // if the pattern has `**`\n if (tok.is.globstar) {\n glob.pattern = collapse(glob.pattern, '/**');\n glob.pattern = collapse(glob.pattern, '**/');\n glob._replace('/**/', '(?:/' + globstar(opts.dot) + '/|/)', true);\n glob._replace(/\\*{2,}/g, '**');\n\n // 'foo/*'\n glob._replace(/(\\w+)\\*(?!\\/)/g, '$1[^/]*?', true);\n glob._replace(/\\*\\*\\/\\*(\\w)/g, globstar(opts.dot) + '\\\\/' + (opts.dot ? dotfiles : nodot) + '[^/]*?$1', true);\n\n if (opts.dot !== true) {\n glob._replace(/\\*\\*\\/(.)/g, '(?:**\\\\/|)$1');\n }\n\n // 'foo/**' or '{**,*}', but not 'foo**'\n if (tok.path.dirname !== '' || /,\\*\\*|\\*\\*,/.test(glob.orig)) {\n glob._replace('**', globstar(opts.dot), true);\n }\n }\n\n // ends with /*\n glob._replace(/\\/\\*$/, '\\\\/' + oneStar(opts.dot), true);\n // ends with *, no slashes\n glob._replace(/(?!\\/)\\*$/, star, true);\n // has 'n*.' (partial wildcard w/ file extension)\n glob._replace(/([^\\/]+)\\*/, '$1' + oneStar(true), true);\n // has '*'\n glob._replace('*', oneStar(opts.dot), true);\n glob._replace('?.', '?\\\\.', true);\n glob._replace('?:', '?:', true);\n\n glob._replace(/\\?+/g, function(match) {\n var len = match.length;\n if (len === 1) {\n return qmark;\n }\n return qmark + '{' + len + '}';\n });\n\n // escape '.abc' => '\\\\.abc'\n glob._replace(/\\.([*\\w]+)/g, '\\\\.$1');\n // fix '[^\\\\\\\\/]'\n glob._replace(/\\[\\^[\\\\\\/]+\\]/g, qmark);\n // '///' => '\\/'\n glob._replace(/\\/+/g, '\\\\/');\n // '\\\\\\\\\\\\' => '\\\\'\n glob._replace(/\\\\{2,}/g, '\\\\');\n }\n\n // unescape previously escaped patterns\n glob.unescape(glob.pattern);\n glob._replace('__UNESC_STAR__', '*');\n\n // escape dots that follow qmarks\n glob._replace('?.', '?\\\\.');\n\n // remove unnecessary slashes in character classes\n glob._replace('[^\\\\/]', qmark);\n\n if (glob.pattern.length > 1) {\n if (/^[\\[?*]/.test(glob.pattern)) {\n // only prepend the string if we don't want to match dotfiles\n glob.pattern = (opts.dot ? dotfiles : nodot) + glob.pattern;\n }\n }\n\n return glob;\n}\n\n/**\n * Collapse repeated character sequences.\n *\n * ```js\n * collapse('a/../../../b', '../');\n * //=> 'a/../b'\n * ```\n *\n * @param {String} `str`\n * @param {String} `ch` Character sequence to collapse\n * @return {String}\n */\n\nfunction collapse(str, ch) {\n var res = str.split(ch);\n var isFirst = res[0] === '';\n var isLast = res[res.length - 1] === '';\n res = res.filter(Boolean);\n if (isFirst) res.unshift('');\n if (isLast) res.push('');\n return res.join(ch);\n}\n\n/**\n * Negate slashes in exclusion ranges, per glob spec:\n *\n * ```js\n * negateSlash('[^foo]');\n * //=> '[^\\\\/foo]'\n * ```\n *\n * @param {String} `str` glob pattern\n * @return {String}\n */\n\nfunction negateSlash(str) {\n return str.replace(/\\[\\^([^\\]]*?)\\]/g, function(match, inner) {\n if (inner.indexOf('/') === -1) {\n inner = '\\\\/' + inner;\n }\n return '[^' + inner + ']';\n });\n}\n\n/**\n * Escape imbalanced braces/bracket. This is a very\n * basic, naive implementation that only does enough\n * to serve the purpose.\n */\n\nfunction balance(str, a, b) {\n var aarr = str.split(a);\n var alen = aarr.join('').length;\n var blen = str.split(b).join('').length;\n\n if (alen !== blen) {\n str = aarr.join('\\\\' + a);\n return str.split(b).join('\\\\' + b);\n }\n return str;\n}\n\n/**\n * Special patterns to be converted to regex.\n * Heuristics are used to simplify patterns\n * and speed up processing.\n */\n\n/* eslint no-multi-spaces: 0 */\nvar qmark = '[^/]';\nvar star = qmark + '*?';\nvar nodot = '(?!\\\\.)(?=.)';\nvar dotfileGlob = '(?:\\\\/|^)\\\\.{1,2}($|\\\\/)';\nvar dotfiles = '(?!' + dotfileGlob + ')(?=.)';\nvar twoStarDot = '(?:(?!' + dotfileGlob + ').)*?';\n\n/**\n * Create a regex for `*`.\n *\n * If `dot` is true, or the pattern does not begin with\n * a leading star, then return the simpler regex.\n */\n\nfunction oneStar(dotfile) {\n return dotfile ? '(?!' + dotfileGlob + ')(?=.)' + star : (nodot + star);\n}\n\nfunction globstar(dotfile) {\n if (dotfile) { return twoStarDot; }\n return '(?:(?!(?:\\\\/|^)\\\\.).)*?';\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/micromatch/lib/expand.js\n ** module id = 256\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/micromatch/lib/expand.js?"); + eval("/* WEBPACK VAR INJECTION */(function(process) {var wrappy = __webpack_require__(257)\nvar reqs = Object.create(null)\nvar once = __webpack_require__(258)\n\nmodule.exports = wrappy(inflight)\n\nfunction inflight (key, cb) {\n if (reqs[key]) {\n reqs[key].push(cb)\n return null\n } else {\n reqs[key] = [cb]\n return makeres(key)\n }\n}\n\nfunction makeres (key) {\n return once(function RES () {\n var cbs = reqs[key]\n var len = cbs.length\n var args = slice(arguments)\n for (var i = 0; i < len; i++) {\n cbs[i].apply(null, args)\n }\n if (cbs.length > len) {\n // added more in the interim.\n // de-zalgo, just in case, but don't call again.\n cbs.splice(0, len)\n process.nextTick(function () {\n RES.apply(null, args)\n })\n } else {\n delete reqs[key]\n }\n })\n}\n\nfunction slice (args) {\n var length = args.length\n var array = []\n\n for (var i = 0; i < length; i++) array[i] = args[i]\n return array\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/inflight/inflight.js\n ** module id = 256\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/inflight/inflight.js?"); /***/ }, /* 257 */ -/***/ function(module, exports, __webpack_require__) { +/***/ function(module, exports) { - eval("/* WEBPACK VAR INJECTION */(function(process) {'use strict';\n\nvar win32 = process && process.platform === 'win32';\nvar path = __webpack_require__(149);\nvar fileRe = __webpack_require__(258);\nvar utils = module.exports;\n\n/**\n * Module dependencies\n */\n\nutils.diff = __webpack_require__(259);\nutils.unique = __webpack_require__(261);\nutils.braces = __webpack_require__(262);\nutils.brackets = __webpack_require__(273);\nutils.extglob = __webpack_require__(274);\nutils.isExtglob = __webpack_require__(275);\nutils.isGlob = __webpack_require__(276);\nutils.typeOf = __webpack_require__(267);\nutils.normalize = __webpack_require__(277);\nutils.omit = __webpack_require__(278);\nutils.parseGlob = __webpack_require__(282);\nutils.cache = __webpack_require__(286);\n\n/**\n * Get the filename of a filepath\n *\n * @param {String} `string`\n * @return {String}\n */\n\nutils.filename = function filename(fp) {\n var seg = fp.match(fileRe());\n return seg && seg[0];\n};\n\n/**\n * Returns a function that returns true if the given\n * pattern is the same as a given `filepath`\n *\n * @param {String} `pattern`\n * @return {Function}\n */\n\nutils.isPath = function isPath(pattern, opts) {\n return function(fp) {\n return pattern === utils.unixify(fp, opts);\n };\n};\n\n/**\n * Returns a function that returns true if the given\n * pattern contains a `filepath`\n *\n * @param {String} `pattern`\n * @return {Function}\n */\n\nutils.hasPath = function hasPath(pattern, opts) {\n return function(fp) {\n return utils.unixify(pattern, opts).indexOf(fp) !== -1;\n };\n};\n\n/**\n * Returns a function that returns true if the given\n * pattern matches or contains a `filepath`\n *\n * @param {String} `pattern`\n * @return {Function}\n */\n\nutils.matchPath = function matchPath(pattern, opts) {\n var fn = (opts && opts.contains)\n ? utils.hasPath(pattern, opts)\n : utils.isPath(pattern, opts);\n return fn;\n};\n\n/**\n * Returns a function that returns true if the given\n * regex matches the `filename` of a file path.\n *\n * @param {RegExp} `re`\n * @return {Boolean}\n */\n\nutils.hasFilename = function hasFilename(re) {\n return function(fp) {\n var name = utils.filename(fp);\n return name && re.test(name);\n };\n};\n\n/**\n * Coerce `val` to an array\n *\n * @param {*} val\n * @return {Array}\n */\n\nutils.arrayify = function arrayify(val) {\n return !Array.isArray(val)\n ? [val]\n : val;\n};\n\n/**\n * Normalize all slashes in a file path or glob pattern to\n * forward slashes.\n */\n\nutils.unixify = function unixify(fp, opts) {\n if (opts && opts.unixify === false) return fp;\n if (opts && opts.unixify === true || win32 || path.sep === '\\\\') {\n return utils.normalize(fp, false);\n }\n if (opts && opts.unescape === true) {\n return fp ? fp.toString().replace(/\\\\(\\w)/g, '$1') : '';\n }\n return fp;\n};\n\n/**\n * Escape/unescape utils\n */\n\nutils.escapePath = function escapePath(fp) {\n return fp.replace(/[\\\\.]/g, '\\\\$&');\n};\n\nutils.unescapeGlob = function unescapeGlob(fp) {\n return fp.replace(/[\\\\\"']/g, '');\n};\n\nutils.escapeRe = function escapeRe(str) {\n return str.replace(/[-[\\\\$*+?.#^\\s{}(|)\\]]/g, '\\\\$&');\n};\n\n/**\n * Expose `utils`\n */\n\nmodule.exports = utils;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/micromatch/lib/utils.js\n ** module id = 257\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/micromatch/lib/utils.js?"); + eval("// Returns a wrapper function that returns a wrapped callback\n// The wrapper function should do some stuff, and return a\n// presumably different callback function.\n// This makes sure that own properties are retained, so that\n// decorations and such are not lost along the way.\nmodule.exports = wrappy\nfunction wrappy (fn, cb) {\n if (fn && cb) return wrappy(fn)(cb)\n\n if (typeof fn !== 'function')\n throw new TypeError('need wrapper function')\n\n Object.keys(fn).forEach(function (k) {\n wrapper[k] = fn[k]\n })\n\n return wrapper\n\n function wrapper() {\n var args = new Array(arguments.length)\n for (var i = 0; i < args.length; i++) {\n args[i] = arguments[i]\n }\n var ret = fn.apply(this, args)\n var cb = args[args.length-1]\n if (typeof ret === 'function' && ret !== cb) {\n Object.keys(cb).forEach(function (k) {\n ret[k] = cb[k]\n })\n }\n return ret\n }\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/wrappy/wrappy.js\n ** module id = 257\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/wrappy/wrappy.js?"); /***/ }, /* 258 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("/*!\n * filename-regex \n *\n * Copyright (c) 2014-2015, Jon Schlinkert\n * Licensed under the MIT license.\n */\n\nmodule.exports = function filenameRegex() {\n return /([^\\\\\\/]+)$/;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/filename-regex/index.js\n ** module id = 258\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/filename-regex/index.js?"); + eval("var wrappy = __webpack_require__(257)\nmodule.exports = wrappy(once)\n\nonce.proto = once(function () {\n Object.defineProperty(Function.prototype, 'once', {\n value: function () {\n return once(this)\n },\n configurable: true\n })\n})\n\nfunction once (fn) {\n var f = function () {\n if (f.called) return f.value\n f.called = true\n return f.value = fn.apply(this, arguments)\n }\n f.called = false\n return f\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/once/once.js\n ** module id = 258\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/once/once.js?"); /***/ }, /* 259 */ /***/ function(module, exports, __webpack_require__) { - eval("/*!\n * arr-diff \n *\n * Copyright (c) 2014 Jon Schlinkert, contributors.\n * Licensed under the MIT License\n */\n\n'use strict';\n\nvar flatten = __webpack_require__(260);\nvar slice = [].slice;\n\n/**\n * Return the difference between the first array and\n * additional arrays.\n *\n * ```js\n * var diff = require('{%= name %}');\n *\n * var a = ['a', 'b', 'c', 'd'];\n * var b = ['b', 'c'];\n *\n * console.log(diff(a, b))\n * //=> ['a', 'd']\n * ```\n *\n * @param {Array} `a`\n * @param {Array} `b`\n * @return {Array}\n * @api public\n */\n\nfunction diff(arr, arrays) {\n var argsLen = arguments.length;\n var len = arr.length, i = -1;\n var res = [], arrays;\n\n if (argsLen === 1) {\n return arr;\n }\n\n if (argsLen > 2) {\n arrays = flatten(slice.call(arguments, 1));\n }\n\n while (++i < len) {\n if (!~arrays.indexOf(arr[i])) {\n res.push(arr[i]);\n }\n }\n return res;\n}\n\n/**\n * Expose `diff`\n */\n\nmodule.exports = diff;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/arr-diff/index.js\n ** module id = 259\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/arr-diff/index.js?"); + eval("/*!\n * micromatch \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nvar expand = __webpack_require__(260);\nvar utils = __webpack_require__(261);\n\n/**\n * The main function. Pass an array of filepaths,\n * and a string or array of glob patterns\n *\n * @param {Array|String} `files`\n * @param {Array|String} `patterns`\n * @param {Object} `opts`\n * @return {Array} Array of matches\n */\n\nfunction micromatch(files, patterns, opts) {\n if (!files || !patterns) return [];\n opts = opts || {};\n\n if (typeof opts.cache === 'undefined') {\n opts.cache = true;\n }\n\n if (!Array.isArray(patterns)) {\n return match(files, patterns, opts);\n }\n\n var len = patterns.length, i = 0;\n var omit = [], keep = [];\n\n while (len--) {\n var glob = patterns[i++];\n if (typeof glob === 'string' && glob.charCodeAt(0) === 33 /* ! */) {\n omit.push.apply(omit, match(files, glob.slice(1), opts));\n } else {\n keep.push.apply(keep, match(files, glob, opts));\n }\n }\n return utils.diff(keep, omit);\n}\n\n/**\n * Pass an array of files and a glob pattern as a string.\n *\n * This function is called by the main `micromatch` function\n * If you only need to pass a single pattern you might get\n * very minor speed improvements using this function.\n *\n * @param {Array} `files`\n * @param {Array} `pattern`\n * @param {Object} `options`\n * @return {Array}\n */\n\nfunction match(files, pattern, opts) {\n if (utils.typeOf(files) !== 'string' && !Array.isArray(files)) {\n throw new Error(msg('match', 'files', 'a string or array'));\n }\n\n files = utils.arrayify(files);\n opts = opts || {};\n\n var negate = opts.negate || false;\n var orig = pattern;\n\n if (typeof pattern === 'string') {\n negate = pattern.charAt(0) === '!';\n if (negate) {\n pattern = pattern.slice(1);\n }\n\n // we need to remove the character regardless,\n // so the above logic is still needed\n if (opts.nonegate === true) {\n negate = false;\n }\n }\n\n var _isMatch = matcher(pattern, opts);\n var len = files.length, i = 0;\n var res = [];\n\n while (i < len) {\n var file = files[i++];\n var fp = utils.unixify(file, opts);\n\n if (!_isMatch(fp)) { continue; }\n res.push(fp);\n }\n\n if (res.length === 0) {\n if (opts.failglob === true) {\n throw new Error('micromatch.match() found no matches for: \"' + orig + '\".');\n }\n\n if (opts.nonull || opts.nullglob) {\n res.push(utils.unescapeGlob(orig));\n }\n }\n\n // if `negate` was defined, diff negated files\n if (negate) { res = utils.diff(files, res); }\n\n // if `ignore` was defined, diff ignored filed\n if (opts.ignore && opts.ignore.length) {\n pattern = opts.ignore;\n opts = utils.omit(opts, ['ignore']);\n res = utils.diff(res, micromatch(res, pattern, opts));\n }\n\n if (opts.nodupes) {\n return utils.unique(res);\n }\n return res;\n}\n\n/**\n * Returns a function that takes a glob pattern or array of glob patterns\n * to be used with `Array#filter()`. (Internally this function generates\n * the matching function using the [matcher] method).\n *\n * ```js\n * var fn = mm.filter('[a-c]');\n * ['a', 'b', 'c', 'd', 'e'].filter(fn);\n * //=> ['a', 'b', 'c']\n * ```\n *\n * @param {String|Array} `patterns` Can be a glob or array of globs.\n * @param {Options} `opts` Options to pass to the [matcher] method.\n * @return {Function} Filter function to be passed to `Array#filter()`.\n */\n\nfunction filter(patterns, opts) {\n if (!Array.isArray(patterns) && typeof patterns !== 'string') {\n throw new TypeError(msg('filter', 'patterns', 'a string or array'));\n }\n\n patterns = utils.arrayify(patterns);\n var len = patterns.length, i = 0;\n var patternMatchers = Array(len);\n while (i < len) {\n patternMatchers[i] = matcher(patterns[i++], opts);\n }\n\n return function(fp) {\n if (fp == null) return [];\n var len = patternMatchers.length, i = 0;\n var res = true;\n\n fp = utils.unixify(fp, opts);\n while (i < len) {\n var fn = patternMatchers[i++];\n if (!fn(fp)) {\n res = false;\n break;\n }\n }\n return res;\n };\n}\n\n/**\n * Returns true if the filepath contains the given\n * pattern. Can also return a function for matching.\n *\n * ```js\n * isMatch('foo.md', '*.md', {});\n * //=> true\n *\n * isMatch('*.md', {})('foo.md')\n * //=> true\n * ```\n *\n * @param {String} `fp`\n * @param {String} `pattern`\n * @param {Object} `opts`\n * @return {Boolean}\n */\n\nfunction isMatch(fp, pattern, opts) {\n if (typeof fp !== 'string') {\n throw new TypeError(msg('isMatch', 'filepath', 'a string'));\n }\n\n fp = utils.unixify(fp, opts);\n if (utils.typeOf(pattern) === 'object') {\n return matcher(fp, pattern);\n }\n return matcher(pattern, opts)(fp);\n}\n\n/**\n * Returns true if the filepath matches the\n * given pattern.\n */\n\nfunction contains(fp, pattern, opts) {\n if (typeof fp !== 'string') {\n throw new TypeError(msg('contains', 'pattern', 'a string'));\n }\n\n opts = opts || {};\n opts.contains = (pattern !== '');\n fp = utils.unixify(fp, opts);\n\n if (opts.contains && !utils.isGlob(pattern)) {\n return fp.indexOf(pattern) !== -1;\n }\n return matcher(pattern, opts)(fp);\n}\n\n/**\n * Returns true if a file path matches any of the\n * given patterns.\n *\n * @param {String} `fp` The filepath to test.\n * @param {String|Array} `patterns` Glob patterns to use.\n * @param {Object} `opts` Options to pass to the `matcher()` function.\n * @return {String}\n */\n\nfunction any(fp, patterns, opts) {\n if (!Array.isArray(patterns) && typeof patterns !== 'string') {\n throw new TypeError(msg('any', 'patterns', 'a string or array'));\n }\n\n patterns = utils.arrayify(patterns);\n var len = patterns.length;\n\n fp = utils.unixify(fp, opts);\n while (len--) {\n var isMatch = matcher(patterns[len], opts);\n if (isMatch(fp)) {\n return true;\n }\n }\n return false;\n}\n\n/**\n * Filter the keys of an object with the given `glob` pattern\n * and `options`\n *\n * @param {Object} `object`\n * @param {Pattern} `object`\n * @return {Array}\n */\n\nfunction matchKeys(obj, glob, options) {\n if (utils.typeOf(obj) !== 'object') {\n throw new TypeError(msg('matchKeys', 'first argument', 'an object'));\n }\n\n var fn = matcher(glob, options);\n var res = {};\n\n for (var key in obj) {\n if (obj.hasOwnProperty(key) && fn(key)) {\n res[key] = obj[key];\n }\n }\n return res;\n}\n\n/**\n * Return a function for matching based on the\n * given `pattern` and `options`.\n *\n * @param {String} `pattern`\n * @param {Object} `options`\n * @return {Function}\n */\n\nfunction matcher(pattern, opts) {\n // pattern is a function\n if (typeof pattern === 'function') {\n return pattern;\n }\n // pattern is a regex\n if (pattern instanceof RegExp) {\n return function(fp) {\n return pattern.test(fp);\n };\n }\n\n if (typeof pattern !== 'string') {\n throw new TypeError(msg('matcher', 'pattern', 'a string, regex, or function'));\n }\n\n // strings, all the way down...\n pattern = utils.unixify(pattern, opts);\n\n // pattern is a non-glob string\n if (!utils.isGlob(pattern)) {\n return utils.matchPath(pattern, opts);\n }\n // pattern is a glob string\n var re = makeRe(pattern, opts);\n\n // `matchBase` is defined\n if (opts && opts.matchBase) {\n return utils.hasFilename(re, opts);\n }\n // `matchBase` is not defined\n return function(fp) {\n fp = utils.unixify(fp, opts);\n return re.test(fp);\n };\n}\n\n/**\n * Create and cache a regular expression for matching\n * file paths.\n *\n * If the leading character in the `glob` is `!`, a negation\n * regex is returned.\n *\n * @param {String} `glob`\n * @param {Object} `options`\n * @return {RegExp}\n */\n\nfunction toRegex(glob, options) {\n // clone options to prevent mutating the original object\n var opts = Object.create(options || {});\n var flags = opts.flags || '';\n if (opts.nocase && flags.indexOf('i') === -1) {\n flags += 'i';\n }\n\n var parsed = expand(glob, opts);\n\n // pass in tokens to avoid parsing more than once\n opts.negated = opts.negated || parsed.negated;\n opts.negate = opts.negated;\n glob = wrapGlob(parsed.pattern, opts);\n var re;\n\n try {\n re = new RegExp(glob, flags);\n return re;\n } catch (err) {\n err.reason = 'micromatch invalid regex: (' + re + ')';\n if (opts.strict) throw new SyntaxError(err);\n }\n\n // we're only here if a bad pattern was used and the user\n // passed `options.silent`, so match nothing\n return /$^/;\n}\n\n/**\n * Create the regex to do the matching. If the leading\n * character in the `glob` is `!` a negation regex is returned.\n *\n * @param {String} `glob`\n * @param {Boolean} `negate`\n */\n\nfunction wrapGlob(glob, opts) {\n var prefix = (opts && !opts.contains) ? '^' : '';\n var after = (opts && !opts.contains) ? '$' : '';\n glob = ('(?:' + glob + ')' + after);\n if (opts && opts.negate) {\n return prefix + ('(?!^' + glob + ').*$');\n }\n return prefix + glob;\n}\n\n/**\n * Wrap `toRegex` to memoize the generated regex when\n * the string and options don't change\n */\n\nfunction makeRe(glob, opts) {\n if (utils.typeOf(glob) !== 'string') {\n throw new Error(msg('makeRe', 'glob', 'a string'));\n }\n return utils.cache(toRegex, glob, opts);\n}\n\n/**\n * Make error messages consistent. Follows this format:\n *\n * ```js\n * msg(methodName, argNumber, nativeType);\n * // example:\n * msg('matchKeys', 'first', 'an object');\n * ```\n *\n * @param {String} `method`\n * @param {String} `num`\n * @param {String} `type`\n * @return {String}\n */\n\nfunction msg(method, what, type) {\n return 'micromatch.' + method + '(): ' + what + ' should be ' + type + '.';\n}\n\n/**\n * Public methods\n */\n\n/* eslint no-multi-spaces: 0 */\nmicromatch.any = any;\nmicromatch.braces = micromatch.braceExpand = utils.braces;\nmicromatch.contains = contains;\nmicromatch.expand = expand;\nmicromatch.filter = filter;\nmicromatch.isMatch = isMatch;\nmicromatch.makeRe = makeRe;\nmicromatch.match = match;\nmicromatch.matcher = matcher;\nmicromatch.matchKeys = matchKeys;\n\n/**\n * Expose `micromatch`\n */\n\nmodule.exports = micromatch;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/micromatch/index.js\n ** module id = 259\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/micromatch/index.js?"); /***/ }, /* 260 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("/*!\n * arr-flatten \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nmodule.exports = function flatten(arr) {\n return flat(arr, []);\n};\n\nfunction flat(arr, res) {\n var len = arr.length;\n var i = -1;\n\n while (len--) {\n var cur = arr[++i];\n if (Array.isArray(cur)) {\n flat(cur, res);\n } else {\n res.push(cur);\n }\n }\n return res;\n}\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/arr-flatten/index.js\n ** module id = 260\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/arr-flatten/index.js?"); + eval("/*!\n * micromatch \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nvar utils = __webpack_require__(261);\nvar Glob = __webpack_require__(293);\n\n/**\n * Expose `expand`\n */\n\nmodule.exports = expand;\n\n/**\n * Expand a glob pattern to resolve braces and\n * similar patterns before converting to regex.\n *\n * @param {String|Array} `pattern`\n * @param {Array} `files`\n * @param {Options} `opts`\n * @return {Array}\n */\n\nfunction expand(pattern, options) {\n if (typeof pattern !== 'string') {\n throw new TypeError('micromatch.expand(): argument should be a string.');\n }\n\n var glob = new Glob(pattern, options || {});\n var opts = glob.options;\n\n if (!utils.isGlob(pattern)) {\n glob.pattern = glob.pattern.replace(/([\\/.])/g, '\\\\$1');\n return glob;\n }\n\n glob.pattern = glob.pattern.replace(/(\\+)(?!\\()/g, '\\\\$1');\n glob.pattern = glob.pattern.split('$').join('\\\\$');\n\n if (typeof opts.braces !== 'boolean' && typeof opts.nobraces !== 'boolean') {\n opts.braces = true;\n }\n\n if (glob.pattern === '.*') {\n return {\n pattern: '\\\\.' + star,\n tokens: tok,\n options: opts\n };\n }\n\n if (glob.pattern === '*') {\n return {\n pattern: oneStar(opts.dot),\n tokens: tok,\n options: opts\n };\n }\n\n // parse the glob pattern into tokens\n glob.parse();\n var tok = glob.tokens;\n tok.is.negated = opts.negated;\n\n // dotfile handling\n if ((opts.dotfiles === true || tok.is.dotfile) && opts.dot !== false) {\n opts.dotfiles = true;\n opts.dot = true;\n }\n\n if ((opts.dotdirs === true || tok.is.dotdir) && opts.dot !== false) {\n opts.dotdirs = true;\n opts.dot = true;\n }\n\n // check for braces with a dotfile pattern\n if (/[{,]\\./.test(glob.pattern)) {\n opts.makeRe = false;\n opts.dot = true;\n }\n\n if (opts.nonegate !== true) {\n opts.negated = glob.negated;\n }\n\n // if the leading character is a dot or a slash, escape it\n if (glob.pattern.charAt(0) === '.' && glob.pattern.charAt(1) !== '/') {\n glob.pattern = '\\\\' + glob.pattern;\n }\n\n /**\n * Extended globs\n */\n\n // expand braces, e.g `{1..5}`\n glob.track('before braces');\n if (tok.is.braces) {\n glob.braces();\n }\n glob.track('after braces');\n\n // expand extglobs, e.g `foo/!(a|b)`\n glob.track('before extglob');\n if (tok.is.extglob) {\n glob.extglob();\n }\n glob.track('after extglob');\n\n // expand brackets, e.g `[[:alpha:]]`\n glob.track('before brackets');\n if (tok.is.brackets) {\n glob.brackets();\n }\n glob.track('after brackets');\n\n // special patterns\n glob._replace('[!', '[^');\n glob._replace('(?', '(%~');\n glob._replace(/\\[\\]/, '\\\\[\\\\]');\n glob._replace('/[', '/' + (opts.dot ? dotfiles : nodot) + '[', true);\n glob._replace('/?', '/' + (opts.dot ? dotfiles : nodot) + '[^/]', true);\n glob._replace('/.', '/(?=.)\\\\.', true);\n\n // windows drives\n glob._replace(/^(\\w):([\\\\\\/]+?)/gi, '(?=.)$1:$2', true);\n\n // negate slashes in exclusion ranges\n if (glob.pattern.indexOf('[^') !== -1) {\n glob.pattern = negateSlash(glob.pattern);\n }\n\n if (opts.globstar !== false && glob.pattern === '**') {\n glob.pattern = globstar(opts.dot);\n\n } else {\n // '/*/*/*' => '(?:/*){3}'\n glob._replace(/(\\/\\*)+/g, function(match) {\n var len = match.length / 2;\n if (len === 1) { return match; }\n return '(?:\\\\/*){' + len + '}';\n });\n\n glob.pattern = balance(glob.pattern, '[', ']');\n glob.escape(glob.pattern);\n\n // if the pattern has `**`\n if (tok.is.globstar) {\n glob.pattern = collapse(glob.pattern, '/**');\n glob.pattern = collapse(glob.pattern, '**/');\n glob._replace('/**/', '(?:/' + globstar(opts.dot) + '/|/)', true);\n glob._replace(/\\*{2,}/g, '**');\n\n // 'foo/*'\n glob._replace(/(\\w+)\\*(?!\\/)/g, '$1[^/]*?', true);\n glob._replace(/\\*\\*\\/\\*(\\w)/g, globstar(opts.dot) + '\\\\/' + (opts.dot ? dotfiles : nodot) + '[^/]*?$1', true);\n\n if (opts.dot !== true) {\n glob._replace(/\\*\\*\\/(.)/g, '(?:**\\\\/|)$1');\n }\n\n // 'foo/**' or '{**,*}', but not 'foo**'\n if (tok.path.dirname !== '' || /,\\*\\*|\\*\\*,/.test(glob.orig)) {\n glob._replace('**', globstar(opts.dot), true);\n }\n }\n\n // ends with /*\n glob._replace(/\\/\\*$/, '\\\\/' + oneStar(opts.dot), true);\n // ends with *, no slashes\n glob._replace(/(?!\\/)\\*$/, star, true);\n // has 'n*.' (partial wildcard w/ file extension)\n glob._replace(/([^\\/]+)\\*/, '$1' + oneStar(true), true);\n // has '*'\n glob._replace('*', oneStar(opts.dot), true);\n glob._replace('?.', '?\\\\.', true);\n glob._replace('?:', '?:', true);\n\n glob._replace(/\\?+/g, function(match) {\n var len = match.length;\n if (len === 1) {\n return qmark;\n }\n return qmark + '{' + len + '}';\n });\n\n // escape '.abc' => '\\\\.abc'\n glob._replace(/\\.([*\\w]+)/g, '\\\\.$1');\n // fix '[^\\\\\\\\/]'\n glob._replace(/\\[\\^[\\\\\\/]+\\]/g, qmark);\n // '///' => '\\/'\n glob._replace(/\\/+/g, '\\\\/');\n // '\\\\\\\\\\\\' => '\\\\'\n glob._replace(/\\\\{2,}/g, '\\\\');\n }\n\n // unescape previously escaped patterns\n glob.unescape(glob.pattern);\n glob._replace('__UNESC_STAR__', '*');\n\n // escape dots that follow qmarks\n glob._replace('?.', '?\\\\.');\n\n // remove unnecessary slashes in character classes\n glob._replace('[^\\\\/]', qmark);\n\n if (glob.pattern.length > 1) {\n if (/^[\\[?*]/.test(glob.pattern)) {\n // only prepend the string if we don't want to match dotfiles\n glob.pattern = (opts.dot ? dotfiles : nodot) + glob.pattern;\n }\n }\n\n return glob;\n}\n\n/**\n * Collapse repeated character sequences.\n *\n * ```js\n * collapse('a/../../../b', '../');\n * //=> 'a/../b'\n * ```\n *\n * @param {String} `str`\n * @param {String} `ch` Character sequence to collapse\n * @return {String}\n */\n\nfunction collapse(str, ch) {\n var res = str.split(ch);\n var isFirst = res[0] === '';\n var isLast = res[res.length - 1] === '';\n res = res.filter(Boolean);\n if (isFirst) res.unshift('');\n if (isLast) res.push('');\n return res.join(ch);\n}\n\n/**\n * Negate slashes in exclusion ranges, per glob spec:\n *\n * ```js\n * negateSlash('[^foo]');\n * //=> '[^\\\\/foo]'\n * ```\n *\n * @param {String} `str` glob pattern\n * @return {String}\n */\n\nfunction negateSlash(str) {\n return str.replace(/\\[\\^([^\\]]*?)\\]/g, function(match, inner) {\n if (inner.indexOf('/') === -1) {\n inner = '\\\\/' + inner;\n }\n return '[^' + inner + ']';\n });\n}\n\n/**\n * Escape imbalanced braces/bracket. This is a very\n * basic, naive implementation that only does enough\n * to serve the purpose.\n */\n\nfunction balance(str, a, b) {\n var aarr = str.split(a);\n var alen = aarr.join('').length;\n var blen = str.split(b).join('').length;\n\n if (alen !== blen) {\n str = aarr.join('\\\\' + a);\n return str.split(b).join('\\\\' + b);\n }\n return str;\n}\n\n/**\n * Special patterns to be converted to regex.\n * Heuristics are used to simplify patterns\n * and speed up processing.\n */\n\n/* eslint no-multi-spaces: 0 */\nvar qmark = '[^/]';\nvar star = qmark + '*?';\nvar nodot = '(?!\\\\.)(?=.)';\nvar dotfileGlob = '(?:\\\\/|^)\\\\.{1,2}($|\\\\/)';\nvar dotfiles = '(?!' + dotfileGlob + ')(?=.)';\nvar twoStarDot = '(?:(?!' + dotfileGlob + ').)*?';\n\n/**\n * Create a regex for `*`.\n *\n * If `dot` is true, or the pattern does not begin with\n * a leading star, then return the simpler regex.\n */\n\nfunction oneStar(dotfile) {\n return dotfile ? '(?!' + dotfileGlob + ')(?=.)' + star : (nodot + star);\n}\n\nfunction globstar(dotfile) {\n if (dotfile) { return twoStarDot; }\n return '(?:(?!(?:\\\\/|^)\\\\.).)*?';\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/micromatch/lib/expand.js\n ** module id = 260\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/micromatch/lib/expand.js?"); /***/ }, /* 261 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("/*!\n * array-unique \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nmodule.exports = function unique(arr) {\n if (!Array.isArray(arr)) {\n throw new TypeError('array-unique expects an array.');\n }\n\n var len = arr.length;\n var i = -1;\n\n while (i++ < len) {\n var j = i + 1;\n\n for (; j < arr.length; ++j) {\n if (arr[i] === arr[j]) {\n arr.splice(j--, 1);\n }\n }\n }\n return arr;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/array-unique/index.js\n ** module id = 261\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/array-unique/index.js?"); + eval("/* WEBPACK VAR INJECTION */(function(process) {'use strict';\n\nvar win32 = process && process.platform === 'win32';\nvar path = __webpack_require__(149);\nvar fileRe = __webpack_require__(262);\nvar utils = module.exports;\n\n/**\n * Module dependencies\n */\n\nutils.diff = __webpack_require__(263);\nutils.unique = __webpack_require__(265);\nutils.braces = __webpack_require__(266);\nutils.brackets = __webpack_require__(277);\nutils.extglob = __webpack_require__(278);\nutils.isExtglob = __webpack_require__(279);\nutils.isGlob = __webpack_require__(280);\nutils.typeOf = __webpack_require__(271);\nutils.normalize = __webpack_require__(281);\nutils.omit = __webpack_require__(282);\nutils.parseGlob = __webpack_require__(286);\nutils.cache = __webpack_require__(290);\n\n/**\n * Get the filename of a filepath\n *\n * @param {String} `string`\n * @return {String}\n */\n\nutils.filename = function filename(fp) {\n var seg = fp.match(fileRe());\n return seg && seg[0];\n};\n\n/**\n * Returns a function that returns true if the given\n * pattern is the same as a given `filepath`\n *\n * @param {String} `pattern`\n * @return {Function}\n */\n\nutils.isPath = function isPath(pattern, opts) {\n return function(fp) {\n return pattern === utils.unixify(fp, opts);\n };\n};\n\n/**\n * Returns a function that returns true if the given\n * pattern contains a `filepath`\n *\n * @param {String} `pattern`\n * @return {Function}\n */\n\nutils.hasPath = function hasPath(pattern, opts) {\n return function(fp) {\n return utils.unixify(pattern, opts).indexOf(fp) !== -1;\n };\n};\n\n/**\n * Returns a function that returns true if the given\n * pattern matches or contains a `filepath`\n *\n * @param {String} `pattern`\n * @return {Function}\n */\n\nutils.matchPath = function matchPath(pattern, opts) {\n var fn = (opts && opts.contains)\n ? utils.hasPath(pattern, opts)\n : utils.isPath(pattern, opts);\n return fn;\n};\n\n/**\n * Returns a function that returns true if the given\n * regex matches the `filename` of a file path.\n *\n * @param {RegExp} `re`\n * @return {Boolean}\n */\n\nutils.hasFilename = function hasFilename(re) {\n return function(fp) {\n var name = utils.filename(fp);\n return name && re.test(name);\n };\n};\n\n/**\n * Coerce `val` to an array\n *\n * @param {*} val\n * @return {Array}\n */\n\nutils.arrayify = function arrayify(val) {\n return !Array.isArray(val)\n ? [val]\n : val;\n};\n\n/**\n * Normalize all slashes in a file path or glob pattern to\n * forward slashes.\n */\n\nutils.unixify = function unixify(fp, opts) {\n if (opts && opts.unixify === false) return fp;\n if (opts && opts.unixify === true || win32 || path.sep === '\\\\') {\n return utils.normalize(fp, false);\n }\n if (opts && opts.unescape === true) {\n return fp ? fp.toString().replace(/\\\\(\\w)/g, '$1') : '';\n }\n return fp;\n};\n\n/**\n * Escape/unescape utils\n */\n\nutils.escapePath = function escapePath(fp) {\n return fp.replace(/[\\\\.]/g, '\\\\$&');\n};\n\nutils.unescapeGlob = function unescapeGlob(fp) {\n return fp.replace(/[\\\\\"']/g, '');\n};\n\nutils.escapeRe = function escapeRe(str) {\n return str.replace(/[-[\\\\$*+?.#^\\s{}(|)\\]]/g, '\\\\$&');\n};\n\n/**\n * Expose `utils`\n */\n\nmodule.exports = utils;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/micromatch/lib/utils.js\n ** module id = 261\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/micromatch/lib/utils.js?"); /***/ }, /* 262 */ -/***/ function(module, exports, __webpack_require__) { +/***/ function(module, exports) { - eval("/*!\n * braces \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT license.\n */\n\n'use strict';\n\n/**\n * Module dependencies\n */\n\nvar expand = __webpack_require__(263);\nvar repeat = __webpack_require__(271);\nvar tokens = __webpack_require__(272);\n\n/**\n * Expose `braces`\n */\n\nmodule.exports = function (str, options) {\n if (typeof str !== 'string') {\n throw new Error('braces expects a string');\n }\n return braces(str, options);\n};\n\n/**\n * Expand `{foo,bar}` or `{1..5}` braces in the\n * given `string`.\n *\n * @param {String} `str`\n * @param {Array} `arr`\n * @param {Object} `options`\n * @return {Array}\n */\n\nfunction braces(str, arr, options) {\n if (str === '') {\n return [];\n }\n\n if (!Array.isArray(arr)) {\n options = arr;\n arr = [];\n }\n\n var opts = options || {};\n arr = arr || [];\n\n if (typeof opts.nodupes === 'undefined') {\n opts.nodupes = true;\n }\n\n var fn = opts.fn;\n var es6;\n\n if (typeof opts === 'function') {\n fn = opts;\n opts = {};\n }\n\n if (!(patternRe instanceof RegExp)) {\n patternRe = patternRegex();\n }\n\n var matches = str.match(patternRe) || [];\n var m = matches[0];\n\n switch(m) {\n case '\\\\,':\n return escapeCommas(str, arr, opts);\n case '\\\\.':\n return escapeDots(str, arr, opts);\n case '\\/.':\n return escapePaths(str, arr, opts);\n case ' ':\n return splitWhitespace(str);\n case '{,}':\n return exponential(str, opts, braces);\n case '{}':\n return emptyBraces(str, arr, opts);\n case '\\\\{':\n case '\\\\}':\n return escapeBraces(str, arr, opts);\n case '${':\n if (!/\\{[^{]+\\{/.test(str)) {\n return arr.concat(str);\n } else {\n es6 = true;\n str = tokens.before(str, es6Regex());\n }\n }\n\n if (!(braceRe instanceof RegExp)) {\n braceRe = braceRegex();\n }\n\n var match = braceRe.exec(str);\n if (match == null) {\n return [str];\n }\n\n var outter = match[1];\n var inner = match[2];\n if (inner === '') { return [str]; }\n\n var segs, segsLength;\n\n if (inner.indexOf('..') !== -1) {\n segs = expand(inner, opts, fn) || inner.split(',');\n segsLength = segs.length;\n\n } else if (inner[0] === '\"' || inner[0] === '\\'') {\n return arr.concat(str.split(/['\"]/).join(''));\n\n } else {\n segs = inner.split(',');\n if (opts.makeRe) {\n return braces(str.replace(outter, wrap(segs, '|')), opts);\n }\n\n segsLength = segs.length;\n if (segsLength === 1 && opts.bash) {\n segs[0] = wrap(segs[0], '\\\\');\n }\n }\n\n var len = segs.length;\n var i = 0, val;\n\n while (len--) {\n var path = segs[i++];\n\n if (/(\\.[^.\\/])/.test(path)) {\n if (segsLength > 1) {\n return segs;\n } else {\n return [str];\n }\n }\n\n val = splice(str, outter, path);\n\n if (/\\{[^{}]+?\\}/.test(val)) {\n arr = braces(val, arr, opts);\n } else if (val !== '') {\n if (opts.nodupes && arr.indexOf(val) !== -1) { continue; }\n arr.push(es6 ? tokens.after(val) : val);\n }\n }\n\n if (opts.strict) { return filter(arr, filterEmpty); }\n return arr;\n}\n\n/**\n * Expand exponential ranges\n *\n * `a{,}{,}` => ['a', 'a', 'a', 'a']\n */\n\nfunction exponential(str, options, fn) {\n if (typeof options === 'function') {\n fn = options;\n options = null;\n }\n\n var opts = options || {};\n var esc = '__ESC_EXP__';\n var exp = 0;\n var res;\n\n var parts = str.split('{,}');\n if (opts.nodupes) {\n return fn(parts.join(''), opts);\n }\n\n exp = parts.length - 1;\n res = fn(parts.join(esc), opts);\n var len = res.length;\n var arr = [];\n var i = 0;\n\n while (len--) {\n var ele = res[i++];\n var idx = ele.indexOf(esc);\n\n if (idx === -1) {\n arr.push(ele);\n\n } else {\n ele = ele.split('__ESC_EXP__').join('');\n if (!!ele && opts.nodupes !== false) {\n arr.push(ele);\n\n } else {\n var num = Math.pow(2, exp);\n arr.push.apply(arr, repeat(ele, num));\n }\n }\n }\n return arr;\n}\n\n/**\n * Wrap a value with parens, brackets or braces,\n * based on the given character/separator.\n *\n * @param {String|Array} `val`\n * @param {String} `ch`\n * @return {String}\n */\n\nfunction wrap(val, ch) {\n if (ch === '|') {\n return '(' + val.join(ch) + ')';\n }\n if (ch === ',') {\n return '{' + val.join(ch) + '}';\n }\n if (ch === '-') {\n return '[' + val.join(ch) + ']';\n }\n if (ch === '\\\\') {\n return '\\\\{' + val + '\\\\}';\n }\n}\n\n/**\n * Handle empty braces: `{}`\n */\n\nfunction emptyBraces(str, arr, opts) {\n return braces(str.split('{}').join('\\\\{\\\\}'), arr, opts);\n}\n\n/**\n * Filter out empty-ish values\n */\n\nfunction filterEmpty(ele) {\n return !!ele && ele !== '\\\\';\n}\n\n/**\n * Handle patterns with whitespace\n */\n\nfunction splitWhitespace(str) {\n var segs = str.split(' ');\n var len = segs.length;\n var res = [];\n var i = 0;\n\n while (len--) {\n res.push.apply(res, braces(segs[i++]));\n }\n return res;\n}\n\n/**\n * Handle escaped braces: `\\\\{foo,bar}`\n */\n\nfunction escapeBraces(str, arr, opts) {\n if (!/\\{[^{]+\\{/.test(str)) {\n return arr.concat(str.split('\\\\').join(''));\n } else {\n str = str.split('\\\\{').join('__LT_BRACE__');\n str = str.split('\\\\}').join('__RT_BRACE__');\n return map(braces(str, arr, opts), function (ele) {\n ele = ele.split('__LT_BRACE__').join('{');\n return ele.split('__RT_BRACE__').join('}');\n });\n }\n}\n\n/**\n * Handle escaped dots: `{1\\\\.2}`\n */\n\nfunction escapeDots(str, arr, opts) {\n if (!/[^\\\\]\\..+\\\\\\./.test(str)) {\n return arr.concat(str.split('\\\\').join(''));\n } else {\n str = str.split('\\\\.').join('__ESC_DOT__');\n return map(braces(str, arr, opts), function (ele) {\n return ele.split('__ESC_DOT__').join('.');\n });\n }\n}\n\n/**\n * Handle escaped dots: `{1\\\\.2}`\n */\n\nfunction escapePaths(str, arr, opts) {\n str = str.split('\\/.').join('__ESC_PATH__');\n return map(braces(str, arr, opts), function (ele) {\n return ele.split('__ESC_PATH__').join('\\/.');\n });\n}\n\n/**\n * Handle escaped commas: `{a\\\\,b}`\n */\n\nfunction escapeCommas(str, arr, opts) {\n if (!/\\w,/.test(str)) {\n return arr.concat(str.split('\\\\').join(''));\n } else {\n str = str.split('\\\\,').join('__ESC_COMMA__');\n return map(braces(str, arr, opts), function (ele) {\n return ele.split('__ESC_COMMA__').join(',');\n });\n }\n}\n\n/**\n * Regex for common patterns\n */\n\nfunction patternRegex() {\n return /\\$\\{|[ \\t]|{}|{,}|\\\\,(?=.*[{}])|\\/\\.(?=.*[{}])|\\\\\\.(?={)|\\\\{|\\\\}/;\n}\n\n/**\n * Braces regex.\n */\n\nfunction braceRegex() {\n return /.*(\\\\?\\{([^}]+)\\})/;\n}\n\n/**\n * es6 delimiter regex.\n */\n\nfunction es6Regex() {\n return /\\$\\{([^}]+)\\}/;\n}\n\nvar braceRe;\nvar patternRe;\n\n/**\n * Faster alternative to `String.replace()` when the\n * index of the token to be replaces can't be supplied\n */\n\nfunction splice(str, token, replacement) {\n var i = str.indexOf(token);\n return str.substr(0, i) + replacement\n + str.substr(i + token.length);\n}\n\n/**\n * Fast array map\n */\n\nfunction map(arr, fn) {\n if (arr == null) {\n return [];\n }\n\n var len = arr.length;\n var res = new Array(len);\n var i = -1;\n\n while (++i < len) {\n res[i] = fn(arr[i], i, arr);\n }\n\n return res;\n}\n\n/**\n * Fast array filter\n */\n\nfunction filter(arr, cb) {\n if (arr == null) return [];\n if (typeof cb !== 'function') {\n throw new TypeError('braces: filter expects a callback function.');\n }\n\n var len = arr.length;\n var res = arr.slice();\n var i = 0;\n\n while (len--) {\n if (!cb(arr[len], i++)) {\n res.splice(len, 1);\n }\n }\n return res;\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/braces/index.js\n ** module id = 262\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/braces/index.js?"); + eval("/*!\n * filename-regex \n *\n * Copyright (c) 2014-2015, Jon Schlinkert\n * Licensed under the MIT license.\n */\n\nmodule.exports = function filenameRegex() {\n return /([^\\\\\\/]+)$/;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/filename-regex/index.js\n ** module id = 262\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/filename-regex/index.js?"); /***/ }, /* 263 */ /***/ function(module, exports, __webpack_require__) { - eval("/*!\n * expand-range \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT license.\n */\n\n'use strict';\n\nvar fill = __webpack_require__(264);\n\nmodule.exports = function expandRange(str, options, fn) {\n if (typeof str !== 'string') {\n throw new TypeError('expand-range expects a string.');\n }\n\n if (typeof options === 'function') {\n fn = options;\n options = {};\n }\n\n if (typeof options === 'boolean') {\n options = {};\n options.makeRe = true;\n }\n\n // create arguments to pass to fill-range\n var opts = options || {};\n var args = str.split('..');\n var len = args.length;\n if (len > 3) { return str; }\n\n // if only one argument, it can't expand so return it\n if (len === 1) { return args; }\n\n // if `true`, tell fill-range to regexify the string\n if (typeof fn === 'boolean' && fn === true) {\n opts.makeRe = true;\n }\n\n args.push(opts);\n return fill.apply(fill, args.concat(fn));\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/expand-range/index.js\n ** module id = 263\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/expand-range/index.js?"); + eval("/*!\n * arr-diff \n *\n * Copyright (c) 2014 Jon Schlinkert, contributors.\n * Licensed under the MIT License\n */\n\n'use strict';\n\nvar flatten = __webpack_require__(264);\nvar slice = [].slice;\n\n/**\n * Return the difference between the first array and\n * additional arrays.\n *\n * ```js\n * var diff = require('{%= name %}');\n *\n * var a = ['a', 'b', 'c', 'd'];\n * var b = ['b', 'c'];\n *\n * console.log(diff(a, b))\n * //=> ['a', 'd']\n * ```\n *\n * @param {Array} `a`\n * @param {Array} `b`\n * @return {Array}\n * @api public\n */\n\nfunction diff(arr, arrays) {\n var argsLen = arguments.length;\n var len = arr.length, i = -1;\n var res = [], arrays;\n\n if (argsLen === 1) {\n return arr;\n }\n\n if (argsLen > 2) {\n arrays = flatten(slice.call(arguments, 1));\n }\n\n while (++i < len) {\n if (!~arrays.indexOf(arr[i])) {\n res.push(arr[i]);\n }\n }\n return res;\n}\n\n/**\n * Expose `diff`\n */\n\nmodule.exports = diff;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/arr-diff/index.js\n ** module id = 263\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/arr-diff/index.js?"); /***/ }, /* 264 */ -/***/ function(module, exports, __webpack_require__) { +/***/ function(module, exports) { - eval("/*!\n * fill-range \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nvar isObject = __webpack_require__(265);\nvar isNumber = __webpack_require__(266);\nvar randomize = __webpack_require__(269);\nvar repeatStr = __webpack_require__(270);\nvar repeat = __webpack_require__(271);\n\n/**\n * Expose `fillRange`\n */\n\nmodule.exports = fillRange;\n\n/**\n * Return a range of numbers or letters.\n *\n * @param {String} `a` Start of the range\n * @param {String} `b` End of the range\n * @param {String} `step` Increment or decrement to use.\n * @param {Function} `fn` Custom function to modify each element in the range.\n * @return {Array}\n */\n\nfunction fillRange(a, b, step, options, fn) {\n if (a == null || b == null) {\n throw new Error('fill-range expects the first and second args to be strings.');\n }\n\n if (typeof step === 'function') {\n fn = step; options = {}; step = null;\n }\n\n if (typeof options === 'function') {\n fn = options; options = {};\n }\n\n if (isObject(step)) {\n options = step; step = '';\n }\n\n var expand, regex = false, sep = '';\n var opts = options || {};\n\n if (typeof opts.silent === 'undefined') {\n opts.silent = true;\n }\n\n step = step || opts.step;\n\n // store a ref to unmodified arg\n var origA = a, origB = b;\n\n b = (b.toString() === '-0') ? 0 : b;\n\n if (opts.optimize || opts.makeRe) {\n step = step ? (step += '~') : step;\n expand = true;\n regex = true;\n sep = '~';\n }\n\n // handle special step characters\n if (typeof step === 'string') {\n var match = stepRe().exec(step);\n\n if (match) {\n var i = match.index;\n var m = match[0];\n\n // repeat string\n if (m === '+') {\n return repeat(a, b);\n\n // randomize a, `b` times\n } else if (m === '?') {\n return [randomize(a, b)];\n\n // expand right, no regex reduction\n } else if (m === '>') {\n step = step.substr(0, i) + step.substr(i + 1);\n expand = true;\n\n // expand to an array, or if valid create a reduced\n // string for a regex logic `or`\n } else if (m === '|') {\n step = step.substr(0, i) + step.substr(i + 1);\n expand = true;\n regex = true;\n sep = m;\n\n // expand to an array, or if valid create a reduced\n // string for a regex range\n } else if (m === '~') {\n step = step.substr(0, i) + step.substr(i + 1);\n expand = true;\n regex = true;\n sep = m;\n }\n } else if (!isNumber(step)) {\n if (!opts.silent) {\n throw new TypeError('fill-range: invalid step.');\n }\n return null;\n }\n }\n\n if (/[.&*()[\\]^%$#@!]/.test(a) || /[.&*()[\\]^%$#@!]/.test(b)) {\n if (!opts.silent) {\n throw new RangeError('fill-range: invalid range arguments.');\n }\n return null;\n }\n\n // has neither a letter nor number, or has both letters and numbers\n // this needs to be after the step logic\n if (!noAlphaNum(a) || !noAlphaNum(b) || hasBoth(a) || hasBoth(b)) {\n if (!opts.silent) {\n throw new RangeError('fill-range: invalid range arguments.');\n }\n return null;\n }\n\n // validate arguments\n var isNumA = isNumber(zeros(a));\n var isNumB = isNumber(zeros(b));\n\n if ((!isNumA && isNumB) || (isNumA && !isNumB)) {\n if (!opts.silent) {\n throw new TypeError('fill-range: first range argument is incompatible with second.');\n }\n return null;\n }\n\n // by this point both are the same, so we\n // can use A to check going forward.\n var isNum = isNumA;\n var num = formatStep(step);\n\n // is the range alphabetical? or numeric?\n if (isNum) {\n // if numeric, coerce to an integer\n a = +a; b = +b;\n } else {\n // otherwise, get the charCode to expand alpha ranges\n a = a.charCodeAt(0);\n b = b.charCodeAt(0);\n }\n\n // is the pattern descending?\n var isDescending = a > b;\n\n // don't create a character class if the args are < 0\n if (a < 0 || b < 0) {\n expand = false;\n regex = false;\n }\n\n // detect padding\n var padding = isPadded(origA, origB);\n var res, pad, arr = [];\n var ii = 0;\n\n // character classes, ranges and logical `or`\n if (regex) {\n if (shouldExpand(a, b, num, isNum, padding, opts)) {\n // make sure the correct separator is used\n if (sep === '|' || sep === '~') {\n sep = detectSeparator(a, b, num, isNum, isDescending);\n }\n return wrap([origA, origB], sep, opts);\n }\n }\n\n while (isDescending ? (a >= b) : (a <= b)) {\n if (padding && isNum) {\n pad = padding(a);\n }\n\n // custom function\n if (typeof fn === 'function') {\n res = fn(a, isNum, pad, ii++);\n\n // letters\n } else if (!isNum) {\n if (regex && isInvalidChar(a)) {\n res = null;\n } else {\n res = String.fromCharCode(a);\n }\n\n // numbers\n } else {\n res = formatPadding(a, pad);\n }\n\n // add result to the array, filtering any nulled values\n if (res !== null) arr.push(res);\n\n // increment or decrement\n if (isDescending) {\n a -= num;\n } else {\n a += num;\n }\n }\n\n // now that the array is expanded, we need to handle regex\n // character classes, ranges or logical `or` that wasn't\n // already handled before the loop\n if ((regex || expand) && !opts.noexpand) {\n // make sure the correct separator is used\n if (sep === '|' || sep === '~') {\n sep = detectSeparator(a, b, num, isNum, isDescending);\n }\n if (arr.length === 1 || a < 0 || b < 0) { return arr; }\n return wrap(arr, sep, opts);\n }\n\n return arr;\n}\n\n/**\n * Wrap the string with the correct regex\n * syntax.\n */\n\nfunction wrap(arr, sep, opts) {\n if (sep === '~') { sep = '-'; }\n var str = arr.join(sep);\n var pre = opts && opts.regexPrefix;\n\n // regex logical `or`\n if (sep === '|') {\n str = pre ? pre + str : str;\n str = '(' + str + ')';\n }\n\n // regex character class\n if (sep === '-') {\n str = (pre && pre === '^')\n ? pre + str\n : str;\n str = '[' + str + ']';\n }\n return [str];\n}\n\n/**\n * Check for invalid characters\n */\n\nfunction isCharClass(a, b, step, isNum, isDescending) {\n if (isDescending) { return false; }\n if (isNum) { return a <= 9 && b <= 9; }\n if (a < b) { return step === 1; }\n return false;\n}\n\n/**\n * Detect the correct separator to use\n */\n\nfunction shouldExpand(a, b, num, isNum, padding, opts) {\n if (isNum && (a > 9 || b > 9)) { return false; }\n return !padding && num === 1 && a < b;\n}\n\n/**\n * Detect the correct separator to use\n */\n\nfunction detectSeparator(a, b, step, isNum, isDescending) {\n var isChar = isCharClass(a, b, step, isNum, isDescending);\n if (!isChar) {\n return '|';\n }\n return '~';\n}\n\n/**\n * Correctly format the step based on type\n */\n\nfunction formatStep(step) {\n return Math.abs(step >> 0) || 1;\n}\n\n/**\n * Format padding, taking leading `-` into account\n */\n\nfunction formatPadding(ch, pad) {\n var res = pad ? pad + ch : ch;\n if (pad && ch.toString().charAt(0) === '-') {\n res = '-' + pad + ch.toString().substr(1);\n }\n return res.toString();\n}\n\n/**\n * Check for invalid characters\n */\n\nfunction isInvalidChar(str) {\n var ch = toStr(str);\n return ch === '\\\\'\n || ch === '['\n || ch === ']'\n || ch === '^'\n || ch === '('\n || ch === ')'\n || ch === '`';\n}\n\n/**\n * Convert to a string from a charCode\n */\n\nfunction toStr(ch) {\n return String.fromCharCode(ch);\n}\n\n\n/**\n * Step regex\n */\n\nfunction stepRe() {\n return /\\?|>|\\||\\+|\\~/g;\n}\n\n/**\n * Return true if `val` has either a letter\n * or a number\n */\n\nfunction noAlphaNum(val) {\n return /[a-z0-9]/i.test(val);\n}\n\n/**\n * Return true if `val` has both a letter and\n * a number (invalid)\n */\n\nfunction hasBoth(val) {\n return /[a-z][0-9]|[0-9][a-z]/i.test(val);\n}\n\n/**\n * Normalize zeros for checks\n */\n\nfunction zeros(val) {\n if (/^-*0+$/.test(val.toString())) {\n return '0';\n }\n return val;\n}\n\n/**\n * Return true if `val` has leading zeros,\n * or a similar valid pattern.\n */\n\nfunction hasZeros(val) {\n return /[^.]\\.|^-*0+[0-9]/.test(val);\n}\n\n/**\n * If the string is padded, returns a curried function with\n * the a cached padding string, or `false` if no padding.\n *\n * @param {*} `origA` String or number.\n * @return {String|Boolean}\n */\n\nfunction isPadded(origA, origB) {\n if (hasZeros(origA) || hasZeros(origB)) {\n var alen = length(origA);\n var blen = length(origB);\n\n var len = alen >= blen\n ? alen\n : blen;\n\n return function (a) {\n return repeatStr('0', len - length(a));\n };\n }\n return false;\n}\n\n/**\n * Get the string length of `val`\n */\n\nfunction length(val) {\n return val.toString().length;\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/fill-range/index.js\n ** module id = 264\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/fill-range/index.js?"); + eval("/*!\n * arr-flatten \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nmodule.exports = function flatten(arr) {\n return flat(arr, []);\n};\n\nfunction flat(arr, res) {\n var len = arr.length;\n var i = -1;\n\n while (len--) {\n var cur = arr[++i];\n if (Array.isArray(cur)) {\n flat(cur, res);\n } else {\n res.push(cur);\n }\n }\n return res;\n}\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/arr-flatten/index.js\n ** module id = 264\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/arr-flatten/index.js?"); /***/ }, /* 265 */ -/***/ function(module, exports, __webpack_require__) { +/***/ function(module, exports) { - eval("/*!\n * isobject \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nvar isArray = __webpack_require__(101);\n\nmodule.exports = function isObject(o) {\n return o != null && typeof o === 'object' && !isArray(o);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/isobject/index.js\n ** module id = 265\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/isobject/index.js?"); + eval("/*!\n * array-unique \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nmodule.exports = function unique(arr) {\n if (!Array.isArray(arr)) {\n throw new TypeError('array-unique expects an array.');\n }\n\n var len = arr.length;\n var i = -1;\n\n while (i++ < len) {\n var j = i + 1;\n\n for (; j < arr.length; ++j) {\n if (arr[i] === arr[j]) {\n arr.splice(j--, 1);\n }\n }\n }\n return arr;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/array-unique/index.js\n ** module id = 265\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/array-unique/index.js?"); /***/ }, /* 266 */ /***/ function(module, exports, __webpack_require__) { - eval("/*!\n * is-number \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nvar typeOf = __webpack_require__(267);\n\nmodule.exports = function isNumber(num) {\n var type = typeOf(num);\n if (type !== 'number' && type !== 'string') {\n return false;\n }\n var n = +num;\n return (n - n + 1) >= 0 && num !== '';\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/is-number/index.js\n ** module id = 266\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/is-number/index.js?"); + eval("/*!\n * braces \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT license.\n */\n\n'use strict';\n\n/**\n * Module dependencies\n */\n\nvar expand = __webpack_require__(267);\nvar repeat = __webpack_require__(275);\nvar tokens = __webpack_require__(276);\n\n/**\n * Expose `braces`\n */\n\nmodule.exports = function (str, options) {\n if (typeof str !== 'string') {\n throw new Error('braces expects a string');\n }\n return braces(str, options);\n};\n\n/**\n * Expand `{foo,bar}` or `{1..5}` braces in the\n * given `string`.\n *\n * @param {String} `str`\n * @param {Array} `arr`\n * @param {Object} `options`\n * @return {Array}\n */\n\nfunction braces(str, arr, options) {\n if (str === '') {\n return [];\n }\n\n if (!Array.isArray(arr)) {\n options = arr;\n arr = [];\n }\n\n var opts = options || {};\n arr = arr || [];\n\n if (typeof opts.nodupes === 'undefined') {\n opts.nodupes = true;\n }\n\n var fn = opts.fn;\n var es6;\n\n if (typeof opts === 'function') {\n fn = opts;\n opts = {};\n }\n\n if (!(patternRe instanceof RegExp)) {\n patternRe = patternRegex();\n }\n\n var matches = str.match(patternRe) || [];\n var m = matches[0];\n\n switch(m) {\n case '\\\\,':\n return escapeCommas(str, arr, opts);\n case '\\\\.':\n return escapeDots(str, arr, opts);\n case '\\/.':\n return escapePaths(str, arr, opts);\n case ' ':\n return splitWhitespace(str);\n case '{,}':\n return exponential(str, opts, braces);\n case '{}':\n return emptyBraces(str, arr, opts);\n case '\\\\{':\n case '\\\\}':\n return escapeBraces(str, arr, opts);\n case '${':\n if (!/\\{[^{]+\\{/.test(str)) {\n return arr.concat(str);\n } else {\n es6 = true;\n str = tokens.before(str, es6Regex());\n }\n }\n\n if (!(braceRe instanceof RegExp)) {\n braceRe = braceRegex();\n }\n\n var match = braceRe.exec(str);\n if (match == null) {\n return [str];\n }\n\n var outter = match[1];\n var inner = match[2];\n if (inner === '') { return [str]; }\n\n var segs, segsLength;\n\n if (inner.indexOf('..') !== -1) {\n segs = expand(inner, opts, fn) || inner.split(',');\n segsLength = segs.length;\n\n } else if (inner[0] === '\"' || inner[0] === '\\'') {\n return arr.concat(str.split(/['\"]/).join(''));\n\n } else {\n segs = inner.split(',');\n if (opts.makeRe) {\n return braces(str.replace(outter, wrap(segs, '|')), opts);\n }\n\n segsLength = segs.length;\n if (segsLength === 1 && opts.bash) {\n segs[0] = wrap(segs[0], '\\\\');\n }\n }\n\n var len = segs.length;\n var i = 0, val;\n\n while (len--) {\n var path = segs[i++];\n\n if (/(\\.[^.\\/])/.test(path)) {\n if (segsLength > 1) {\n return segs;\n } else {\n return [str];\n }\n }\n\n val = splice(str, outter, path);\n\n if (/\\{[^{}]+?\\}/.test(val)) {\n arr = braces(val, arr, opts);\n } else if (val !== '') {\n if (opts.nodupes && arr.indexOf(val) !== -1) { continue; }\n arr.push(es6 ? tokens.after(val) : val);\n }\n }\n\n if (opts.strict) { return filter(arr, filterEmpty); }\n return arr;\n}\n\n/**\n * Expand exponential ranges\n *\n * `a{,}{,}` => ['a', 'a', 'a', 'a']\n */\n\nfunction exponential(str, options, fn) {\n if (typeof options === 'function') {\n fn = options;\n options = null;\n }\n\n var opts = options || {};\n var esc = '__ESC_EXP__';\n var exp = 0;\n var res;\n\n var parts = str.split('{,}');\n if (opts.nodupes) {\n return fn(parts.join(''), opts);\n }\n\n exp = parts.length - 1;\n res = fn(parts.join(esc), opts);\n var len = res.length;\n var arr = [];\n var i = 0;\n\n while (len--) {\n var ele = res[i++];\n var idx = ele.indexOf(esc);\n\n if (idx === -1) {\n arr.push(ele);\n\n } else {\n ele = ele.split('__ESC_EXP__').join('');\n if (!!ele && opts.nodupes !== false) {\n arr.push(ele);\n\n } else {\n var num = Math.pow(2, exp);\n arr.push.apply(arr, repeat(ele, num));\n }\n }\n }\n return arr;\n}\n\n/**\n * Wrap a value with parens, brackets or braces,\n * based on the given character/separator.\n *\n * @param {String|Array} `val`\n * @param {String} `ch`\n * @return {String}\n */\n\nfunction wrap(val, ch) {\n if (ch === '|') {\n return '(' + val.join(ch) + ')';\n }\n if (ch === ',') {\n return '{' + val.join(ch) + '}';\n }\n if (ch === '-') {\n return '[' + val.join(ch) + ']';\n }\n if (ch === '\\\\') {\n return '\\\\{' + val + '\\\\}';\n }\n}\n\n/**\n * Handle empty braces: `{}`\n */\n\nfunction emptyBraces(str, arr, opts) {\n return braces(str.split('{}').join('\\\\{\\\\}'), arr, opts);\n}\n\n/**\n * Filter out empty-ish values\n */\n\nfunction filterEmpty(ele) {\n return !!ele && ele !== '\\\\';\n}\n\n/**\n * Handle patterns with whitespace\n */\n\nfunction splitWhitespace(str) {\n var segs = str.split(' ');\n var len = segs.length;\n var res = [];\n var i = 0;\n\n while (len--) {\n res.push.apply(res, braces(segs[i++]));\n }\n return res;\n}\n\n/**\n * Handle escaped braces: `\\\\{foo,bar}`\n */\n\nfunction escapeBraces(str, arr, opts) {\n if (!/\\{[^{]+\\{/.test(str)) {\n return arr.concat(str.split('\\\\').join(''));\n } else {\n str = str.split('\\\\{').join('__LT_BRACE__');\n str = str.split('\\\\}').join('__RT_BRACE__');\n return map(braces(str, arr, opts), function (ele) {\n ele = ele.split('__LT_BRACE__').join('{');\n return ele.split('__RT_BRACE__').join('}');\n });\n }\n}\n\n/**\n * Handle escaped dots: `{1\\\\.2}`\n */\n\nfunction escapeDots(str, arr, opts) {\n if (!/[^\\\\]\\..+\\\\\\./.test(str)) {\n return arr.concat(str.split('\\\\').join(''));\n } else {\n str = str.split('\\\\.').join('__ESC_DOT__');\n return map(braces(str, arr, opts), function (ele) {\n return ele.split('__ESC_DOT__').join('.');\n });\n }\n}\n\n/**\n * Handle escaped dots: `{1\\\\.2}`\n */\n\nfunction escapePaths(str, arr, opts) {\n str = str.split('\\/.').join('__ESC_PATH__');\n return map(braces(str, arr, opts), function (ele) {\n return ele.split('__ESC_PATH__').join('\\/.');\n });\n}\n\n/**\n * Handle escaped commas: `{a\\\\,b}`\n */\n\nfunction escapeCommas(str, arr, opts) {\n if (!/\\w,/.test(str)) {\n return arr.concat(str.split('\\\\').join(''));\n } else {\n str = str.split('\\\\,').join('__ESC_COMMA__');\n return map(braces(str, arr, opts), function (ele) {\n return ele.split('__ESC_COMMA__').join(',');\n });\n }\n}\n\n/**\n * Regex for common patterns\n */\n\nfunction patternRegex() {\n return /\\$\\{|[ \\t]|{}|{,}|\\\\,(?=.*[{}])|\\/\\.(?=.*[{}])|\\\\\\.(?={)|\\\\{|\\\\}/;\n}\n\n/**\n * Braces regex.\n */\n\nfunction braceRegex() {\n return /.*(\\\\?\\{([^}]+)\\})/;\n}\n\n/**\n * es6 delimiter regex.\n */\n\nfunction es6Regex() {\n return /\\$\\{([^}]+)\\}/;\n}\n\nvar braceRe;\nvar patternRe;\n\n/**\n * Faster alternative to `String.replace()` when the\n * index of the token to be replaces can't be supplied\n */\n\nfunction splice(str, token, replacement) {\n var i = str.indexOf(token);\n return str.substr(0, i) + replacement\n + str.substr(i + token.length);\n}\n\n/**\n * Fast array map\n */\n\nfunction map(arr, fn) {\n if (arr == null) {\n return [];\n }\n\n var len = arr.length;\n var res = new Array(len);\n var i = -1;\n\n while (++i < len) {\n res[i] = fn(arr[i], i, arr);\n }\n\n return res;\n}\n\n/**\n * Fast array filter\n */\n\nfunction filter(arr, cb) {\n if (arr == null) return [];\n if (typeof cb !== 'function') {\n throw new TypeError('braces: filter expects a callback function.');\n }\n\n var len = arr.length;\n var res = arr.slice();\n var i = 0;\n\n while (len--) {\n if (!cb(arr[len], i++)) {\n res.splice(len, 1);\n }\n }\n return res;\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/braces/index.js\n ** module id = 266\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/braces/index.js?"); /***/ }, /* 267 */ /***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(Buffer) {var isBuffer = __webpack_require__(268);\nvar toString = Object.prototype.toString;\n\n/**\n * Get the native `typeof` a value.\n *\n * @param {*} `val`\n * @return {*} Native javascript type\n */\n\nmodule.exports = function kindOf(val) {\n // primitivies\n if (typeof val === 'undefined') {\n return 'undefined';\n }\n if (val === null) {\n return 'null';\n }\n if (val === true || val === false || val instanceof Boolean) {\n return 'boolean';\n }\n if (typeof val === 'string' || val instanceof String) {\n return 'string';\n }\n if (typeof val === 'number' || val instanceof Number) {\n return 'number';\n }\n\n // functions\n if (typeof val === 'function' || val instanceof Function) {\n return 'function';\n }\n\n // array\n if (typeof Array.isArray !== 'undefined' && Array.isArray(val)) {\n return 'array';\n }\n\n // check for instances of RegExp and Date before calling `toString`\n if (val instanceof RegExp) {\n return 'regexp';\n }\n if (val instanceof Date) {\n return 'date';\n }\n\n // other objects\n var type = toString.call(val);\n\n if (type === '[object RegExp]') {\n return 'regexp';\n }\n if (type === '[object Date]') {\n return 'date';\n }\n if (type === '[object Arguments]') {\n return 'arguments';\n }\n\n // buffer\n if (typeof Buffer !== 'undefined' && isBuffer(val)) {\n return 'buffer';\n }\n\n // es6: Map, WeakMap, Set, WeakSet\n if (type === '[object Set]') {\n return 'set';\n }\n if (type === '[object WeakSet]') {\n return 'weakset';\n }\n if (type === '[object Map]') {\n return 'map';\n }\n if (type === '[object WeakMap]') {\n return 'weakmap';\n }\n if (type === '[object Symbol]') {\n return 'symbol';\n }\n\n // typed arrays\n if (type === '[object Int8Array]') {\n return 'int8array';\n }\n if (type === '[object Uint8Array]') {\n return 'uint8array';\n }\n if (type === '[object Uint8ClampedArray]') {\n return 'uint8clampedarray';\n }\n if (type === '[object Int16Array]') {\n return 'int16array';\n }\n if (type === '[object Uint16Array]') {\n return 'uint16array';\n }\n if (type === '[object Int32Array]') {\n return 'int32array';\n }\n if (type === '[object Uint32Array]') {\n return 'uint32array';\n }\n if (type === '[object Float32Array]') {\n return 'float32array';\n }\n if (type === '[object Float64Array]') {\n return 'float64array';\n }\n\n // must be a plain object\n return 'object';\n};\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1).Buffer))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/kind-of/index.js\n ** module id = 267\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/kind-of/index.js?"); + eval("/*!\n * expand-range \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT license.\n */\n\n'use strict';\n\nvar fill = __webpack_require__(268);\n\nmodule.exports = function expandRange(str, options, fn) {\n if (typeof str !== 'string') {\n throw new TypeError('expand-range expects a string.');\n }\n\n if (typeof options === 'function') {\n fn = options;\n options = {};\n }\n\n if (typeof options === 'boolean') {\n options = {};\n options.makeRe = true;\n }\n\n // create arguments to pass to fill-range\n var opts = options || {};\n var args = str.split('..');\n var len = args.length;\n if (len > 3) { return str; }\n\n // if only one argument, it can't expand so return it\n if (len === 1) { return args; }\n\n // if `true`, tell fill-range to regexify the string\n if (typeof fn === 'boolean' && fn === true) {\n opts.makeRe = true;\n }\n\n args.push(opts);\n return fill.apply(fill, args.concat(fn));\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/expand-range/index.js\n ** module id = 267\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/expand-range/index.js?"); /***/ }, /* 268 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("/**\n * Determine if an object is Buffer\n *\n * Author: Feross Aboukhadijeh \n * License: MIT\n *\n * `npm install is-buffer`\n */\n\nmodule.exports = function (obj) {\n return !!(obj != null &&\n (obj._isBuffer || // For Safari 5-7 (missing Object.prototype.constructor)\n (obj.constructor &&\n typeof obj.constructor.isBuffer === 'function' &&\n obj.constructor.isBuffer(obj))\n ))\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/is-buffer/index.js\n ** module id = 268\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/is-buffer/index.js?"); + eval("/*!\n * fill-range \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nvar isObject = __webpack_require__(269);\nvar isNumber = __webpack_require__(270);\nvar randomize = __webpack_require__(273);\nvar repeatStr = __webpack_require__(274);\nvar repeat = __webpack_require__(275);\n\n/**\n * Expose `fillRange`\n */\n\nmodule.exports = fillRange;\n\n/**\n * Return a range of numbers or letters.\n *\n * @param {String} `a` Start of the range\n * @param {String} `b` End of the range\n * @param {String} `step` Increment or decrement to use.\n * @param {Function} `fn` Custom function to modify each element in the range.\n * @return {Array}\n */\n\nfunction fillRange(a, b, step, options, fn) {\n if (a == null || b == null) {\n throw new Error('fill-range expects the first and second args to be strings.');\n }\n\n if (typeof step === 'function') {\n fn = step; options = {}; step = null;\n }\n\n if (typeof options === 'function') {\n fn = options; options = {};\n }\n\n if (isObject(step)) {\n options = step; step = '';\n }\n\n var expand, regex = false, sep = '';\n var opts = options || {};\n\n if (typeof opts.silent === 'undefined') {\n opts.silent = true;\n }\n\n step = step || opts.step;\n\n // store a ref to unmodified arg\n var origA = a, origB = b;\n\n b = (b.toString() === '-0') ? 0 : b;\n\n if (opts.optimize || opts.makeRe) {\n step = step ? (step += '~') : step;\n expand = true;\n regex = true;\n sep = '~';\n }\n\n // handle special step characters\n if (typeof step === 'string') {\n var match = stepRe().exec(step);\n\n if (match) {\n var i = match.index;\n var m = match[0];\n\n // repeat string\n if (m === '+') {\n return repeat(a, b);\n\n // randomize a, `b` times\n } else if (m === '?') {\n return [randomize(a, b)];\n\n // expand right, no regex reduction\n } else if (m === '>') {\n step = step.substr(0, i) + step.substr(i + 1);\n expand = true;\n\n // expand to an array, or if valid create a reduced\n // string for a regex logic `or`\n } else if (m === '|') {\n step = step.substr(0, i) + step.substr(i + 1);\n expand = true;\n regex = true;\n sep = m;\n\n // expand to an array, or if valid create a reduced\n // string for a regex range\n } else if (m === '~') {\n step = step.substr(0, i) + step.substr(i + 1);\n expand = true;\n regex = true;\n sep = m;\n }\n } else if (!isNumber(step)) {\n if (!opts.silent) {\n throw new TypeError('fill-range: invalid step.');\n }\n return null;\n }\n }\n\n if (/[.&*()[\\]^%$#@!]/.test(a) || /[.&*()[\\]^%$#@!]/.test(b)) {\n if (!opts.silent) {\n throw new RangeError('fill-range: invalid range arguments.');\n }\n return null;\n }\n\n // has neither a letter nor number, or has both letters and numbers\n // this needs to be after the step logic\n if (!noAlphaNum(a) || !noAlphaNum(b) || hasBoth(a) || hasBoth(b)) {\n if (!opts.silent) {\n throw new RangeError('fill-range: invalid range arguments.');\n }\n return null;\n }\n\n // validate arguments\n var isNumA = isNumber(zeros(a));\n var isNumB = isNumber(zeros(b));\n\n if ((!isNumA && isNumB) || (isNumA && !isNumB)) {\n if (!opts.silent) {\n throw new TypeError('fill-range: first range argument is incompatible with second.');\n }\n return null;\n }\n\n // by this point both are the same, so we\n // can use A to check going forward.\n var isNum = isNumA;\n var num = formatStep(step);\n\n // is the range alphabetical? or numeric?\n if (isNum) {\n // if numeric, coerce to an integer\n a = +a; b = +b;\n } else {\n // otherwise, get the charCode to expand alpha ranges\n a = a.charCodeAt(0);\n b = b.charCodeAt(0);\n }\n\n // is the pattern descending?\n var isDescending = a > b;\n\n // don't create a character class if the args are < 0\n if (a < 0 || b < 0) {\n expand = false;\n regex = false;\n }\n\n // detect padding\n var padding = isPadded(origA, origB);\n var res, pad, arr = [];\n var ii = 0;\n\n // character classes, ranges and logical `or`\n if (regex) {\n if (shouldExpand(a, b, num, isNum, padding, opts)) {\n // make sure the correct separator is used\n if (sep === '|' || sep === '~') {\n sep = detectSeparator(a, b, num, isNum, isDescending);\n }\n return wrap([origA, origB], sep, opts);\n }\n }\n\n while (isDescending ? (a >= b) : (a <= b)) {\n if (padding && isNum) {\n pad = padding(a);\n }\n\n // custom function\n if (typeof fn === 'function') {\n res = fn(a, isNum, pad, ii++);\n\n // letters\n } else if (!isNum) {\n if (regex && isInvalidChar(a)) {\n res = null;\n } else {\n res = String.fromCharCode(a);\n }\n\n // numbers\n } else {\n res = formatPadding(a, pad);\n }\n\n // add result to the array, filtering any nulled values\n if (res !== null) arr.push(res);\n\n // increment or decrement\n if (isDescending) {\n a -= num;\n } else {\n a += num;\n }\n }\n\n // now that the array is expanded, we need to handle regex\n // character classes, ranges or logical `or` that wasn't\n // already handled before the loop\n if ((regex || expand) && !opts.noexpand) {\n // make sure the correct separator is used\n if (sep === '|' || sep === '~') {\n sep = detectSeparator(a, b, num, isNum, isDescending);\n }\n if (arr.length === 1 || a < 0 || b < 0) { return arr; }\n return wrap(arr, sep, opts);\n }\n\n return arr;\n}\n\n/**\n * Wrap the string with the correct regex\n * syntax.\n */\n\nfunction wrap(arr, sep, opts) {\n if (sep === '~') { sep = '-'; }\n var str = arr.join(sep);\n var pre = opts && opts.regexPrefix;\n\n // regex logical `or`\n if (sep === '|') {\n str = pre ? pre + str : str;\n str = '(' + str + ')';\n }\n\n // regex character class\n if (sep === '-') {\n str = (pre && pre === '^')\n ? pre + str\n : str;\n str = '[' + str + ']';\n }\n return [str];\n}\n\n/**\n * Check for invalid characters\n */\n\nfunction isCharClass(a, b, step, isNum, isDescending) {\n if (isDescending) { return false; }\n if (isNum) { return a <= 9 && b <= 9; }\n if (a < b) { return step === 1; }\n return false;\n}\n\n/**\n * Detect the correct separator to use\n */\n\nfunction shouldExpand(a, b, num, isNum, padding, opts) {\n if (isNum && (a > 9 || b > 9)) { return false; }\n return !padding && num === 1 && a < b;\n}\n\n/**\n * Detect the correct separator to use\n */\n\nfunction detectSeparator(a, b, step, isNum, isDescending) {\n var isChar = isCharClass(a, b, step, isNum, isDescending);\n if (!isChar) {\n return '|';\n }\n return '~';\n}\n\n/**\n * Correctly format the step based on type\n */\n\nfunction formatStep(step) {\n return Math.abs(step >> 0) || 1;\n}\n\n/**\n * Format padding, taking leading `-` into account\n */\n\nfunction formatPadding(ch, pad) {\n var res = pad ? pad + ch : ch;\n if (pad && ch.toString().charAt(0) === '-') {\n res = '-' + pad + ch.toString().substr(1);\n }\n return res.toString();\n}\n\n/**\n * Check for invalid characters\n */\n\nfunction isInvalidChar(str) {\n var ch = toStr(str);\n return ch === '\\\\'\n || ch === '['\n || ch === ']'\n || ch === '^'\n || ch === '('\n || ch === ')'\n || ch === '`';\n}\n\n/**\n * Convert to a string from a charCode\n */\n\nfunction toStr(ch) {\n return String.fromCharCode(ch);\n}\n\n\n/**\n * Step regex\n */\n\nfunction stepRe() {\n return /\\?|>|\\||\\+|\\~/g;\n}\n\n/**\n * Return true if `val` has either a letter\n * or a number\n */\n\nfunction noAlphaNum(val) {\n return /[a-z0-9]/i.test(val);\n}\n\n/**\n * Return true if `val` has both a letter and\n * a number (invalid)\n */\n\nfunction hasBoth(val) {\n return /[a-z][0-9]|[0-9][a-z]/i.test(val);\n}\n\n/**\n * Normalize zeros for checks\n */\n\nfunction zeros(val) {\n if (/^-*0+$/.test(val.toString())) {\n return '0';\n }\n return val;\n}\n\n/**\n * Return true if `val` has leading zeros,\n * or a similar valid pattern.\n */\n\nfunction hasZeros(val) {\n return /[^.]\\.|^-*0+[0-9]/.test(val);\n}\n\n/**\n * If the string is padded, returns a curried function with\n * the a cached padding string, or `false` if no padding.\n *\n * @param {*} `origA` String or number.\n * @return {String|Boolean}\n */\n\nfunction isPadded(origA, origB) {\n if (hasZeros(origA) || hasZeros(origB)) {\n var alen = length(origA);\n var blen = length(origB);\n\n var len = alen >= blen\n ? alen\n : blen;\n\n return function (a) {\n return repeatStr('0', len - length(a));\n };\n }\n return false;\n}\n\n/**\n * Get the string length of `val`\n */\n\nfunction length(val) {\n return val.toString().length;\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/fill-range/index.js\n ** module id = 268\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/fill-range/index.js?"); /***/ }, /* 269 */ /***/ function(module, exports, __webpack_require__) { - eval("/*!\n * randomatic \n *\n * This was originally inspired by \n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License (MIT)\n */\n\n'use strict';\n\nvar isNumber = __webpack_require__(266);\nvar typeOf = __webpack_require__(267);\n\n/**\n * Expose `randomatic`\n */\n\nmodule.exports = randomatic;\n\n/**\n * Available mask characters\n */\n\nvar type = {\n lower: 'abcdefghijklmnopqrstuvwxyz',\n upper: 'ABCDEFGHIJKLMNOPQRSTUVWXYZ',\n number: '0123456789',\n special: '~!@#$%^&()_+-={}[];\\',.'\n};\n\ntype.all = type.lower + type.upper + type.number;\n\n/**\n * Generate random character sequences of a specified `length`,\n * based on the given `pattern`.\n *\n * @param {String} `pattern` The pattern to use for generating the random string.\n * @param {String} `length` The length of the string to generate.\n * @param {String} `options`\n * @return {String}\n * @api public\n */\n\nfunction randomatic(pattern, length, options) {\n if (typeof pattern === 'undefined') {\n throw new Error('randomatic expects a string or number.');\n }\n\n var custom = false;\n if (arguments.length === 1) {\n if (typeof pattern === 'string') {\n length = pattern.length;\n\n } else if (isNumber(pattern)) {\n options = {}; length = pattern; pattern = '*';\n }\n }\n\n if (typeOf(length) === 'object' && length.hasOwnProperty('chars')) {\n options = length;\n pattern = options.chars;\n length = pattern.length;\n custom = true;\n }\n\n var opts = options || {};\n var mask = '';\n var res = '';\n\n // Characters to be used\n if (pattern.indexOf('?') !== -1) mask += opts.chars;\n if (pattern.indexOf('a') !== -1) mask += type.lower;\n if (pattern.indexOf('A') !== -1) mask += type.upper;\n if (pattern.indexOf('0') !== -1) mask += type.number;\n if (pattern.indexOf('!') !== -1) mask += type.special;\n if (pattern.indexOf('*') !== -1) mask += type.all;\n if (custom) mask += pattern;\n\n while (length--) {\n res += mask.charAt(parseInt(Math.random() * mask.length, 10));\n }\n return res;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/randomatic/index.js\n ** module id = 269\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/randomatic/index.js?"); + eval("/*!\n * isobject \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nvar isArray = __webpack_require__(101);\n\nmodule.exports = function isObject(o) {\n return o != null && typeof o === 'object' && !isArray(o);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/isobject/index.js\n ** module id = 269\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/isobject/index.js?"); /***/ }, /* 270 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("/*!\n * repeat-string \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\n/**\n * Expose `repeat`\n */\n\nmodule.exports = repeat;\n\n/**\n * Repeat the given `string` the specified `number`\n * of times.\n *\n * **Example:**\n *\n * ```js\n * var repeat = require('repeat-string');\n * repeat('A', 5);\n * //=> AAAAA\n * ```\n *\n * @param {String} `string` The string to repeat\n * @param {Number} `number` The number of times to repeat the string\n * @return {String} Repeated string\n * @api public\n */\n\nfunction repeat(str, num) {\n if (typeof str !== 'string') {\n throw new TypeError('repeat-string expects a string.');\n }\n\n if (num === 1) return str;\n if (num === 2) return str + str;\n\n var max = str.length * num;\n if (cache !== str || typeof cache === 'undefined') {\n cache = str;\n res = '';\n }\n\n while (max > res.length && num > 0) {\n if (num & 1) {\n res += str;\n }\n\n num >>= 1;\n if (!num) break;\n str += str;\n }\n\n return res.substr(0, max);\n}\n\n/**\n * Results cache\n */\n\nvar res = '';\nvar cache;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/repeat-string/index.js\n ** module id = 270\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/repeat-string/index.js?"); + eval("/*!\n * is-number \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nvar typeOf = __webpack_require__(271);\n\nmodule.exports = function isNumber(num) {\n var type = typeOf(num);\n if (type !== 'number' && type !== 'string') {\n return false;\n }\n var n = +num;\n return (n - n + 1) >= 0 && num !== '';\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/is-number/index.js\n ** module id = 270\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/is-number/index.js?"); /***/ }, /* 271 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("/*!\n * repeat-element \n *\n * Copyright (c) 2015 Jon Schlinkert.\n * Licensed under the MIT license.\n */\n\n'use strict';\n\nmodule.exports = function repeat(ele, num) {\n var arr = new Array(num);\n\n for (var i = 0; i < num; i++) {\n arr[i] = ele;\n }\n\n return arr;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/repeat-element/index.js\n ** module id = 271\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/repeat-element/index.js?"); + eval("/* WEBPACK VAR INJECTION */(function(Buffer) {var isBuffer = __webpack_require__(272);\nvar toString = Object.prototype.toString;\n\n/**\n * Get the native `typeof` a value.\n *\n * @param {*} `val`\n * @return {*} Native javascript type\n */\n\nmodule.exports = function kindOf(val) {\n // primitivies\n if (typeof val === 'undefined') {\n return 'undefined';\n }\n if (val === null) {\n return 'null';\n }\n if (val === true || val === false || val instanceof Boolean) {\n return 'boolean';\n }\n if (typeof val === 'string' || val instanceof String) {\n return 'string';\n }\n if (typeof val === 'number' || val instanceof Number) {\n return 'number';\n }\n\n // functions\n if (typeof val === 'function' || val instanceof Function) {\n return 'function';\n }\n\n // array\n if (typeof Array.isArray !== 'undefined' && Array.isArray(val)) {\n return 'array';\n }\n\n // check for instances of RegExp and Date before calling `toString`\n if (val instanceof RegExp) {\n return 'regexp';\n }\n if (val instanceof Date) {\n return 'date';\n }\n\n // other objects\n var type = toString.call(val);\n\n if (type === '[object RegExp]') {\n return 'regexp';\n }\n if (type === '[object Date]') {\n return 'date';\n }\n if (type === '[object Arguments]') {\n return 'arguments';\n }\n\n // buffer\n if (typeof Buffer !== 'undefined' && isBuffer(val)) {\n return 'buffer';\n }\n\n // es6: Map, WeakMap, Set, WeakSet\n if (type === '[object Set]') {\n return 'set';\n }\n if (type === '[object WeakSet]') {\n return 'weakset';\n }\n if (type === '[object Map]') {\n return 'map';\n }\n if (type === '[object WeakMap]') {\n return 'weakmap';\n }\n if (type === '[object Symbol]') {\n return 'symbol';\n }\n\n // typed arrays\n if (type === '[object Int8Array]') {\n return 'int8array';\n }\n if (type === '[object Uint8Array]') {\n return 'uint8array';\n }\n if (type === '[object Uint8ClampedArray]') {\n return 'uint8clampedarray';\n }\n if (type === '[object Int16Array]') {\n return 'int16array';\n }\n if (type === '[object Uint16Array]') {\n return 'uint16array';\n }\n if (type === '[object Int32Array]') {\n return 'int32array';\n }\n if (type === '[object Uint32Array]') {\n return 'uint32array';\n }\n if (type === '[object Float32Array]') {\n return 'float32array';\n }\n if (type === '[object Float64Array]') {\n return 'float64array';\n }\n\n // must be a plain object\n return 'object';\n};\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1).Buffer))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/kind-of/index.js\n ** module id = 271\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/kind-of/index.js?"); /***/ }, /* 272 */ /***/ function(module, exports) { - eval("/*!\n * preserve \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT license.\n */\n\n'use strict';\n\n/**\n * Replace tokens in `str` with a temporary, heuristic placeholder.\n *\n * ```js\n * tokens.before('{a\\\\,b}');\n * //=> '{__ID1__}'\n * ```\n *\n * @param {String} `str`\n * @return {String} String with placeholders.\n * @api public\n */\n\nexports.before = function before(str, re) {\n return str.replace(re, function (match) {\n var id = randomize();\n cache[id] = match;\n return '__ID' + id + '__';\n });\n};\n\n/**\n * Replace placeholders in `str` with original tokens.\n *\n * ```js\n * tokens.after('{__ID1__}');\n * //=> '{a\\\\,b}'\n * ```\n *\n * @param {String} `str` String with placeholders\n * @return {String} `str` String with original tokens.\n * @api public\n */\n\nexports.after = function after(str) {\n return str.replace(/__ID(.{5})__/g, function (_, id) {\n return cache[id];\n });\n};\n\nfunction randomize() {\n return Math.random().toString().slice(2, 7);\n}\n\nvar cache = {};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/preserve/index.js\n ** module id = 272\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/preserve/index.js?"); + eval("/**\n * Determine if an object is Buffer\n *\n * Author: Feross Aboukhadijeh \n * License: MIT\n *\n * `npm install is-buffer`\n */\n\nmodule.exports = function (obj) {\n return !!(obj != null &&\n (obj._isBuffer || // For Safari 5-7 (missing Object.prototype.constructor)\n (obj.constructor &&\n typeof obj.constructor.isBuffer === 'function' &&\n obj.constructor.isBuffer(obj))\n ))\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/is-buffer/index.js\n ** module id = 272\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/is-buffer/index.js?"); /***/ }, /* 273 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("/*!\n * expand-brackets \n *\n * Copyright (c) 2015 Jon Schlinkert.\n * Licensed under the MIT license.\n */\n\n'use strict';\n\n/**\n * POSIX character classes\n */\n\nvar POSIX = {\n alnum: 'a-zA-Z0-9',\n alpha: 'a-zA-Z',\n blank: ' \\\\t',\n cntrl: '\\\\x00-\\\\x1F\\\\x7F',\n digit: '0-9',\n graph: '\\\\x21-\\\\x7E',\n lower: 'a-z',\n print: '\\\\x20-\\\\x7E',\n punct: '!\"#$%&\\'()\\\\*+,-./:;<=>?@[\\\\]^_`{|}~',\n space: ' \\\\t\\\\r\\\\n\\\\v\\\\f',\n upper: 'A-Z',\n word: 'A-Za-z0-9_',\n xdigit: 'A-Fa-f0-9',\n};\n\n/**\n * Expose `brackets`\n */\n\nmodule.exports = brackets;\n\nfunction brackets(str) {\n var negated = false;\n if (str.indexOf('[^') !== -1) {\n negated = true;\n str = str.split('[^').join('[');\n }\n if (str.indexOf('[!') !== -1) {\n negated = true;\n str = str.split('[!').join('[');\n }\n\n var a = str.split('[');\n var b = str.split(']');\n var imbalanced = a.length !== b.length;\n\n var parts = str.split(/(?::\\]\\[:|\\[?\\[:|:\\]\\]?)/);\n var len = parts.length, i = 0;\n var end = '', beg = '';\n var res = [];\n\n // start at the end (innermost) first\n while (len--) {\n var inner = parts[i++];\n if (inner === '^[!' || inner === '[!') {\n inner = '';\n negated = true;\n }\n\n var prefix = negated ? '^' : '';\n var ch = POSIX[inner];\n\n if (ch) {\n res.push('[' + prefix + ch + ']');\n } else if (inner) {\n if (/^\\[?\\w-\\w\\]?$/.test(inner)) {\n if (i === parts.length) {\n res.push('[' + prefix + inner);\n } else if (i === 1) {\n res.push(prefix + inner + ']');\n } else {\n res.push(prefix + inner);\n }\n } else {\n if (i === 1) {\n beg += inner;\n } else if (i === parts.length) {\n end += inner;\n } else {\n res.push('[' + prefix + inner + ']');\n }\n }\n }\n }\n\n var result = res.join('|');\n var rlen = res.length || 1;\n if (rlen > 1) {\n result = '(?:' + result + ')';\n rlen = 1;\n }\n if (beg) {\n rlen++;\n if (beg.charAt(0) === '[') {\n if (imbalanced) {\n beg = '\\\\[' + beg.slice(1);\n } else {\n beg += ']';\n }\n }\n result = beg + result;\n }\n if (end) {\n rlen++;\n if (end.slice(-1) === ']') {\n if (imbalanced) {\n end = end.slice(0, end.length - 1) + '\\\\]';\n } else {\n end = '[' + end;\n }\n }\n result += end;\n }\n\n if (rlen > 1) {\n result = result.split('][').join(']|[');\n if (result.indexOf('|') !== -1 && !/\\(\\?/.test(result)) {\n result = '(?:' + result + ')';\n }\n }\n\n result = result.replace(/\\[+=|=\\]+/g, '\\\\b');\n return result;\n}\n\nbrackets.makeRe = function (pattern) {\n try {\n return new RegExp(brackets(pattern));\n } catch (err) {}\n};\n\nbrackets.isMatch = function (str, pattern) {\n try {\n return brackets.makeRe(pattern).test(str);\n } catch (err) {\n return false;\n }\n};\n\nbrackets.match = function (arr, pattern) {\n var len = arr.length, i = 0;\n var res = arr.slice();\n\n var re = brackets.makeRe(pattern);\n while (i < len) {\n var ele = arr[i++];\n if (!re.test(ele)) {\n continue;\n }\n res.splice(i, 1);\n }\n return res;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/expand-brackets/index.js\n ** module id = 273\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/expand-brackets/index.js?"); + eval("/*!\n * randomatic \n *\n * This was originally inspired by \n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License (MIT)\n */\n\n'use strict';\n\nvar isNumber = __webpack_require__(270);\nvar typeOf = __webpack_require__(271);\n\n/**\n * Expose `randomatic`\n */\n\nmodule.exports = randomatic;\n\n/**\n * Available mask characters\n */\n\nvar type = {\n lower: 'abcdefghijklmnopqrstuvwxyz',\n upper: 'ABCDEFGHIJKLMNOPQRSTUVWXYZ',\n number: '0123456789',\n special: '~!@#$%^&()_+-={}[];\\',.'\n};\n\ntype.all = type.lower + type.upper + type.number;\n\n/**\n * Generate random character sequences of a specified `length`,\n * based on the given `pattern`.\n *\n * @param {String} `pattern` The pattern to use for generating the random string.\n * @param {String} `length` The length of the string to generate.\n * @param {String} `options`\n * @return {String}\n * @api public\n */\n\nfunction randomatic(pattern, length, options) {\n if (typeof pattern === 'undefined') {\n throw new Error('randomatic expects a string or number.');\n }\n\n var custom = false;\n if (arguments.length === 1) {\n if (typeof pattern === 'string') {\n length = pattern.length;\n\n } else if (isNumber(pattern)) {\n options = {}; length = pattern; pattern = '*';\n }\n }\n\n if (typeOf(length) === 'object' && length.hasOwnProperty('chars')) {\n options = length;\n pattern = options.chars;\n length = pattern.length;\n custom = true;\n }\n\n var opts = options || {};\n var mask = '';\n var res = '';\n\n // Characters to be used\n if (pattern.indexOf('?') !== -1) mask += opts.chars;\n if (pattern.indexOf('a') !== -1) mask += type.lower;\n if (pattern.indexOf('A') !== -1) mask += type.upper;\n if (pattern.indexOf('0') !== -1) mask += type.number;\n if (pattern.indexOf('!') !== -1) mask += type.special;\n if (pattern.indexOf('*') !== -1) mask += type.all;\n if (custom) mask += pattern;\n\n while (length--) {\n res += mask.charAt(parseInt(Math.random() * mask.length, 10));\n }\n return res;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/randomatic/index.js\n ** module id = 273\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/randomatic/index.js?"); /***/ }, /* 274 */ -/***/ function(module, exports, __webpack_require__) { +/***/ function(module, exports) { - eval("/*!\n * extglob \n *\n * Copyright (c) 2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\n/**\n * Module dependencies\n */\n\nvar isExtglob = __webpack_require__(275);\nvar re, cache = {};\n\n/**\n * Expose `extglob`\n */\n\nmodule.exports = extglob;\n\n/**\n * Convert the given extglob `string` to a regex-compatible\n * string.\n *\n * ```js\n * var extglob = require('extglob');\n * extglob('!(a?(b))');\n * //=> '(?!a(?:b)?)[^/]*?'\n * ```\n *\n * @param {String} `str` The string to convert.\n * @param {Object} `options`\n * @option {Boolean} [options] `esc` If `false` special characters will not be escaped. Defaults to `true`.\n * @option {Boolean} [options] `regex` If `true` a regular expression is returned instead of a string.\n * @return {String}\n * @api public\n */\n\n\nfunction extglob(str, opts) {\n opts = opts || {};\n var o = {}, i = 0;\n\n // fix common character reversals\n // '*!(.js)' => '*.!(js)'\n str = str.replace(/!\\(([^\\w*()])/g, '$1!(');\n\n // support file extension negation\n str = str.replace(/([*\\/])\\.!\\([*]\\)/g, function (m, ch) {\n if (ch === '/') {\n return escape('\\\\/[^.]+');\n }\n return escape('[^.]+');\n });\n\n // create a unique key for caching by\n // combining the string and options\n var key = str\n + String(!!opts.regex)\n + String(!!opts.contains)\n + String(!!opts.escape);\n\n if (cache.hasOwnProperty(key)) {\n return cache[key];\n }\n\n if (!(re instanceof RegExp)) {\n re = regex();\n }\n\n opts.negate = false;\n var m;\n\n while (m = re.exec(str)) {\n var prefix = m[1];\n var inner = m[3];\n if (prefix === '!') {\n opts.negate = true;\n }\n\n var id = '__EXTGLOB_' + (i++) + '__';\n // use the prefix of the _last_ (outtermost) pattern\n o[id] = wrap(inner, prefix, opts.escape);\n str = str.split(m[0]).join(id);\n }\n\n var keys = Object.keys(o);\n var len = keys.length;\n\n // we have to loop again to allow us to convert\n // patterns in reverse order (starting with the\n // innermost/last pattern first)\n while (len--) {\n var prop = keys[len];\n str = str.split(prop).join(o[prop]);\n }\n\n var result = opts.regex\n ? toRegex(str, opts.contains, opts.negate)\n : str;\n\n result = result.split('.').join('\\\\.');\n\n // cache the result and return it\n return (cache[key] = result);\n}\n\n/**\n * Convert `string` to a regex string.\n *\n * @param {String} `str`\n * @param {String} `prefix` Character that determines how to wrap the string.\n * @param {Boolean} `esc` If `false` special characters will not be escaped. Defaults to `true`.\n * @return {String}\n */\n\nfunction wrap(inner, prefix, esc) {\n if (esc) inner = escape(inner);\n\n switch (prefix) {\n case '!':\n return '(?!' + inner + ')[^/]' + (esc ? '%%%~' : '*?');\n case '@':\n return '(?:' + inner + ')';\n case '+':\n return '(?:' + inner + ')+';\n case '*':\n return '(?:' + inner + ')' + (esc ? '%%' : '*')\n case '?':\n return '(?:' + inner + '|)';\n default:\n return inner;\n }\n}\n\nfunction escape(str) {\n str = str.split('*').join('[^/]%%%~');\n str = str.split('.').join('\\\\.');\n return str;\n}\n\n/**\n * extglob regex.\n */\n\nfunction regex() {\n return /(\\\\?[@?!+*$]\\\\?)(\\(([^()]*?)\\))/;\n}\n\n/**\n * Negation regex\n */\n\nfunction negate(str) {\n return '(?!^' + str + ').*$';\n}\n\n/**\n * Create the regex to do the matching. If\n * the leading character in the `pattern` is `!`\n * a negation regex is returned.\n *\n * @param {String} `pattern`\n * @param {Boolean} `contains` Allow loose matching.\n * @param {Boolean} `isNegated` True if the pattern is a negation pattern.\n */\n\nfunction toRegex(pattern, contains, isNegated) {\n var prefix = contains ? '^' : '';\n var after = contains ? '$' : '';\n pattern = ('(?:' + pattern + ')' + after);\n if (isNegated) {\n pattern = prefix + negate(pattern);\n }\n return new RegExp(prefix + pattern);\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/extglob/index.js\n ** module id = 274\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/extglob/index.js?"); + eval("/*!\n * repeat-string \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\n/**\n * Expose `repeat`\n */\n\nmodule.exports = repeat;\n\n/**\n * Repeat the given `string` the specified `number`\n * of times.\n *\n * **Example:**\n *\n * ```js\n * var repeat = require('repeat-string');\n * repeat('A', 5);\n * //=> AAAAA\n * ```\n *\n * @param {String} `string` The string to repeat\n * @param {Number} `number` The number of times to repeat the string\n * @return {String} Repeated string\n * @api public\n */\n\nfunction repeat(str, num) {\n if (typeof str !== 'string') {\n throw new TypeError('repeat-string expects a string.');\n }\n\n if (num === 1) return str;\n if (num === 2) return str + str;\n\n var max = str.length * num;\n if (cache !== str || typeof cache === 'undefined') {\n cache = str;\n res = '';\n }\n\n while (max > res.length && num > 0) {\n if (num & 1) {\n res += str;\n }\n\n num >>= 1;\n if (!num) break;\n str += str;\n }\n\n return res.substr(0, max);\n}\n\n/**\n * Results cache\n */\n\nvar res = '';\nvar cache;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/repeat-string/index.js\n ** module id = 274\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/repeat-string/index.js?"); /***/ }, /* 275 */ /***/ function(module, exports) { - eval("/*!\n * is-extglob \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\nmodule.exports = function isExtglob(str) {\n return typeof str === 'string'\n && /[@?!+*]\\(/.test(str);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/is-extglob/index.js\n ** module id = 275\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/is-extglob/index.js?"); + eval("/*!\n * repeat-element \n *\n * Copyright (c) 2015 Jon Schlinkert.\n * Licensed under the MIT license.\n */\n\n'use strict';\n\nmodule.exports = function repeat(ele, num) {\n var arr = new Array(num);\n\n for (var i = 0; i < num; i++) {\n arr[i] = ele;\n }\n\n return arr;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/repeat-element/index.js\n ** module id = 275\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/repeat-element/index.js?"); /***/ }, /* 276 */ -/***/ function(module, exports, __webpack_require__) { +/***/ function(module, exports) { - eval("/*!\n * is-glob \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\nvar isExtglob = __webpack_require__(275);\n\nmodule.exports = function isGlob(str) {\n return typeof str === 'string'\n && (/[*!?{}(|)[\\]]/.test(str)\n || isExtglob(str));\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/is-glob/index.js\n ** module id = 276\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/is-glob/index.js?"); + eval("/*!\n * preserve \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT license.\n */\n\n'use strict';\n\n/**\n * Replace tokens in `str` with a temporary, heuristic placeholder.\n *\n * ```js\n * tokens.before('{a\\\\,b}');\n * //=> '{__ID1__}'\n * ```\n *\n * @param {String} `str`\n * @return {String} String with placeholders.\n * @api public\n */\n\nexports.before = function before(str, re) {\n return str.replace(re, function (match) {\n var id = randomize();\n cache[id] = match;\n return '__ID' + id + '__';\n });\n};\n\n/**\n * Replace placeholders in `str` with original tokens.\n *\n * ```js\n * tokens.after('{__ID1__}');\n * //=> '{a\\\\,b}'\n * ```\n *\n * @param {String} `str` String with placeholders\n * @return {String} `str` String with original tokens.\n * @api public\n */\n\nexports.after = function after(str) {\n return str.replace(/__ID(.{5})__/g, function (_, id) {\n return cache[id];\n });\n};\n\nfunction randomize() {\n return Math.random().toString().slice(2, 7);\n}\n\nvar cache = {};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/preserve/index.js\n ** module id = 276\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/preserve/index.js?"); /***/ }, /* 277 */ /***/ function(module, exports) { - eval("/*!\n * normalize-path \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License\n */\n\nmodule.exports = function normalizePath(str, stripTrailing) {\n if (typeof str !== 'string') {\n throw new TypeError('expected a string');\n }\n str = str.replace(/[\\\\\\/]+/g, '/');\n if (stripTrailing !== false) {\n str = str.replace(/\\/$/, '');\n }\n return str;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/normalize-path/index.js\n ** module id = 277\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/normalize-path/index.js?"); + eval("/*!\n * expand-brackets \n *\n * Copyright (c) 2015 Jon Schlinkert.\n * Licensed under the MIT license.\n */\n\n'use strict';\n\n/**\n * POSIX character classes\n */\n\nvar POSIX = {\n alnum: 'a-zA-Z0-9',\n alpha: 'a-zA-Z',\n blank: ' \\\\t',\n cntrl: '\\\\x00-\\\\x1F\\\\x7F',\n digit: '0-9',\n graph: '\\\\x21-\\\\x7E',\n lower: 'a-z',\n print: '\\\\x20-\\\\x7E',\n punct: '!\"#$%&\\'()\\\\*+,-./:;<=>?@[\\\\]^_`{|}~',\n space: ' \\\\t\\\\r\\\\n\\\\v\\\\f',\n upper: 'A-Z',\n word: 'A-Za-z0-9_',\n xdigit: 'A-Fa-f0-9',\n};\n\n/**\n * Expose `brackets`\n */\n\nmodule.exports = brackets;\n\nfunction brackets(str) {\n var negated = false;\n if (str.indexOf('[^') !== -1) {\n negated = true;\n str = str.split('[^').join('[');\n }\n if (str.indexOf('[!') !== -1) {\n negated = true;\n str = str.split('[!').join('[');\n }\n\n var a = str.split('[');\n var b = str.split(']');\n var imbalanced = a.length !== b.length;\n\n var parts = str.split(/(?::\\]\\[:|\\[?\\[:|:\\]\\]?)/);\n var len = parts.length, i = 0;\n var end = '', beg = '';\n var res = [];\n\n // start at the end (innermost) first\n while (len--) {\n var inner = parts[i++];\n if (inner === '^[!' || inner === '[!') {\n inner = '';\n negated = true;\n }\n\n var prefix = negated ? '^' : '';\n var ch = POSIX[inner];\n\n if (ch) {\n res.push('[' + prefix + ch + ']');\n } else if (inner) {\n if (/^\\[?\\w-\\w\\]?$/.test(inner)) {\n if (i === parts.length) {\n res.push('[' + prefix + inner);\n } else if (i === 1) {\n res.push(prefix + inner + ']');\n } else {\n res.push(prefix + inner);\n }\n } else {\n if (i === 1) {\n beg += inner;\n } else if (i === parts.length) {\n end += inner;\n } else {\n res.push('[' + prefix + inner + ']');\n }\n }\n }\n }\n\n var result = res.join('|');\n var rlen = res.length || 1;\n if (rlen > 1) {\n result = '(?:' + result + ')';\n rlen = 1;\n }\n if (beg) {\n rlen++;\n if (beg.charAt(0) === '[') {\n if (imbalanced) {\n beg = '\\\\[' + beg.slice(1);\n } else {\n beg += ']';\n }\n }\n result = beg + result;\n }\n if (end) {\n rlen++;\n if (end.slice(-1) === ']') {\n if (imbalanced) {\n end = end.slice(0, end.length - 1) + '\\\\]';\n } else {\n end = '[' + end;\n }\n }\n result += end;\n }\n\n if (rlen > 1) {\n result = result.split('][').join(']|[');\n if (result.indexOf('|') !== -1 && !/\\(\\?/.test(result)) {\n result = '(?:' + result + ')';\n }\n }\n\n result = result.replace(/\\[+=|=\\]+/g, '\\\\b');\n return result;\n}\n\nbrackets.makeRe = function (pattern) {\n try {\n return new RegExp(brackets(pattern));\n } catch (err) {}\n};\n\nbrackets.isMatch = function (str, pattern) {\n try {\n return brackets.makeRe(pattern).test(str);\n } catch (err) {\n return false;\n }\n};\n\nbrackets.match = function (arr, pattern) {\n var len = arr.length, i = 0;\n var res = arr.slice();\n\n var re = brackets.makeRe(pattern);\n while (i < len) {\n var ele = arr[i++];\n if (!re.test(ele)) {\n continue;\n }\n res.splice(i, 1);\n }\n return res;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/expand-brackets/index.js\n ** module id = 277\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/expand-brackets/index.js?"); /***/ }, /* 278 */ /***/ function(module, exports, __webpack_require__) { - eval("/*!\n * object.omit \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nvar isObject = __webpack_require__(279);\nvar forOwn = __webpack_require__(280);\n\nmodule.exports = function omit(obj, keys) {\n if (!isObject(obj)) return {};\n\n var keys = [].concat.apply([], [].slice.call(arguments, 1));\n var last = keys[keys.length - 1];\n var res = {}, fn;\n\n if (typeof last === 'function') {\n fn = keys.pop();\n }\n\n var isFunction = typeof fn === 'function';\n if (!keys.length && !isFunction) {\n return obj;\n }\n\n forOwn(obj, function (value, key) {\n if (keys.indexOf(key) === -1) {\n\n if (!isFunction) {\n res[key] = value;\n } else if (fn(value, key, obj)) {\n res[key] = value;\n }\n }\n });\n return res;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/object.omit/index.js\n ** module id = 278\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/object.omit/index.js?"); + eval("/*!\n * extglob \n *\n * Copyright (c) 2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\n/**\n * Module dependencies\n */\n\nvar isExtglob = __webpack_require__(279);\nvar re, cache = {};\n\n/**\n * Expose `extglob`\n */\n\nmodule.exports = extglob;\n\n/**\n * Convert the given extglob `string` to a regex-compatible\n * string.\n *\n * ```js\n * var extglob = require('extglob');\n * extglob('!(a?(b))');\n * //=> '(?!a(?:b)?)[^/]*?'\n * ```\n *\n * @param {String} `str` The string to convert.\n * @param {Object} `options`\n * @option {Boolean} [options] `esc` If `false` special characters will not be escaped. Defaults to `true`.\n * @option {Boolean} [options] `regex` If `true` a regular expression is returned instead of a string.\n * @return {String}\n * @api public\n */\n\n\nfunction extglob(str, opts) {\n opts = opts || {};\n var o = {}, i = 0;\n\n // fix common character reversals\n // '*!(.js)' => '*.!(js)'\n str = str.replace(/!\\(([^\\w*()])/g, '$1!(');\n\n // support file extension negation\n str = str.replace(/([*\\/])\\.!\\([*]\\)/g, function (m, ch) {\n if (ch === '/') {\n return escape('\\\\/[^.]+');\n }\n return escape('[^.]+');\n });\n\n // create a unique key for caching by\n // combining the string and options\n var key = str\n + String(!!opts.regex)\n + String(!!opts.contains)\n + String(!!opts.escape);\n\n if (cache.hasOwnProperty(key)) {\n return cache[key];\n }\n\n if (!(re instanceof RegExp)) {\n re = regex();\n }\n\n opts.negate = false;\n var m;\n\n while (m = re.exec(str)) {\n var prefix = m[1];\n var inner = m[3];\n if (prefix === '!') {\n opts.negate = true;\n }\n\n var id = '__EXTGLOB_' + (i++) + '__';\n // use the prefix of the _last_ (outtermost) pattern\n o[id] = wrap(inner, prefix, opts.escape);\n str = str.split(m[0]).join(id);\n }\n\n var keys = Object.keys(o);\n var len = keys.length;\n\n // we have to loop again to allow us to convert\n // patterns in reverse order (starting with the\n // innermost/last pattern first)\n while (len--) {\n var prop = keys[len];\n str = str.split(prop).join(o[prop]);\n }\n\n var result = opts.regex\n ? toRegex(str, opts.contains, opts.negate)\n : str;\n\n result = result.split('.').join('\\\\.');\n\n // cache the result and return it\n return (cache[key] = result);\n}\n\n/**\n * Convert `string` to a regex string.\n *\n * @param {String} `str`\n * @param {String} `prefix` Character that determines how to wrap the string.\n * @param {Boolean} `esc` If `false` special characters will not be escaped. Defaults to `true`.\n * @return {String}\n */\n\nfunction wrap(inner, prefix, esc) {\n if (esc) inner = escape(inner);\n\n switch (prefix) {\n case '!':\n return '(?!' + inner + ')[^/]' + (esc ? '%%%~' : '*?');\n case '@':\n return '(?:' + inner + ')';\n case '+':\n return '(?:' + inner + ')+';\n case '*':\n return '(?:' + inner + ')' + (esc ? '%%' : '*')\n case '?':\n return '(?:' + inner + '|)';\n default:\n return inner;\n }\n}\n\nfunction escape(str) {\n str = str.split('*').join('[^/]%%%~');\n str = str.split('.').join('\\\\.');\n return str;\n}\n\n/**\n * extglob regex.\n */\n\nfunction regex() {\n return /(\\\\?[@?!+*$]\\\\?)(\\(([^()]*?)\\))/;\n}\n\n/**\n * Negation regex\n */\n\nfunction negate(str) {\n return '(?!^' + str + ').*$';\n}\n\n/**\n * Create the regex to do the matching. If\n * the leading character in the `pattern` is `!`\n * a negation regex is returned.\n *\n * @param {String} `pattern`\n * @param {Boolean} `contains` Allow loose matching.\n * @param {Boolean} `isNegated` True if the pattern is a negation pattern.\n */\n\nfunction toRegex(pattern, contains, isNegated) {\n var prefix = contains ? '^' : '';\n var after = contains ? '$' : '';\n pattern = ('(?:' + pattern + ')' + after);\n if (isNegated) {\n pattern = prefix + negate(pattern);\n }\n return new RegExp(prefix + pattern);\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/extglob/index.js\n ** module id = 278\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/extglob/index.js?"); /***/ }, /* 279 */ /***/ function(module, exports) { - eval("/*!\n * is-extendable \n *\n * Copyright (c) 2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nmodule.exports = function isExtendable(val) {\n return typeof val !== 'undefined' && val !== null\n && (typeof val === 'object' || typeof val === 'function');\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/is-extendable/index.js\n ** module id = 279\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/is-extendable/index.js?"); + eval("/*!\n * is-extglob \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\nmodule.exports = function isExtglob(str) {\n return typeof str === 'string'\n && /[@?!+*]\\(/.test(str);\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/is-extglob/index.js\n ** module id = 279\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/is-extglob/index.js?"); /***/ }, /* 280 */ /***/ function(module, exports, __webpack_require__) { - eval("/*!\n * for-own \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nvar forIn = __webpack_require__(281);\nvar hasOwn = Object.prototype.hasOwnProperty;\n\nmodule.exports = function forOwn(o, fn, thisArg) {\n forIn(o, function (val, key) {\n if (hasOwn.call(o, key)) {\n return fn.call(thisArg, o[key], key, o);\n }\n });\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/for-own/index.js\n ** module id = 280\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/for-own/index.js?"); + eval("/*!\n * is-glob \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\nvar isExtglob = __webpack_require__(279);\n\nmodule.exports = function isGlob(str) {\n return typeof str === 'string'\n && (/[*!?{}(|)[\\]]/.test(str)\n || isExtglob(str));\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/is-glob/index.js\n ** module id = 280\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/is-glob/index.js?"); /***/ }, /* 281 */ /***/ function(module, exports) { - eval("/*!\n * for-in \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nmodule.exports = function forIn(o, fn, thisArg) {\n for (var key in o) {\n if (fn.call(thisArg, o[key], key, o) === false) {\n break;\n }\n }\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/for-in/index.js\n ** module id = 281\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/for-in/index.js?"); + eval("/*!\n * normalize-path \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License\n */\n\nmodule.exports = function normalizePath(str, stripTrailing) {\n if (typeof str !== 'string') {\n throw new TypeError('expected a string');\n }\n str = str.replace(/[\\\\\\/]+/g, '/');\n if (stripTrailing !== false) {\n str = str.replace(/\\/$/, '');\n }\n return str;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/normalize-path/index.js\n ** module id = 281\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/normalize-path/index.js?"); /***/ }, /* 282 */ /***/ function(module, exports, __webpack_require__) { - eval("/*!\n * parse-glob \n *\n * Copyright (c) 2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nvar isGlob = __webpack_require__(276);\nvar findBase = __webpack_require__(283);\nvar extglob = __webpack_require__(275);\nvar dotfile = __webpack_require__(285);\n\n/**\n * Expose `cache`\n */\n\nvar cache = module.exports.cache = {};\n\n/**\n * Parse a glob pattern into tokens.\n *\n * When no paths or '**' are in the glob, we use a\n * different strategy for parsing the filename, since\n * file names can contain braces and other difficult\n * patterns. such as:\n *\n * - `*.{a,b}`\n * - `(**|*.js)`\n */\n\nmodule.exports = function parseGlob(glob) {\n if (cache.hasOwnProperty(glob)) {\n return cache[glob];\n }\n\n var tok = {};\n tok.orig = glob;\n tok.is = {};\n\n // unescape dots and slashes in braces/brackets\n glob = escape(glob);\n\n var parsed = findBase(glob);\n tok.is.glob = parsed.isGlob;\n\n tok.glob = parsed.glob;\n tok.base = parsed.base;\n var segs = /([^\\/]*)$/.exec(glob);\n\n tok.path = {};\n tok.path.dirname = '';\n tok.path.basename = segs[1] || '';\n tok.path.dirname = glob.split(tok.path.basename).join('') || '';\n var basename = (tok.path.basename || '').split('.') || '';\n tok.path.filename = basename[0] || '';\n tok.path.extname = basename.slice(1).join('.') || '';\n tok.path.ext = '';\n\n if (isGlob(tok.path.dirname) && !tok.path.basename) {\n if (!/\\/$/.test(tok.glob)) {\n tok.path.basename = tok.glob;\n }\n tok.path.dirname = tok.base;\n }\n\n if (glob.indexOf('/') === -1 && !tok.is.globstar) {\n tok.path.dirname = '';\n tok.path.basename = tok.orig;\n }\n\n var dot = tok.path.basename.indexOf('.');\n if (dot !== -1) {\n tok.path.filename = tok.path.basename.slice(0, dot);\n tok.path.extname = tok.path.basename.slice(dot);\n }\n\n if (tok.path.extname.charAt(0) === '.') {\n var exts = tok.path.extname.split('.');\n tok.path.ext = exts[exts.length - 1];\n }\n\n // unescape dots and slashes in braces/brackets\n tok.glob = unescape(tok.glob);\n tok.path.dirname = unescape(tok.path.dirname);\n tok.path.basename = unescape(tok.path.basename);\n tok.path.filename = unescape(tok.path.filename);\n tok.path.extname = unescape(tok.path.extname);\n\n // Booleans\n var is = (glob && tok.is.glob);\n tok.is.negated = glob && glob.charAt(0) === '!';\n tok.is.extglob = glob && extglob(glob);\n tok.is.braces = has(is, glob, '{');\n tok.is.brackets = has(is, glob, '[:');\n tok.is.globstar = has(is, glob, '**');\n tok.is.dotfile = dotfile(tok.path.basename) || dotfile(tok.path.filename);\n tok.is.dotdir = dotdir(tok.path.dirname);\n return (cache[glob] = tok);\n}\n\n/**\n * Returns true if the glob matches dot-directories.\n *\n * @param {Object} `tok` The tokens object\n * @param {Object} `path` The path object\n * @return {Object}\n */\n\nfunction dotdir(base) {\n if (base.indexOf('/.') !== -1) {\n return true;\n }\n if (base.charAt(0) === '.' && base.charAt(1) !== '/') {\n return true;\n }\n return false;\n}\n\n/**\n * Returns true if the pattern has the given `ch`aracter(s)\n *\n * @param {Object} `glob` The glob pattern.\n * @param {Object} `ch` The character to test for\n * @return {Object}\n */\n\nfunction has(is, glob, ch) {\n return is && glob.indexOf(ch) !== -1;\n}\n\n/**\n * Escape/unescape utils\n */\n\nfunction escape(str) {\n var re = /\\{([^{}]*?)}|\\(([^()]*?)\\)|\\[([^\\[\\]]*?)\\]/g;\n return str.replace(re, function (outter, braces, parens, brackets) {\n var inner = braces || parens || brackets;\n if (!inner) { return outter; }\n return outter.split(inner).join(esc(inner));\n });\n}\n\nfunction esc(str) {\n str = str.split('/').join('__SLASH__');\n str = str.split('.').join('__DOT__');\n return str;\n}\n\nfunction unescape(str) {\n str = str.split('__SLASH__').join('/');\n str = str.split('__DOT__').join('.');\n return str;\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/parse-glob/index.js\n ** module id = 282\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/parse-glob/index.js?"); + eval("/*!\n * object.omit \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nvar isObject = __webpack_require__(283);\nvar forOwn = __webpack_require__(284);\n\nmodule.exports = function omit(obj, keys) {\n if (!isObject(obj)) return {};\n\n var keys = [].concat.apply([], [].slice.call(arguments, 1));\n var last = keys[keys.length - 1];\n var res = {}, fn;\n\n if (typeof last === 'function') {\n fn = keys.pop();\n }\n\n var isFunction = typeof fn === 'function';\n if (!keys.length && !isFunction) {\n return obj;\n }\n\n forOwn(obj, function (value, key) {\n if (keys.indexOf(key) === -1) {\n\n if (!isFunction) {\n res[key] = value;\n } else if (fn(value, key, obj)) {\n res[key] = value;\n }\n }\n });\n return res;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/object.omit/index.js\n ** module id = 282\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/object.omit/index.js?"); /***/ }, /* 283 */ -/***/ function(module, exports, __webpack_require__) { +/***/ function(module, exports) { - eval("/*!\n * glob-base \n *\n * Copyright (c) 2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nvar path = __webpack_require__(149);\nvar parent = __webpack_require__(284);\nvar isGlob = __webpack_require__(276);\n\nmodule.exports = function globBase(pattern) {\n if (typeof pattern !== 'string') {\n throw new TypeError('glob-base expects a string.');\n }\n\n var res = {};\n res.base = parent(pattern);\n res.isGlob = isGlob(pattern);\n\n if (res.base !== '.') {\n res.glob = pattern.substr(res.base.length);\n if (res.glob.charAt(0) === '/') {\n res.glob = res.glob.substr(1);\n }\n } else {\n res.glob = pattern;\n }\n\n if (!res.isGlob) {\n res.base = dirname(pattern);\n res.glob = res.base !== '.'\n ? pattern.substr(res.base.length)\n : pattern;\n }\n\n if (res.glob.substr(0, 2) === './') {\n res.glob = res.glob.substr(2);\n }\n if (res.glob.charAt(0) === '/') {\n res.glob = res.glob.substr(1);\n }\n return res;\n};\n\nfunction dirname(glob) {\n if (glob.slice(-1) === '/') return glob;\n return path.dirname(glob);\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-base/index.js\n ** module id = 283\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-base/index.js?"); + eval("/*!\n * is-extendable \n *\n * Copyright (c) 2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nmodule.exports = function isExtendable(val) {\n return typeof val !== 'undefined' && val !== null\n && (typeof val === 'object' || typeof val === 'function');\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/is-extendable/index.js\n ** module id = 283\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/is-extendable/index.js?"); /***/ }, /* 284 */ /***/ function(module, exports, __webpack_require__) { - eval("'use strict';\n\nvar path = __webpack_require__(149);\nvar isglob = __webpack_require__(276);\n\nmodule.exports = function globParent(str) {\n\tstr += 'a'; // preserves full path in case of trailing path separator\n\tdo {str = path.dirname(str)} while (isglob(str));\n\treturn str;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-parent/index.js\n ** module id = 284\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-parent/index.js?"); + eval("/*!\n * for-own \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nvar forIn = __webpack_require__(285);\nvar hasOwn = Object.prototype.hasOwnProperty;\n\nmodule.exports = function forOwn(o, fn, thisArg) {\n forIn(o, function (val, key) {\n if (hasOwn.call(o, key)) {\n return fn.call(thisArg, o[key], key, o);\n }\n });\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/for-own/index.js\n ** module id = 284\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/for-own/index.js?"); /***/ }, /* 285 */ /***/ function(module, exports) { - eval("/*!\n * is-dotfile \n *\n * Copyright (c) 2015 Jon Schlinkert, contributors.\n * Licensed under the MIT license.\n */\n\nmodule.exports = function(str) {\n if (str.charCodeAt(0) === 46 /* . */ && str.indexOf('/', 1) === -1) {\n return true;\n }\n\n var last = str.lastIndexOf('/');\n return last !== -1 ? str.charCodeAt(last + 1) === 46 /* . */ : false;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/is-dotfile/index.js\n ** module id = 285\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/is-dotfile/index.js?"); + eval("/*!\n * for-in \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nmodule.exports = function forIn(o, fn, thisArg) {\n for (var key in o) {\n if (fn.call(thisArg, o[key], key, o) === false) {\n break;\n }\n }\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/for-in/index.js\n ** module id = 285\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/for-in/index.js?"); /***/ }, /* 286 */ /***/ function(module, exports, __webpack_require__) { - eval("/*!\n * regex-cache \n *\n * Copyright (c) 2015 Jon Schlinkert.\n * Licensed under the MIT license.\n */\n\n'use strict';\n\nvar isPrimitive = __webpack_require__(287);\nvar equal = __webpack_require__(288);\n\n/**\n * Expose `regexCache`\n */\n\nmodule.exports = regexCache;\n\n/**\n * Memoize the results of a call to the new RegExp constructor.\n *\n * @param {Function} fn [description]\n * @param {String} str [description]\n * @param {Options} options [description]\n * @param {Boolean} nocompare [description]\n * @return {RegExp}\n */\n\nfunction regexCache(fn, str, opts) {\n var key = '_default_', regex, cached;\n\n if (!str && !opts) {\n if (typeof fn !== 'function') {\n return fn;\n }\n return basic[key] || (basic[key] = fn());\n }\n\n var isString = typeof str === 'string';\n if (isString) {\n if (!opts) {\n return basic[str] || (basic[str] = fn(str));\n }\n key = str;\n } else {\n opts = str;\n }\n\n cached = cache[key];\n if (cached && equal(cached.opts, opts)) {\n return cached.regex;\n }\n\n memo(key, opts, (regex = fn(str, opts)));\n return regex;\n}\n\nfunction memo(key, opts, regex) {\n cache[key] = {regex: regex, opts: opts};\n}\n\n/**\n * Expose `cache`\n */\n\nvar cache = module.exports.cache = {};\nvar basic = module.exports.basic = {};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/regex-cache/index.js\n ** module id = 286\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/regex-cache/index.js?"); + eval("/*!\n * parse-glob \n *\n * Copyright (c) 2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nvar isGlob = __webpack_require__(280);\nvar findBase = __webpack_require__(287);\nvar extglob = __webpack_require__(279);\nvar dotfile = __webpack_require__(289);\n\n/**\n * Expose `cache`\n */\n\nvar cache = module.exports.cache = {};\n\n/**\n * Parse a glob pattern into tokens.\n *\n * When no paths or '**' are in the glob, we use a\n * different strategy for parsing the filename, since\n * file names can contain braces and other difficult\n * patterns. such as:\n *\n * - `*.{a,b}`\n * - `(**|*.js)`\n */\n\nmodule.exports = function parseGlob(glob) {\n if (cache.hasOwnProperty(glob)) {\n return cache[glob];\n }\n\n var tok = {};\n tok.orig = glob;\n tok.is = {};\n\n // unescape dots and slashes in braces/brackets\n glob = escape(glob);\n\n var parsed = findBase(glob);\n tok.is.glob = parsed.isGlob;\n\n tok.glob = parsed.glob;\n tok.base = parsed.base;\n var segs = /([^\\/]*)$/.exec(glob);\n\n tok.path = {};\n tok.path.dirname = '';\n tok.path.basename = segs[1] || '';\n tok.path.dirname = glob.split(tok.path.basename).join('') || '';\n var basename = (tok.path.basename || '').split('.') || '';\n tok.path.filename = basename[0] || '';\n tok.path.extname = basename.slice(1).join('.') || '';\n tok.path.ext = '';\n\n if (isGlob(tok.path.dirname) && !tok.path.basename) {\n if (!/\\/$/.test(tok.glob)) {\n tok.path.basename = tok.glob;\n }\n tok.path.dirname = tok.base;\n }\n\n if (glob.indexOf('/') === -1 && !tok.is.globstar) {\n tok.path.dirname = '';\n tok.path.basename = tok.orig;\n }\n\n var dot = tok.path.basename.indexOf('.');\n if (dot !== -1) {\n tok.path.filename = tok.path.basename.slice(0, dot);\n tok.path.extname = tok.path.basename.slice(dot);\n }\n\n if (tok.path.extname.charAt(0) === '.') {\n var exts = tok.path.extname.split('.');\n tok.path.ext = exts[exts.length - 1];\n }\n\n // unescape dots and slashes in braces/brackets\n tok.glob = unescape(tok.glob);\n tok.path.dirname = unescape(tok.path.dirname);\n tok.path.basename = unescape(tok.path.basename);\n tok.path.filename = unescape(tok.path.filename);\n tok.path.extname = unescape(tok.path.extname);\n\n // Booleans\n var is = (glob && tok.is.glob);\n tok.is.negated = glob && glob.charAt(0) === '!';\n tok.is.extglob = glob && extglob(glob);\n tok.is.braces = has(is, glob, '{');\n tok.is.brackets = has(is, glob, '[:');\n tok.is.globstar = has(is, glob, '**');\n tok.is.dotfile = dotfile(tok.path.basename) || dotfile(tok.path.filename);\n tok.is.dotdir = dotdir(tok.path.dirname);\n return (cache[glob] = tok);\n}\n\n/**\n * Returns true if the glob matches dot-directories.\n *\n * @param {Object} `tok` The tokens object\n * @param {Object} `path` The path object\n * @return {Object}\n */\n\nfunction dotdir(base) {\n if (base.indexOf('/.') !== -1) {\n return true;\n }\n if (base.charAt(0) === '.' && base.charAt(1) !== '/') {\n return true;\n }\n return false;\n}\n\n/**\n * Returns true if the pattern has the given `ch`aracter(s)\n *\n * @param {Object} `glob` The glob pattern.\n * @param {Object} `ch` The character to test for\n * @return {Object}\n */\n\nfunction has(is, glob, ch) {\n return is && glob.indexOf(ch) !== -1;\n}\n\n/**\n * Escape/unescape utils\n */\n\nfunction escape(str) {\n var re = /\\{([^{}]*?)}|\\(([^()]*?)\\)|\\[([^\\[\\]]*?)\\]/g;\n return str.replace(re, function (outter, braces, parens, brackets) {\n var inner = braces || parens || brackets;\n if (!inner) { return outter; }\n return outter.split(inner).join(esc(inner));\n });\n}\n\nfunction esc(str) {\n str = str.split('/').join('__SLASH__');\n str = str.split('.').join('__DOT__');\n return str;\n}\n\nfunction unescape(str) {\n str = str.split('__SLASH__').join('/');\n str = str.split('__DOT__').join('.');\n return str;\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/parse-glob/index.js\n ** module id = 286\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/parse-glob/index.js?"); /***/ }, /* 287 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("/*!\n * is-primitive \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\n// see http://jsperf.com/testing-value-is-primitive/7\nmodule.exports = function isPrimitive(value) {\n return value == null || (typeof value !== 'function' && typeof value !== 'object');\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/is-primitive/index.js\n ** module id = 287\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/is-primitive/index.js?"); + eval("/*!\n * glob-base \n *\n * Copyright (c) 2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nvar path = __webpack_require__(149);\nvar parent = __webpack_require__(288);\nvar isGlob = __webpack_require__(280);\n\nmodule.exports = function globBase(pattern) {\n if (typeof pattern !== 'string') {\n throw new TypeError('glob-base expects a string.');\n }\n\n var res = {};\n res.base = parent(pattern);\n res.isGlob = isGlob(pattern);\n\n if (res.base !== '.') {\n res.glob = pattern.substr(res.base.length);\n if (res.glob.charAt(0) === '/') {\n res.glob = res.glob.substr(1);\n }\n } else {\n res.glob = pattern;\n }\n\n if (!res.isGlob) {\n res.base = dirname(pattern);\n res.glob = res.base !== '.'\n ? pattern.substr(res.base.length)\n : pattern;\n }\n\n if (res.glob.substr(0, 2) === './') {\n res.glob = res.glob.substr(2);\n }\n if (res.glob.charAt(0) === '/') {\n res.glob = res.glob.substr(1);\n }\n return res;\n};\n\nfunction dirname(glob) {\n if (glob.slice(-1) === '/') return glob;\n return path.dirname(glob);\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-base/index.js\n ** module id = 287\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-base/index.js?"); /***/ }, /* 288 */ /***/ function(module, exports, __webpack_require__) { - eval("/*!\n * is-equal-shallow \n *\n * Copyright (c) 2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nvar isPrimitive = __webpack_require__(287);\n\nmodule.exports = function isEqual(a, b) {\n if (!a && !b) { return true; }\n if (!a && b || a && !b) { return false; }\n\n var numKeysA = 0, numKeysB = 0, key;\n for (key in b) {\n numKeysB++;\n if (!isPrimitive(b[key]) || !a.hasOwnProperty(key) || (a[key] !== b[key])) {\n return false;\n }\n }\n for (key in a) {\n numKeysA++;\n }\n return numKeysA === numKeysB;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/is-equal-shallow/index.js\n ** module id = 288\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/is-equal-shallow/index.js?"); + eval("'use strict';\n\nvar path = __webpack_require__(149);\nvar isglob = __webpack_require__(280);\n\nmodule.exports = function globParent(str) {\n\tstr += 'a'; // preserves full path in case of trailing path separator\n\tdo {str = path.dirname(str)} while (isglob(str));\n\treturn str;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/glob-parent/index.js\n ** module id = 288\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/glob-parent/index.js?"); /***/ }, /* 289 */ -/***/ function(module, exports, __webpack_require__) { +/***/ function(module, exports) { - eval("'use strict';\n\nvar chars = __webpack_require__(290);\nvar utils = __webpack_require__(257);\n\n/**\n * Expose `Glob`\n */\n\nvar Glob = module.exports = function Glob(pattern, options) {\n if (!(this instanceof Glob)) {\n return new Glob(pattern, options);\n }\n this.options = options || {};\n this.pattern = pattern;\n this.history = [];\n this.tokens = {};\n this.init(pattern);\n};\n\n/**\n * Initialize defaults\n */\n\nGlob.prototype.init = function(pattern) {\n this.orig = pattern;\n this.negated = this.isNegated();\n this.options.track = this.options.track || false;\n this.options.makeRe = true;\n};\n\n/**\n * Push a change into `glob.history`. Useful\n * for debugging.\n */\n\nGlob.prototype.track = function(msg) {\n if (this.options.track) {\n this.history.push({msg: msg, pattern: this.pattern});\n }\n};\n\n/**\n * Return true if `glob.pattern` was negated\n * with `!`, also remove the `!` from the pattern.\n *\n * @return {Boolean}\n */\n\nGlob.prototype.isNegated = function() {\n if (this.pattern.charCodeAt(0) === 33 /* '!' */) {\n this.pattern = this.pattern.slice(1);\n return true;\n }\n return false;\n};\n\n/**\n * Expand braces in the given glob pattern.\n *\n * We only need to use the [braces] lib when\n * patterns are nested.\n */\n\nGlob.prototype.braces = function() {\n if (this.options.nobraces !== true && this.options.nobrace !== true) {\n // naive/fast check for imbalanced characters\n var a = this.pattern.match(/[\\{\\(\\[]/g);\n var b = this.pattern.match(/[\\}\\)\\]]/g);\n\n // if imbalanced, don't optimize the pattern\n if (a && b && (a.length !== b.length)) {\n this.options.makeRe = false;\n }\n\n // expand brace patterns and join the resulting array\n var expanded = utils.braces(this.pattern, this.options);\n this.pattern = expanded.join('|');\n }\n};\n\n/**\n * Expand bracket expressions in `glob.pattern`\n */\n\nGlob.prototype.brackets = function() {\n if (this.options.nobrackets !== true) {\n this.pattern = utils.brackets(this.pattern);\n }\n};\n\n/**\n * Expand bracket expressions in `glob.pattern`\n */\n\nGlob.prototype.extglob = function() {\n if (this.options.noextglob === true) return;\n\n if (utils.isExtglob(this.pattern)) {\n this.pattern = utils.extglob(this.pattern, {escape: true});\n }\n};\n\n/**\n * Parse the given pattern\n */\n\nGlob.prototype.parse = function(pattern) {\n this.tokens = utils.parseGlob(pattern || this.pattern, true);\n return this.tokens;\n};\n\n/**\n * Replace `a` with `b`. Also tracks the change before and\n * after each replacement. This is disabled by default, but\n * can be enabled by setting `options.track` to true.\n *\n * Also, when the pattern is a string, `.split()` is used,\n * because it's much faster than replace.\n *\n * @param {RegExp|String} `a`\n * @param {String} `b`\n * @param {Boolean} `escape` When `true`, escapes `*` and `?` in the replacement.\n * @return {String}\n */\n\nGlob.prototype._replace = function(a, b, escape) {\n this.track('before (find): \"' + a + '\" (replace with): \"' + b + '\"');\n if (escape) b = esc(b);\n if (a && b && typeof a === 'string') {\n this.pattern = this.pattern.split(a).join(b);\n } else {\n this.pattern = this.pattern.replace(a, b);\n }\n this.track('after');\n};\n\n/**\n * Escape special characters in the given string.\n *\n * @param {String} `str` Glob pattern\n * @return {String}\n */\n\nGlob.prototype.escape = function(str) {\n this.track('before escape: ');\n var re = /[\"\\\\](['\"]?[^\"'\\\\]['\"]?)/g;\n\n this.pattern = str.replace(re, function($0, $1) {\n var o = chars.ESC;\n var ch = o && o[$1];\n if (ch) {\n return ch;\n }\n if (/[a-z]/i.test($0)) {\n return $0.split('\\\\').join('');\n }\n return $0;\n });\n\n this.track('after escape: ');\n};\n\n/**\n * Unescape special characters in the given string.\n *\n * @param {String} `str`\n * @return {String}\n */\n\nGlob.prototype.unescape = function(str) {\n var re = /__([A-Z]+)_([A-Z]+)__/g;\n this.pattern = str.replace(re, function($0, $1) {\n return chars[$1][$0];\n });\n this.pattern = unesc(this.pattern);\n};\n\n/**\n * Escape/unescape utils\n */\n\nfunction esc(str) {\n str = str.split('?').join('%~');\n str = str.split('*').join('%%');\n return str;\n}\n\nfunction unesc(str) {\n str = str.split('%~').join('?');\n str = str.split('%%').join('*');\n return str;\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/micromatch/lib/glob.js\n ** module id = 289\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/micromatch/lib/glob.js?"); + eval("/*!\n * is-dotfile \n *\n * Copyright (c) 2015 Jon Schlinkert, contributors.\n * Licensed under the MIT license.\n */\n\nmodule.exports = function(str) {\n if (str.charCodeAt(0) === 46 /* . */ && str.indexOf('/', 1) === -1) {\n return true;\n }\n\n var last = str.lastIndexOf('/');\n return last !== -1 ? str.charCodeAt(last + 1) === 46 /* . */ : false;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/is-dotfile/index.js\n ** module id = 289\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/is-dotfile/index.js?"); /***/ }, /* 290 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("'use strict';\n\nvar chars = {}, unesc, temp;\n\nfunction reverse(object, prepender) {\n return Object.keys(object).reduce(function(reversed, key) {\n var newKey = prepender ? prepender + key : key; // Optionally prepend a string to key.\n reversed[object[key]] = newKey; // Swap key and value.\n return reversed; // Return the result.\n }, {});\n}\n\n/**\n * Regex for common characters\n */\n\nchars.escapeRegex = {\n '?': /\\?/g,\n '@': /\\@/g,\n '!': /\\!/g,\n '+': /\\+/g,\n '*': /\\*/g,\n '(': /\\(/g,\n ')': /\\)/g,\n '[': /\\[/g,\n ']': /\\]/g\n};\n\n/**\n * Escape characters\n */\n\nchars.ESC = {\n '?': '__UNESC_QMRK__',\n '@': '__UNESC_AMPE__',\n '!': '__UNESC_EXCL__',\n '+': '__UNESC_PLUS__',\n '*': '__UNESC_STAR__',\n ',': '__UNESC_COMMA__',\n '(': '__UNESC_LTPAREN__',\n ')': '__UNESC_RTPAREN__',\n '[': '__UNESC_LTBRACK__',\n ']': '__UNESC_RTBRACK__'\n};\n\n/**\n * Unescape characters\n */\n\nchars.UNESC = unesc || (unesc = reverse(chars.ESC, '\\\\'));\n\nchars.ESC_TEMP = {\n '?': '__TEMP_QMRK__',\n '@': '__TEMP_AMPE__',\n '!': '__TEMP_EXCL__',\n '*': '__TEMP_STAR__',\n '+': '__TEMP_PLUS__',\n ',': '__TEMP_COMMA__',\n '(': '__TEMP_LTPAREN__',\n ')': '__TEMP_RTPAREN__',\n '[': '__TEMP_LTBRACK__',\n ']': '__TEMP_RTBRACK__'\n};\n\nchars.TEMP = temp || (temp = reverse(chars.ESC_TEMP));\n\nmodule.exports = chars;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/micromatch/lib/chars.js\n ** module id = 290\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/micromatch/lib/chars.js?"); + eval("/*!\n * regex-cache \n *\n * Copyright (c) 2015 Jon Schlinkert.\n * Licensed under the MIT license.\n */\n\n'use strict';\n\nvar isPrimitive = __webpack_require__(291);\nvar equal = __webpack_require__(292);\n\n/**\n * Expose `regexCache`\n */\n\nmodule.exports = regexCache;\n\n/**\n * Memoize the results of a call to the new RegExp constructor.\n *\n * @param {Function} fn [description]\n * @param {String} str [description]\n * @param {Options} options [description]\n * @param {Boolean} nocompare [description]\n * @return {RegExp}\n */\n\nfunction regexCache(fn, str, opts) {\n var key = '_default_', regex, cached;\n\n if (!str && !opts) {\n if (typeof fn !== 'function') {\n return fn;\n }\n return basic[key] || (basic[key] = fn());\n }\n\n var isString = typeof str === 'string';\n if (isString) {\n if (!opts) {\n return basic[str] || (basic[str] = fn(str));\n }\n key = str;\n } else {\n opts = str;\n }\n\n cached = cache[key];\n if (cached && equal(cached.opts, opts)) {\n return cached.regex;\n }\n\n memo(key, opts, (regex = fn(str, opts)));\n return regex;\n}\n\nfunction memo(key, opts, regex) {\n cache[key] = {regex: regex, opts: opts};\n}\n\n/**\n * Expose `cache`\n */\n\nvar cache = module.exports.cache = {};\nvar basic = module.exports.basic = {};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/regex-cache/index.js\n ** module id = 290\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/regex-cache/index.js?"); /***/ }, /* 291 */ -/***/ function(module, exports, __webpack_require__) { +/***/ function(module, exports) { - eval("/* WEBPACK VAR INJECTION */(function(process) {'use strict';\n\nvar path = __webpack_require__(149);\nvar extend = __webpack_require__(292);\n\nmodule.exports = function(glob, options) {\n var opts = extend({}, options);\n opts.cwd = opts.cwd ? path.resolve(opts.cwd) : process.cwd();\n\n // store first and last characters before glob is modified\n var prefix = glob.charAt(0);\n var suffix = glob.slice(-1);\n\n var isNegative = prefix === '!';\n if (isNegative) glob = glob.slice(1);\n\n if (opts.root && glob.charAt(0) === '/') {\n glob = path.join(path.resolve(opts.root), '.' + glob);\n } else {\n glob = path.resolve(opts.cwd, glob);\n }\n\n if (suffix === '/' && glob.slice(-1) !== '/') {\n glob += '/';\n }\n\n return isNegative ? '!' + glob : glob;\n};\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/to-absolute-glob/index.js\n ** module id = 291\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/to-absolute-glob/index.js?"); + eval("/*!\n * is-primitive \n *\n * Copyright (c) 2014-2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\n// see http://jsperf.com/testing-value-is-primitive/7\nmodule.exports = function isPrimitive(value) {\n return value == null || (typeof value !== 'function' && typeof value !== 'object');\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/is-primitive/index.js\n ** module id = 291\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/is-primitive/index.js?"); /***/ }, /* 292 */ /***/ function(module, exports, __webpack_require__) { - eval("'use strict';\n\nvar isObject = __webpack_require__(279);\n\nmodule.exports = function extend(o/*, objects*/) {\n if (!isObject(o)) { o = {}; }\n\n var len = arguments.length;\n for (var i = 1; i < len; i++) {\n var obj = arguments[i];\n\n if (isObject(obj)) {\n assign(o, obj);\n }\n }\n return o;\n};\n\nfunction assign(a, b) {\n for (var key in b) {\n if (hasOwn(b, key)) {\n a[key] = b[key];\n }\n }\n}\n\n/**\n * Returns true if the given `key` is an own property of `obj`.\n */\n\nfunction hasOwn(obj, key) {\n return Object.prototype.hasOwnProperty.call(obj, key);\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/extend-shallow/index.js\n ** module id = 292\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/extend-shallow/index.js?"); + eval("/*!\n * is-equal-shallow \n *\n * Copyright (c) 2015, Jon Schlinkert.\n * Licensed under the MIT License.\n */\n\n'use strict';\n\nvar isPrimitive = __webpack_require__(291);\n\nmodule.exports = function isEqual(a, b) {\n if (!a && !b) { return true; }\n if (!a && b || a && !b) { return false; }\n\n var numKeysA = 0, numKeysB = 0, key;\n for (key in b) {\n numKeysB++;\n if (!isPrimitive(b[key]) || !a.hasOwnProperty(key) || (a[key] !== b[key])) {\n return false;\n }\n }\n for (key in a) {\n numKeysA++;\n }\n return numKeysA === numKeysB;\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/is-equal-shallow/index.js\n ** module id = 292\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/is-equal-shallow/index.js?"); /***/ }, /* 293 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("'use strict';\n\nvar hasOwn = Object.prototype.hasOwnProperty;\nvar toStr = Object.prototype.toString;\n\nvar isArray = function isArray(arr) {\n\tif (typeof Array.isArray === 'function') {\n\t\treturn Array.isArray(arr);\n\t}\n\n\treturn toStr.call(arr) === '[object Array]';\n};\n\nvar isPlainObject = function isPlainObject(obj) {\n\tif (!obj || toStr.call(obj) !== '[object Object]') {\n\t\treturn false;\n\t}\n\n\tvar hasOwnConstructor = hasOwn.call(obj, 'constructor');\n\tvar hasIsPrototypeOf = obj.constructor && obj.constructor.prototype && hasOwn.call(obj.constructor.prototype, 'isPrototypeOf');\n\t// Not own constructor property must be Object\n\tif (obj.constructor && !hasOwnConstructor && !hasIsPrototypeOf) {\n\t\treturn false;\n\t}\n\n\t// Own properties are enumerated firstly, so to speed up,\n\t// if last one is own, then all properties are own.\n\tvar key;\n\tfor (key in obj) {/**/}\n\n\treturn typeof key === 'undefined' || hasOwn.call(obj, key);\n};\n\nmodule.exports = function extend() {\n\tvar options, name, src, copy, copyIsArray, clone,\n\t\ttarget = arguments[0],\n\t\ti = 1,\n\t\tlength = arguments.length,\n\t\tdeep = false;\n\n\t// Handle a deep copy situation\n\tif (typeof target === 'boolean') {\n\t\tdeep = target;\n\t\ttarget = arguments[1] || {};\n\t\t// skip the boolean and the target\n\t\ti = 2;\n\t} else if ((typeof target !== 'object' && typeof target !== 'function') || target == null) {\n\t\ttarget = {};\n\t}\n\n\tfor (; i < length; ++i) {\n\t\toptions = arguments[i];\n\t\t// Only deal with non-null/undefined values\n\t\tif (options != null) {\n\t\t\t// Extend the base object\n\t\t\tfor (name in options) {\n\t\t\t\tsrc = target[name];\n\t\t\t\tcopy = options[name];\n\n\t\t\t\t// Prevent never-ending loop\n\t\t\t\tif (target !== copy) {\n\t\t\t\t\t// Recurse if we're merging plain objects or arrays\n\t\t\t\t\tif (deep && copy && (isPlainObject(copy) || (copyIsArray = isArray(copy)))) {\n\t\t\t\t\t\tif (copyIsArray) {\n\t\t\t\t\t\t\tcopyIsArray = false;\n\t\t\t\t\t\t\tclone = src && isArray(src) ? src : [];\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tclone = src && isPlainObject(src) ? src : {};\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Never move original objects, clone them\n\t\t\t\t\t\ttarget[name] = extend(deep, clone, copy);\n\n\t\t\t\t\t// Don't bring in undefined values\n\t\t\t\t\t} else if (typeof copy !== 'undefined') {\n\t\t\t\t\t\ttarget[name] = copy;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// Return the modified object\n\treturn target;\n};\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/extend/index.js\n ** module id = 293\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/extend/index.js?"); + eval("'use strict';\n\nvar chars = __webpack_require__(294);\nvar utils = __webpack_require__(261);\n\n/**\n * Expose `Glob`\n */\n\nvar Glob = module.exports = function Glob(pattern, options) {\n if (!(this instanceof Glob)) {\n return new Glob(pattern, options);\n }\n this.options = options || {};\n this.pattern = pattern;\n this.history = [];\n this.tokens = {};\n this.init(pattern);\n};\n\n/**\n * Initialize defaults\n */\n\nGlob.prototype.init = function(pattern) {\n this.orig = pattern;\n this.negated = this.isNegated();\n this.options.track = this.options.track || false;\n this.options.makeRe = true;\n};\n\n/**\n * Push a change into `glob.history`. Useful\n * for debugging.\n */\n\nGlob.prototype.track = function(msg) {\n if (this.options.track) {\n this.history.push({msg: msg, pattern: this.pattern});\n }\n};\n\n/**\n * Return true if `glob.pattern` was negated\n * with `!`, also remove the `!` from the pattern.\n *\n * @return {Boolean}\n */\n\nGlob.prototype.isNegated = function() {\n if (this.pattern.charCodeAt(0) === 33 /* '!' */) {\n this.pattern = this.pattern.slice(1);\n return true;\n }\n return false;\n};\n\n/**\n * Expand braces in the given glob pattern.\n *\n * We only need to use the [braces] lib when\n * patterns are nested.\n */\n\nGlob.prototype.braces = function() {\n if (this.options.nobraces !== true && this.options.nobrace !== true) {\n // naive/fast check for imbalanced characters\n var a = this.pattern.match(/[\\{\\(\\[]/g);\n var b = this.pattern.match(/[\\}\\)\\]]/g);\n\n // if imbalanced, don't optimize the pattern\n if (a && b && (a.length !== b.length)) {\n this.options.makeRe = false;\n }\n\n // expand brace patterns and join the resulting array\n var expanded = utils.braces(this.pattern, this.options);\n this.pattern = expanded.join('|');\n }\n};\n\n/**\n * Expand bracket expressions in `glob.pattern`\n */\n\nGlob.prototype.brackets = function() {\n if (this.options.nobrackets !== true) {\n this.pattern = utils.brackets(this.pattern);\n }\n};\n\n/**\n * Expand bracket expressions in `glob.pattern`\n */\n\nGlob.prototype.extglob = function() {\n if (this.options.noextglob === true) return;\n\n if (utils.isExtglob(this.pattern)) {\n this.pattern = utils.extglob(this.pattern, {escape: true});\n }\n};\n\n/**\n * Parse the given pattern\n */\n\nGlob.prototype.parse = function(pattern) {\n this.tokens = utils.parseGlob(pattern || this.pattern, true);\n return this.tokens;\n};\n\n/**\n * Replace `a` with `b`. Also tracks the change before and\n * after each replacement. This is disabled by default, but\n * can be enabled by setting `options.track` to true.\n *\n * Also, when the pattern is a string, `.split()` is used,\n * because it's much faster than replace.\n *\n * @param {RegExp|String} `a`\n * @param {String} `b`\n * @param {Boolean} `escape` When `true`, escapes `*` and `?` in the replacement.\n * @return {String}\n */\n\nGlob.prototype._replace = function(a, b, escape) {\n this.track('before (find): \"' + a + '\" (replace with): \"' + b + '\"');\n if (escape) b = esc(b);\n if (a && b && typeof a === 'string') {\n this.pattern = this.pattern.split(a).join(b);\n } else {\n this.pattern = this.pattern.replace(a, b);\n }\n this.track('after');\n};\n\n/**\n * Escape special characters in the given string.\n *\n * @param {String} `str` Glob pattern\n * @return {String}\n */\n\nGlob.prototype.escape = function(str) {\n this.track('before escape: ');\n var re = /[\"\\\\](['\"]?[^\"'\\\\]['\"]?)/g;\n\n this.pattern = str.replace(re, function($0, $1) {\n var o = chars.ESC;\n var ch = o && o[$1];\n if (ch) {\n return ch;\n }\n if (/[a-z]/i.test($0)) {\n return $0.split('\\\\').join('');\n }\n return $0;\n });\n\n this.track('after escape: ');\n};\n\n/**\n * Unescape special characters in the given string.\n *\n * @param {String} `str`\n * @return {String}\n */\n\nGlob.prototype.unescape = function(str) {\n var re = /__([A-Z]+)_([A-Z]+)__/g;\n this.pattern = str.replace(re, function($0, $1) {\n return chars[$1][$0];\n });\n this.pattern = unesc(this.pattern);\n};\n\n/**\n * Escape/unescape utils\n */\n\nfunction esc(str) {\n str = str.split('?').join('%~');\n str = str.split('*').join('%%');\n return str;\n}\n\nfunction unesc(str) {\n str = str.split('%~').join('?');\n str = str.split('%%').join('*');\n return str;\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/micromatch/lib/glob.js\n ** module id = 293\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/micromatch/lib/glob.js?"); /***/ }, /* 294 */ -/***/ function(module, exports, __webpack_require__) { +/***/ function(module, exports) { - eval("/* WEBPACK VAR INJECTION */(function(Buffer, process) {var stream = __webpack_require__(237)\nvar eos = __webpack_require__(295)\nvar util = __webpack_require__(139)\n\nvar SIGNAL_FLUSH = new Buffer([0])\n\nvar onuncork = function(self, fn) {\n if (self._corked) self.once('uncork', fn)\n else fn()\n}\n\nvar destroyer = function(self, end) {\n return function(err) {\n if (err) self.destroy(err.message === 'premature close' ? null : err)\n else if (end && !self._ended) self.end()\n }\n}\n\nvar end = function(ws, fn) {\n if (!ws) return fn()\n if (ws._writableState && ws._writableState.finished) return fn()\n if (ws._writableState) return ws.end(fn)\n ws.end()\n fn()\n}\n\nvar toStreams2 = function(rs) {\n return new (stream.Readable)({objectMode:true, highWaterMark:16}).wrap(rs)\n}\n\nvar Duplexify = function(writable, readable, opts) {\n if (!(this instanceof Duplexify)) return new Duplexify(writable, readable, opts)\n stream.Duplex.call(this, opts)\n\n this._writable = null\n this._readable = null\n this._readable2 = null\n\n this._forwardDestroy = !opts || opts.destroy !== false\n this._forwardEnd = !opts || opts.end !== false\n this._corked = 1 // start corked\n this._ondrain = null\n this._drained = false\n this._forwarding = false\n this._unwrite = null\n this._unread = null\n this._ended = false\n\n this.destroyed = false\n\n if (writable) this.setWritable(writable)\n if (readable) this.setReadable(readable)\n}\n\nutil.inherits(Duplexify, stream.Duplex)\n\nDuplexify.obj = function(writable, readable, opts) {\n if (!opts) opts = {}\n opts.objectMode = true\n opts.highWaterMark = 16\n return new Duplexify(writable, readable, opts)\n}\n\nDuplexify.prototype.cork = function() {\n if (++this._corked === 1) this.emit('cork')\n}\n\nDuplexify.prototype.uncork = function() {\n if (this._corked && --this._corked === 0) this.emit('uncork')\n}\n\nDuplexify.prototype.setWritable = function(writable) {\n if (this._unwrite) this._unwrite()\n\n if (this.destroyed) {\n if (writable && writable.destroy) writable.destroy()\n return\n }\n\n if (writable === null || writable === false) {\n this.end()\n return\n }\n\n var self = this\n var unend = eos(writable, {writable:true, readable:false}, destroyer(this, this._forwardEnd))\n\n var ondrain = function() {\n var ondrain = self._ondrain\n self._ondrain = null\n if (ondrain) ondrain()\n }\n\n var clear = function() {\n self._writable.removeListener('drain', ondrain)\n unend()\n }\n\n if (this._unwrite) process.nextTick(ondrain) // force a drain on stream reset to avoid livelocks\n\n this._writable = writable\n this._writable.on('drain', ondrain)\n this._unwrite = clear\n\n this.uncork() // always uncork setWritable\n}\n\nDuplexify.prototype.setReadable = function(readable) {\n if (this._unread) this._unread()\n\n if (this.destroyed) {\n if (readable && readable.destroy) readable.destroy()\n return\n }\n\n if (readable === null || readable === false) {\n this.push(null)\n this.resume()\n return\n }\n\n var self = this\n var unend = eos(readable, {writable:false, readable:true}, destroyer(this))\n\n var onreadable = function() {\n self._forward()\n }\n\n var onend = function() {\n self.push(null)\n }\n\n var clear = function() {\n self._readable2.removeListener('readable', onreadable)\n self._readable2.removeListener('end', onend)\n unend()\n }\n\n this._drained = true\n this._readable = readable\n this._readable2 = readable._readableState ? readable : toStreams2(readable)\n this._readable2.on('readable', onreadable)\n this._readable2.on('end', onend)\n this._unread = clear\n\n this._forward()\n}\n\nDuplexify.prototype._read = function() {\n this._drained = true\n this._forward()\n}\n\nDuplexify.prototype._forward = function() {\n if (this._forwarding || !this._readable2 || !this._drained) return\n this._forwarding = true\n\n var data\n var state = this._readable2._readableState\n\n while ((data = this._readable2.read(state.buffer.length ? state.buffer[0].length : state.length)) !== null) {\n this._drained = this.push(data)\n }\n\n this._forwarding = false\n}\n\nDuplexify.prototype.destroy = function(err) {\n if (this.destroyed) return\n this.destroyed = true\n\n var self = this\n process.nextTick(function() {\n self._destroy(err)\n })\n}\n\nDuplexify.prototype._destroy = function(err) {\n if (err) {\n var ondrain = this._ondrain\n this._ondrain = null\n if (ondrain) ondrain(err)\n else this.emit('error', err)\n }\n\n if (this._forwardDestroy) {\n if (this._readable && this._readable.destroy) this._readable.destroy()\n if (this._writable && this._writable.destroy) this._writable.destroy()\n }\n\n this.emit('close')\n}\n\nDuplexify.prototype._write = function(data, enc, cb) {\n if (this.destroyed) return cb()\n if (this._corked) return onuncork(this, this._write.bind(this, data, enc, cb))\n if (data === SIGNAL_FLUSH) return this._finish(cb)\n if (!this._writable) return cb()\n\n if (this._writable.write(data) === false) this._ondrain = cb\n else cb()\n}\n\n\nDuplexify.prototype._finish = function(cb) {\n var self = this\n this.emit('preend')\n onuncork(this, function() {\n end(self._forwardEnd && self._writable, function() {\n // haxx to not emit prefinish twice\n if (self._writableState.prefinished === false) self._writableState.prefinished = true\n self.emit('prefinish')\n onuncork(self, cb)\n })\n })\n}\n\nDuplexify.prototype.end = function(data, enc, cb) {\n if (typeof data === 'function') return this.end(null, null, data)\n if (typeof enc === 'function') return this.end(data, null, enc)\n this._ended = true\n if (data) this.write(data)\n if (!this._writableState.ending) this.write(SIGNAL_FLUSH)\n return stream.Writable.prototype.end.call(this, cb)\n}\n\nmodule.exports = Duplexify\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1).Buffer, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/duplexify/index.js\n ** module id = 294\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/duplexify/index.js?"); + eval("'use strict';\n\nvar chars = {}, unesc, temp;\n\nfunction reverse(object, prepender) {\n return Object.keys(object).reduce(function(reversed, key) {\n var newKey = prepender ? prepender + key : key; // Optionally prepend a string to key.\n reversed[object[key]] = newKey; // Swap key and value.\n return reversed; // Return the result.\n }, {});\n}\n\n/**\n * Regex for common characters\n */\n\nchars.escapeRegex = {\n '?': /\\?/g,\n '@': /\\@/g,\n '!': /\\!/g,\n '+': /\\+/g,\n '*': /\\*/g,\n '(': /\\(/g,\n ')': /\\)/g,\n '[': /\\[/g,\n ']': /\\]/g\n};\n\n/**\n * Escape characters\n */\n\nchars.ESC = {\n '?': '__UNESC_QMRK__',\n '@': '__UNESC_AMPE__',\n '!': '__UNESC_EXCL__',\n '+': '__UNESC_PLUS__',\n '*': '__UNESC_STAR__',\n ',': '__UNESC_COMMA__',\n '(': '__UNESC_LTPAREN__',\n ')': '__UNESC_RTPAREN__',\n '[': '__UNESC_LTBRACK__',\n ']': '__UNESC_RTBRACK__'\n};\n\n/**\n * Unescape characters\n */\n\nchars.UNESC = unesc || (unesc = reverse(chars.ESC, '\\\\'));\n\nchars.ESC_TEMP = {\n '?': '__TEMP_QMRK__',\n '@': '__TEMP_AMPE__',\n '!': '__TEMP_EXCL__',\n '*': '__TEMP_STAR__',\n '+': '__TEMP_PLUS__',\n ',': '__TEMP_COMMA__',\n '(': '__TEMP_LTPAREN__',\n ')': '__TEMP_RTPAREN__',\n '[': '__TEMP_LTBRACK__',\n ']': '__TEMP_RTBRACK__'\n};\n\nchars.TEMP = temp || (temp = reverse(chars.ESC_TEMP));\n\nmodule.exports = chars;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/micromatch/lib/chars.js\n ** module id = 294\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/micromatch/lib/chars.js?"); /***/ }, /* 295 */ /***/ function(module, exports, __webpack_require__) { - eval("var once = __webpack_require__(254);\n\nvar noop = function() {};\n\nvar isRequest = function(stream) {\n\treturn stream.setHeader && typeof stream.abort === 'function';\n};\n\nvar eos = function(stream, opts, callback) {\n\tif (typeof opts === 'function') return eos(stream, null, opts);\n\tif (!opts) opts = {};\n\n\tcallback = once(callback || noop);\n\n\tvar ws = stream._writableState;\n\tvar rs = stream._readableState;\n\tvar readable = opts.readable || (opts.readable !== false && stream.readable);\n\tvar writable = opts.writable || (opts.writable !== false && stream.writable);\n\n\tvar onlegacyfinish = function() {\n\t\tif (!stream.writable) onfinish();\n\t};\n\n\tvar onfinish = function() {\n\t\twritable = false;\n\t\tif (!readable) callback();\n\t};\n\n\tvar onend = function() {\n\t\treadable = false;\n\t\tif (!writable) callback();\n\t};\n\n\tvar onclose = function() {\n\t\tif (readable && !(rs && rs.ended)) return callback(new Error('premature close'));\n\t\tif (writable && !(ws && ws.ended)) return callback(new Error('premature close'));\n\t};\n\n\tvar onrequest = function() {\n\t\tstream.req.on('finish', onfinish);\n\t};\n\n\tif (isRequest(stream)) {\n\t\tstream.on('complete', onfinish);\n\t\tstream.on('abort', onclose);\n\t\tif (stream.req) onrequest();\n\t\telse stream.on('request', onrequest);\n\t} else if (writable && !ws) { // legacy streams\n\t\tstream.on('end', onlegacyfinish);\n\t\tstream.on('close', onlegacyfinish);\n\t}\n\n\tstream.on('end', onend);\n\tstream.on('finish', onfinish);\n\tif (opts.error !== false) stream.on('error', callback);\n\tstream.on('close', onclose);\n\n\treturn function() {\n\t\tstream.removeListener('complete', onfinish);\n\t\tstream.removeListener('abort', onclose);\n\t\tstream.removeListener('request', onrequest);\n\t\tif (stream.req) stream.req.removeListener('finish', onfinish);\n\t\tstream.removeListener('end', onlegacyfinish);\n\t\tstream.removeListener('close', onlegacyfinish);\n\t\tstream.removeListener('finish', onfinish);\n\t\tstream.removeListener('end', onend);\n\t\tstream.removeListener('error', callback);\n\t\tstream.removeListener('close', onclose);\n\t};\n};\n\nmodule.exports = eos;\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/end-of-stream/index.js\n ** module id = 295\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/end-of-stream/index.js?"); + eval("/* WEBPACK VAR INJECTION */(function(process) {'use strict';\n\nvar path = __webpack_require__(149);\nvar extend = __webpack_require__(296);\n\nmodule.exports = function(glob, options) {\n var opts = extend({}, options);\n opts.cwd = opts.cwd ? path.resolve(opts.cwd) : process.cwd();\n\n // store first and last characters before glob is modified\n var prefix = glob.charAt(0);\n var suffix = glob.slice(-1);\n\n var isNegative = prefix === '!';\n if (isNegative) glob = glob.slice(1);\n\n if (opts.root && glob.charAt(0) === '/') {\n glob = path.join(path.resolve(opts.root), '.' + glob);\n } else {\n glob = path.resolve(opts.cwd, glob);\n }\n\n if (suffix === '/' && glob.slice(-1) !== '/') {\n glob += '/';\n }\n\n return isNegative ? '!' + glob : glob;\n};\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/to-absolute-glob/index.js\n ** module id = 295\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/to-absolute-glob/index.js?"); /***/ }, /* 296 */ /***/ function(module, exports, __webpack_require__) { - eval("'use strict';\n\nvar PassThrough = __webpack_require__(297)\n\nmodule.exports = function (/*streams...*/) {\n var sources = []\n var output = new PassThrough({objectMode: true})\n\n output.setMaxListeners(0)\n\n output.add = add\n output.isEmpty = isEmpty\n\n output.on('unpipe', remove)\n\n Array.prototype.slice.call(arguments).forEach(add)\n\n return output\n\n function add (source) {\n if (Array.isArray(source)) {\n source.forEach(add)\n return this\n }\n\n sources.push(source);\n source.once('end', remove.bind(null, source))\n source.pipe(output, {end: false})\n return this\n }\n\n function isEmpty () {\n return sources.length == 0;\n }\n\n function remove (source) {\n sources = sources.filter(function (it) { return it !== source })\n if (!sources.length && output.readable) { output.end() }\n }\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/merge-stream/index.js\n ** module id = 296\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/merge-stream/index.js?"); + eval("'use strict';\n\nvar isObject = __webpack_require__(283);\n\nmodule.exports = function extend(o/*, objects*/) {\n if (!isObject(o)) { o = {}; }\n\n var len = arguments.length;\n for (var i = 1; i < len; i++) {\n var obj = arguments[i];\n\n if (isObject(obj)) {\n assign(o, obj);\n }\n }\n return o;\n};\n\nfunction assign(a, b) {\n for (var key in b) {\n if (hasOwn(b, key)) {\n a[key] = b[key];\n }\n }\n}\n\n/**\n * Returns true if the given `key` is an own property of `obj`.\n */\n\nfunction hasOwn(obj, key) {\n return Object.prototype.hasOwnProperty.call(obj, key);\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/extend-shallow/index.js\n ** module id = 296\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/extend-shallow/index.js?"); /***/ }, /* 297 */ -/***/ function(module, exports, __webpack_require__) { +/***/ function(module, exports) { - eval("module.exports = __webpack_require__(238)\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/readable-stream/passthrough.js\n ** module id = 297\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/readable-stream/passthrough.js?"); + eval("'use strict';\n\nvar hasOwn = Object.prototype.hasOwnProperty;\nvar toStr = Object.prototype.toString;\n\nvar isArray = function isArray(arr) {\n\tif (typeof Array.isArray === 'function') {\n\t\treturn Array.isArray(arr);\n\t}\n\n\treturn toStr.call(arr) === '[object Array]';\n};\n\nvar isPlainObject = function isPlainObject(obj) {\n\tif (!obj || toStr.call(obj) !== '[object Object]') {\n\t\treturn false;\n\t}\n\n\tvar hasOwnConstructor = hasOwn.call(obj, 'constructor');\n\tvar hasIsPrototypeOf = obj.constructor && obj.constructor.prototype && hasOwn.call(obj.constructor.prototype, 'isPrototypeOf');\n\t// Not own constructor property must be Object\n\tif (obj.constructor && !hasOwnConstructor && !hasIsPrototypeOf) {\n\t\treturn false;\n\t}\n\n\t// Own properties are enumerated firstly, so to speed up,\n\t// if last one is own, then all properties are own.\n\tvar key;\n\tfor (key in obj) {/**/}\n\n\treturn typeof key === 'undefined' || hasOwn.call(obj, key);\n};\n\nmodule.exports = function extend() {\n\tvar options, name, src, copy, copyIsArray, clone,\n\t\ttarget = arguments[0],\n\t\ti = 1,\n\t\tlength = arguments.length,\n\t\tdeep = false;\n\n\t// Handle a deep copy situation\n\tif (typeof target === 'boolean') {\n\t\tdeep = target;\n\t\ttarget = arguments[1] || {};\n\t\t// skip the boolean and the target\n\t\ti = 2;\n\t} else if ((typeof target !== 'object' && typeof target !== 'function') || target == null) {\n\t\ttarget = {};\n\t}\n\n\tfor (; i < length; ++i) {\n\t\toptions = arguments[i];\n\t\t// Only deal with non-null/undefined values\n\t\tif (options != null) {\n\t\t\t// Extend the base object\n\t\t\tfor (name in options) {\n\t\t\t\tsrc = target[name];\n\t\t\t\tcopy = options[name];\n\n\t\t\t\t// Prevent never-ending loop\n\t\t\t\tif (target !== copy) {\n\t\t\t\t\t// Recurse if we're merging plain objects or arrays\n\t\t\t\t\tif (deep && copy && (isPlainObject(copy) || (copyIsArray = isArray(copy)))) {\n\t\t\t\t\t\tif (copyIsArray) {\n\t\t\t\t\t\t\tcopyIsArray = false;\n\t\t\t\t\t\t\tclone = src && isArray(src) ? src : [];\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tclone = src && isPlainObject(src) ? src : {};\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Never move original objects, clone them\n\t\t\t\t\t\ttarget[name] = extend(deep, clone, copy);\n\n\t\t\t\t\t// Don't bring in undefined values\n\t\t\t\t\t} else if (typeof copy !== 'undefined') {\n\t\t\t\t\t\ttarget[name] = copy;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t// Return the modified object\n\treturn target;\n};\n\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/extend/index.js\n ** module id = 297\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/extend/index.js?"); /***/ }, /* 298 */ /***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(Buffer) {'use strict';\nvar through = __webpack_require__(299);\nvar fs = __webpack_require__(300);\nvar path = __webpack_require__(149);\nvar File = __webpack_require__(214);\nvar convert = __webpack_require__(305);\nvar stripBom = __webpack_require__(306);\n\nvar PLUGIN_NAME = 'gulp-sourcemap';\nvar urlRegex = /^(https?|webpack(-[^:]+)?):\\/\\//;\n\n/**\n * Initialize source mapping chain\n */\nmodule.exports.init = function init(options) {\n function sourceMapInit(file, encoding, callback) {\n /*jshint validthis:true */\n\n // pass through if file is null or already has a source map\n if (file.isNull() || file.sourceMap) {\n this.push(file);\n return callback();\n }\n\n if (file.isStream()) {\n return callback(new Error(PLUGIN_NAME + '-init: Streaming not supported'));\n }\n\n var fileContent = file.contents.toString();\n var sourceMap;\n\n if (options && options.loadMaps) {\n var sourcePath = ''; //root path for the sources in the map\n\n // Try to read inline source map\n sourceMap = convert.fromSource(fileContent);\n if (sourceMap) {\n sourceMap = sourceMap.toObject();\n // sources in map are relative to the source file\n sourcePath = path.dirname(file.path);\n fileContent = convert.removeComments(fileContent);\n } else {\n // look for source map comment referencing a source map file\n var mapComment = convert.mapFileCommentRegex.exec(fileContent);\n\n var mapFile;\n if (mapComment) {\n mapFile = path.resolve(path.dirname(file.path), mapComment[1] || mapComment[2]);\n fileContent = convert.removeMapFileComments(fileContent);\n // if no comment try map file with same name as source file\n } else {\n mapFile = file.path + '.map';\n }\n\n // sources in external map are relative to map file\n sourcePath = path.dirname(mapFile);\n\n try {\n sourceMap = JSON.parse(stripBom(fs.readFileSync(mapFile, 'utf8')));\n } catch(e) {}\n }\n\n // fix source paths and sourceContent for imported source map\n if (sourceMap) {\n sourceMap.sourcesContent = sourceMap.sourcesContent || [];\n sourceMap.sources.forEach(function(source, i) {\n if (source.match(urlRegex)) {\n sourceMap.sourcesContent[i] = sourceMap.sourcesContent[i] || null;\n return;\n }\n var absPath = path.resolve(sourcePath, source);\n sourceMap.sources[i] = unixStylePath(path.relative(file.base, absPath));\n\n if (!sourceMap.sourcesContent[i]) {\n var sourceContent = null;\n if (sourceMap.sourceRoot) {\n if (sourceMap.sourceRoot.match(urlRegex)) {\n sourceMap.sourcesContent[i] = null;\n return;\n }\n absPath = path.resolve(sourcePath, sourceMap.sourceRoot, source);\n }\n\n // if current file: use content\n if (absPath === file.path) {\n sourceContent = fileContent;\n\n // else load content from file\n } else {\n try {\n if (options.debug)\n console.log(PLUGIN_NAME + '-init: No source content for \"' + source + '\". Loading from file.');\n sourceContent = stripBom(fs.readFileSync(absPath, 'utf8'));\n } catch (e) {\n if (options.debug)\n console.warn(PLUGIN_NAME + '-init: source file not found: ' + absPath);\n }\n }\n sourceMap.sourcesContent[i] = sourceContent;\n }\n });\n\n // remove source map comment from source\n file.contents = new Buffer(fileContent, 'utf8');\n }\n }\n\n if (!sourceMap) {\n // Make an empty source map\n sourceMap = {\n version : 3,\n names: [],\n mappings: '',\n sources: [unixStylePath(file.relative)],\n sourcesContent: [fileContent]\n };\n }\n\n sourceMap.file = unixStylePath(file.relative);\n file.sourceMap = sourceMap;\n\n this.push(file);\n callback();\n }\n\n return through.obj(sourceMapInit);\n};\n\n/**\n * Write the source map\n *\n * @param options options to change the way the source map is written\n *\n */\nmodule.exports.write = function write(destPath, options) {\n if (options === undefined && Object.prototype.toString.call(destPath) === '[object Object]') {\n options = destPath;\n destPath = undefined;\n }\n options = options || {};\n\n // set defaults for options if unset\n if (options.includeContent === undefined)\n options.includeContent = true;\n if (options.addComment === undefined)\n options.addComment = true;\n\n function sourceMapWrite(file, encoding, callback) {\n /*jshint validthis:true */\n\n if (file.isNull() || !file.sourceMap) {\n this.push(file);\n return callback();\n }\n\n if (file.isStream()) {\n return callback(new Error(PLUGIN_NAME + '-write: Streaming not supported'));\n }\n\n var sourceMap = file.sourceMap;\n // fix paths if Windows style paths\n sourceMap.file = unixStylePath(file.relative);\n sourceMap.sources = sourceMap.sources.map(function(filePath) {\n return unixStylePath(filePath);\n });\n\n if (typeof options.sourceRoot === 'function') {\n sourceMap.sourceRoot = options.sourceRoot(file);\n } else {\n sourceMap.sourceRoot = options.sourceRoot;\n }\n\n if (options.includeContent) {\n sourceMap.sourcesContent = sourceMap.sourcesContent || [];\n\n // load missing source content\n for (var i = 0; i < file.sourceMap.sources.length; i++) {\n if (!sourceMap.sourcesContent[i]) {\n var sourcePath = path.resolve(sourceMap.sourceRoot || file.base, sourceMap.sources[i]);\n try {\n if (options.debug)\n console.log(PLUGIN_NAME + '-write: No source content for \"' + sourceMap.sources[i] + '\". Loading from file.');\n sourceMap.sourcesContent[i] = stripBom(fs.readFileSync(sourcePath, 'utf8'));\n } catch (e) {\n if (options.debug)\n console.warn(PLUGIN_NAME + '-write: source file not found: ' + sourcePath);\n }\n }\n }\n if (sourceMap.sourceRoot === undefined) {\n sourceMap.sourceRoot = '/source/';\n } else if (sourceMap.sourceRoot === null) {\n sourceMap.sourceRoot = undefined;\n }\n } else {\n delete sourceMap.sourcesContent;\n }\n\n var extension = file.relative.split('.').pop();\n var commentFormatter;\n\n switch (extension) {\n case 'css':\n commentFormatter = function(url) { return \"\\n/*# sourceMappingURL=\" + url + \" */\\n\"; };\n break;\n case 'js':\n commentFormatter = function(url) { return \"\\n//# sourceMappingURL=\" + url + \"\\n\"; };\n break;\n default:\n commentFormatter = function(url) { return \"\"; };\n }\n\n var comment, sourceMappingURLPrefix;\n if (!destPath) {\n // encode source map into comment\n var base64Map = new Buffer(JSON.stringify(sourceMap)).toString('base64');\n comment = commentFormatter('data:application/json;base64,' + base64Map);\n } else {\n var sourceMapPath = path.join(file.base, destPath, file.relative) + '.map';\n // add new source map file to stream\n var sourceMapFile = new File({\n cwd: file.cwd,\n base: file.base,\n path: sourceMapPath,\n contents: new Buffer(JSON.stringify(sourceMap)),\n stat: {\n isFile: function () { return true; },\n isDirectory: function () { return false; },\n isBlockDevice: function () { return false; },\n isCharacterDevice: function () { return false; },\n isSymbolicLink: function () { return false; },\n isFIFO: function () { return false; },\n isSocket: function () { return false; }\n }\n });\n this.push(sourceMapFile);\n\n var sourceMapPathRelative = path.relative(path.dirname(file.path), sourceMapPath);\n\n if (options.sourceMappingURLPrefix) {\n var prefix = '';\n if (typeof options.sourceMappingURLPrefix === 'function') {\n prefix = options.sourceMappingURLPrefix(file);\n } else {\n prefix = options.sourceMappingURLPrefix;\n }\n sourceMapPathRelative = prefix+path.join('/', sourceMapPathRelative);\n }\n comment = commentFormatter(unixStylePath(sourceMapPathRelative));\n\n if (options.sourceMappingURL && typeof options.sourceMappingURL === 'function') {\n comment = commentFormatter(options.sourceMappingURL(file));\n }\n }\n\n // append source map comment\n if (options.addComment)\n file.contents = Buffer.concat([file.contents, new Buffer(comment)]);\n\n this.push(file);\n callback();\n }\n\n return through.obj(sourceMapWrite);\n};\n\nfunction unixStylePath(filePath) {\n return filePath.split(path.sep).join('/');\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1).Buffer))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/gulp-sourcemaps/index.js\n ** module id = 298\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/gulp-sourcemaps/index.js?"); + eval("/* WEBPACK VAR INJECTION */(function(Buffer, process) {var stream = __webpack_require__(237)\nvar eos = __webpack_require__(299)\nvar util = __webpack_require__(139)\n\nvar SIGNAL_FLUSH = new Buffer([0])\n\nvar onuncork = function(self, fn) {\n if (self._corked) self.once('uncork', fn)\n else fn()\n}\n\nvar destroyer = function(self, end) {\n return function(err) {\n if (err) self.destroy(err.message === 'premature close' ? null : err)\n else if (end && !self._ended) self.end()\n }\n}\n\nvar end = function(ws, fn) {\n if (!ws) return fn()\n if (ws._writableState && ws._writableState.finished) return fn()\n if (ws._writableState) return ws.end(fn)\n ws.end()\n fn()\n}\n\nvar toStreams2 = function(rs) {\n return new (stream.Readable)({objectMode:true, highWaterMark:16}).wrap(rs)\n}\n\nvar Duplexify = function(writable, readable, opts) {\n if (!(this instanceof Duplexify)) return new Duplexify(writable, readable, opts)\n stream.Duplex.call(this, opts)\n\n this._writable = null\n this._readable = null\n this._readable2 = null\n\n this._forwardDestroy = !opts || opts.destroy !== false\n this._forwardEnd = !opts || opts.end !== false\n this._corked = 1 // start corked\n this._ondrain = null\n this._drained = false\n this._forwarding = false\n this._unwrite = null\n this._unread = null\n this._ended = false\n\n this.destroyed = false\n\n if (writable) this.setWritable(writable)\n if (readable) this.setReadable(readable)\n}\n\nutil.inherits(Duplexify, stream.Duplex)\n\nDuplexify.obj = function(writable, readable, opts) {\n if (!opts) opts = {}\n opts.objectMode = true\n opts.highWaterMark = 16\n return new Duplexify(writable, readable, opts)\n}\n\nDuplexify.prototype.cork = function() {\n if (++this._corked === 1) this.emit('cork')\n}\n\nDuplexify.prototype.uncork = function() {\n if (this._corked && --this._corked === 0) this.emit('uncork')\n}\n\nDuplexify.prototype.setWritable = function(writable) {\n if (this._unwrite) this._unwrite()\n\n if (this.destroyed) {\n if (writable && writable.destroy) writable.destroy()\n return\n }\n\n if (writable === null || writable === false) {\n this.end()\n return\n }\n\n var self = this\n var unend = eos(writable, {writable:true, readable:false}, destroyer(this, this._forwardEnd))\n\n var ondrain = function() {\n var ondrain = self._ondrain\n self._ondrain = null\n if (ondrain) ondrain()\n }\n\n var clear = function() {\n self._writable.removeListener('drain', ondrain)\n unend()\n }\n\n if (this._unwrite) process.nextTick(ondrain) // force a drain on stream reset to avoid livelocks\n\n this._writable = writable\n this._writable.on('drain', ondrain)\n this._unwrite = clear\n\n this.uncork() // always uncork setWritable\n}\n\nDuplexify.prototype.setReadable = function(readable) {\n if (this._unread) this._unread()\n\n if (this.destroyed) {\n if (readable && readable.destroy) readable.destroy()\n return\n }\n\n if (readable === null || readable === false) {\n this.push(null)\n this.resume()\n return\n }\n\n var self = this\n var unend = eos(readable, {writable:false, readable:true}, destroyer(this))\n\n var onreadable = function() {\n self._forward()\n }\n\n var onend = function() {\n self.push(null)\n }\n\n var clear = function() {\n self._readable2.removeListener('readable', onreadable)\n self._readable2.removeListener('end', onend)\n unend()\n }\n\n this._drained = true\n this._readable = readable\n this._readable2 = readable._readableState ? readable : toStreams2(readable)\n this._readable2.on('readable', onreadable)\n this._readable2.on('end', onend)\n this._unread = clear\n\n this._forward()\n}\n\nDuplexify.prototype._read = function() {\n this._drained = true\n this._forward()\n}\n\nDuplexify.prototype._forward = function() {\n if (this._forwarding || !this._readable2 || !this._drained) return\n this._forwarding = true\n\n var data\n var state = this._readable2._readableState\n\n while ((data = this._readable2.read(state.buffer.length ? state.buffer[0].length : state.length)) !== null) {\n this._drained = this.push(data)\n }\n\n this._forwarding = false\n}\n\nDuplexify.prototype.destroy = function(err) {\n if (this.destroyed) return\n this.destroyed = true\n\n var self = this\n process.nextTick(function() {\n self._destroy(err)\n })\n}\n\nDuplexify.prototype._destroy = function(err) {\n if (err) {\n var ondrain = this._ondrain\n this._ondrain = null\n if (ondrain) ondrain(err)\n else this.emit('error', err)\n }\n\n if (this._forwardDestroy) {\n if (this._readable && this._readable.destroy) this._readable.destroy()\n if (this._writable && this._writable.destroy) this._writable.destroy()\n }\n\n this.emit('close')\n}\n\nDuplexify.prototype._write = function(data, enc, cb) {\n if (this.destroyed) return cb()\n if (this._corked) return onuncork(this, this._write.bind(this, data, enc, cb))\n if (data === SIGNAL_FLUSH) return this._finish(cb)\n if (!this._writable) return cb()\n\n if (this._writable.write(data) === false) this._ondrain = cb\n else cb()\n}\n\n\nDuplexify.prototype._finish = function(cb) {\n var self = this\n this.emit('preend')\n onuncork(this, function() {\n end(self._forwardEnd && self._writable, function() {\n // haxx to not emit prefinish twice\n if (self._writableState.prefinished === false) self._writableState.prefinished = true\n self.emit('prefinish')\n onuncork(self, cb)\n })\n })\n}\n\nDuplexify.prototype.end = function(data, enc, cb) {\n if (typeof data === 'function') return this.end(null, null, data)\n if (typeof enc === 'function') return this.end(data, null, enc)\n this._ended = true\n if (data) this.write(data)\n if (!this._writableState.ending) this.write(SIGNAL_FLUSH)\n return stream.Writable.prototype.end.call(this, cb)\n}\n\nmodule.exports = Duplexify\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1).Buffer, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/duplexify/index.js\n ** module id = 298\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/duplexify/index.js?"); /***/ }, /* 299 */ /***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(process) {var Transform = __webpack_require__(227)\n , inherits = __webpack_require__(139).inherits\n , xtend = __webpack_require__(67)\n\nfunction DestroyableTransform(opts) {\n Transform.call(this, opts)\n this._destroyed = false\n}\n\ninherits(DestroyableTransform, Transform)\n\nDestroyableTransform.prototype.destroy = function(err) {\n if (this._destroyed) return\n this._destroyed = true\n \n var self = this\n process.nextTick(function() {\n if (err)\n self.emit('error', err)\n self.emit('close')\n })\n}\n\n// a noop _transform function\nfunction noop (chunk, enc, callback) {\n callback(null, chunk)\n}\n\n\n// create a new export function, used by both the main export and\n// the .ctor export, contains common logic for dealing with arguments\nfunction through2 (construct) {\n return function (options, transform, flush) {\n if (typeof options == 'function') {\n flush = transform\n transform = options\n options = {}\n }\n\n if (typeof transform != 'function')\n transform = noop\n\n if (typeof flush != 'function')\n flush = null\n\n return construct(options, transform, flush)\n }\n}\n\n\n// main export, just make me a transform stream!\nmodule.exports = through2(function (options, transform, flush) {\n var t2 = new DestroyableTransform(options)\n\n t2._transform = transform\n\n if (flush)\n t2._flush = flush\n\n return t2\n})\n\n\n// make me a reusable prototype that I can `new`, or implicitly `new`\n// with a constructor call\nmodule.exports.ctor = through2(function (options, transform, flush) {\n function Through2 (override) {\n if (!(this instanceof Through2))\n return new Through2(override)\n\n this.options = xtend(options, override)\n\n DestroyableTransform.call(this, this.options)\n }\n\n inherits(Through2, DestroyableTransform)\n\n Through2.prototype._transform = transform\n\n if (flush)\n Through2.prototype._flush = flush\n\n return Through2\n})\n\n\nmodule.exports.obj = through2(function (options, transform, flush) {\n var t2 = new DestroyableTransform(xtend({ objectMode: true, highWaterMark: 16 }, options))\n\n t2._transform = transform\n\n if (flush)\n t2._flush = flush\n\n return t2\n})\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/gulp-sourcemaps/~/through2/through2.js\n ** module id = 299\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/gulp-sourcemaps/~/through2/through2.js?"); + eval("var once = __webpack_require__(258);\n\nvar noop = function() {};\n\nvar isRequest = function(stream) {\n\treturn stream.setHeader && typeof stream.abort === 'function';\n};\n\nvar eos = function(stream, opts, callback) {\n\tif (typeof opts === 'function') return eos(stream, null, opts);\n\tif (!opts) opts = {};\n\n\tcallback = once(callback || noop);\n\n\tvar ws = stream._writableState;\n\tvar rs = stream._readableState;\n\tvar readable = opts.readable || (opts.readable !== false && stream.readable);\n\tvar writable = opts.writable || (opts.writable !== false && stream.writable);\n\n\tvar onlegacyfinish = function() {\n\t\tif (!stream.writable) onfinish();\n\t};\n\n\tvar onfinish = function() {\n\t\twritable = false;\n\t\tif (!readable) callback();\n\t};\n\n\tvar onend = function() {\n\t\treadable = false;\n\t\tif (!writable) callback();\n\t};\n\n\tvar onclose = function() {\n\t\tif (readable && !(rs && rs.ended)) return callback(new Error('premature close'));\n\t\tif (writable && !(ws && ws.ended)) return callback(new Error('premature close'));\n\t};\n\n\tvar onrequest = function() {\n\t\tstream.req.on('finish', onfinish);\n\t};\n\n\tif (isRequest(stream)) {\n\t\tstream.on('complete', onfinish);\n\t\tstream.on('abort', onclose);\n\t\tif (stream.req) onrequest();\n\t\telse stream.on('request', onrequest);\n\t} else if (writable && !ws) { // legacy streams\n\t\tstream.on('end', onlegacyfinish);\n\t\tstream.on('close', onlegacyfinish);\n\t}\n\n\tstream.on('end', onend);\n\tstream.on('finish', onfinish);\n\tif (opts.error !== false) stream.on('error', callback);\n\tstream.on('close', onclose);\n\n\treturn function() {\n\t\tstream.removeListener('complete', onfinish);\n\t\tstream.removeListener('abort', onclose);\n\t\tstream.removeListener('request', onrequest);\n\t\tif (stream.req) stream.req.removeListener('finish', onfinish);\n\t\tstream.removeListener('end', onlegacyfinish);\n\t\tstream.removeListener('close', onlegacyfinish);\n\t\tstream.removeListener('finish', onfinish);\n\t\tstream.removeListener('end', onend);\n\t\tstream.removeListener('error', callback);\n\t\tstream.removeListener('close', onclose);\n\t};\n};\n\nmodule.exports = eos;\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/end-of-stream/index.js\n ** module id = 299\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/end-of-stream/index.js?"); /***/ }, /* 300 */ /***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(process) {var fs = __webpack_require__(82)\nvar polyfills = __webpack_require__(301)\nvar legacy = __webpack_require__(304)\nvar queue = []\n\nvar util = __webpack_require__(139)\n\nfunction noop () {}\n\nvar debug = noop\nif (util.debuglog)\n debug = util.debuglog('gfs4')\nelse if (/\\bgfs4\\b/i.test(process.env.NODE_DEBUG || ''))\n debug = function() {\n var m = util.format.apply(util, arguments)\n m = 'GFS4: ' + m.split(/\\n/).join('\\nGFS4: ')\n console.error(m)\n }\n\nif (/\\bgfs4\\b/i.test(process.env.NODE_DEBUG || '')) {\n process.on('exit', function() {\n debug(queue)\n __webpack_require__(248).equal(queue.length, 0)\n })\n}\n\nmodule.exports = patch(__webpack_require__(302))\nif (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH) {\n module.exports = patch(fs)\n}\n\n// Always patch fs.close/closeSync, because we want to\n// retry() whenever a close happens *anywhere* in the program.\n// This is essential when multiple graceful-fs instances are\n// in play at the same time.\nmodule.exports.close =\nfs.close = (function (fs$close) { return function (fd, cb) {\n return fs$close.call(fs, fd, function (err) {\n if (!err)\n retry()\n\n if (typeof cb === 'function')\n cb.apply(this, arguments)\n })\n}})(fs.close)\n\nmodule.exports.closeSync =\nfs.closeSync = (function (fs$closeSync) { return function (fd) {\n // Note that graceful-fs also retries when fs.closeSync() fails.\n // Looks like a bug to me, although it's probably a harmless one.\n var rval = fs$closeSync.apply(fs, arguments)\n retry()\n return rval\n}})(fs.closeSync)\n\nfunction patch (fs) {\n // Everything that references the open() function needs to be in here\n polyfills(fs)\n fs.gracefulify = patch\n fs.FileReadStream = ReadStream; // Legacy name.\n fs.FileWriteStream = WriteStream; // Legacy name.\n fs.createReadStream = createReadStream\n fs.createWriteStream = createWriteStream\n var fs$readFile = fs.readFile\n fs.readFile = readFile\n function readFile (path, options, cb) {\n if (typeof options === 'function')\n cb = options, options = null\n\n return go$readFile(path, options, cb)\n\n function go$readFile (path, options, cb) {\n return fs$readFile(path, options, function (err) {\n if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))\n enqueue([go$readFile, [path, options, cb]])\n else {\n if (typeof cb === 'function')\n cb.apply(this, arguments)\n retry()\n }\n })\n }\n }\n\n var fs$writeFile = fs.writeFile\n fs.writeFile = writeFile\n function writeFile (path, data, options, cb) {\n if (typeof options === 'function')\n cb = options, options = null\n\n return go$writeFile(path, data, options, cb)\n\n function go$writeFile (path, data, options, cb) {\n return fs$writeFile(path, data, options, function (err) {\n if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))\n enqueue([go$writeFile, [path, data, options, cb]])\n else {\n if (typeof cb === 'function')\n cb.apply(this, arguments)\n retry()\n }\n })\n }\n }\n\n var fs$appendFile = fs.appendFile\n if (fs$appendFile)\n fs.appendFile = appendFile\n function appendFile (path, data, options, cb) {\n if (typeof options === 'function')\n cb = options, options = null\n\n return go$appendFile(path, data, options, cb)\n\n function go$appendFile (path, data, options, cb) {\n return fs$appendFile(path, data, options, function (err) {\n if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))\n enqueue([go$appendFile, [path, data, options, cb]])\n else {\n if (typeof cb === 'function')\n cb.apply(this, arguments)\n retry()\n }\n })\n }\n }\n\n var fs$readdir = fs.readdir\n fs.readdir = readdir\n function readdir (path, cb) {\n return go$readdir(path, cb)\n\n function go$readdir () {\n return fs$readdir(path, function (err, files) {\n if (files && files.sort)\n files.sort(); // Backwards compatibility with graceful-fs.\n\n if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))\n enqueue([go$readdir, [path, cb]])\n else {\n if (typeof cb === 'function')\n cb.apply(this, arguments)\n retry()\n }\n })\n }\n }\n\n\n if (process.version.substr(0, 4) === 'v0.8') {\n var legStreams = legacy(fs)\n ReadStream = legStreams.ReadStream\n WriteStream = legStreams.WriteStream\n }\n\n var fs$ReadStream = fs.ReadStream\n ReadStream.prototype = Object.create(fs$ReadStream.prototype)\n ReadStream.prototype.open = ReadStream$open\n\n var fs$WriteStream = fs.WriteStream\n WriteStream.prototype = Object.create(fs$WriteStream.prototype)\n WriteStream.prototype.open = WriteStream$open\n\n fs.ReadStream = ReadStream\n fs.WriteStream = WriteStream\n\n function ReadStream (path, options) {\n if (this instanceof ReadStream)\n return fs$ReadStream.apply(this, arguments), this\n else\n return ReadStream.apply(Object.create(ReadStream.prototype), arguments)\n }\n\n function ReadStream$open () {\n var that = this\n open(that.path, that.flags, that.mode, function (err, fd) {\n if (err) {\n if (that.autoClose)\n that.destroy()\n\n that.emit('error', err)\n } else {\n that.fd = fd\n that.emit('open', fd)\n that.read()\n }\n })\n }\n\n function WriteStream (path, options) {\n if (this instanceof WriteStream)\n return fs$WriteStream.apply(this, arguments), this\n else\n return WriteStream.apply(Object.create(WriteStream.prototype), arguments)\n }\n\n function WriteStream$open () {\n var that = this\n open(that.path, that.flags, that.mode, function (err, fd) {\n if (err) {\n that.destroy()\n that.emit('error', err)\n } else {\n that.fd = fd\n that.emit('open', fd)\n }\n })\n }\n\n function createReadStream (path, options) {\n return new ReadStream(path, options)\n }\n\n function createWriteStream (path, options) {\n return new WriteStream(path, options)\n }\n\n var fs$open = fs.open\n fs.open = open\n function open (path, flags, mode, cb) {\n if (typeof mode === 'function')\n cb = mode, mode = null\n\n return go$open(path, flags, mode, cb)\n\n function go$open (path, flags, mode, cb) {\n return fs$open(path, flags, mode, function (err, fd) {\n if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))\n enqueue([go$open, [path, flags, mode, cb]])\n else {\n if (typeof cb === 'function')\n cb.apply(this, arguments)\n retry()\n }\n })\n }\n }\n\n return fs\n}\n\nfunction enqueue (elem) {\n debug('ENQUEUE', elem[0].name, elem[1])\n queue.push(elem)\n}\n\nfunction retry () {\n var elem = queue.shift()\n if (elem) {\n debug('RETRY', elem[0].name, elem[1])\n elem[0].apply(null, elem[1])\n }\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/graceful-fs/graceful-fs.js\n ** module id = 300\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/graceful-fs/graceful-fs.js?"); + eval("'use strict';\n\nvar PassThrough = __webpack_require__(301)\n\nmodule.exports = function (/*streams...*/) {\n var sources = []\n var output = new PassThrough({objectMode: true})\n\n output.setMaxListeners(0)\n\n output.add = add\n output.isEmpty = isEmpty\n\n output.on('unpipe', remove)\n\n Array.prototype.slice.call(arguments).forEach(add)\n\n return output\n\n function add (source) {\n if (Array.isArray(source)) {\n source.forEach(add)\n return this\n }\n\n sources.push(source);\n source.once('end', remove.bind(null, source))\n source.pipe(output, {end: false})\n return this\n }\n\n function isEmpty () {\n return sources.length == 0;\n }\n\n function remove (source) {\n sources = sources.filter(function (it) { return it !== source })\n if (!sources.length && output.readable) { output.end() }\n }\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/merge-stream/index.js\n ** module id = 300\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/merge-stream/index.js?"); /***/ }, /* 301 */ /***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(process) {var fs = __webpack_require__(302)\nvar constants = __webpack_require__(303)\n\nvar origCwd = process.cwd\nvar cwd = null\nprocess.cwd = function() {\n if (!cwd)\n cwd = origCwd.call(process)\n return cwd\n}\ntry {\n process.cwd()\n} catch (er) {}\n\nvar chdir = process.chdir\nprocess.chdir = function(d) {\n cwd = null\n chdir.call(process, d)\n}\n\nmodule.exports = patch\n\nfunction patch (fs) {\n // (re-)implement some things that are known busted or missing.\n\n // lchmod, broken prior to 0.6.2\n // back-port the fix here.\n if (constants.hasOwnProperty('O_SYMLINK') &&\n process.version.match(/^v0\\.6\\.[0-2]|^v0\\.5\\./)) {\n patchLchmod(fs)\n }\n\n // lutimes implementation, or no-op\n if (!fs.lutimes) {\n patchLutimes(fs)\n }\n\n // https://github.com/isaacs/node-graceful-fs/issues/4\n // Chown should not fail on einval or eperm if non-root.\n // It should not fail on enosys ever, as this just indicates\n // that a fs doesn't support the intended operation.\n\n fs.chown = chownFix(fs.chown)\n fs.fchown = chownFix(fs.fchown)\n fs.lchown = chownFix(fs.lchown)\n\n fs.chmod = chownFix(fs.chmod)\n fs.fchmod = chownFix(fs.fchmod)\n fs.lchmod = chownFix(fs.lchmod)\n\n fs.chownSync = chownFixSync(fs.chownSync)\n fs.fchownSync = chownFixSync(fs.fchownSync)\n fs.lchownSync = chownFixSync(fs.lchownSync)\n\n fs.chmodSync = chownFix(fs.chmodSync)\n fs.fchmodSync = chownFix(fs.fchmodSync)\n fs.lchmodSync = chownFix(fs.lchmodSync)\n\n // if lchmod/lchown do not exist, then make them no-ops\n if (!fs.lchmod) {\n fs.lchmod = function (path, mode, cb) {\n process.nextTick(cb)\n }\n fs.lchmodSync = function () {}\n }\n if (!fs.lchown) {\n fs.lchown = function (path, uid, gid, cb) {\n process.nextTick(cb)\n }\n fs.lchownSync = function () {}\n }\n\n // on Windows, A/V software can lock the directory, causing this\n // to fail with an EACCES or EPERM if the directory contains newly\n // created files. Try again on failure, for up to 1 second.\n if (process.platform === \"win32\") {\n fs.rename = (function (fs$rename) { return function (from, to, cb) {\n var start = Date.now()\n fs$rename(from, to, function CB (er) {\n if (er\n && (er.code === \"EACCES\" || er.code === \"EPERM\")\n && Date.now() - start < 1000) {\n return fs$rename(from, to, CB)\n }\n if (cb) cb(er)\n })\n }})(fs.rename)\n }\n\n // if read() returns EAGAIN, then just try it again.\n fs.read = (function (fs$read) { return function (fd, buffer, offset, length, position, callback_) {\n var callback\n if (callback_ && typeof callback_ === 'function') {\n var eagCounter = 0\n callback = function (er, _, __) {\n if (er && er.code === 'EAGAIN' && eagCounter < 10) {\n eagCounter ++\n return fs$read.call(fs, fd, buffer, offset, length, position, callback)\n }\n callback_.apply(this, arguments)\n }\n }\n return fs$read.call(fs, fd, buffer, offset, length, position, callback)\n }})(fs.read)\n\n fs.readSync = (function (fs$readSync) { return function (fd, buffer, offset, length, position) {\n var eagCounter = 0\n while (true) {\n try {\n return fs$readSync.call(fs, fd, buffer, offset, length, position)\n } catch (er) {\n if (er.code === 'EAGAIN' && eagCounter < 10) {\n eagCounter ++\n continue\n }\n throw er\n }\n }\n }})(fs.readSync)\n}\n\nfunction patchLchmod (fs) {\n fs.lchmod = function (path, mode, callback) {\n callback = callback || noop\n fs.open( path\n , constants.O_WRONLY | constants.O_SYMLINK\n , mode\n , function (err, fd) {\n if (err) {\n callback(err)\n return\n }\n // prefer to return the chmod error, if one occurs,\n // but still try to close, and report closing errors if they occur.\n fs.fchmod(fd, mode, function (err) {\n fs.close(fd, function(err2) {\n callback(err || err2)\n })\n })\n })\n }\n\n fs.lchmodSync = function (path, mode) {\n var fd = fs.openSync(path, constants.O_WRONLY | constants.O_SYMLINK, mode)\n\n // prefer to return the chmod error, if one occurs,\n // but still try to close, and report closing errors if they occur.\n var threw = true\n var ret\n try {\n ret = fs.fchmodSync(fd, mode)\n threw = false\n } finally {\n if (threw) {\n try {\n fs.closeSync(fd)\n } catch (er) {}\n } else {\n fs.closeSync(fd)\n }\n }\n return ret\n }\n}\n\nfunction patchLutimes (fs) {\n if (constants.hasOwnProperty(\"O_SYMLINK\")) {\n fs.lutimes = function (path, at, mt, cb) {\n fs.open(path, constants.O_SYMLINK, function (er, fd) {\n cb = cb || noop\n if (er) return cb(er)\n fs.futimes(fd, at, mt, function (er) {\n fs.close(fd, function (er2) {\n return cb(er || er2)\n })\n })\n })\n }\n\n fs.lutimesSync = function (path, at, mt) {\n var fd = fs.openSync(path, constants.O_SYMLINK)\n var ret\n var threw = true\n try {\n ret = fs.futimesSync(fd, at, mt)\n threw = false\n } finally {\n if (threw) {\n try {\n fs.closeSync(fd)\n } catch (er) {}\n } else {\n fs.closeSync(fd)\n }\n }\n return ret\n }\n\n } else {\n fs.lutimes = function (_a, _b, _c, cb) { process.nextTick(cb) }\n fs.lutimesSync = function () {}\n }\n}\n\nfunction chownFix (orig) {\n if (!orig) return orig\n return function (target, uid, gid, cb) {\n return orig.call(fs, target, uid, gid, function (er, res) {\n if (chownErOk(er)) er = null\n cb(er, res)\n })\n }\n}\n\nfunction chownFixSync (orig) {\n if (!orig) return orig\n return function (target, uid, gid) {\n try {\n return orig.call(fs, target, uid, gid)\n } catch (er) {\n if (!chownErOk(er)) throw er\n }\n }\n}\n\n// ENOSYS means that the fs doesn't support the op. Just ignore\n// that, because it doesn't matter.\n//\n// if there's no getuid, or if getuid() is something other\n// than 0, and the error is EINVAL or EPERM, then just ignore\n// it.\n//\n// This specific case is a silent failure in cp, install, tar,\n// and most other unix tools that manage permissions.\n//\n// When running as root, or if other types of errors are\n// encountered, then it's strict.\nfunction chownErOk (er) {\n if (!er)\n return true\n\n if (er.code === \"ENOSYS\")\n return true\n\n var nonroot = !process.getuid || process.getuid() !== 0\n if (nonroot) {\n if (er.code === \"EINVAL\" || er.code === \"EPERM\")\n return true\n }\n\n return false\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/graceful-fs/polyfills.js\n ** module id = 301\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/graceful-fs/polyfills.js?"); + eval("module.exports = __webpack_require__(238)\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/readable-stream/passthrough.js\n ** module id = 301\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/readable-stream/passthrough.js?"); /***/ }, /* 302 */ /***/ function(module, exports, __webpack_require__) { - eval("'use strict'\n\nvar fs = __webpack_require__(82)\n\nmodule.exports = clone(fs)\n\nfunction clone (obj) {\n if (obj === null || typeof obj !== 'object')\n return obj\n\n if (obj instanceof Object)\n var copy = { __proto__: obj.__proto__ }\n else\n var copy = Object.create(null)\n\n Object.getOwnPropertyNames(obj).forEach(function (key) {\n Object.defineProperty(copy, key, Object.getOwnPropertyDescriptor(obj, key))\n })\n\n return copy\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/graceful-fs/fs.js\n ** module id = 302\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/graceful-fs/fs.js?"); + eval("/* WEBPACK VAR INJECTION */(function(Buffer) {'use strict';\nvar through = __webpack_require__(303);\nvar fs = __webpack_require__(304);\nvar path = __webpack_require__(149);\nvar File = __webpack_require__(214);\nvar convert = __webpack_require__(309);\nvar stripBom = __webpack_require__(310);\n\nvar PLUGIN_NAME = 'gulp-sourcemap';\nvar urlRegex = /^(https?|webpack(-[^:]+)?):\\/\\//;\n\n/**\n * Initialize source mapping chain\n */\nmodule.exports.init = function init(options) {\n function sourceMapInit(file, encoding, callback) {\n /*jshint validthis:true */\n\n // pass through if file is null or already has a source map\n if (file.isNull() || file.sourceMap) {\n this.push(file);\n return callback();\n }\n\n if (file.isStream()) {\n return callback(new Error(PLUGIN_NAME + '-init: Streaming not supported'));\n }\n\n var fileContent = file.contents.toString();\n var sourceMap;\n\n if (options && options.loadMaps) {\n var sourcePath = ''; //root path for the sources in the map\n\n // Try to read inline source map\n sourceMap = convert.fromSource(fileContent);\n if (sourceMap) {\n sourceMap = sourceMap.toObject();\n // sources in map are relative to the source file\n sourcePath = path.dirname(file.path);\n fileContent = convert.removeComments(fileContent);\n } else {\n // look for source map comment referencing a source map file\n var mapComment = convert.mapFileCommentRegex.exec(fileContent);\n\n var mapFile;\n if (mapComment) {\n mapFile = path.resolve(path.dirname(file.path), mapComment[1] || mapComment[2]);\n fileContent = convert.removeMapFileComments(fileContent);\n // if no comment try map file with same name as source file\n } else {\n mapFile = file.path + '.map';\n }\n\n // sources in external map are relative to map file\n sourcePath = path.dirname(mapFile);\n\n try {\n sourceMap = JSON.parse(stripBom(fs.readFileSync(mapFile, 'utf8')));\n } catch(e) {}\n }\n\n // fix source paths and sourceContent for imported source map\n if (sourceMap) {\n sourceMap.sourcesContent = sourceMap.sourcesContent || [];\n sourceMap.sources.forEach(function(source, i) {\n if (source.match(urlRegex)) {\n sourceMap.sourcesContent[i] = sourceMap.sourcesContent[i] || null;\n return;\n }\n var absPath = path.resolve(sourcePath, source);\n sourceMap.sources[i] = unixStylePath(path.relative(file.base, absPath));\n\n if (!sourceMap.sourcesContent[i]) {\n var sourceContent = null;\n if (sourceMap.sourceRoot) {\n if (sourceMap.sourceRoot.match(urlRegex)) {\n sourceMap.sourcesContent[i] = null;\n return;\n }\n absPath = path.resolve(sourcePath, sourceMap.sourceRoot, source);\n }\n\n // if current file: use content\n if (absPath === file.path) {\n sourceContent = fileContent;\n\n // else load content from file\n } else {\n try {\n if (options.debug)\n console.log(PLUGIN_NAME + '-init: No source content for \"' + source + '\". Loading from file.');\n sourceContent = stripBom(fs.readFileSync(absPath, 'utf8'));\n } catch (e) {\n if (options.debug)\n console.warn(PLUGIN_NAME + '-init: source file not found: ' + absPath);\n }\n }\n sourceMap.sourcesContent[i] = sourceContent;\n }\n });\n\n // remove source map comment from source\n file.contents = new Buffer(fileContent, 'utf8');\n }\n }\n\n if (!sourceMap) {\n // Make an empty source map\n sourceMap = {\n version : 3,\n names: [],\n mappings: '',\n sources: [unixStylePath(file.relative)],\n sourcesContent: [fileContent]\n };\n }\n\n sourceMap.file = unixStylePath(file.relative);\n file.sourceMap = sourceMap;\n\n this.push(file);\n callback();\n }\n\n return through.obj(sourceMapInit);\n};\n\n/**\n * Write the source map\n *\n * @param options options to change the way the source map is written\n *\n */\nmodule.exports.write = function write(destPath, options) {\n if (options === undefined && Object.prototype.toString.call(destPath) === '[object Object]') {\n options = destPath;\n destPath = undefined;\n }\n options = options || {};\n\n // set defaults for options if unset\n if (options.includeContent === undefined)\n options.includeContent = true;\n if (options.addComment === undefined)\n options.addComment = true;\n\n function sourceMapWrite(file, encoding, callback) {\n /*jshint validthis:true */\n\n if (file.isNull() || !file.sourceMap) {\n this.push(file);\n return callback();\n }\n\n if (file.isStream()) {\n return callback(new Error(PLUGIN_NAME + '-write: Streaming not supported'));\n }\n\n var sourceMap = file.sourceMap;\n // fix paths if Windows style paths\n sourceMap.file = unixStylePath(file.relative);\n sourceMap.sources = sourceMap.sources.map(function(filePath) {\n return unixStylePath(filePath);\n });\n\n if (typeof options.sourceRoot === 'function') {\n sourceMap.sourceRoot = options.sourceRoot(file);\n } else {\n sourceMap.sourceRoot = options.sourceRoot;\n }\n\n if (options.includeContent) {\n sourceMap.sourcesContent = sourceMap.sourcesContent || [];\n\n // load missing source content\n for (var i = 0; i < file.sourceMap.sources.length; i++) {\n if (!sourceMap.sourcesContent[i]) {\n var sourcePath = path.resolve(sourceMap.sourceRoot || file.base, sourceMap.sources[i]);\n try {\n if (options.debug)\n console.log(PLUGIN_NAME + '-write: No source content for \"' + sourceMap.sources[i] + '\". Loading from file.');\n sourceMap.sourcesContent[i] = stripBom(fs.readFileSync(sourcePath, 'utf8'));\n } catch (e) {\n if (options.debug)\n console.warn(PLUGIN_NAME + '-write: source file not found: ' + sourcePath);\n }\n }\n }\n if (sourceMap.sourceRoot === undefined) {\n sourceMap.sourceRoot = '/source/';\n } else if (sourceMap.sourceRoot === null) {\n sourceMap.sourceRoot = undefined;\n }\n } else {\n delete sourceMap.sourcesContent;\n }\n\n var extension = file.relative.split('.').pop();\n var commentFormatter;\n\n switch (extension) {\n case 'css':\n commentFormatter = function(url) { return \"\\n/*# sourceMappingURL=\" + url + \" */\\n\"; };\n break;\n case 'js':\n commentFormatter = function(url) { return \"\\n//# sourceMappingURL=\" + url + \"\\n\"; };\n break;\n default:\n commentFormatter = function(url) { return \"\"; };\n }\n\n var comment, sourceMappingURLPrefix;\n if (!destPath) {\n // encode source map into comment\n var base64Map = new Buffer(JSON.stringify(sourceMap)).toString('base64');\n comment = commentFormatter('data:application/json;base64,' + base64Map);\n } else {\n var sourceMapPath = path.join(file.base, destPath, file.relative) + '.map';\n // add new source map file to stream\n var sourceMapFile = new File({\n cwd: file.cwd,\n base: file.base,\n path: sourceMapPath,\n contents: new Buffer(JSON.stringify(sourceMap)),\n stat: {\n isFile: function () { return true; },\n isDirectory: function () { return false; },\n isBlockDevice: function () { return false; },\n isCharacterDevice: function () { return false; },\n isSymbolicLink: function () { return false; },\n isFIFO: function () { return false; },\n isSocket: function () { return false; }\n }\n });\n this.push(sourceMapFile);\n\n var sourceMapPathRelative = path.relative(path.dirname(file.path), sourceMapPath);\n\n if (options.sourceMappingURLPrefix) {\n var prefix = '';\n if (typeof options.sourceMappingURLPrefix === 'function') {\n prefix = options.sourceMappingURLPrefix(file);\n } else {\n prefix = options.sourceMappingURLPrefix;\n }\n sourceMapPathRelative = prefix+path.join('/', sourceMapPathRelative);\n }\n comment = commentFormatter(unixStylePath(sourceMapPathRelative));\n\n if (options.sourceMappingURL && typeof options.sourceMappingURL === 'function') {\n comment = commentFormatter(options.sourceMappingURL(file));\n }\n }\n\n // append source map comment\n if (options.addComment)\n file.contents = Buffer.concat([file.contents, new Buffer(comment)]);\n\n this.push(file);\n callback();\n }\n\n return through.obj(sourceMapWrite);\n};\n\nfunction unixStylePath(filePath) {\n return filePath.split(path.sep).join('/');\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1).Buffer))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/gulp-sourcemaps/index.js\n ** module id = 302\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/gulp-sourcemaps/index.js?"); /***/ }, /* 303 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("module.exports = {\n\t\"O_RDONLY\": 0,\n\t\"O_WRONLY\": 1,\n\t\"O_RDWR\": 2,\n\t\"S_IFMT\": 61440,\n\t\"S_IFREG\": 32768,\n\t\"S_IFDIR\": 16384,\n\t\"S_IFCHR\": 8192,\n\t\"S_IFBLK\": 24576,\n\t\"S_IFIFO\": 4096,\n\t\"S_IFLNK\": 40960,\n\t\"S_IFSOCK\": 49152,\n\t\"O_CREAT\": 512,\n\t\"O_EXCL\": 2048,\n\t\"O_NOCTTY\": 131072,\n\t\"O_TRUNC\": 1024,\n\t\"O_APPEND\": 8,\n\t\"O_DIRECTORY\": 1048576,\n\t\"O_NOFOLLOW\": 256,\n\t\"O_SYNC\": 128,\n\t\"O_SYMLINK\": 2097152,\n\t\"S_IRWXU\": 448,\n\t\"S_IRUSR\": 256,\n\t\"S_IWUSR\": 128,\n\t\"S_IXUSR\": 64,\n\t\"S_IRWXG\": 56,\n\t\"S_IRGRP\": 32,\n\t\"S_IWGRP\": 16,\n\t\"S_IXGRP\": 8,\n\t\"S_IRWXO\": 7,\n\t\"S_IROTH\": 4,\n\t\"S_IWOTH\": 2,\n\t\"S_IXOTH\": 1,\n\t\"E2BIG\": 7,\n\t\"EACCES\": 13,\n\t\"EADDRINUSE\": 48,\n\t\"EADDRNOTAVAIL\": 49,\n\t\"EAFNOSUPPORT\": 47,\n\t\"EAGAIN\": 35,\n\t\"EALREADY\": 37,\n\t\"EBADF\": 9,\n\t\"EBADMSG\": 94,\n\t\"EBUSY\": 16,\n\t\"ECANCELED\": 89,\n\t\"ECHILD\": 10,\n\t\"ECONNABORTED\": 53,\n\t\"ECONNREFUSED\": 61,\n\t\"ECONNRESET\": 54,\n\t\"EDEADLK\": 11,\n\t\"EDESTADDRREQ\": 39,\n\t\"EDOM\": 33,\n\t\"EDQUOT\": 69,\n\t\"EEXIST\": 17,\n\t\"EFAULT\": 14,\n\t\"EFBIG\": 27,\n\t\"EHOSTUNREACH\": 65,\n\t\"EIDRM\": 90,\n\t\"EILSEQ\": 92,\n\t\"EINPROGRESS\": 36,\n\t\"EINTR\": 4,\n\t\"EINVAL\": 22,\n\t\"EIO\": 5,\n\t\"EISCONN\": 56,\n\t\"EISDIR\": 21,\n\t\"ELOOP\": 62,\n\t\"EMFILE\": 24,\n\t\"EMLINK\": 31,\n\t\"EMSGSIZE\": 40,\n\t\"EMULTIHOP\": 95,\n\t\"ENAMETOOLONG\": 63,\n\t\"ENETDOWN\": 50,\n\t\"ENETRESET\": 52,\n\t\"ENETUNREACH\": 51,\n\t\"ENFILE\": 23,\n\t\"ENOBUFS\": 55,\n\t\"ENODATA\": 96,\n\t\"ENODEV\": 19,\n\t\"ENOENT\": 2,\n\t\"ENOEXEC\": 8,\n\t\"ENOLCK\": 77,\n\t\"ENOLINK\": 97,\n\t\"ENOMEM\": 12,\n\t\"ENOMSG\": 91,\n\t\"ENOPROTOOPT\": 42,\n\t\"ENOSPC\": 28,\n\t\"ENOSR\": 98,\n\t\"ENOSTR\": 99,\n\t\"ENOSYS\": 78,\n\t\"ENOTCONN\": 57,\n\t\"ENOTDIR\": 20,\n\t\"ENOTEMPTY\": 66,\n\t\"ENOTSOCK\": 38,\n\t\"ENOTSUP\": 45,\n\t\"ENOTTY\": 25,\n\t\"ENXIO\": 6,\n\t\"EOPNOTSUPP\": 102,\n\t\"EOVERFLOW\": 84,\n\t\"EPERM\": 1,\n\t\"EPIPE\": 32,\n\t\"EPROTO\": 100,\n\t\"EPROTONOSUPPORT\": 43,\n\t\"EPROTOTYPE\": 41,\n\t\"ERANGE\": 34,\n\t\"EROFS\": 30,\n\t\"ESPIPE\": 29,\n\t\"ESRCH\": 3,\n\t\"ESTALE\": 70,\n\t\"ETIME\": 101,\n\t\"ETIMEDOUT\": 60,\n\t\"ETXTBSY\": 26,\n\t\"EWOULDBLOCK\": 35,\n\t\"EXDEV\": 18,\n\t\"SIGHUP\": 1,\n\t\"SIGINT\": 2,\n\t\"SIGQUIT\": 3,\n\t\"SIGILL\": 4,\n\t\"SIGTRAP\": 5,\n\t\"SIGABRT\": 6,\n\t\"SIGIOT\": 6,\n\t\"SIGBUS\": 10,\n\t\"SIGFPE\": 8,\n\t\"SIGKILL\": 9,\n\t\"SIGUSR1\": 30,\n\t\"SIGSEGV\": 11,\n\t\"SIGUSR2\": 31,\n\t\"SIGPIPE\": 13,\n\t\"SIGALRM\": 14,\n\t\"SIGTERM\": 15,\n\t\"SIGCHLD\": 20,\n\t\"SIGCONT\": 19,\n\t\"SIGSTOP\": 17,\n\t\"SIGTSTP\": 18,\n\t\"SIGTTIN\": 21,\n\t\"SIGTTOU\": 22,\n\t\"SIGURG\": 16,\n\t\"SIGXCPU\": 24,\n\t\"SIGXFSZ\": 25,\n\t\"SIGVTALRM\": 26,\n\t\"SIGPROF\": 27,\n\t\"SIGWINCH\": 28,\n\t\"SIGIO\": 23,\n\t\"SIGSYS\": 12,\n\t\"SSL_OP_ALL\": 2147486719,\n\t\"SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION\": 262144,\n\t\"SSL_OP_CIPHER_SERVER_PREFERENCE\": 4194304,\n\t\"SSL_OP_CISCO_ANYCONNECT\": 32768,\n\t\"SSL_OP_COOKIE_EXCHANGE\": 8192,\n\t\"SSL_OP_CRYPTOPRO_TLSEXT_BUG\": 2147483648,\n\t\"SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS\": 2048,\n\t\"SSL_OP_EPHEMERAL_RSA\": 2097152,\n\t\"SSL_OP_LEGACY_SERVER_CONNECT\": 4,\n\t\"SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER\": 32,\n\t\"SSL_OP_MICROSOFT_SESS_ID_BUG\": 1,\n\t\"SSL_OP_MSIE_SSLV2_RSA_PADDING\": 64,\n\t\"SSL_OP_NETSCAPE_CA_DN_BUG\": 536870912,\n\t\"SSL_OP_NETSCAPE_CHALLENGE_BUG\": 2,\n\t\"SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG\": 1073741824,\n\t\"SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG\": 8,\n\t\"SSL_OP_NO_COMPRESSION\": 131072,\n\t\"SSL_OP_NO_QUERY_MTU\": 4096,\n\t\"SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION\": 65536,\n\t\"SSL_OP_NO_SSLv2\": 16777216,\n\t\"SSL_OP_NO_SSLv3\": 33554432,\n\t\"SSL_OP_NO_TICKET\": 16384,\n\t\"SSL_OP_NO_TLSv1\": 67108864,\n\t\"SSL_OP_NO_TLSv1_1\": 268435456,\n\t\"SSL_OP_NO_TLSv1_2\": 134217728,\n\t\"SSL_OP_PKCS1_CHECK_1\": 0,\n\t\"SSL_OP_PKCS1_CHECK_2\": 0,\n\t\"SSL_OP_SINGLE_DH_USE\": 1048576,\n\t\"SSL_OP_SINGLE_ECDH_USE\": 524288,\n\t\"SSL_OP_SSLEAY_080_CLIENT_DH_BUG\": 128,\n\t\"SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG\": 16,\n\t\"SSL_OP_TLS_BLOCK_PADDING_BUG\": 512,\n\t\"SSL_OP_TLS_D5_BUG\": 256,\n\t\"SSL_OP_TLS_ROLLBACK_BUG\": 8388608,\n\t\"NPN_ENABLED\": 1\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/constants-browserify/constants.json\n ** module id = 303\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/constants-browserify/constants.json?"); + eval("/* WEBPACK VAR INJECTION */(function(process) {var Transform = __webpack_require__(227)\n , inherits = __webpack_require__(139).inherits\n , xtend = __webpack_require__(67)\n\nfunction DestroyableTransform(opts) {\n Transform.call(this, opts)\n this._destroyed = false\n}\n\ninherits(DestroyableTransform, Transform)\n\nDestroyableTransform.prototype.destroy = function(err) {\n if (this._destroyed) return\n this._destroyed = true\n \n var self = this\n process.nextTick(function() {\n if (err)\n self.emit('error', err)\n self.emit('close')\n })\n}\n\n// a noop _transform function\nfunction noop (chunk, enc, callback) {\n callback(null, chunk)\n}\n\n\n// create a new export function, used by both the main export and\n// the .ctor export, contains common logic for dealing with arguments\nfunction through2 (construct) {\n return function (options, transform, flush) {\n if (typeof options == 'function') {\n flush = transform\n transform = options\n options = {}\n }\n\n if (typeof transform != 'function')\n transform = noop\n\n if (typeof flush != 'function')\n flush = null\n\n return construct(options, transform, flush)\n }\n}\n\n\n// main export, just make me a transform stream!\nmodule.exports = through2(function (options, transform, flush) {\n var t2 = new DestroyableTransform(options)\n\n t2._transform = transform\n\n if (flush)\n t2._flush = flush\n\n return t2\n})\n\n\n// make me a reusable prototype that I can `new`, or implicitly `new`\n// with a constructor call\nmodule.exports.ctor = through2(function (options, transform, flush) {\n function Through2 (override) {\n if (!(this instanceof Through2))\n return new Through2(override)\n\n this.options = xtend(options, override)\n\n DestroyableTransform.call(this, this.options)\n }\n\n inherits(Through2, DestroyableTransform)\n\n Through2.prototype._transform = transform\n\n if (flush)\n Through2.prototype._flush = flush\n\n return Through2\n})\n\n\nmodule.exports.obj = through2(function (options, transform, flush) {\n var t2 = new DestroyableTransform(xtend({ objectMode: true, highWaterMark: 16 }, options))\n\n t2._transform = transform\n\n if (flush)\n t2._flush = flush\n\n return t2\n})\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/gulp-sourcemaps/~/through2/through2.js\n ** module id = 303\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/gulp-sourcemaps/~/through2/through2.js?"); /***/ }, /* 304 */ /***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(process) {var Stream = __webpack_require__(98).Stream\n\nmodule.exports = legacy\n\nfunction legacy (fs) {\n return {\n ReadStream: ReadStream,\n WriteStream: WriteStream\n }\n\n function ReadStream (path, options) {\n if (!(this instanceof ReadStream)) return new ReadStream(path, options);\n\n Stream.call(this);\n\n var self = this;\n\n this.path = path;\n this.fd = null;\n this.readable = true;\n this.paused = false;\n\n this.flags = 'r';\n this.mode = 438; /*=0666*/\n this.bufferSize = 64 * 1024;\n\n options = options || {};\n\n // Mixin options into this\n var keys = Object.keys(options);\n for (var index = 0, length = keys.length; index < length; index++) {\n var key = keys[index];\n this[key] = options[key];\n }\n\n if (this.encoding) this.setEncoding(this.encoding);\n\n if (this.start !== undefined) {\n if ('number' !== typeof this.start) {\n throw TypeError('start must be a Number');\n }\n if (this.end === undefined) {\n this.end = Infinity;\n } else if ('number' !== typeof this.end) {\n throw TypeError('end must be a Number');\n }\n\n if (this.start > this.end) {\n throw new Error('start must be <= end');\n }\n\n this.pos = this.start;\n }\n\n if (this.fd !== null) {\n process.nextTick(function() {\n self._read();\n });\n return;\n }\n\n fs.open(this.path, this.flags, this.mode, function (err, fd) {\n if (err) {\n self.emit('error', err);\n self.readable = false;\n return;\n }\n\n self.fd = fd;\n self.emit('open', fd);\n self._read();\n })\n }\n\n function WriteStream (path, options) {\n if (!(this instanceof WriteStream)) return new WriteStream(path, options);\n\n Stream.call(this);\n\n this.path = path;\n this.fd = null;\n this.writable = true;\n\n this.flags = 'w';\n this.encoding = 'binary';\n this.mode = 438; /*=0666*/\n this.bytesWritten = 0;\n\n options = options || {};\n\n // Mixin options into this\n var keys = Object.keys(options);\n for (var index = 0, length = keys.length; index < length; index++) {\n var key = keys[index];\n this[key] = options[key];\n }\n\n if (this.start !== undefined) {\n if ('number' !== typeof this.start) {\n throw TypeError('start must be a Number');\n }\n if (this.start < 0) {\n throw new Error('start must be >= zero');\n }\n\n this.pos = this.start;\n }\n\n this.busy = false;\n this._queue = [];\n\n if (this.fd === null) {\n this._open = fs.open;\n this._queue.push([this._open, this.path, this.flags, this.mode, undefined]);\n this.flush();\n }\n }\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/graceful-fs/legacy-streams.js\n ** module id = 304\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/graceful-fs/legacy-streams.js?"); + eval("/* WEBPACK VAR INJECTION */(function(process) {var fs = __webpack_require__(82)\nvar polyfills = __webpack_require__(305)\nvar legacy = __webpack_require__(308)\nvar queue = []\n\nvar util = __webpack_require__(139)\n\nfunction noop () {}\n\nvar debug = noop\nif (util.debuglog)\n debug = util.debuglog('gfs4')\nelse if (/\\bgfs4\\b/i.test(process.env.NODE_DEBUG || ''))\n debug = function() {\n var m = util.format.apply(util, arguments)\n m = 'GFS4: ' + m.split(/\\n/).join('\\nGFS4: ')\n console.error(m)\n }\n\nif (/\\bgfs4\\b/i.test(process.env.NODE_DEBUG || '')) {\n process.on('exit', function() {\n debug(queue)\n __webpack_require__(252).equal(queue.length, 0)\n })\n}\n\nmodule.exports = patch(__webpack_require__(306))\nif (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH) {\n module.exports = patch(fs)\n}\n\n// Always patch fs.close/closeSync, because we want to\n// retry() whenever a close happens *anywhere* in the program.\n// This is essential when multiple graceful-fs instances are\n// in play at the same time.\nmodule.exports.close =\nfs.close = (function (fs$close) { return function (fd, cb) {\n return fs$close.call(fs, fd, function (err) {\n if (!err)\n retry()\n\n if (typeof cb === 'function')\n cb.apply(this, arguments)\n })\n}})(fs.close)\n\nmodule.exports.closeSync =\nfs.closeSync = (function (fs$closeSync) { return function (fd) {\n // Note that graceful-fs also retries when fs.closeSync() fails.\n // Looks like a bug to me, although it's probably a harmless one.\n var rval = fs$closeSync.apply(fs, arguments)\n retry()\n return rval\n}})(fs.closeSync)\n\nfunction patch (fs) {\n // Everything that references the open() function needs to be in here\n polyfills(fs)\n fs.gracefulify = patch\n fs.FileReadStream = ReadStream; // Legacy name.\n fs.FileWriteStream = WriteStream; // Legacy name.\n fs.createReadStream = createReadStream\n fs.createWriteStream = createWriteStream\n var fs$readFile = fs.readFile\n fs.readFile = readFile\n function readFile (path, options, cb) {\n if (typeof options === 'function')\n cb = options, options = null\n\n return go$readFile(path, options, cb)\n\n function go$readFile (path, options, cb) {\n return fs$readFile(path, options, function (err) {\n if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))\n enqueue([go$readFile, [path, options, cb]])\n else {\n if (typeof cb === 'function')\n cb.apply(this, arguments)\n retry()\n }\n })\n }\n }\n\n var fs$writeFile = fs.writeFile\n fs.writeFile = writeFile\n function writeFile (path, data, options, cb) {\n if (typeof options === 'function')\n cb = options, options = null\n\n return go$writeFile(path, data, options, cb)\n\n function go$writeFile (path, data, options, cb) {\n return fs$writeFile(path, data, options, function (err) {\n if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))\n enqueue([go$writeFile, [path, data, options, cb]])\n else {\n if (typeof cb === 'function')\n cb.apply(this, arguments)\n retry()\n }\n })\n }\n }\n\n var fs$appendFile = fs.appendFile\n if (fs$appendFile)\n fs.appendFile = appendFile\n function appendFile (path, data, options, cb) {\n if (typeof options === 'function')\n cb = options, options = null\n\n return go$appendFile(path, data, options, cb)\n\n function go$appendFile (path, data, options, cb) {\n return fs$appendFile(path, data, options, function (err) {\n if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))\n enqueue([go$appendFile, [path, data, options, cb]])\n else {\n if (typeof cb === 'function')\n cb.apply(this, arguments)\n retry()\n }\n })\n }\n }\n\n var fs$readdir = fs.readdir\n fs.readdir = readdir\n function readdir (path, cb) {\n return go$readdir(path, cb)\n\n function go$readdir () {\n return fs$readdir(path, function (err, files) {\n if (files && files.sort)\n files.sort(); // Backwards compatibility with graceful-fs.\n\n if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))\n enqueue([go$readdir, [path, cb]])\n else {\n if (typeof cb === 'function')\n cb.apply(this, arguments)\n retry()\n }\n })\n }\n }\n\n\n if (process.version.substr(0, 4) === 'v0.8') {\n var legStreams = legacy(fs)\n ReadStream = legStreams.ReadStream\n WriteStream = legStreams.WriteStream\n }\n\n var fs$ReadStream = fs.ReadStream\n ReadStream.prototype = Object.create(fs$ReadStream.prototype)\n ReadStream.prototype.open = ReadStream$open\n\n var fs$WriteStream = fs.WriteStream\n WriteStream.prototype = Object.create(fs$WriteStream.prototype)\n WriteStream.prototype.open = WriteStream$open\n\n fs.ReadStream = ReadStream\n fs.WriteStream = WriteStream\n\n function ReadStream (path, options) {\n if (this instanceof ReadStream)\n return fs$ReadStream.apply(this, arguments), this\n else\n return ReadStream.apply(Object.create(ReadStream.prototype), arguments)\n }\n\n function ReadStream$open () {\n var that = this\n open(that.path, that.flags, that.mode, function (err, fd) {\n if (err) {\n if (that.autoClose)\n that.destroy()\n\n that.emit('error', err)\n } else {\n that.fd = fd\n that.emit('open', fd)\n that.read()\n }\n })\n }\n\n function WriteStream (path, options) {\n if (this instanceof WriteStream)\n return fs$WriteStream.apply(this, arguments), this\n else\n return WriteStream.apply(Object.create(WriteStream.prototype), arguments)\n }\n\n function WriteStream$open () {\n var that = this\n open(that.path, that.flags, that.mode, function (err, fd) {\n if (err) {\n that.destroy()\n that.emit('error', err)\n } else {\n that.fd = fd\n that.emit('open', fd)\n }\n })\n }\n\n function createReadStream (path, options) {\n return new ReadStream(path, options)\n }\n\n function createWriteStream (path, options) {\n return new WriteStream(path, options)\n }\n\n var fs$open = fs.open\n fs.open = open\n function open (path, flags, mode, cb) {\n if (typeof mode === 'function')\n cb = mode, mode = null\n\n return go$open(path, flags, mode, cb)\n\n function go$open (path, flags, mode, cb) {\n return fs$open(path, flags, mode, function (err, fd) {\n if (err && (err.code === 'EMFILE' || err.code === 'ENFILE'))\n enqueue([go$open, [path, flags, mode, cb]])\n else {\n if (typeof cb === 'function')\n cb.apply(this, arguments)\n retry()\n }\n })\n }\n }\n\n return fs\n}\n\nfunction enqueue (elem) {\n debug('ENQUEUE', elem[0].name, elem[1])\n queue.push(elem)\n}\n\nfunction retry () {\n var elem = queue.shift()\n if (elem) {\n debug('RETRY', elem[0].name, elem[1])\n elem[0].apply(null, elem[1])\n }\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/graceful-fs/graceful-fs.js\n ** module id = 304\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/graceful-fs/graceful-fs.js?"); /***/ }, /* 305 */ /***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(Buffer) {'use strict';\nvar fs = __webpack_require__(82);\nvar path = __webpack_require__(149);\n\nvar commentRx = /^\\s*\\/(?:\\/|\\*)[@#]\\s+sourceMappingURL=data:(?:application|text)\\/json;(?:charset[:=]\\S+;)?base64,(.*)$/mg;\nvar mapFileCommentRx =\n //Example (Extra space between slashes added to solve Safari bug. Exclude space in production):\n // / /# sourceMappingURL=foo.js.map /*# sourceMappingURL=foo.js.map */\n /(?:\\/\\/[@#][ \\t]+sourceMappingURL=([^\\s'\"]+?)[ \\t]*$)|(?:\\/\\*[@#][ \\t]+sourceMappingURL=([^\\*]+?)[ \\t]*(?:\\*\\/){1}[ \\t]*$)/mg\n\nfunction decodeBase64(base64) {\n return new Buffer(base64, 'base64').toString();\n}\n\nfunction stripComment(sm) {\n return sm.split(',').pop();\n}\n\nfunction readFromFileMap(sm, dir) {\n // NOTE: this will only work on the server since it attempts to read the map file\n\n var r = mapFileCommentRx.exec(sm);\n mapFileCommentRx.lastIndex = 0;\n\n // for some odd reason //# .. captures in 1 and /* .. */ in 2\n var filename = r[1] || r[2];\n var filepath = path.join(dir, filename);\n\n try {\n return fs.readFileSync(filepath, 'utf8');\n } catch (e) {\n throw new Error('An error occurred while trying to read the map file at ' + filepath + '\\n' + e);\n }\n}\n\nfunction Converter (sm, opts) {\n opts = opts || {};\n\n if (opts.isFileComment) sm = readFromFileMap(sm, opts.commentFileDir);\n if (opts.hasComment) sm = stripComment(sm);\n if (opts.isEncoded) sm = decodeBase64(sm);\n if (opts.isJSON || opts.isEncoded) sm = JSON.parse(sm);\n\n this.sourcemap = sm;\n}\n\nfunction convertFromLargeSource(content){\n var lines = content.split('\\n');\n var line;\n // find first line which contains a source map starting at end of content\n for (var i = lines.length - 1; i > 0; i--) {\n line = lines[i]\n if (~line.indexOf('sourceMappingURL=data:')) return exports.fromComment(line);\n }\n}\n\nConverter.prototype.toJSON = function (space) {\n return JSON.stringify(this.sourcemap, null, space);\n};\n\nConverter.prototype.toBase64 = function () {\n var json = this.toJSON();\n return new Buffer(json).toString('base64');\n};\n\nConverter.prototype.toComment = function (options) {\n var base64 = this.toBase64();\n var data = 'sourceMappingURL=data:application/json;base64,' + base64;\n return options && options.multiline ? '/*# ' + data + ' */' : '//# ' + data;\n};\n\n// returns copy instead of original\nConverter.prototype.toObject = function () {\n return JSON.parse(this.toJSON());\n};\n\nConverter.prototype.addProperty = function (key, value) {\n if (this.sourcemap.hasOwnProperty(key)) throw new Error('property %s already exists on the sourcemap, use set property instead');\n return this.setProperty(key, value);\n};\n\nConverter.prototype.setProperty = function (key, value) {\n this.sourcemap[key] = value;\n return this;\n};\n\nConverter.prototype.getProperty = function (key) {\n return this.sourcemap[key];\n};\n\nexports.fromObject = function (obj) {\n return new Converter(obj);\n};\n\nexports.fromJSON = function (json) {\n return new Converter(json, { isJSON: true });\n};\n\nexports.fromBase64 = function (base64) {\n return new Converter(base64, { isEncoded: true });\n};\n\nexports.fromComment = function (comment) {\n comment = comment\n .replace(/^\\/\\*/g, '//')\n .replace(/\\*\\/$/g, '');\n\n return new Converter(comment, { isEncoded: true, hasComment: true });\n};\n\nexports.fromMapFileComment = function (comment, dir) {\n return new Converter(comment, { commentFileDir: dir, isFileComment: true, isJSON: true });\n};\n\n// Finds last sourcemap comment in file or returns null if none was found\nexports.fromSource = function (content, largeSource) {\n if (largeSource) {\n var res = convertFromLargeSource(content);\n return res ? res : null;\n }\n\n var m = content.match(commentRx);\n commentRx.lastIndex = 0;\n return m ? exports.fromComment(m.pop()) : null;\n};\n\n// Finds last sourcemap comment in file or returns null if none was found\nexports.fromMapFileSource = function (content, dir) {\n var m = content.match(mapFileCommentRx);\n mapFileCommentRx.lastIndex = 0;\n return m ? exports.fromMapFileComment(m.pop(), dir) : null;\n};\n\nexports.removeComments = function (src) {\n commentRx.lastIndex = 0;\n return src.replace(commentRx, '');\n};\n\nexports.removeMapFileComments = function (src) {\n mapFileCommentRx.lastIndex = 0;\n return src.replace(mapFileCommentRx, '');\n};\n\nObject.defineProperty(exports, 'commentRegex', {\n get: function getCommentRegex () {\n commentRx.lastIndex = 0;\n return commentRx;\n }\n});\n\nObject.defineProperty(exports, 'mapFileCommentRegex', {\n get: function getMapFileCommentRegex () {\n mapFileCommentRx.lastIndex = 0;\n return mapFileCommentRx;\n }\n});\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1).Buffer))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/convert-source-map/index.js\n ** module id = 305\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/convert-source-map/index.js?"); + eval("/* WEBPACK VAR INJECTION */(function(process) {var fs = __webpack_require__(306)\nvar constants = __webpack_require__(307)\n\nvar origCwd = process.cwd\nvar cwd = null\nprocess.cwd = function() {\n if (!cwd)\n cwd = origCwd.call(process)\n return cwd\n}\ntry {\n process.cwd()\n} catch (er) {}\n\nvar chdir = process.chdir\nprocess.chdir = function(d) {\n cwd = null\n chdir.call(process, d)\n}\n\nmodule.exports = patch\n\nfunction patch (fs) {\n // (re-)implement some things that are known busted or missing.\n\n // lchmod, broken prior to 0.6.2\n // back-port the fix here.\n if (constants.hasOwnProperty('O_SYMLINK') &&\n process.version.match(/^v0\\.6\\.[0-2]|^v0\\.5\\./)) {\n patchLchmod(fs)\n }\n\n // lutimes implementation, or no-op\n if (!fs.lutimes) {\n patchLutimes(fs)\n }\n\n // https://github.com/isaacs/node-graceful-fs/issues/4\n // Chown should not fail on einval or eperm if non-root.\n // It should not fail on enosys ever, as this just indicates\n // that a fs doesn't support the intended operation.\n\n fs.chown = chownFix(fs.chown)\n fs.fchown = chownFix(fs.fchown)\n fs.lchown = chownFix(fs.lchown)\n\n fs.chmod = chownFix(fs.chmod)\n fs.fchmod = chownFix(fs.fchmod)\n fs.lchmod = chownFix(fs.lchmod)\n\n fs.chownSync = chownFixSync(fs.chownSync)\n fs.fchownSync = chownFixSync(fs.fchownSync)\n fs.lchownSync = chownFixSync(fs.lchownSync)\n\n fs.chmodSync = chownFix(fs.chmodSync)\n fs.fchmodSync = chownFix(fs.fchmodSync)\n fs.lchmodSync = chownFix(fs.lchmodSync)\n\n // if lchmod/lchown do not exist, then make them no-ops\n if (!fs.lchmod) {\n fs.lchmod = function (path, mode, cb) {\n process.nextTick(cb)\n }\n fs.lchmodSync = function () {}\n }\n if (!fs.lchown) {\n fs.lchown = function (path, uid, gid, cb) {\n process.nextTick(cb)\n }\n fs.lchownSync = function () {}\n }\n\n // on Windows, A/V software can lock the directory, causing this\n // to fail with an EACCES or EPERM if the directory contains newly\n // created files. Try again on failure, for up to 1 second.\n if (process.platform === \"win32\") {\n fs.rename = (function (fs$rename) { return function (from, to, cb) {\n var start = Date.now()\n fs$rename(from, to, function CB (er) {\n if (er\n && (er.code === \"EACCES\" || er.code === \"EPERM\")\n && Date.now() - start < 1000) {\n return fs$rename(from, to, CB)\n }\n if (cb) cb(er)\n })\n }})(fs.rename)\n }\n\n // if read() returns EAGAIN, then just try it again.\n fs.read = (function (fs$read) { return function (fd, buffer, offset, length, position, callback_) {\n var callback\n if (callback_ && typeof callback_ === 'function') {\n var eagCounter = 0\n callback = function (er, _, __) {\n if (er && er.code === 'EAGAIN' && eagCounter < 10) {\n eagCounter ++\n return fs$read.call(fs, fd, buffer, offset, length, position, callback)\n }\n callback_.apply(this, arguments)\n }\n }\n return fs$read.call(fs, fd, buffer, offset, length, position, callback)\n }})(fs.read)\n\n fs.readSync = (function (fs$readSync) { return function (fd, buffer, offset, length, position) {\n var eagCounter = 0\n while (true) {\n try {\n return fs$readSync.call(fs, fd, buffer, offset, length, position)\n } catch (er) {\n if (er.code === 'EAGAIN' && eagCounter < 10) {\n eagCounter ++\n continue\n }\n throw er\n }\n }\n }})(fs.readSync)\n}\n\nfunction patchLchmod (fs) {\n fs.lchmod = function (path, mode, callback) {\n callback = callback || noop\n fs.open( path\n , constants.O_WRONLY | constants.O_SYMLINK\n , mode\n , function (err, fd) {\n if (err) {\n callback(err)\n return\n }\n // prefer to return the chmod error, if one occurs,\n // but still try to close, and report closing errors if they occur.\n fs.fchmod(fd, mode, function (err) {\n fs.close(fd, function(err2) {\n callback(err || err2)\n })\n })\n })\n }\n\n fs.lchmodSync = function (path, mode) {\n var fd = fs.openSync(path, constants.O_WRONLY | constants.O_SYMLINK, mode)\n\n // prefer to return the chmod error, if one occurs,\n // but still try to close, and report closing errors if they occur.\n var threw = true\n var ret\n try {\n ret = fs.fchmodSync(fd, mode)\n threw = false\n } finally {\n if (threw) {\n try {\n fs.closeSync(fd)\n } catch (er) {}\n } else {\n fs.closeSync(fd)\n }\n }\n return ret\n }\n}\n\nfunction patchLutimes (fs) {\n if (constants.hasOwnProperty(\"O_SYMLINK\")) {\n fs.lutimes = function (path, at, mt, cb) {\n fs.open(path, constants.O_SYMLINK, function (er, fd) {\n cb = cb || noop\n if (er) return cb(er)\n fs.futimes(fd, at, mt, function (er) {\n fs.close(fd, function (er2) {\n return cb(er || er2)\n })\n })\n })\n }\n\n fs.lutimesSync = function (path, at, mt) {\n var fd = fs.openSync(path, constants.O_SYMLINK)\n var ret\n var threw = true\n try {\n ret = fs.futimesSync(fd, at, mt)\n threw = false\n } finally {\n if (threw) {\n try {\n fs.closeSync(fd)\n } catch (er) {}\n } else {\n fs.closeSync(fd)\n }\n }\n return ret\n }\n\n } else {\n fs.lutimes = function (_a, _b, _c, cb) { process.nextTick(cb) }\n fs.lutimesSync = function () {}\n }\n}\n\nfunction chownFix (orig) {\n if (!orig) return orig\n return function (target, uid, gid, cb) {\n return orig.call(fs, target, uid, gid, function (er, res) {\n if (chownErOk(er)) er = null\n cb(er, res)\n })\n }\n}\n\nfunction chownFixSync (orig) {\n if (!orig) return orig\n return function (target, uid, gid) {\n try {\n return orig.call(fs, target, uid, gid)\n } catch (er) {\n if (!chownErOk(er)) throw er\n }\n }\n}\n\n// ENOSYS means that the fs doesn't support the op. Just ignore\n// that, because it doesn't matter.\n//\n// if there's no getuid, or if getuid() is something other\n// than 0, and the error is EINVAL or EPERM, then just ignore\n// it.\n//\n// This specific case is a silent failure in cp, install, tar,\n// and most other unix tools that manage permissions.\n//\n// When running as root, or if other types of errors are\n// encountered, then it's strict.\nfunction chownErOk (er) {\n if (!er)\n return true\n\n if (er.code === \"ENOSYS\")\n return true\n\n var nonroot = !process.getuid || process.getuid() !== 0\n if (nonroot) {\n if (er.code === \"EINVAL\" || er.code === \"EPERM\")\n return true\n }\n\n return false\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/graceful-fs/polyfills.js\n ** module id = 305\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/graceful-fs/polyfills.js?"); /***/ }, /* 306 */ /***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(Buffer) {'use strict';\nvar isUtf8 = __webpack_require__(307);\n\nmodule.exports = function (x) {\n\t// Catches EFBBBF (UTF-8 BOM) because the buffer-to-string\n\t// conversion translates it to FEFF (UTF-16 BOM)\n\tif (typeof x === 'string' && x.charCodeAt(0) === 0xFEFF) {\n\t\treturn x.slice(1);\n\t}\n\n\tif (Buffer.isBuffer(x) && isUtf8(x) &&\n\t\tx[0] === 0xEF && x[1] === 0xBB && x[2] === 0xBF) {\n\t\treturn x.slice(3);\n\t}\n\n\treturn x;\n};\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1).Buffer))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/strip-bom/index.js\n ** module id = 306\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/strip-bom/index.js?"); + eval("'use strict'\n\nvar fs = __webpack_require__(82)\n\nmodule.exports = clone(fs)\n\nfunction clone (obj) {\n if (obj === null || typeof obj !== 'object')\n return obj\n\n if (obj instanceof Object)\n var copy = { __proto__: obj.__proto__ }\n else\n var copy = Object.create(null)\n\n Object.getOwnPropertyNames(obj).forEach(function (key) {\n Object.defineProperty(copy, key, Object.getOwnPropertyDescriptor(obj, key))\n })\n\n return copy\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/graceful-fs/fs.js\n ** module id = 306\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/graceful-fs/fs.js?"); /***/ }, /* 307 */ /***/ function(module, exports) { - eval("\nexports = module.exports = function(bytes)\n{\n var i = 0;\n while(i < bytes.length)\n {\n if( (// ASCII\n bytes[i] == 0x09 ||\n bytes[i] == 0x0A ||\n bytes[i] == 0x0D ||\n (0x20 <= bytes[i] && bytes[i] <= 0x7E)\n )\n ) {\n i += 1;\n continue;\n }\n\n if( (// non-overlong 2-byte\n (0xC2 <= bytes[i] && bytes[i] <= 0xDF) &&\n (0x80 <= bytes[i+1] && bytes[i+1] <= 0xBF)\n )\n ) {\n i += 2;\n continue;\n }\n\n if( (// excluding overlongs\n bytes[i] == 0xE0 &&\n (0xA0 <= bytes[i + 1] && bytes[i + 1] <= 0xBF) &&\n (0x80 <= bytes[i + 2] && bytes[i + 2] <= 0xBF)\n ) ||\n (// straight 3-byte\n ((0xE1 <= bytes[i] && bytes[i] <= 0xEC) ||\n bytes[i] == 0xEE ||\n bytes[i] == 0xEF) &&\n (0x80 <= bytes[i + 1] && bytes[i+1] <= 0xBF) &&\n (0x80 <= bytes[i+2] && bytes[i+2] <= 0xBF)\n ) ||\n (// excluding surrogates\n bytes[i] == 0xED &&\n (0x80 <= bytes[i+1] && bytes[i+1] <= 0x9F) &&\n (0x80 <= bytes[i+2] && bytes[i+2] <= 0xBF)\n )\n ) {\n i += 3;\n continue;\n }\n\n if( (// planes 1-3\n bytes[i] == 0xF0 &&\n (0x90 <= bytes[i + 1] && bytes[i + 1] <= 0xBF) &&\n (0x80 <= bytes[i + 2] && bytes[i + 2] <= 0xBF) &&\n (0x80 <= bytes[i + 3] && bytes[i + 3] <= 0xBF)\n ) ||\n (// planes 4-15\n (0xF1 <= bytes[i] && bytes[i] <= 0xF3) &&\n (0x80 <= bytes[i + 1] && bytes[i + 1] <= 0xBF) &&\n (0x80 <= bytes[i + 2] && bytes[i + 2] <= 0xBF) &&\n (0x80 <= bytes[i + 3] && bytes[i + 3] <= 0xBF)\n ) ||\n (// plane 16\n bytes[i] == 0xF4 &&\n (0x80 <= bytes[i + 1] && bytes[i + 1] <= 0x8F) &&\n (0x80 <= bytes[i + 2] && bytes[i + 2] <= 0xBF) &&\n (0x80 <= bytes[i + 3] && bytes[i + 3] <= 0xBF)\n )\n ) {\n i += 4;\n continue;\n }\n\n return false;\n }\n\n return true;\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/is-utf8/is-utf8.js\n ** module id = 307\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/is-utf8/is-utf8.js?"); + eval("module.exports = {\n\t\"O_RDONLY\": 0,\n\t\"O_WRONLY\": 1,\n\t\"O_RDWR\": 2,\n\t\"S_IFMT\": 61440,\n\t\"S_IFREG\": 32768,\n\t\"S_IFDIR\": 16384,\n\t\"S_IFCHR\": 8192,\n\t\"S_IFBLK\": 24576,\n\t\"S_IFIFO\": 4096,\n\t\"S_IFLNK\": 40960,\n\t\"S_IFSOCK\": 49152,\n\t\"O_CREAT\": 512,\n\t\"O_EXCL\": 2048,\n\t\"O_NOCTTY\": 131072,\n\t\"O_TRUNC\": 1024,\n\t\"O_APPEND\": 8,\n\t\"O_DIRECTORY\": 1048576,\n\t\"O_NOFOLLOW\": 256,\n\t\"O_SYNC\": 128,\n\t\"O_SYMLINK\": 2097152,\n\t\"S_IRWXU\": 448,\n\t\"S_IRUSR\": 256,\n\t\"S_IWUSR\": 128,\n\t\"S_IXUSR\": 64,\n\t\"S_IRWXG\": 56,\n\t\"S_IRGRP\": 32,\n\t\"S_IWGRP\": 16,\n\t\"S_IXGRP\": 8,\n\t\"S_IRWXO\": 7,\n\t\"S_IROTH\": 4,\n\t\"S_IWOTH\": 2,\n\t\"S_IXOTH\": 1,\n\t\"E2BIG\": 7,\n\t\"EACCES\": 13,\n\t\"EADDRINUSE\": 48,\n\t\"EADDRNOTAVAIL\": 49,\n\t\"EAFNOSUPPORT\": 47,\n\t\"EAGAIN\": 35,\n\t\"EALREADY\": 37,\n\t\"EBADF\": 9,\n\t\"EBADMSG\": 94,\n\t\"EBUSY\": 16,\n\t\"ECANCELED\": 89,\n\t\"ECHILD\": 10,\n\t\"ECONNABORTED\": 53,\n\t\"ECONNREFUSED\": 61,\n\t\"ECONNRESET\": 54,\n\t\"EDEADLK\": 11,\n\t\"EDESTADDRREQ\": 39,\n\t\"EDOM\": 33,\n\t\"EDQUOT\": 69,\n\t\"EEXIST\": 17,\n\t\"EFAULT\": 14,\n\t\"EFBIG\": 27,\n\t\"EHOSTUNREACH\": 65,\n\t\"EIDRM\": 90,\n\t\"EILSEQ\": 92,\n\t\"EINPROGRESS\": 36,\n\t\"EINTR\": 4,\n\t\"EINVAL\": 22,\n\t\"EIO\": 5,\n\t\"EISCONN\": 56,\n\t\"EISDIR\": 21,\n\t\"ELOOP\": 62,\n\t\"EMFILE\": 24,\n\t\"EMLINK\": 31,\n\t\"EMSGSIZE\": 40,\n\t\"EMULTIHOP\": 95,\n\t\"ENAMETOOLONG\": 63,\n\t\"ENETDOWN\": 50,\n\t\"ENETRESET\": 52,\n\t\"ENETUNREACH\": 51,\n\t\"ENFILE\": 23,\n\t\"ENOBUFS\": 55,\n\t\"ENODATA\": 96,\n\t\"ENODEV\": 19,\n\t\"ENOENT\": 2,\n\t\"ENOEXEC\": 8,\n\t\"ENOLCK\": 77,\n\t\"ENOLINK\": 97,\n\t\"ENOMEM\": 12,\n\t\"ENOMSG\": 91,\n\t\"ENOPROTOOPT\": 42,\n\t\"ENOSPC\": 28,\n\t\"ENOSR\": 98,\n\t\"ENOSTR\": 99,\n\t\"ENOSYS\": 78,\n\t\"ENOTCONN\": 57,\n\t\"ENOTDIR\": 20,\n\t\"ENOTEMPTY\": 66,\n\t\"ENOTSOCK\": 38,\n\t\"ENOTSUP\": 45,\n\t\"ENOTTY\": 25,\n\t\"ENXIO\": 6,\n\t\"EOPNOTSUPP\": 102,\n\t\"EOVERFLOW\": 84,\n\t\"EPERM\": 1,\n\t\"EPIPE\": 32,\n\t\"EPROTO\": 100,\n\t\"EPROTONOSUPPORT\": 43,\n\t\"EPROTOTYPE\": 41,\n\t\"ERANGE\": 34,\n\t\"EROFS\": 30,\n\t\"ESPIPE\": 29,\n\t\"ESRCH\": 3,\n\t\"ESTALE\": 70,\n\t\"ETIME\": 101,\n\t\"ETIMEDOUT\": 60,\n\t\"ETXTBSY\": 26,\n\t\"EWOULDBLOCK\": 35,\n\t\"EXDEV\": 18,\n\t\"SIGHUP\": 1,\n\t\"SIGINT\": 2,\n\t\"SIGQUIT\": 3,\n\t\"SIGILL\": 4,\n\t\"SIGTRAP\": 5,\n\t\"SIGABRT\": 6,\n\t\"SIGIOT\": 6,\n\t\"SIGBUS\": 10,\n\t\"SIGFPE\": 8,\n\t\"SIGKILL\": 9,\n\t\"SIGUSR1\": 30,\n\t\"SIGSEGV\": 11,\n\t\"SIGUSR2\": 31,\n\t\"SIGPIPE\": 13,\n\t\"SIGALRM\": 14,\n\t\"SIGTERM\": 15,\n\t\"SIGCHLD\": 20,\n\t\"SIGCONT\": 19,\n\t\"SIGSTOP\": 17,\n\t\"SIGTSTP\": 18,\n\t\"SIGTTIN\": 21,\n\t\"SIGTTOU\": 22,\n\t\"SIGURG\": 16,\n\t\"SIGXCPU\": 24,\n\t\"SIGXFSZ\": 25,\n\t\"SIGVTALRM\": 26,\n\t\"SIGPROF\": 27,\n\t\"SIGWINCH\": 28,\n\t\"SIGIO\": 23,\n\t\"SIGSYS\": 12,\n\t\"SSL_OP_ALL\": 2147486719,\n\t\"SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION\": 262144,\n\t\"SSL_OP_CIPHER_SERVER_PREFERENCE\": 4194304,\n\t\"SSL_OP_CISCO_ANYCONNECT\": 32768,\n\t\"SSL_OP_COOKIE_EXCHANGE\": 8192,\n\t\"SSL_OP_CRYPTOPRO_TLSEXT_BUG\": 2147483648,\n\t\"SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS\": 2048,\n\t\"SSL_OP_EPHEMERAL_RSA\": 2097152,\n\t\"SSL_OP_LEGACY_SERVER_CONNECT\": 4,\n\t\"SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER\": 32,\n\t\"SSL_OP_MICROSOFT_SESS_ID_BUG\": 1,\n\t\"SSL_OP_MSIE_SSLV2_RSA_PADDING\": 64,\n\t\"SSL_OP_NETSCAPE_CA_DN_BUG\": 536870912,\n\t\"SSL_OP_NETSCAPE_CHALLENGE_BUG\": 2,\n\t\"SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG\": 1073741824,\n\t\"SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG\": 8,\n\t\"SSL_OP_NO_COMPRESSION\": 131072,\n\t\"SSL_OP_NO_QUERY_MTU\": 4096,\n\t\"SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION\": 65536,\n\t\"SSL_OP_NO_SSLv2\": 16777216,\n\t\"SSL_OP_NO_SSLv3\": 33554432,\n\t\"SSL_OP_NO_TICKET\": 16384,\n\t\"SSL_OP_NO_TLSv1\": 67108864,\n\t\"SSL_OP_NO_TLSv1_1\": 268435456,\n\t\"SSL_OP_NO_TLSv1_2\": 134217728,\n\t\"SSL_OP_PKCS1_CHECK_1\": 0,\n\t\"SSL_OP_PKCS1_CHECK_2\": 0,\n\t\"SSL_OP_SINGLE_DH_USE\": 1048576,\n\t\"SSL_OP_SINGLE_ECDH_USE\": 524288,\n\t\"SSL_OP_SSLEAY_080_CLIENT_DH_BUG\": 128,\n\t\"SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG\": 16,\n\t\"SSL_OP_TLS_BLOCK_PADDING_BUG\": 512,\n\t\"SSL_OP_TLS_D5_BUG\": 256,\n\t\"SSL_OP_TLS_ROLLBACK_BUG\": 8388608,\n\t\"NPN_ENABLED\": 1\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/constants-browserify/constants.json\n ** module id = 307\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/constants-browserify/constants.json?"); /***/ }, /* 308 */ /***/ function(module, exports, __webpack_require__) { - eval("'use strict';\n\nvar filter = __webpack_require__(241);\n\nmodule.exports = function(d) {\n var isValid = typeof d === 'number' ||\n d instanceof Number ||\n d instanceof Date;\n\n if (!isValid) {\n throw new Error('expected since option to be a date or a number');\n }\n return filter.obj(function(file){\n return file.stat && file.stat.mtime > d;\n });\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/lib/filterSince.js\n ** module id = 308\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/lib/filterSince.js?"); + eval("/* WEBPACK VAR INJECTION */(function(process) {var Stream = __webpack_require__(98).Stream\n\nmodule.exports = legacy\n\nfunction legacy (fs) {\n return {\n ReadStream: ReadStream,\n WriteStream: WriteStream\n }\n\n function ReadStream (path, options) {\n if (!(this instanceof ReadStream)) return new ReadStream(path, options);\n\n Stream.call(this);\n\n var self = this;\n\n this.path = path;\n this.fd = null;\n this.readable = true;\n this.paused = false;\n\n this.flags = 'r';\n this.mode = 438; /*=0666*/\n this.bufferSize = 64 * 1024;\n\n options = options || {};\n\n // Mixin options into this\n var keys = Object.keys(options);\n for (var index = 0, length = keys.length; index < length; index++) {\n var key = keys[index];\n this[key] = options[key];\n }\n\n if (this.encoding) this.setEncoding(this.encoding);\n\n if (this.start !== undefined) {\n if ('number' !== typeof this.start) {\n throw TypeError('start must be a Number');\n }\n if (this.end === undefined) {\n this.end = Infinity;\n } else if ('number' !== typeof this.end) {\n throw TypeError('end must be a Number');\n }\n\n if (this.start > this.end) {\n throw new Error('start must be <= end');\n }\n\n this.pos = this.start;\n }\n\n if (this.fd !== null) {\n process.nextTick(function() {\n self._read();\n });\n return;\n }\n\n fs.open(this.path, this.flags, this.mode, function (err, fd) {\n if (err) {\n self.emit('error', err);\n self.readable = false;\n return;\n }\n\n self.fd = fd;\n self.emit('open', fd);\n self._read();\n })\n }\n\n function WriteStream (path, options) {\n if (!(this instanceof WriteStream)) return new WriteStream(path, options);\n\n Stream.call(this);\n\n this.path = path;\n this.fd = null;\n this.writable = true;\n\n this.flags = 'w';\n this.encoding = 'binary';\n this.mode = 438; /*=0666*/\n this.bytesWritten = 0;\n\n options = options || {};\n\n // Mixin options into this\n var keys = Object.keys(options);\n for (var index = 0, length = keys.length; index < length; index++) {\n var key = keys[index];\n this[key] = options[key];\n }\n\n if (this.start !== undefined) {\n if ('number' !== typeof this.start) {\n throw TypeError('start must be a Number');\n }\n if (this.start < 0) {\n throw new Error('start must be >= zero');\n }\n\n this.pos = this.start;\n }\n\n this.busy = false;\n this._queue = [];\n\n if (this.fd === null) {\n this._open = fs.open;\n this._queue.push([this._open, this.path, this.flags, this.mode, undefined]);\n this.flush();\n }\n }\n}\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/graceful-fs/legacy-streams.js\n ** module id = 308\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/graceful-fs/legacy-streams.js?"); /***/ }, /* 309 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("'use strict';\n\nmodule.exports = function isValidGlob(glob) {\n if (typeof glob === 'string' && glob.length > 0) {\n return true;\n }\n if (Array.isArray(glob)) {\n return glob.length !== 0 && every(glob);\n }\n return false;\n};\n\nfunction every(arr) {\n var len = arr.length;\n while (len--) {\n if (typeof arr[len] !== 'string' || arr[len].length <= 0) {\n return false;\n }\n }\n return true;\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/is-valid-glob/index.js\n ** module id = 309\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/is-valid-glob/index.js?"); + eval("/* WEBPACK VAR INJECTION */(function(Buffer) {'use strict';\nvar fs = __webpack_require__(82);\nvar path = __webpack_require__(149);\n\nvar commentRx = /^\\s*\\/(?:\\/|\\*)[@#]\\s+sourceMappingURL=data:(?:application|text)\\/json;(?:charset[:=]\\S+;)?base64,(.*)$/mg;\nvar mapFileCommentRx =\n //Example (Extra space between slashes added to solve Safari bug. Exclude space in production):\n // / /# sourceMappingURL=foo.js.map /*# sourceMappingURL=foo.js.map */\n /(?:\\/\\/[@#][ \\t]+sourceMappingURL=([^\\s'\"]+?)[ \\t]*$)|(?:\\/\\*[@#][ \\t]+sourceMappingURL=([^\\*]+?)[ \\t]*(?:\\*\\/){1}[ \\t]*$)/mg\n\nfunction decodeBase64(base64) {\n return new Buffer(base64, 'base64').toString();\n}\n\nfunction stripComment(sm) {\n return sm.split(',').pop();\n}\n\nfunction readFromFileMap(sm, dir) {\n // NOTE: this will only work on the server since it attempts to read the map file\n\n var r = mapFileCommentRx.exec(sm);\n mapFileCommentRx.lastIndex = 0;\n\n // for some odd reason //# .. captures in 1 and /* .. */ in 2\n var filename = r[1] || r[2];\n var filepath = path.join(dir, filename);\n\n try {\n return fs.readFileSync(filepath, 'utf8');\n } catch (e) {\n throw new Error('An error occurred while trying to read the map file at ' + filepath + '\\n' + e);\n }\n}\n\nfunction Converter (sm, opts) {\n opts = opts || {};\n\n if (opts.isFileComment) sm = readFromFileMap(sm, opts.commentFileDir);\n if (opts.hasComment) sm = stripComment(sm);\n if (opts.isEncoded) sm = decodeBase64(sm);\n if (opts.isJSON || opts.isEncoded) sm = JSON.parse(sm);\n\n this.sourcemap = sm;\n}\n\nfunction convertFromLargeSource(content){\n var lines = content.split('\\n');\n var line;\n // find first line which contains a source map starting at end of content\n for (var i = lines.length - 1; i > 0; i--) {\n line = lines[i]\n if (~line.indexOf('sourceMappingURL=data:')) return exports.fromComment(line);\n }\n}\n\nConverter.prototype.toJSON = function (space) {\n return JSON.stringify(this.sourcemap, null, space);\n};\n\nConverter.prototype.toBase64 = function () {\n var json = this.toJSON();\n return new Buffer(json).toString('base64');\n};\n\nConverter.prototype.toComment = function (options) {\n var base64 = this.toBase64();\n var data = 'sourceMappingURL=data:application/json;base64,' + base64;\n return options && options.multiline ? '/*# ' + data + ' */' : '//# ' + data;\n};\n\n// returns copy instead of original\nConverter.prototype.toObject = function () {\n return JSON.parse(this.toJSON());\n};\n\nConverter.prototype.addProperty = function (key, value) {\n if (this.sourcemap.hasOwnProperty(key)) throw new Error('property %s already exists on the sourcemap, use set property instead');\n return this.setProperty(key, value);\n};\n\nConverter.prototype.setProperty = function (key, value) {\n this.sourcemap[key] = value;\n return this;\n};\n\nConverter.prototype.getProperty = function (key) {\n return this.sourcemap[key];\n};\n\nexports.fromObject = function (obj) {\n return new Converter(obj);\n};\n\nexports.fromJSON = function (json) {\n return new Converter(json, { isJSON: true });\n};\n\nexports.fromBase64 = function (base64) {\n return new Converter(base64, { isEncoded: true });\n};\n\nexports.fromComment = function (comment) {\n comment = comment\n .replace(/^\\/\\*/g, '//')\n .replace(/\\*\\/$/g, '');\n\n return new Converter(comment, { isEncoded: true, hasComment: true });\n};\n\nexports.fromMapFileComment = function (comment, dir) {\n return new Converter(comment, { commentFileDir: dir, isFileComment: true, isJSON: true });\n};\n\n// Finds last sourcemap comment in file or returns null if none was found\nexports.fromSource = function (content, largeSource) {\n if (largeSource) {\n var res = convertFromLargeSource(content);\n return res ? res : null;\n }\n\n var m = content.match(commentRx);\n commentRx.lastIndex = 0;\n return m ? exports.fromComment(m.pop()) : null;\n};\n\n// Finds last sourcemap comment in file or returns null if none was found\nexports.fromMapFileSource = function (content, dir) {\n var m = content.match(mapFileCommentRx);\n mapFileCommentRx.lastIndex = 0;\n return m ? exports.fromMapFileComment(m.pop(), dir) : null;\n};\n\nexports.removeComments = function (src) {\n commentRx.lastIndex = 0;\n return src.replace(commentRx, '');\n};\n\nexports.removeMapFileComments = function (src) {\n mapFileCommentRx.lastIndex = 0;\n return src.replace(mapFileCommentRx, '');\n};\n\nObject.defineProperty(exports, 'commentRegex', {\n get: function getCommentRegex () {\n commentRx.lastIndex = 0;\n return commentRx;\n }\n});\n\nObject.defineProperty(exports, 'mapFileCommentRegex', {\n get: function getMapFileCommentRegex () {\n mapFileCommentRx.lastIndex = 0;\n return mapFileCommentRx;\n }\n});\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1).Buffer))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/convert-source-map/index.js\n ** module id = 309\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/convert-source-map/index.js?"); /***/ }, /* 310 */ /***/ function(module, exports, __webpack_require__) { - eval("'use strict';\n\nvar through2 = __webpack_require__(226);\nvar readDir = __webpack_require__(311);\nvar readSymbolicLink = __webpack_require__(312);\nvar bufferFile = __webpack_require__(313);\nvar streamFile = __webpack_require__(314);\n\nfunction getContents(opt) {\n return through2.obj(function(file, enc, cb) {\n // don't fail to read a directory\n if (file.isDirectory()) {\n return readDir(file, opt, cb);\n }\n\n // process symbolic links included with `followSymlinks` option\n if (file.stat && file.stat.isSymbolicLink()) {\n return readSymbolicLink(file, opt, cb);\n }\n\n // read and pass full contents\n if (opt.buffer !== false) {\n return bufferFile(file, opt, cb);\n }\n\n // dont buffer anything - just pass streams\n return streamFile(file, opt, cb);\n });\n}\n\nmodule.exports = getContents;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/lib/src/getContents/index.js\n ** module id = 310\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/lib/src/getContents/index.js?"); + eval("/* WEBPACK VAR INJECTION */(function(Buffer) {'use strict';\nvar isUtf8 = __webpack_require__(311);\n\nmodule.exports = function (x) {\n\t// Catches EFBBBF (UTF-8 BOM) because the buffer-to-string\n\t// conversion translates it to FEFF (UTF-16 BOM)\n\tif (typeof x === 'string' && x.charCodeAt(0) === 0xFEFF) {\n\t\treturn x.slice(1);\n\t}\n\n\tif (Buffer.isBuffer(x) && isUtf8(x) &&\n\t\tx[0] === 0xEF && x[1] === 0xBB && x[2] === 0xBF) {\n\t\treturn x.slice(3);\n\t}\n\n\treturn x;\n};\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1).Buffer))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/strip-bom/index.js\n ** module id = 310\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/strip-bom/index.js?"); /***/ }, /* 311 */ /***/ function(module, exports) { - eval("'use strict';\n\nfunction readDir(file, opt, cb) {\n // do nothing for now\n cb(null, file);\n}\n\nmodule.exports = readDir;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/lib/src/getContents/readDir.js\n ** module id = 311\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/lib/src/getContents/readDir.js?"); + eval("\nexports = module.exports = function(bytes)\n{\n var i = 0;\n while(i < bytes.length)\n {\n if( (// ASCII\n bytes[i] == 0x09 ||\n bytes[i] == 0x0A ||\n bytes[i] == 0x0D ||\n (0x20 <= bytes[i] && bytes[i] <= 0x7E)\n )\n ) {\n i += 1;\n continue;\n }\n\n if( (// non-overlong 2-byte\n (0xC2 <= bytes[i] && bytes[i] <= 0xDF) &&\n (0x80 <= bytes[i+1] && bytes[i+1] <= 0xBF)\n )\n ) {\n i += 2;\n continue;\n }\n\n if( (// excluding overlongs\n bytes[i] == 0xE0 &&\n (0xA0 <= bytes[i + 1] && bytes[i + 1] <= 0xBF) &&\n (0x80 <= bytes[i + 2] && bytes[i + 2] <= 0xBF)\n ) ||\n (// straight 3-byte\n ((0xE1 <= bytes[i] && bytes[i] <= 0xEC) ||\n bytes[i] == 0xEE ||\n bytes[i] == 0xEF) &&\n (0x80 <= bytes[i + 1] && bytes[i+1] <= 0xBF) &&\n (0x80 <= bytes[i+2] && bytes[i+2] <= 0xBF)\n ) ||\n (// excluding surrogates\n bytes[i] == 0xED &&\n (0x80 <= bytes[i+1] && bytes[i+1] <= 0x9F) &&\n (0x80 <= bytes[i+2] && bytes[i+2] <= 0xBF)\n )\n ) {\n i += 3;\n continue;\n }\n\n if( (// planes 1-3\n bytes[i] == 0xF0 &&\n (0x90 <= bytes[i + 1] && bytes[i + 1] <= 0xBF) &&\n (0x80 <= bytes[i + 2] && bytes[i + 2] <= 0xBF) &&\n (0x80 <= bytes[i + 3] && bytes[i + 3] <= 0xBF)\n ) ||\n (// planes 4-15\n (0xF1 <= bytes[i] && bytes[i] <= 0xF3) &&\n (0x80 <= bytes[i + 1] && bytes[i + 1] <= 0xBF) &&\n (0x80 <= bytes[i + 2] && bytes[i + 2] <= 0xBF) &&\n (0x80 <= bytes[i + 3] && bytes[i + 3] <= 0xBF)\n ) ||\n (// plane 16\n bytes[i] == 0xF4 &&\n (0x80 <= bytes[i + 1] && bytes[i + 1] <= 0x8F) &&\n (0x80 <= bytes[i + 2] && bytes[i + 2] <= 0xBF) &&\n (0x80 <= bytes[i + 3] && bytes[i + 3] <= 0xBF)\n )\n ) {\n i += 4;\n continue;\n }\n\n return false;\n }\n\n return true;\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/is-utf8/is-utf8.js\n ** module id = 311\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/is-utf8/is-utf8.js?"); /***/ }, /* 312 */ /***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(process) {'use strict';\n\nvar fs = process.browser ? __webpack_require__(82) : __webpack_require__(300);\n\nfunction readLink(file, opt, cb) {\n fs.readlink(file.path, function (err, target) {\n if (err) {\n return cb(err);\n }\n\n // store the link target path\n file.symlink = target;\n\n return cb(null, file);\n });\n}\n\nmodule.exports = readLink;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/lib/src/getContents/readSymbolicLink.js\n ** module id = 312\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/lib/src/getContents/readSymbolicLink.js?"); + eval("'use strict';\n\nvar filter = __webpack_require__(241);\n\nmodule.exports = function(d) {\n var isValid = typeof d === 'number' ||\n d instanceof Number ||\n d instanceof Date;\n\n if (!isValid) {\n throw new Error('expected since option to be a date or a number');\n }\n return filter.obj(function(file){\n return file.stat && file.stat.mtime > d;\n });\n};\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/lib/filterSince.js\n ** module id = 312\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/lib/filterSince.js?"); /***/ }, /* 313 */ -/***/ function(module, exports, __webpack_require__) { +/***/ function(module, exports) { - eval("/* WEBPACK VAR INJECTION */(function(process) {'use strict';\n\nvar fs = process.browser ? __webpack_require__(82) : __webpack_require__(300);\nvar stripBom = __webpack_require__(306);\n\nfunction bufferFile(file, opt, cb) {\n fs.readFile(file.path, function(err, data) {\n if (err) {\n return cb(err);\n }\n\n if (opt.stripBOM){\n file.contents = stripBom(data);\n } else {\n file.contents = data;\n }\n\n cb(null, file);\n });\n}\n\nmodule.exports = bufferFile;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/lib/src/getContents/bufferFile.js\n ** module id = 313\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/lib/src/getContents/bufferFile.js?"); + eval("'use strict';\n\nmodule.exports = function isValidGlob(glob) {\n if (typeof glob === 'string' && glob.length > 0) {\n return true;\n }\n if (Array.isArray(glob)) {\n return glob.length !== 0 && every(glob);\n }\n return false;\n};\n\nfunction every(arr) {\n var len = arr.length;\n while (len--) {\n if (typeof arr[len] !== 'string' || arr[len].length <= 0) {\n return false;\n }\n }\n return true;\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/is-valid-glob/index.js\n ** module id = 313\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/is-valid-glob/index.js?"); /***/ }, /* 314 */ /***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(process) {'use strict';\n\nvar fs = process.browser ? __webpack_require__(82) : __webpack_require__(300);\nvar stripBom = __webpack_require__(315);\n\nfunction streamFile(file, opt, cb) {\n file.contents = fs.createReadStream(file.path);\n\n if (opt.stripBOM) {\n file.contents = file.contents.pipe(stripBom());\n }\n\n cb(null, file);\n}\n\nmodule.exports = streamFile;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/lib/src/getContents/streamFile.js\n ** module id = 314\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/lib/src/getContents/streamFile.js?"); + eval("'use strict';\n\nvar through2 = __webpack_require__(226);\nvar readDir = __webpack_require__(315);\nvar readSymbolicLink = __webpack_require__(316);\nvar bufferFile = __webpack_require__(317);\nvar streamFile = __webpack_require__(318);\n\nfunction getContents(opt) {\n return through2.obj(function(file, enc, cb) {\n // don't fail to read a directory\n if (file.isDirectory()) {\n return readDir(file, opt, cb);\n }\n\n // process symbolic links included with `followSymlinks` option\n if (file.stat && file.stat.isSymbolicLink()) {\n return readSymbolicLink(file, opt, cb);\n }\n\n // read and pass full contents\n if (opt.buffer !== false) {\n return bufferFile(file, opt, cb);\n }\n\n // dont buffer anything - just pass streams\n return streamFile(file, opt, cb);\n });\n}\n\nmodule.exports = getContents;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/lib/src/getContents/index.js\n ** module id = 314\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/lib/src/getContents/index.js?"); /***/ }, /* 315 */ -/***/ function(module, exports, __webpack_require__) { +/***/ function(module, exports) { - eval("'use strict';\nvar firstChunk = __webpack_require__(316);\nvar stripBom = __webpack_require__(306);\n\nmodule.exports = function () {\n\treturn firstChunk({minSize: 3}, function (chunk, enc, cb) {\n\t\tthis.push(stripBom(chunk));\n\t\tcb();\n\t});\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/strip-bom-stream/index.js\n ** module id = 315\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/strip-bom-stream/index.js?"); + eval("'use strict';\n\nfunction readDir(file, opt, cb) {\n // do nothing for now\n cb(null, file);\n}\n\nmodule.exports = readDir;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/lib/src/getContents/readDir.js\n ** module id = 315\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/lib/src/getContents/readDir.js?"); /***/ }, /* 316 */ /***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(Buffer) {'use strict';\nvar util = __webpack_require__(139);\nvar Transform = __webpack_require__(98).Transform;\n\nfunction ctor(options, transform) {\n\tutil.inherits(FirstChunk, Transform);\n\n\tif (typeof options === 'function') {\n\t\ttransform = options;\n\t\toptions = {};\n\t}\n\n\tif (typeof transform !== 'function') {\n\t\tthrow new Error('transform function required');\n\t}\n\n\tfunction FirstChunk(options2) {\n\t\tif (!(this instanceof FirstChunk)) {\n\t\t\treturn new FirstChunk(options2);\n\t\t}\n\n\t\tTransform.call(this, options2);\n\n\t\tthis._firstChunk = true;\n\t\tthis._transformCalled = false;\n\t\tthis._minSize = options.minSize;\n\t}\n\n\tFirstChunk.prototype._transform = function (chunk, enc, cb) {\n\t\tthis._enc = enc;\n\n\t\tif (this._firstChunk) {\n\t\t\tthis._firstChunk = false;\n\n\t\t\tif (this._minSize == null) {\n\t\t\t\ttransform.call(this, chunk, enc, cb);\n\t\t\t\tthis._transformCalled = true;\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tthis._buffer = chunk;\n\t\t\tcb();\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._minSize == null) {\n\t\t\tthis.push(chunk);\n\t\t\tcb();\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._buffer.length < this._minSize) {\n\t\t\tthis._buffer = Buffer.concat([this._buffer, chunk]);\n\t\t\tcb();\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._buffer.length >= this._minSize) {\n\t\t\ttransform.call(this, this._buffer.slice(), enc, function () {\n\t\t\t\tthis.push(chunk);\n\t\t\t\tcb();\n\t\t\t}.bind(this));\n\t\t\tthis._transformCalled = true;\n\t\t\tthis._buffer = false;\n\t\t\treturn;\n\t\t}\n\n\t\tthis.push(chunk);\n\t\tcb();\n\t};\n\n\tFirstChunk.prototype._flush = function (cb) {\n\t\tif (!this._buffer) {\n\t\t\tcb();\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._transformCalled) {\n\t\t\tthis.push(this._buffer);\n\t\t\tcb();\n\t\t} else {\n\t\t\ttransform.call(this, this._buffer.slice(), this._enc, cb);\n\t\t}\n\t};\n\n\treturn FirstChunk;\n}\n\nmodule.exports = function () {\n\treturn ctor.apply(ctor, arguments)();\n};\n\nmodule.exports.ctor = ctor;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1).Buffer))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/first-chunk-stream/index.js\n ** module id = 316\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/first-chunk-stream/index.js?"); + eval("/* WEBPACK VAR INJECTION */(function(process) {'use strict';\n\nvar fs = process.browser ? __webpack_require__(82) : __webpack_require__(304);\n\nfunction readLink(file, opt, cb) {\n fs.readlink(file.path, function (err, target) {\n if (err) {\n return cb(err);\n }\n\n // store the link target path\n file.symlink = target;\n\n return cb(null, file);\n });\n}\n\nmodule.exports = readLink;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/lib/src/getContents/readSymbolicLink.js\n ** module id = 316\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/lib/src/getContents/readSymbolicLink.js?"); /***/ }, /* 317 */ /***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(process) {'use strict';\n\nvar through2 = __webpack_require__(226);\nvar fs = process.browser ? __webpack_require__(82) : __webpack_require__(300);\nvar path = __webpack_require__(149);\n\nfunction resolveSymlinks(options) {\n\n // a stat property is exposed on file objects as a (wanted) side effect\n function resolveFile(globFile, enc, cb) {\n fs.lstat(globFile.path, function (err, stat) {\n if (err) {\n return cb(err);\n }\n\n globFile.stat = stat;\n\n if (!stat.isSymbolicLink() || !options.followSymlinks) {\n return cb(null, globFile);\n }\n\n fs.realpath(globFile.path, function (err, filePath) {\n if (err) {\n return cb(err);\n }\n\n globFile.base = path.dirname(filePath);\n globFile.path = filePath;\n\n // recurse to get real file stat\n resolveFile(globFile, enc, cb);\n });\n });\n }\n\n return through2.obj(resolveFile);\n}\n\nmodule.exports = resolveSymlinks;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/lib/src/resolveSymlinks.js\n ** module id = 317\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/lib/src/resolveSymlinks.js?"); + eval("/* WEBPACK VAR INJECTION */(function(process) {'use strict';\n\nvar fs = process.browser ? __webpack_require__(82) : __webpack_require__(304);\nvar stripBom = __webpack_require__(310);\n\nfunction bufferFile(file, opt, cb) {\n fs.readFile(file.path, function(err, data) {\n if (err) {\n return cb(err);\n }\n\n if (opt.stripBOM){\n file.contents = stripBom(data);\n } else {\n file.contents = data;\n }\n\n cb(null, file);\n });\n}\n\nmodule.exports = bufferFile;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/lib/src/getContents/bufferFile.js\n ** module id = 317\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/lib/src/getContents/bufferFile.js?"); /***/ }, /* 318 */ /***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(process) {'use strict';\n\nvar through2 = __webpack_require__(226);\nvar sourcemaps = process.browser ? null : __webpack_require__(298);\nvar duplexify = __webpack_require__(294);\nvar prepareWrite = __webpack_require__(319);\nvar writeContents = __webpack_require__(321);\n\nfunction dest(outFolder, opt) {\n if (!opt) {\n opt = {};\n }\n\n function saveFile(file, enc, cb) {\n prepareWrite(outFolder, file, opt, function(err, writePath) {\n if (err) {\n return cb(err);\n }\n writeContents(writePath, file, cb);\n });\n }\n\n var saveStream = through2.obj(saveFile);\n if (!opt.sourcemaps) {\n return saveStream;\n }\n\n var mapStream = sourcemaps.write(opt.sourcemaps.path, opt.sourcemaps);\n var outputStream = duplexify.obj(mapStream, saveStream);\n mapStream.pipe(saveStream);\n\n return outputStream;\n}\n\nmodule.exports = dest;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/lib/dest/index.js\n ** module id = 318\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/lib/dest/index.js?"); + eval("/* WEBPACK VAR INJECTION */(function(process) {'use strict';\n\nvar fs = process.browser ? __webpack_require__(82) : __webpack_require__(304);\nvar stripBom = __webpack_require__(319);\n\nfunction streamFile(file, opt, cb) {\n file.contents = fs.createReadStream(file.path);\n\n if (opt.stripBOM) {\n file.contents = file.contents.pipe(stripBom());\n }\n\n cb(null, file);\n}\n\nmodule.exports = streamFile;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/lib/src/getContents/streamFile.js\n ** module id = 318\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/lib/src/getContents/streamFile.js?"); /***/ }, /* 319 */ /***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(process) {'use strict';\n\nvar assign = __webpack_require__(225);\nvar path = __webpack_require__(149);\nvar mkdirp = __webpack_require__(320);\nvar fs = process.browser ? __webpack_require__(82) : __webpack_require__(300);\n\nfunction booleanOrFunc(v, file) {\n if (typeof v !== 'boolean' && typeof v !== 'function') {\n return null;\n }\n\n return typeof v === 'boolean' ? v : v(file);\n}\n\nfunction stringOrFunc(v, file) {\n if (typeof v !== 'string' && typeof v !== 'function') {\n return null;\n }\n\n return typeof v === 'string' ? v : v(file);\n}\n\nfunction prepareWrite(outFolder, file, opt, cb) {\n var options = assign({\n cwd: process.cwd(),\n mode: (file.stat ? file.stat.mode : null),\n dirMode: null,\n overwrite: true\n }, opt);\n var overwrite = booleanOrFunc(options.overwrite, file);\n options.flag = (overwrite ? 'w' : 'wx');\n\n var cwd = path.resolve(options.cwd);\n var outFolderPath = stringOrFunc(outFolder, file);\n if (!outFolderPath) {\n throw new Error('Invalid output folder');\n }\n var basePath = options.base ?\n stringOrFunc(options.base, file) : path.resolve(cwd, outFolderPath);\n if (!basePath) {\n throw new Error('Invalid base option');\n }\n\n var writePath = path.resolve(basePath, file.relative);\n var writeFolder = path.dirname(writePath);\n\n // wire up new properties\n file.stat = (file.stat || new fs.Stats());\n file.stat.mode = options.mode;\n file.flag = options.flag;\n file.cwd = cwd;\n file.base = basePath;\n file.path = writePath;\n\n // mkdirp the folder the file is going in\n mkdirp(writeFolder, options.dirMode, function(err){\n if (err) {\n return cb(err);\n }\n cb(null, writePath);\n });\n}\n\nmodule.exports = prepareWrite;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/lib/prepareWrite.js\n ** module id = 319\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/lib/prepareWrite.js?"); + eval("'use strict';\nvar firstChunk = __webpack_require__(320);\nvar stripBom = __webpack_require__(310);\n\nmodule.exports = function () {\n\treturn firstChunk({minSize: 3}, function (chunk, enc, cb) {\n\t\tthis.push(stripBom(chunk));\n\t\tcb();\n\t});\n};\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/strip-bom-stream/index.js\n ** module id = 319\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/strip-bom-stream/index.js?"); /***/ }, /* 320 */ /***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(process) {var path = __webpack_require__(149);\nvar fs = __webpack_require__(82);\nvar _0777 = parseInt('0777', 8);\n\nmodule.exports = mkdirP.mkdirp = mkdirP.mkdirP = mkdirP;\n\nfunction mkdirP (p, opts, f, made) {\n if (typeof opts === 'function') {\n f = opts;\n opts = {};\n }\n else if (!opts || typeof opts !== 'object') {\n opts = { mode: opts };\n }\n \n var mode = opts.mode;\n var xfs = opts.fs || fs;\n \n if (mode === undefined) {\n mode = _0777 & (~process.umask());\n }\n if (!made) made = null;\n \n var cb = f || function () {};\n p = path.resolve(p);\n \n xfs.mkdir(p, mode, function (er) {\n if (!er) {\n made = made || p;\n return cb(null, made);\n }\n switch (er.code) {\n case 'ENOENT':\n mkdirP(path.dirname(p), opts, function (er, made) {\n if (er) cb(er, made);\n else mkdirP(p, opts, cb, made);\n });\n break;\n\n // In the case of any other error, just see if there's a dir\n // there already. If so, then hooray! If not, then something\n // is borked.\n default:\n xfs.stat(p, function (er2, stat) {\n // if the stat fails, then that's super weird.\n // let the original error be the failure reason.\n if (er2 || !stat.isDirectory()) cb(er, made)\n else cb(null, made);\n });\n break;\n }\n });\n}\n\nmkdirP.sync = function sync (p, opts, made) {\n if (!opts || typeof opts !== 'object') {\n opts = { mode: opts };\n }\n \n var mode = opts.mode;\n var xfs = opts.fs || fs;\n \n if (mode === undefined) {\n mode = _0777 & (~process.umask());\n }\n if (!made) made = null;\n\n p = path.resolve(p);\n\n try {\n xfs.mkdirSync(p, mode);\n made = made || p;\n }\n catch (err0) {\n switch (err0.code) {\n case 'ENOENT' :\n made = sync(path.dirname(p), opts, made);\n sync(p, opts, made);\n break;\n\n // In the case of any other error, just see if there's a dir\n // there already. If so, then hooray! If not, then something\n // is borked.\n default:\n var stat;\n try {\n stat = xfs.statSync(p);\n }\n catch (err1) {\n throw err0;\n }\n if (!stat.isDirectory()) throw err0;\n break;\n }\n }\n\n return made;\n};\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/mkdirp/index.js\n ** module id = 320\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/mkdirp/index.js?"); + eval("/* WEBPACK VAR INJECTION */(function(Buffer) {'use strict';\nvar util = __webpack_require__(139);\nvar Transform = __webpack_require__(98).Transform;\n\nfunction ctor(options, transform) {\n\tutil.inherits(FirstChunk, Transform);\n\n\tif (typeof options === 'function') {\n\t\ttransform = options;\n\t\toptions = {};\n\t}\n\n\tif (typeof transform !== 'function') {\n\t\tthrow new Error('transform function required');\n\t}\n\n\tfunction FirstChunk(options2) {\n\t\tif (!(this instanceof FirstChunk)) {\n\t\t\treturn new FirstChunk(options2);\n\t\t}\n\n\t\tTransform.call(this, options2);\n\n\t\tthis._firstChunk = true;\n\t\tthis._transformCalled = false;\n\t\tthis._minSize = options.minSize;\n\t}\n\n\tFirstChunk.prototype._transform = function (chunk, enc, cb) {\n\t\tthis._enc = enc;\n\n\t\tif (this._firstChunk) {\n\t\t\tthis._firstChunk = false;\n\n\t\t\tif (this._minSize == null) {\n\t\t\t\ttransform.call(this, chunk, enc, cb);\n\t\t\t\tthis._transformCalled = true;\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tthis._buffer = chunk;\n\t\t\tcb();\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._minSize == null) {\n\t\t\tthis.push(chunk);\n\t\t\tcb();\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._buffer.length < this._minSize) {\n\t\t\tthis._buffer = Buffer.concat([this._buffer, chunk]);\n\t\t\tcb();\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._buffer.length >= this._minSize) {\n\t\t\ttransform.call(this, this._buffer.slice(), enc, function () {\n\t\t\t\tthis.push(chunk);\n\t\t\t\tcb();\n\t\t\t}.bind(this));\n\t\t\tthis._transformCalled = true;\n\t\t\tthis._buffer = false;\n\t\t\treturn;\n\t\t}\n\n\t\tthis.push(chunk);\n\t\tcb();\n\t};\n\n\tFirstChunk.prototype._flush = function (cb) {\n\t\tif (!this._buffer) {\n\t\t\tcb();\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._transformCalled) {\n\t\t\tthis.push(this._buffer);\n\t\t\tcb();\n\t\t} else {\n\t\t\ttransform.call(this, this._buffer.slice(), this._enc, cb);\n\t\t}\n\t};\n\n\treturn FirstChunk;\n}\n\nmodule.exports = function () {\n\treturn ctor.apply(ctor, arguments)();\n};\n\nmodule.exports.ctor = ctor;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1).Buffer))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/first-chunk-stream/index.js\n ** module id = 320\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/first-chunk-stream/index.js?"); /***/ }, /* 321 */ /***/ function(module, exports, __webpack_require__) { - eval("'use strict';\n\nvar fs = __webpack_require__(82);\nvar writeDir = __webpack_require__(322);\nvar writeStream = __webpack_require__(323);\nvar writeBuffer = __webpack_require__(324);\nvar writeSymbolicLink = __webpack_require__(325);\n\nfunction writeContents(writePath, file, cb) {\n // if directory then mkdirp it\n if (file.isDirectory()) {\n return writeDir(writePath, file, written);\n }\n\n // stream it to disk yo\n if (file.isStream()) {\n return writeStream(writePath, file, written);\n }\n\n // write it as a symlink\n if (file.symlink) {\n return writeSymbolicLink(writePath, file, written);\n }\n\n // write it like normal\n if (file.isBuffer()) {\n return writeBuffer(writePath, file, written);\n }\n\n // if no contents then do nothing\n if (file.isNull()) {\n return complete();\n }\n\n function complete(err) {\n cb(err, file);\n }\n\n function written(err) {\n\n if (isErrorFatal(err)) {\n return complete(err);\n }\n\n if (!file.stat || typeof file.stat.mode !== 'number' || file.symlink) {\n return complete();\n }\n\n fs.stat(writePath, function(err, st) {\n if (err) {\n return complete(err);\n }\n var currentMode = (st.mode & parseInt('0777', 8));\n var expectedMode = (file.stat.mode & parseInt('0777', 8));\n if (currentMode === expectedMode) {\n return complete();\n }\n fs.chmod(writePath, expectedMode, complete);\n });\n }\n\n function isErrorFatal(err) {\n if (!err) {\n return false;\n }\n\n // Handle scenario for file overwrite failures.\n else if (err.code === 'EEXIST' && file.flag === 'wx') {\n return false; // \"These aren't the droids you're looking for\"\n }\n\n // Otherwise, this is a fatal error\n return true;\n }\n}\n\nmodule.exports = writeContents;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/lib/dest/writeContents/index.js\n ** module id = 321\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/lib/dest/writeContents/index.js?"); + eval("/* WEBPACK VAR INJECTION */(function(process) {'use strict';\n\nvar through2 = __webpack_require__(226);\nvar fs = process.browser ? __webpack_require__(82) : __webpack_require__(304);\nvar path = __webpack_require__(149);\n\nfunction resolveSymlinks(options) {\n\n // a stat property is exposed on file objects as a (wanted) side effect\n function resolveFile(globFile, enc, cb) {\n fs.lstat(globFile.path, function (err, stat) {\n if (err) {\n return cb(err);\n }\n\n globFile.stat = stat;\n\n if (!stat.isSymbolicLink() || !options.followSymlinks) {\n return cb(null, globFile);\n }\n\n fs.realpath(globFile.path, function (err, filePath) {\n if (err) {\n return cb(err);\n }\n\n globFile.base = path.dirname(filePath);\n globFile.path = filePath;\n\n // recurse to get real file stat\n resolveFile(globFile, enc, cb);\n });\n });\n }\n\n return through2.obj(resolveFile);\n}\n\nmodule.exports = resolveSymlinks;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/lib/src/resolveSymlinks.js\n ** module id = 321\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/lib/src/resolveSymlinks.js?"); /***/ }, /* 322 */ /***/ function(module, exports, __webpack_require__) { - eval("'use strict';\n\nvar mkdirp = __webpack_require__(320);\n\nfunction writeDir(writePath, file, cb) {\n mkdirp(writePath, file.stat.mode, cb);\n}\n\nmodule.exports = writeDir;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/lib/dest/writeContents/writeDir.js\n ** module id = 322\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/lib/dest/writeContents/writeDir.js?"); + eval("/* WEBPACK VAR INJECTION */(function(process) {'use strict';\n\nvar through2 = __webpack_require__(226);\nvar sourcemaps = process.browser ? null : __webpack_require__(302);\nvar duplexify = __webpack_require__(298);\nvar prepareWrite = __webpack_require__(323);\nvar writeContents = __webpack_require__(325);\n\nfunction dest(outFolder, opt) {\n if (!opt) {\n opt = {};\n }\n\n function saveFile(file, enc, cb) {\n prepareWrite(outFolder, file, opt, function(err, writePath) {\n if (err) {\n return cb(err);\n }\n writeContents(writePath, file, cb);\n });\n }\n\n var saveStream = through2.obj(saveFile);\n if (!opt.sourcemaps) {\n return saveStream;\n }\n\n var mapStream = sourcemaps.write(opt.sourcemaps.path, opt.sourcemaps);\n var outputStream = duplexify.obj(mapStream, saveStream);\n mapStream.pipe(saveStream);\n\n return outputStream;\n}\n\nmodule.exports = dest;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/lib/dest/index.js\n ** module id = 322\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/lib/dest/index.js?"); /***/ }, /* 323 */ /***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(process) {'use strict';\n\nvar streamFile = __webpack_require__(314);\nvar fs = process.browser ? __webpack_require__(82) : __webpack_require__(300);\n\nfunction writeStream(writePath, file, cb) {\n var opt = {\n mode: file.stat.mode,\n flag: file.flag\n };\n\n var outStream = fs.createWriteStream(writePath, opt);\n\n file.contents.once('error', complete);\n outStream.once('error', complete);\n outStream.once('finish', success);\n\n file.contents.pipe(outStream);\n\n function success() {\n streamFile(file, {}, complete);\n }\n\n // cleanup\n function complete(err) {\n file.contents.removeListener('error', cb);\n outStream.removeListener('error', cb);\n outStream.removeListener('finish', success);\n cb(err);\n }\n}\n\nmodule.exports = writeStream;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/lib/dest/writeContents/writeStream.js\n ** module id = 323\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/lib/dest/writeContents/writeStream.js?"); + eval("/* WEBPACK VAR INJECTION */(function(process) {'use strict';\n\nvar assign = __webpack_require__(225);\nvar path = __webpack_require__(149);\nvar mkdirp = __webpack_require__(324);\nvar fs = process.browser ? __webpack_require__(82) : __webpack_require__(304);\n\nfunction booleanOrFunc(v, file) {\n if (typeof v !== 'boolean' && typeof v !== 'function') {\n return null;\n }\n\n return typeof v === 'boolean' ? v : v(file);\n}\n\nfunction stringOrFunc(v, file) {\n if (typeof v !== 'string' && typeof v !== 'function') {\n return null;\n }\n\n return typeof v === 'string' ? v : v(file);\n}\n\nfunction prepareWrite(outFolder, file, opt, cb) {\n var options = assign({\n cwd: process.cwd(),\n mode: (file.stat ? file.stat.mode : null),\n dirMode: null,\n overwrite: true\n }, opt);\n var overwrite = booleanOrFunc(options.overwrite, file);\n options.flag = (overwrite ? 'w' : 'wx');\n\n var cwd = path.resolve(options.cwd);\n var outFolderPath = stringOrFunc(outFolder, file);\n if (!outFolderPath) {\n throw new Error('Invalid output folder');\n }\n var basePath = options.base ?\n stringOrFunc(options.base, file) : path.resolve(cwd, outFolderPath);\n if (!basePath) {\n throw new Error('Invalid base option');\n }\n\n var writePath = path.resolve(basePath, file.relative);\n var writeFolder = path.dirname(writePath);\n\n // wire up new properties\n file.stat = (file.stat || new fs.Stats());\n file.stat.mode = options.mode;\n file.flag = options.flag;\n file.cwd = cwd;\n file.base = basePath;\n file.path = writePath;\n\n // mkdirp the folder the file is going in\n mkdirp(writeFolder, options.dirMode, function(err){\n if (err) {\n return cb(err);\n }\n cb(null, writePath);\n });\n}\n\nmodule.exports = prepareWrite;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/lib/prepareWrite.js\n ** module id = 323\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/lib/prepareWrite.js?"); /***/ }, /* 324 */ /***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(process) {'use strict';\n\nvar fs = process.browser ? __webpack_require__(82) : __webpack_require__(300);\n\nfunction writeBuffer(writePath, file, cb) {\n var opt = {\n mode: file.stat.mode,\n flag: file.flag\n };\n\n fs.writeFile(writePath, file.contents, opt, cb);\n}\n\nmodule.exports = writeBuffer;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/lib/dest/writeContents/writeBuffer.js\n ** module id = 324\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/lib/dest/writeContents/writeBuffer.js?"); + eval("/* WEBPACK VAR INJECTION */(function(process) {var path = __webpack_require__(149);\nvar fs = __webpack_require__(82);\nvar _0777 = parseInt('0777', 8);\n\nmodule.exports = mkdirP.mkdirp = mkdirP.mkdirP = mkdirP;\n\nfunction mkdirP (p, opts, f, made) {\n if (typeof opts === 'function') {\n f = opts;\n opts = {};\n }\n else if (!opts || typeof opts !== 'object') {\n opts = { mode: opts };\n }\n \n var mode = opts.mode;\n var xfs = opts.fs || fs;\n \n if (mode === undefined) {\n mode = _0777 & (~process.umask());\n }\n if (!made) made = null;\n \n var cb = f || function () {};\n p = path.resolve(p);\n \n xfs.mkdir(p, mode, function (er) {\n if (!er) {\n made = made || p;\n return cb(null, made);\n }\n switch (er.code) {\n case 'ENOENT':\n mkdirP(path.dirname(p), opts, function (er, made) {\n if (er) cb(er, made);\n else mkdirP(p, opts, cb, made);\n });\n break;\n\n // In the case of any other error, just see if there's a dir\n // there already. If so, then hooray! If not, then something\n // is borked.\n default:\n xfs.stat(p, function (er2, stat) {\n // if the stat fails, then that's super weird.\n // let the original error be the failure reason.\n if (er2 || !stat.isDirectory()) cb(er, made)\n else cb(null, made);\n });\n break;\n }\n });\n}\n\nmkdirP.sync = function sync (p, opts, made) {\n if (!opts || typeof opts !== 'object') {\n opts = { mode: opts };\n }\n \n var mode = opts.mode;\n var xfs = opts.fs || fs;\n \n if (mode === undefined) {\n mode = _0777 & (~process.umask());\n }\n if (!made) made = null;\n\n p = path.resolve(p);\n\n try {\n xfs.mkdirSync(p, mode);\n made = made || p;\n }\n catch (err0) {\n switch (err0.code) {\n case 'ENOENT' :\n made = sync(path.dirname(p), opts, made);\n sync(p, opts, made);\n break;\n\n // In the case of any other error, just see if there's a dir\n // there already. If so, then hooray! If not, then something\n // is borked.\n default:\n var stat;\n try {\n stat = xfs.statSync(p);\n }\n catch (err1) {\n throw err0;\n }\n if (!stat.isDirectory()) throw err0;\n break;\n }\n }\n\n return made;\n};\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/mkdirp/index.js\n ** module id = 324\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/mkdirp/index.js?"); /***/ }, /* 325 */ /***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(process) {'use strict';\n\nvar fs = process.browser ? __webpack_require__(82) : __webpack_require__(300);\n\nfunction writeSymbolicLink(writePath, file, cb) {\n fs.symlink(file.symlink, writePath, function (err) {\n if (err && err.code !== 'EEXIST') {\n return cb(err);\n }\n\n cb(null, file);\n });\n}\n\nmodule.exports = writeSymbolicLink;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/lib/dest/writeContents/writeSymbolicLink.js\n ** module id = 325\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/lib/dest/writeContents/writeSymbolicLink.js?"); + eval("'use strict';\n\nvar fs = __webpack_require__(82);\nvar writeDir = __webpack_require__(326);\nvar writeStream = __webpack_require__(327);\nvar writeBuffer = __webpack_require__(328);\nvar writeSymbolicLink = __webpack_require__(329);\n\nfunction writeContents(writePath, file, cb) {\n // if directory then mkdirp it\n if (file.isDirectory()) {\n return writeDir(writePath, file, written);\n }\n\n // stream it to disk yo\n if (file.isStream()) {\n return writeStream(writePath, file, written);\n }\n\n // write it as a symlink\n if (file.symlink) {\n return writeSymbolicLink(writePath, file, written);\n }\n\n // write it like normal\n if (file.isBuffer()) {\n return writeBuffer(writePath, file, written);\n }\n\n // if no contents then do nothing\n if (file.isNull()) {\n return complete();\n }\n\n function complete(err) {\n cb(err, file);\n }\n\n function written(err) {\n\n if (isErrorFatal(err)) {\n return complete(err);\n }\n\n if (!file.stat || typeof file.stat.mode !== 'number' || file.symlink) {\n return complete();\n }\n\n fs.stat(writePath, function(err, st) {\n if (err) {\n return complete(err);\n }\n var currentMode = (st.mode & parseInt('0777', 8));\n var expectedMode = (file.stat.mode & parseInt('0777', 8));\n if (currentMode === expectedMode) {\n return complete();\n }\n fs.chmod(writePath, expectedMode, complete);\n });\n }\n\n function isErrorFatal(err) {\n if (!err) {\n return false;\n }\n\n // Handle scenario for file overwrite failures.\n else if (err.code === 'EEXIST' && file.flag === 'wx') {\n return false; // \"These aren't the droids you're looking for\"\n }\n\n // Otherwise, this is a fatal error\n return true;\n }\n}\n\nmodule.exports = writeContents;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/lib/dest/writeContents/index.js\n ** module id = 325\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/lib/dest/writeContents/index.js?"); /***/ }, /* 326 */ /***/ function(module, exports, __webpack_require__) { - eval("/* WEBPACK VAR INJECTION */(function(process) {'use strict';\n\nvar through2 = __webpack_require__(226);\nvar fs = process.browser ? __webpack_require__(82) : __webpack_require__(300);\nvar prepareWrite = __webpack_require__(319);\n\nfunction symlink(outFolder, opt) {\n function linkFile(file, enc, cb) {\n var srcPath = file.path;\n var symType = (file.isDirectory() ? 'dir' : 'file');\n prepareWrite(outFolder, file, opt, function(err, writePath) {\n if (err) {\n return cb(err);\n }\n fs.symlink(srcPath, writePath, symType, function(err) {\n if (err && err.code !== 'EEXIST') {\n return cb(err);\n }\n cb(null, file);\n });\n });\n }\n\n var stream = through2.obj(linkFile);\n // TODO: option for either backpressure or lossy\n stream.resume();\n return stream;\n}\n\nmodule.exports = symlink;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/lib/symlink/index.js\n ** module id = 326\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/lib/symlink/index.js?"); + eval("'use strict';\n\nvar mkdirp = __webpack_require__(324);\n\nfunction writeDir(writePath, file, cb) {\n mkdirp(writePath, file.stat.mode, cb);\n}\n\nmodule.exports = writeDir;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/lib/dest/writeContents/writeDir.js\n ** module id = 326\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/lib/dest/writeContents/writeDir.js?"); /***/ }, /* 327 */ /***/ function(module, exports, __webpack_require__) { - eval("var flat = __webpack_require__(328)\nvar tree = __webpack_require__(332)\n\nvar x = module.exports = tree\nx.flat = flat\nx.tree = tree\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-multipart-stream/index.js\n ** module id = 327\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-multipart-stream/index.js?"); + eval("/* WEBPACK VAR INJECTION */(function(process) {'use strict';\n\nvar streamFile = __webpack_require__(318);\nvar fs = process.browser ? __webpack_require__(82) : __webpack_require__(304);\n\nfunction writeStream(writePath, file, cb) {\n var opt = {\n mode: file.stat.mode,\n flag: file.flag\n };\n\n var outStream = fs.createWriteStream(writePath, opt);\n\n file.contents.once('error', complete);\n outStream.once('error', complete);\n outStream.once('finish', success);\n\n file.contents.pipe(outStream);\n\n function success() {\n streamFile(file, {}, complete);\n }\n\n // cleanup\n function complete(err) {\n file.contents.removeListener('error', cb);\n outStream.removeListener('error', cb);\n outStream.removeListener('finish', success);\n cb(err);\n }\n}\n\nmodule.exports = writeStream;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/lib/dest/writeContents/writeStream.js\n ** module id = 327\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/lib/dest/writeContents/writeStream.js?"); /***/ }, /* 328 */ /***/ function(module, exports, __webpack_require__) { - eval("var Multipart = __webpack_require__(329)\nvar duplexify = __webpack_require__(294)\nvar stream = __webpack_require__(98)\nvar common = __webpack_require__(331)\nrandomString = common.randomString\n\nmodule.exports = v2mpFlat\n\n// we'll create three streams:\n// - w: a writable stream. it receives vinyl files\n// - mp: a multipart stream\n// - r: a readable stream. it outputs multipart data\nfunction v2mpFlat(opts) {\n opts = opts || {}\n opts.boundary = opts.boundary || randomString()\n\n var w = new stream.Writable({objectMode: true})\n var r = new stream.PassThrough({objectMode: true})\n var mp = new Multipart(opts.boundary)\n\n // connect w -> mp\n w._write = function(file, enc, cb) {\n writePart(mp, file, cb)\n }\n\n // connect mp -> r\n w.on('finish', function() {\n // apparently cannot add parts while streaming :(\n mp.pipe(r)\n })\n\n var out = duplexify.obj(w, r)\n out.boundary = opts.boundary\n return out\n}\n\nfunction writePart(mp, file, cb) {\n var c = file.contents\n if (c === null)\n c = emptyStream()\n\n mp.addPart({\n body: file.contents,\n headers: headersForFile(file),\n })\n cb(null)\n // TODO: call cb when file.contents ends instead.\n}\n\nfunction emptyStream() {\n var s = new stream.PassThrough({objectMode: true})\n s.write(null)\n return s\n}\n\nfunction headersForFile(file) {\n var fpath = common.cleanPath(file.path, file.base)\n\n var h = {}\n h['Content-Disposition'] = 'file; filename=\"' +fpath+ '\"'\n\n if (file.isDirectory()) {\n h['Content-Type'] = 'text/directory'\n } else {\n h['Content-Type'] = 'application/octet-stream'\n }\n\n return h\n}\n\nfunction randomString () {\n return Math.random().toString(36).slice(2) +\n Math.random().toString(36).slice(2) +\n Math.random().toString(36).slice(2) +\n Math.random().toString(36).slice(2)\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-multipart-stream/mp2v_flat.js\n ** module id = 328\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-multipart-stream/mp2v_flat.js?"); + eval("/* WEBPACK VAR INJECTION */(function(process) {'use strict';\n\nvar fs = process.browser ? __webpack_require__(82) : __webpack_require__(304);\n\nfunction writeBuffer(writePath, file, cb) {\n var opt = {\n mode: file.stat.mode,\n flag: file.flag\n };\n\n fs.writeFile(writePath, file.contents, opt, cb);\n}\n\nmodule.exports = writeBuffer;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/lib/dest/writeContents/writeBuffer.js\n ** module id = 328\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/lib/dest/writeContents/writeBuffer.js?"); /***/ }, /* 329 */ /***/ function(module, exports, __webpack_require__) { - eval("var Sandwich = __webpack_require__(330).SandwichStream\nvar stream = __webpack_require__(98)\nvar inherits = __webpack_require__(96)\n\nvar CRNL = '\\r\\n'\n\nmodule.exports = Multipart\n\n/**\n * Multipart request constructor.\n * @constructor\n * @param {object} [opts]\n * @param {string} [opts.boundary] - The boundary to be used. If omitted one is generated.\n * @returns {function} Returns the multipart stream.\n */\nfunction Multipart(boundary) {\n\tif(!this instanceof Multipart) {\n\t\treturn new Multipart(boundary)\n\t}\n\n\tthis.boundary = boundary || Math.random().toString(36).slice(2)\n\n\tSandwich.call(this, {\n\t\thead: '--' + this.boundary + CRNL,\n\t\ttail: CRNL + '--' + this.boundary + '--',\n\t\tseparator: CRNL + '--' + this.boundary + CRNL\n\t})\n\n\tthis._add = this.add\n\tthis.add = this.addPart\n}\n\ninherits(Multipart, Sandwich)\n\n/**\n * Adds a new part to the request.\n * @param {object} [part={}]\n * @param {object} [part.headers={}]\n * @param {string|buffer|stream} [part.body=\\r\\n]\n * @returns {function} Returns the multipart stream.\n */\nMultipart.prototype.addPart = function(part) {\n\tpart = part || {}\n\tvar partStream = new stream.PassThrough()\n\n\tif(part.headers) {\n\t\tfor(var key in part.headers) {\n\t\t\tvar header = part.headers[key]\n\t\t\tpartStream.write(key + ': ' + header + CRNL)\n\t\t}\n\t}\n\n\tpartStream.write(CRNL)\n\n\tif(part.body instanceof stream.Stream) {\n\t\tpart.body.pipe(partStream)\n\t} else {\n\t\tpartStream.end(part.body)\n\t}\n\n\tthis._add(partStream)\n}\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/multipart-stream/index.js\n ** module id = 329\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/multipart-stream/index.js?"); + eval("/* WEBPACK VAR INJECTION */(function(process) {'use strict';\n\nvar fs = process.browser ? __webpack_require__(82) : __webpack_require__(304);\n\nfunction writeSymbolicLink(writePath, file, cb) {\n fs.symlink(file.symlink, writePath, function (err) {\n if (err && err.code !== 'EEXIST') {\n return cb(err);\n }\n\n cb(null, file);\n });\n}\n\nmodule.exports = writeSymbolicLink;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/lib/dest/writeContents/writeSymbolicLink.js\n ** module id = 329\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/lib/dest/writeContents/writeSymbolicLink.js?"); /***/ }, /* 330 */ /***/ function(module, exports, __webpack_require__) { - eval("var Readable = __webpack_require__(98).Readable;\nvar PassThrough = __webpack_require__(98).PassThrough;\n\nfunction SandwichStream(options) {\n Readable.call(this, options);\n options = options || {};\n this._streamsActive = false;\n this._streamsAdded = false;\n this._streams = [];\n this._currentStream = undefined;\n this._errorsEmitted = false;\n\n if (options.head) {\n this._head = options.head;\n }\n if (options.tail) {\n this._tail = options.tail;\n }\n if (options.separator) {\n this._separator = options.separator;\n }\n}\n\nSandwichStream.prototype = Object.create(Readable.prototype, {\n constructor: SandwichStream\n});\n\nSandwichStream.prototype._read = function () {\n if (!this._streamsActive) {\n this._streamsActive = true;\n this._pushHead();\n this._streamNextStream();\n }\n};\n\nSandwichStream.prototype.add = function (newStream) {\n if (!this._streamsActive) {\n this._streamsAdded = true;\n this._streams.push(newStream);\n newStream.on('error', this._substreamOnError.bind(this));\n }\n else {\n throw new Error('SandwichStream error adding new stream while streaming');\n }\n};\n\nSandwichStream.prototype._substreamOnError = function (error) {\n this._errorsEmitted = true;\n this.emit('error', error);\n};\n\nSandwichStream.prototype._pushHead = function () {\n if (this._head) {\n this.push(this._head);\n }\n};\n\nSandwichStream.prototype._streamNextStream = function () {\n if (this._nextStream()) {\n this._bindCurrentStreamEvents();\n }\n else {\n this._pushTail();\n this.push(null);\n }\n};\n\nSandwichStream.prototype._nextStream = function () {\n this._currentStream = this._streams.shift();\n return this._currentStream !== undefined;\n};\n\nSandwichStream.prototype._bindCurrentStreamEvents = function () {\n this._currentStream.on('readable', this._currentStreamOnReadable.bind(this));\n this._currentStream.on('end', this._currentStreamOnEnd.bind(this));\n};\n\nSandwichStream.prototype._currentStreamOnReadable = function () {\n this.push(this._currentStream.read() || '');\n};\n\nSandwichStream.prototype._currentStreamOnEnd = function () {\n this._pushSeparator();\n this._streamNextStream();\n};\n\nSandwichStream.prototype._pushSeparator = function () {\n if (this._streams.length > 0 && this._separator) {\n this.push(this._separator);\n }\n};\n\nSandwichStream.prototype._pushTail = function () {\n if (this._tail) {\n this.push(this._tail);\n }\n};\n\nfunction sandwichStream(options) {\n var stream = new SandwichStream(options);\n return stream;\n}\n\nsandwichStream.SandwichStream = SandwichStream;\n\nmodule.exports = sandwichStream;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/sandwich-stream/lib/sandwich-stream.js\n ** module id = 330\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/sandwich-stream/lib/sandwich-stream.js?"); + eval("/* WEBPACK VAR INJECTION */(function(process) {'use strict';\n\nvar through2 = __webpack_require__(226);\nvar fs = process.browser ? __webpack_require__(82) : __webpack_require__(304);\nvar prepareWrite = __webpack_require__(323);\n\nfunction symlink(outFolder, opt) {\n function linkFile(file, enc, cb) {\n var srcPath = file.path;\n var symType = (file.isDirectory() ? 'dir' : 'file');\n prepareWrite(outFolder, file, opt, function(err, writePath) {\n if (err) {\n return cb(err);\n }\n fs.symlink(srcPath, writePath, symType, function(err) {\n if (err && err.code !== 'EEXIST') {\n return cb(err);\n }\n cb(null, file);\n });\n });\n }\n\n var stream = through2.obj(linkFile);\n // TODO: option for either backpressure or lossy\n stream.resume();\n return stream;\n}\n\nmodule.exports = symlink;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(85)))\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-fs-browser/lib/symlink/index.js\n ** module id = 330\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-fs-browser/lib/symlink/index.js?"); /***/ }, /* 331 */ -/***/ function(module, exports) { +/***/ function(module, exports, __webpack_require__) { - eval("var x = module.exports = {}\nx.randomString = randomString\nx.cleanPath = cleanPath\n\nfunction randomString () {\n return Math.random().toString(36).slice(2) +\n Math.random().toString(36).slice(2) +\n Math.random().toString(36).slice(2) +\n Math.random().toString(36).slice(2)\n}\n\nfunction cleanPath(path, base) {\n if (!path) return ''\n if (!base) return path\n\n if (base[base.length-1] != '/') {\n base += \"/\"\n }\n\n // remove base from path\n path = path.replace(base, '')\n path = path.replace(/[\\/]+/g, '/')\n return path\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-multipart-stream/common.js\n ** module id = 331\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-multipart-stream/common.js?"); + eval("var flat = __webpack_require__(332)\nvar tree = __webpack_require__(336)\n\nvar x = module.exports = tree\nx.flat = flat\nx.tree = tree\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-multipart-stream/index.js\n ** module id = 331\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-multipart-stream/index.js?"); /***/ }, /* 332 */ /***/ function(module, exports, __webpack_require__) { - eval("var Multipart = __webpack_require__(329)\nvar duplexify = __webpack_require__(294)\nvar stream = __webpack_require__(98)\nvar Path = __webpack_require__(149)\nvar collect = __webpack_require__(333)\nvar common = __webpack_require__(331)\nvar randomString = common.randomString\n\nmodule.exports = v2mpTree\n\n// we'll create three streams:\n// - w: a writable stream. it receives vinyl files\n// - mps: a multipart stream in between.\n// - r: a readable stream. it outputs text. needed to\n// give the caller something, while w finishes.\n//\n// we do all processing on the incoming vinyl metadata\n// before we transform to multipart, that's becasue we\n// need a complete view of the filesystem. (/ the code\n// i lifted did that and it's convoluted enough not to\n// want to change it...)\nfunction v2mpTree(opts) {\n opts = opts || {}\n opts.boundary = opts.boundary || randomString()\n\n var r = new stream.PassThrough({objectMode: true})\n var w = new stream.PassThrough({objectMode: true})\n var out = duplexify.obj(w, r)\n out.boundary = opts.boundary\n\n collect(w, function(err, files) {\n if (err) {\n r.emit('error', err)\n return\n }\n\n try {\n // construct the multipart streams from these files\n var mp = streamForCollection(opts.boundary, files)\n\n // let the user know what the content-type header is.\n // this is because multipart is such a grossly defined protocol :(\n out.multipartHdr = \"Content-Type: multipart/mixed; boundary=\" + mp.boundary\n if (opts.writeHeader) {\n r.write(out.multipartHdr + \"\\r\\n\")\n r.write(\"\\r\\n\")\n }\n\n // now we pipe the multipart stream to\n // the readable thing we returned.\n // now the user will start receiving data.\n mp.pipe(r)\n } catch (e) {\n r.emit('error', e)\n }\n })\n\n return out\n}\n\nfunction streamForCollection(boundary, files) {\n var parts = []\n\n // walk through all the named files in order.\n files.paths.sort()\n for (var i = 0; i < files.paths.length; i++) {\n var n = files.paths[i]\n var s = streamForPath(files, n)\n if (!s) continue // already processed.\n parts.push({ body: s, headers: headersForFile(files.named[n])})\n }\n\n // then add all the unnamed files.\n for (var i = 0; i < files.unnamed.length; i++) {\n var f = files.unnamed[i] // raw vinyl files.\n var s = streamForWrapped(files, f)\n if (!s) continue // already processed.\n parts.push({ body: s, headers: headersForFile(f)})\n }\n\n if (parts.length == 0) { // avoid multipart bug.\n var s = streamForString(\"--\" + boundary + \"--\\r\\n\") // close multipart.\n s.boundary = boundary\n return s\n }\n\n // write out multipart.\n var mp = new Multipart(boundary)\n for (var i = 0; i < parts.length; i++) {\n mp.addPart(parts[i])\n }\n return mp\n}\n\nfunction streamForString(str) {\n var s = new stream.PassThrough()\n s.end(str)\n return s\n}\n\nfunction streamForPath(files, path) {\n var o = files.named[path]\n if (!o) {\n throw new Error(\"no object for path. lib error.\")\n }\n\n if (!o.file) { // no vinyl file, so no need to process this one.\n return\n }\n\n // avoid processing twice.\n if (o.done) return null // already processed it\n o.done = true // mark it as already processed.\n\n return streamForWrapped(files, o)\n}\n\nfunction streamForWrapped(files, f) {\n if (f.file.isDirectory()) {\n return multipartForDir(files, f)\n }\n\n // stream for a file\n return f.file.contents\n}\n\nfunction multipartForDir(files, dir) {\n // we still write the boundary for the headers\n dir.boundary = randomString()\n\n if (!dir.children || dir.children.length < 1) {\n // we have to intercept this here and return an empty stream.\n // because multipart lib fails if there are no parts. see\n // https://github.com/hendrikcech/multipart-stream/issues/1\n return streamForString(\"--\" + dir.boundary + \"--\\r\\n\") // close multipart.\n }\n\n var mp = new Multipart(dir.boundary)\n for (var i = 0; i < dir.children.length; i++) {\n var child = dir.children[i]\n if (!child.file) {\n throw new Error(\"child has no file. lib error\")\n }\n\n var s = streamForPath(files, child.file.path)\n mp.addPart({ body: s, headers: headersForFile(child) })\n }\n return mp\n}\n\nfunction headersForFile(o) {\n var fpath = common.cleanPath(o.file.path, o.file.base)\n\n var h = {}\n h['Content-Disposition'] = 'file; filename=\"' + fpath + '\"'\n\n if (o.file.isDirectory()) {\n h['Content-Type'] = 'multipart/mixed; boundary=' + o.boundary\n } else {\n h['Content-Type'] = 'application/octet-stream'\n }\n\n return h\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-multipart-stream/mp2v_tree.js\n ** module id = 332\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-multipart-stream/mp2v_tree.js?"); + eval("var Multipart = __webpack_require__(333)\nvar duplexify = __webpack_require__(298)\nvar stream = __webpack_require__(98)\nvar common = __webpack_require__(335)\nrandomString = common.randomString\n\nmodule.exports = v2mpFlat\n\n// we'll create three streams:\n// - w: a writable stream. it receives vinyl files\n// - mp: a multipart stream\n// - r: a readable stream. it outputs multipart data\nfunction v2mpFlat(opts) {\n opts = opts || {}\n opts.boundary = opts.boundary || randomString()\n\n var w = new stream.Writable({objectMode: true})\n var r = new stream.PassThrough({objectMode: true})\n var mp = new Multipart(opts.boundary)\n\n // connect w -> mp\n w._write = function(file, enc, cb) {\n writePart(mp, file, cb)\n }\n\n // connect mp -> r\n w.on('finish', function() {\n // apparently cannot add parts while streaming :(\n mp.pipe(r)\n })\n\n var out = duplexify.obj(w, r)\n out.boundary = opts.boundary\n return out\n}\n\nfunction writePart(mp, file, cb) {\n var c = file.contents\n if (c === null)\n c = emptyStream()\n\n mp.addPart({\n body: file.contents,\n headers: headersForFile(file),\n })\n cb(null)\n // TODO: call cb when file.contents ends instead.\n}\n\nfunction emptyStream() {\n var s = new stream.PassThrough({objectMode: true})\n s.write(null)\n return s\n}\n\nfunction headersForFile(file) {\n var fpath = common.cleanPath(file.path, file.base)\n\n var h = {}\n h['Content-Disposition'] = 'file; filename=\"' +fpath+ '\"'\n\n if (file.isDirectory()) {\n h['Content-Type'] = 'text/directory'\n } else {\n h['Content-Type'] = 'application/octet-stream'\n }\n\n return h\n}\n\nfunction randomString () {\n return Math.random().toString(36).slice(2) +\n Math.random().toString(36).slice(2) +\n Math.random().toString(36).slice(2) +\n Math.random().toString(36).slice(2)\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-multipart-stream/mp2v_flat.js\n ** module id = 332\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-multipart-stream/mp2v_flat.js?"); /***/ }, /* 333 */ /***/ function(module, exports, __webpack_require__) { - eval("var Path = __webpack_require__(149)\n\nmodule.exports = collect\n\nfunction collect(stream, cb) {\n\n // we create a collection of objects, where\n // - names is a list of all paths\n // - there are per-file objects: { file: , children [ paths ] }\n // - named is a map { path: fo }\n var files = {\n paths: [],\n named: {}, // wrapped files.\n unnamed: [], // wrapped files.\n }\n\n function get(name) {\n if (!files.named[name]) {\n files.named[name] = {\n children: [],\n }\n }\n return files.named[name]\n }\n\n stream.on('data', function(file) {\n if (cb === null) {\n // already errored, or no way to externalize result\n stream.on('data', function() {}) // de-register\n return // do nothing.\n }\n\n if (file.path) {\n // add file to named\n var fo = get(file.path)\n fo.file = file\n\n // add reference to file at parent\n var po = get(Path.dirname(file.path))\n if (fo !== po) po.children.push(fo)\n\n // add name to names list.\n files.paths.push(file.path)\n } else {\n files.unnamed.push({ file: file, children: [] })\n }\n })\n\n stream.on('error', function(err) {\n cb && cb(err)\n cb = null\n })\n\n stream.on('end', function() {\n cb && cb(null, files)\n cb = null\n })\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-multipart-stream/collect.js\n ** module id = 333\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-multipart-stream/collect.js?"); + eval("var Sandwich = __webpack_require__(334).SandwichStream\nvar stream = __webpack_require__(98)\nvar inherits = __webpack_require__(96)\n\nvar CRNL = '\\r\\n'\n\nmodule.exports = Multipart\n\n/**\n * Multipart request constructor.\n * @constructor\n * @param {object} [opts]\n * @param {string} [opts.boundary] - The boundary to be used. If omitted one is generated.\n * @returns {function} Returns the multipart stream.\n */\nfunction Multipart(boundary) {\n\tif(!this instanceof Multipart) {\n\t\treturn new Multipart(boundary)\n\t}\n\n\tthis.boundary = boundary || Math.random().toString(36).slice(2)\n\n\tSandwich.call(this, {\n\t\thead: '--' + this.boundary + CRNL,\n\t\ttail: CRNL + '--' + this.boundary + '--',\n\t\tseparator: CRNL + '--' + this.boundary + CRNL\n\t})\n\n\tthis._add = this.add\n\tthis.add = this.addPart\n}\n\ninherits(Multipart, Sandwich)\n\n/**\n * Adds a new part to the request.\n * @param {object} [part={}]\n * @param {object} [part.headers={}]\n * @param {string|buffer|stream} [part.body=\\r\\n]\n * @returns {function} Returns the multipart stream.\n */\nMultipart.prototype.addPart = function(part) {\n\tpart = part || {}\n\tvar partStream = new stream.PassThrough()\n\n\tif(part.headers) {\n\t\tfor(var key in part.headers) {\n\t\t\tvar header = part.headers[key]\n\t\t\tpartStream.write(key + ': ' + header + CRNL)\n\t\t}\n\t}\n\n\tpartStream.write(CRNL)\n\n\tif(part.body instanceof stream.Stream) {\n\t\tpart.body.pipe(partStream)\n\t} else {\n\t\tpartStream.end(part.body)\n\t}\n\n\tthis._add(partStream)\n}\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/multipart-stream/index.js\n ** module id = 333\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/multipart-stream/index.js?"); + +/***/ }, +/* 334 */ +/***/ function(module, exports, __webpack_require__) { + + eval("var Readable = __webpack_require__(98).Readable;\nvar PassThrough = __webpack_require__(98).PassThrough;\n\nfunction SandwichStream(options) {\n Readable.call(this, options);\n options = options || {};\n this._streamsActive = false;\n this._streamsAdded = false;\n this._streams = [];\n this._currentStream = undefined;\n this._errorsEmitted = false;\n\n if (options.head) {\n this._head = options.head;\n }\n if (options.tail) {\n this._tail = options.tail;\n }\n if (options.separator) {\n this._separator = options.separator;\n }\n}\n\nSandwichStream.prototype = Object.create(Readable.prototype, {\n constructor: SandwichStream\n});\n\nSandwichStream.prototype._read = function () {\n if (!this._streamsActive) {\n this._streamsActive = true;\n this._pushHead();\n this._streamNextStream();\n }\n};\n\nSandwichStream.prototype.add = function (newStream) {\n if (!this._streamsActive) {\n this._streamsAdded = true;\n this._streams.push(newStream);\n newStream.on('error', this._substreamOnError.bind(this));\n }\n else {\n throw new Error('SandwichStream error adding new stream while streaming');\n }\n};\n\nSandwichStream.prototype._substreamOnError = function (error) {\n this._errorsEmitted = true;\n this.emit('error', error);\n};\n\nSandwichStream.prototype._pushHead = function () {\n if (this._head) {\n this.push(this._head);\n }\n};\n\nSandwichStream.prototype._streamNextStream = function () {\n if (this._nextStream()) {\n this._bindCurrentStreamEvents();\n }\n else {\n this._pushTail();\n this.push(null);\n }\n};\n\nSandwichStream.prototype._nextStream = function () {\n this._currentStream = this._streams.shift();\n return this._currentStream !== undefined;\n};\n\nSandwichStream.prototype._bindCurrentStreamEvents = function () {\n this._currentStream.on('readable', this._currentStreamOnReadable.bind(this));\n this._currentStream.on('end', this._currentStreamOnEnd.bind(this));\n};\n\nSandwichStream.prototype._currentStreamOnReadable = function () {\n this.push(this._currentStream.read() || '');\n};\n\nSandwichStream.prototype._currentStreamOnEnd = function () {\n this._pushSeparator();\n this._streamNextStream();\n};\n\nSandwichStream.prototype._pushSeparator = function () {\n if (this._streams.length > 0 && this._separator) {\n this.push(this._separator);\n }\n};\n\nSandwichStream.prototype._pushTail = function () {\n if (this._tail) {\n this.push(this._tail);\n }\n};\n\nfunction sandwichStream(options) {\n var stream = new SandwichStream(options);\n return stream;\n}\n\nsandwichStream.SandwichStream = SandwichStream;\n\nmodule.exports = sandwichStream;\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/sandwich-stream/lib/sandwich-stream.js\n ** module id = 334\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/sandwich-stream/lib/sandwich-stream.js?"); + +/***/ }, +/* 335 */ +/***/ function(module, exports) { + + eval("var x = module.exports = {}\nx.randomString = randomString\nx.cleanPath = cleanPath\n\nfunction randomString () {\n return Math.random().toString(36).slice(2) +\n Math.random().toString(36).slice(2) +\n Math.random().toString(36).slice(2) +\n Math.random().toString(36).slice(2)\n}\n\nfunction cleanPath(path, base) {\n if (!path) return ''\n if (!base) return path\n\n if (base[base.length-1] != '/') {\n base += \"/\"\n }\n\n // remove base from path\n path = path.replace(base, '')\n path = path.replace(/[\\/]+/g, '/')\n return path\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-multipart-stream/common.js\n ** module id = 335\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-multipart-stream/common.js?"); + +/***/ }, +/* 336 */ +/***/ function(module, exports, __webpack_require__) { + + eval("var Multipart = __webpack_require__(333)\nvar duplexify = __webpack_require__(298)\nvar stream = __webpack_require__(98)\nvar Path = __webpack_require__(149)\nvar collect = __webpack_require__(337)\nvar common = __webpack_require__(335)\nvar randomString = common.randomString\n\nmodule.exports = v2mpTree\n\n// we'll create three streams:\n// - w: a writable stream. it receives vinyl files\n// - mps: a multipart stream in between.\n// - r: a readable stream. it outputs text. needed to\n// give the caller something, while w finishes.\n//\n// we do all processing on the incoming vinyl metadata\n// before we transform to multipart, that's becasue we\n// need a complete view of the filesystem. (/ the code\n// i lifted did that and it's convoluted enough not to\n// want to change it...)\nfunction v2mpTree(opts) {\n opts = opts || {}\n opts.boundary = opts.boundary || randomString()\n\n var r = new stream.PassThrough({objectMode: true})\n var w = new stream.PassThrough({objectMode: true})\n var out = duplexify.obj(w, r)\n out.boundary = opts.boundary\n\n collect(w, function(err, files) {\n if (err) {\n r.emit('error', err)\n return\n }\n\n try {\n // construct the multipart streams from these files\n var mp = streamForCollection(opts.boundary, files)\n\n // let the user know what the content-type header is.\n // this is because multipart is such a grossly defined protocol :(\n out.multipartHdr = \"Content-Type: multipart/mixed; boundary=\" + mp.boundary\n if (opts.writeHeader) {\n r.write(out.multipartHdr + \"\\r\\n\")\n r.write(\"\\r\\n\")\n }\n\n // now we pipe the multipart stream to\n // the readable thing we returned.\n // now the user will start receiving data.\n mp.pipe(r)\n } catch (e) {\n r.emit('error', e)\n }\n })\n\n return out\n}\n\nfunction streamForCollection(boundary, files) {\n var parts = []\n\n // walk through all the named files in order.\n files.paths.sort()\n for (var i = 0; i < files.paths.length; i++) {\n var n = files.paths[i]\n var s = streamForPath(files, n)\n if (!s) continue // already processed.\n parts.push({ body: s, headers: headersForFile(files.named[n])})\n }\n\n // then add all the unnamed files.\n for (var i = 0; i < files.unnamed.length; i++) {\n var f = files.unnamed[i] // raw vinyl files.\n var s = streamForWrapped(files, f)\n if (!s) continue // already processed.\n parts.push({ body: s, headers: headersForFile(f)})\n }\n\n if (parts.length == 0) { // avoid multipart bug.\n var s = streamForString(\"--\" + boundary + \"--\\r\\n\") // close multipart.\n s.boundary = boundary\n return s\n }\n\n // write out multipart.\n var mp = new Multipart(boundary)\n for (var i = 0; i < parts.length; i++) {\n mp.addPart(parts[i])\n }\n return mp\n}\n\nfunction streamForString(str) {\n var s = new stream.PassThrough()\n s.end(str)\n return s\n}\n\nfunction streamForPath(files, path) {\n var o = files.named[path]\n if (!o) {\n throw new Error(\"no object for path. lib error.\")\n }\n\n if (!o.file) { // no vinyl file, so no need to process this one.\n return\n }\n\n // avoid processing twice.\n if (o.done) return null // already processed it\n o.done = true // mark it as already processed.\n\n return streamForWrapped(files, o)\n}\n\nfunction streamForWrapped(files, f) {\n if (f.file.isDirectory()) {\n return multipartForDir(files, f)\n }\n\n // stream for a file\n return f.file.contents\n}\n\nfunction multipartForDir(files, dir) {\n // we still write the boundary for the headers\n dir.boundary = randomString()\n\n if (!dir.children || dir.children.length < 1) {\n // we have to intercept this here and return an empty stream.\n // because multipart lib fails if there are no parts. see\n // https://github.com/hendrikcech/multipart-stream/issues/1\n return streamForString(\"--\" + dir.boundary + \"--\\r\\n\") // close multipart.\n }\n\n var mp = new Multipart(dir.boundary)\n for (var i = 0; i < dir.children.length; i++) {\n var child = dir.children[i]\n if (!child.file) {\n throw new Error(\"child has no file. lib error\")\n }\n\n var s = streamForPath(files, child.file.path)\n mp.addPart({ body: s, headers: headersForFile(child) })\n }\n return mp\n}\n\nfunction headersForFile(o) {\n var fpath = common.cleanPath(o.file.path, o.file.base)\n\n var h = {}\n h['Content-Disposition'] = 'file; filename=\"' + fpath + '\"'\n\n if (o.file.isDirectory()) {\n h['Content-Type'] = 'multipart/mixed; boundary=' + o.boundary\n } else {\n h['Content-Type'] = 'application/octet-stream'\n }\n\n return h\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-multipart-stream/mp2v_tree.js\n ** module id = 336\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-multipart-stream/mp2v_tree.js?"); + +/***/ }, +/* 337 */ +/***/ function(module, exports, __webpack_require__) { + + eval("var Path = __webpack_require__(149)\n\nmodule.exports = collect\n\nfunction collect(stream, cb) {\n\n // we create a collection of objects, where\n // - names is a list of all paths\n // - there are per-file objects: { file: , children [ paths ] }\n // - named is a map { path: fo }\n var files = {\n paths: [],\n named: {}, // wrapped files.\n unnamed: [], // wrapped files.\n }\n\n function get(name) {\n if (!files.named[name]) {\n files.named[name] = {\n children: [],\n }\n }\n return files.named[name]\n }\n\n stream.on('data', function(file) {\n if (cb === null) {\n // already errored, or no way to externalize result\n stream.on('data', function() {}) // de-register\n return // do nothing.\n }\n\n if (file.path) {\n // add file to named\n var fo = get(file.path)\n fo.file = file\n\n // add reference to file at parent\n var po = get(Path.dirname(file.path))\n if (fo !== po) po.children.push(fo)\n\n // add name to names list.\n files.paths.push(file.path)\n } else {\n files.unnamed.push({ file: file, children: [] })\n }\n })\n\n stream.on('error', function(err) {\n cb && cb(err)\n cb = null\n })\n\n stream.on('end', function() {\n cb && cb(null, files)\n cb = null\n })\n}\n\n\n/*****************\n ** WEBPACK FOOTER\n ** ./~/vinyl-multipart-stream/collect.js\n ** module id = 337\n ** module chunks = 0\n **/\n//# sourceURL=webpack:///./~/vinyl-multipart-stream/collect.js?"); /***/ } /******/ ]); \ No newline at end of file diff --git a/dist/ipfsapi.min.js b/dist/ipfsapi.min.js index 4c815e8c3..25401803e 100644 --- a/dist/ipfsapi.min.js +++ b/dist/ipfsapi.min.js @@ -1,11 +1,11 @@ -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__(265),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="",__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){/*! * 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__(306);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;i1?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){/*! * is-extglob * @@ -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__(250),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__(266),utils.omit=__webpack_require__(267),utils.parseGlob=__webpack_require__(269),utils.cache=__webpack_require__(277),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__(283),md5=toConstructor(__webpack_require__(216)),rmd160=toConstructor(__webpack_require__(280));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__(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 * * 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__(276);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__(281).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__(287),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__(332);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__(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){/*! * 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__(333);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__(293),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__(296),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__(297),Writable=__webpack_require__(299);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__(304);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__(274);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__(295);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__(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;i * * Copyright (c) 2014 Jon Schlinkert, contributors. @@ -62,14 +62,14 @@ 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__(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 * * 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(){ -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__(270);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__(331),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){/*! +"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(){ +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 * * Copyright (c) 2015 Jon Schlinkert. @@ -99,7 +99,7 @@ module.exports=function(){return/([^\\\/]+)$/}},function(module,exports,__webpac * Copyright (c) 2014-2015, Jon Schlinkert. * Licensed under the MIT License. */ -"use strict";function fillRange(a,b,step,options,fn){if(null==a||null==b)throw new Error("fill-range expects the first and second args to be strings.");"function"==typeof step&&(fn=step,options={},step=null),"function"==typeof options&&(fn=options,options={}),isObject(step)&&(options=step,step="");var expand,regex=!1,sep="",opts=options||{};"undefined"==typeof opts.silent&&(opts.silent=!0),step=step||opts.step;var origA=a,origB=b;if(b="-0"===b.toString()?0:b,(opts.optimize||opts.makeRe)&&(step=step?step+="~":step,expand=!0,regex=!0,sep="~"),"string"==typeof step){var match=stepRe().exec(step);if(match){var i=match.index,m=match[0];if("+"===m)return repeat(a,b);if("?"===m)return[randomize(a,b)];">"===m?(step=step.substr(0,i)+step.substr(i+1),expand=!0):"|"===m?(step=step.substr(0,i)+step.substr(i+1),expand=!0,regex=!0,sep=m):"~"===m&&(step=step.substr(0,i)+step.substr(i+1),expand=!0,regex=!0,sep=m)}else if(!isNumber(step)){if(!opts.silent)throw new TypeError("fill-range: invalid step.");return null}}if(/[.&*()[\]^%$#@!]/.test(a)||/[.&*()[\]^%$#@!]/.test(b)){if(!opts.silent)throw new RangeError("fill-range: invalid range arguments.");return null}if(!noAlphaNum(a)||!noAlphaNum(b)||hasBoth(a)||hasBoth(b)){if(!opts.silent)throw new RangeError("fill-range: invalid range arguments.");return null}var isNumA=isNumber(zeros(a)),isNumB=isNumber(zeros(b));if(!isNumA&&isNumB||isNumA&&!isNumB){if(!opts.silent)throw new TypeError("fill-range: first range argument is incompatible with second.");return null}var isNum=isNumA,num=formatStep(step);isNum?(a=+a,b=+b):(a=a.charCodeAt(0),b=b.charCodeAt(0));var isDescending=a>b;(0>a||0>b)&&(expand=!1,regex=!1);var res,pad,padding=isPadded(origA,origB),arr=[],ii=0;if(regex&&shouldExpand(a,b,num,isNum,padding,opts))return("|"===sep||"~"===sep)&&(sep=detectSeparator(a,b,num,isNum,isDescending)),wrap([origA,origB],sep,opts);for(;isDescending?a>=b:b>=a;)padding&&isNum&&(pad=padding(a)),res="function"==typeof fn?fn(a,isNum,pad,ii++):isNum?formatPadding(a,pad):regex&&isInvalidChar(a)?null:String.fromCharCode(a),null!==res&&arr.push(res),isDescending?a-=num:a+=num;return!regex&&!expand||opts.noexpand?arr:(("|"===sep||"~"===sep)&&(sep=detectSeparator(a,b,num,isNum,isDescending)),1===arr.length||0>a||0>b?arr:wrap(arr,sep,opts))}function wrap(arr,sep,opts){"~"===sep&&(sep="-");var str=arr.join(sep),pre=opts&&opts.regexPrefix;return"|"===sep&&(str=pre?pre+str:str,str="("+str+")"),"-"===sep&&(str=pre&&"^"===pre?pre+str:str,str="["+str+"]"),[str]}function isCharClass(a,b,step,isNum,isDescending){return isDescending?!1:isNum?9>=a&&9>=b:b>a?1===step:!1}function shouldExpand(a,b,num,isNum,padding,opts){return isNum&&(a>9||b>9)?!1:!padding&&1===num&&b>a}function detectSeparator(a,b,step,isNum,isDescending){var isChar=isCharClass(a,b,step,isNum,isDescending);return isChar?"~":"|"}function formatStep(step){return Math.abs(step>>0)||1}function formatPadding(ch,pad){var res=pad?pad+ch:ch;return pad&&"-"===ch.toString().charAt(0)&&(res="-"+pad+ch.toString().substr(1)),res.toString()}function isInvalidChar(str){var ch=toStr(str);return"\\"===ch||"["===ch||"]"===ch||"^"===ch||"("===ch||")"===ch||"`"===ch}function toStr(ch){return String.fromCharCode(ch)}function stepRe(){return/\?|>|\||\+|\~/g}function noAlphaNum(val){return/[a-z0-9]/i.test(val)}function hasBoth(val){return/[a-z][0-9]|[0-9][a-z]/i.test(val)}function zeros(val){return/^-*0+$/.test(val.toString())?"0":val}function hasZeros(val){return/[^.]\.|^-*0+[0-9]/.test(val)}function isPadded(origA,origB){if(hasZeros(origA)||hasZeros(origB)){var alen=length(origA),blen=length(origB),len=alen>=blen?alen:blen;return function(a){return repeatStr("0",len-length(a))}}return!1}function length(val){return val.toString().length}var isObject=__webpack_require__(246),isNumber=__webpack_require__(89),randomize=__webpack_require__(275),repeatStr=__webpack_require__(278),repeat=__webpack_require__(103);module.exports=fillRange},function(module,exports,__webpack_require__){(function(Buffer){"use strict";function ctor(options,transform){function FirstChunk(options2){return this instanceof FirstChunk?(Transform.call(this,options2),this._firstChunk=!0,this._transformCalled=!1,void(this._minSize=options.minSize)):new FirstChunk(options2)}if(util.inherits(FirstChunk,Transform),"function"==typeof options&&(transform=options,options={}),"function"!=typeof transform)throw new Error("transform function required");return FirstChunk.prototype._transform=function(chunk,enc,cb){return this._enc=enc,this._firstChunk?(this._firstChunk=!1,null==this._minSize?(transform.call(this,chunk,enc,cb),void(this._transformCalled=!0)):(this._buffer=chunk,void cb())):null==this._minSize?(this.push(chunk),void cb()):this._buffer.length=this._minSize?(transform.call(this,this._buffer.slice(),enc,function(){this.push(chunk),cb()}.bind(this)),this._transformCalled=!0,void(this._buffer=!1)):(this.push(chunk),void cb())},FirstChunk.prototype._flush=function(cb){return this._buffer?void(this._transformCalled?(this.push(this._buffer),cb()):transform.call(this,this._buffer.slice(),this._enc,cb)):void cb()},FirstChunk}var util=__webpack_require__(8),Transform=__webpack_require__(3).Transform;module.exports=function(){return ctor.apply(ctor,arguments)()},module.exports.ctor=ctor}).call(exports,__webpack_require__(1).Buffer)},function(module,exports){/*! +"use strict";function fillRange(a,b,step,options,fn){if(null==a||null==b)throw new Error("fill-range expects the first and second args to be strings.");"function"==typeof step&&(fn=step,options={},step=null),"function"==typeof options&&(fn=options,options={}),isObject(step)&&(options=step,step="");var expand,regex=!1,sep="",opts=options||{};"undefined"==typeof opts.silent&&(opts.silent=!0),step=step||opts.step;var origA=a,origB=b;if(b="-0"===b.toString()?0:b,(opts.optimize||opts.makeRe)&&(step=step?step+="~":step,expand=!0,regex=!0,sep="~"),"string"==typeof step){var match=stepRe().exec(step);if(match){var i=match.index,m=match[0];if("+"===m)return repeat(a,b);if("?"===m)return[randomize(a,b)];">"===m?(step=step.substr(0,i)+step.substr(i+1),expand=!0):"|"===m?(step=step.substr(0,i)+step.substr(i+1),expand=!0,regex=!0,sep=m):"~"===m&&(step=step.substr(0,i)+step.substr(i+1),expand=!0,regex=!0,sep=m)}else if(!isNumber(step)){if(!opts.silent)throw new TypeError("fill-range: invalid step.");return null}}if(/[.&*()[\]^%$#@!]/.test(a)||/[.&*()[\]^%$#@!]/.test(b)){if(!opts.silent)throw new RangeError("fill-range: invalid range arguments.");return null}if(!noAlphaNum(a)||!noAlphaNum(b)||hasBoth(a)||hasBoth(b)){if(!opts.silent)throw new RangeError("fill-range: invalid range arguments.");return null}var isNumA=isNumber(zeros(a)),isNumB=isNumber(zeros(b));if(!isNumA&&isNumB||isNumA&&!isNumB){if(!opts.silent)throw new TypeError("fill-range: first range argument is incompatible with second.");return null}var isNum=isNumA,num=formatStep(step);isNum?(a=+a,b=+b):(a=a.charCodeAt(0),b=b.charCodeAt(0));var isDescending=a>b;(0>a||0>b)&&(expand=!1,regex=!1);var res,pad,padding=isPadded(origA,origB),arr=[],ii=0;if(regex&&shouldExpand(a,b,num,isNum,padding,opts))return("|"===sep||"~"===sep)&&(sep=detectSeparator(a,b,num,isNum,isDescending)),wrap([origA,origB],sep,opts);for(;isDescending?a>=b:b>=a;)padding&&isNum&&(pad=padding(a)),res="function"==typeof fn?fn(a,isNum,pad,ii++):isNum?formatPadding(a,pad):regex&&isInvalidChar(a)?null:String.fromCharCode(a),null!==res&&arr.push(res),isDescending?a-=num:a+=num;return!regex&&!expand||opts.noexpand?arr:(("|"===sep||"~"===sep)&&(sep=detectSeparator(a,b,num,isNum,isDescending)),1===arr.length||0>a||0>b?arr:wrap(arr,sep,opts))}function wrap(arr,sep,opts){"~"===sep&&(sep="-");var str=arr.join(sep),pre=opts&&opts.regexPrefix;return"|"===sep&&(str=pre?pre+str:str,str="("+str+")"),"-"===sep&&(str=pre&&"^"===pre?pre+str:str,str="["+str+"]"),[str]}function isCharClass(a,b,step,isNum,isDescending){return isDescending?!1:isNum?9>=a&&9>=b:b>a?1===step:!1}function shouldExpand(a,b,num,isNum,padding,opts){return isNum&&(a>9||b>9)?!1:!padding&&1===num&&b>a}function detectSeparator(a,b,step,isNum,isDescending){var isChar=isCharClass(a,b,step,isNum,isDescending);return isChar?"~":"|"}function formatStep(step){return Math.abs(step>>0)||1}function formatPadding(ch,pad){var res=pad?pad+ch:ch;return pad&&"-"===ch.toString().charAt(0)&&(res="-"+pad+ch.toString().substr(1)),res.toString()}function isInvalidChar(str){var ch=toStr(str);return"\\"===ch||"["===ch||"]"===ch||"^"===ch||"("===ch||")"===ch||"`"===ch}function toStr(ch){return String.fromCharCode(ch)}function stepRe(){return/\?|>|\||\+|\~/g}function noAlphaNum(val){return/[a-z0-9]/i.test(val)}function hasBoth(val){return/[a-z][0-9]|[0-9][a-z]/i.test(val)}function zeros(val){return/^-*0+$/.test(val.toString())?"0":val}function hasZeros(val){return/[^.]\.|^-*0+[0-9]/.test(val)}function isPadded(origA,origB){if(hasZeros(origA)||hasZeros(origB)){var alen=length(origA),blen=length(origB),len=alen>=blen?alen:blen;return function(a){return repeatStr("0",len-length(a))}}return!1}function length(val){return val.toString().length}var isObject=__webpack_require__(246),isNumber=__webpack_require__(89),randomize=__webpack_require__(279),repeatStr=__webpack_require__(282),repeat=__webpack_require__(103);module.exports=fillRange},function(module,exports,__webpack_require__){(function(Buffer){"use strict";function ctor(options,transform){function FirstChunk(options2){return this instanceof FirstChunk?(Transform.call(this,options2),this._firstChunk=!0,this._transformCalled=!1,void(this._minSize=options.minSize)):new FirstChunk(options2)}if(util.inherits(FirstChunk,Transform),"function"==typeof options&&(transform=options,options={}),"function"!=typeof transform)throw new Error("transform function required");return FirstChunk.prototype._transform=function(chunk,enc,cb){return this._enc=enc,this._firstChunk?(this._firstChunk=!1,null==this._minSize?(transform.call(this,chunk,enc,cb),void(this._transformCalled=!0)):(this._buffer=chunk,void cb())):null==this._minSize?(this.push(chunk),void cb()):this._buffer.length=this._minSize?(transform.call(this,this._buffer.slice(),enc,function(){this.push(chunk),cb()}.bind(this)),this._transformCalled=!0,void(this._buffer=!1)):(this.push(chunk),void cb())},FirstChunk.prototype._flush=function(cb){return this._buffer?void(this._transformCalled?(this.push(this._buffer),cb()):transform.call(this,this._buffer.slice(),this._enc,cb)):void cb()},FirstChunk}var util=__webpack_require__(8),Transform=__webpack_require__(3).Transform;module.exports=function(){return ctor.apply(ctor,arguments)()},module.exports.ctor=ctor}).call(exports,__webpack_require__(1).Buffer)},function(module,exports){/*! * for-in * * Copyright (c) 2014-2015, Jon Schlinkert. @@ -117,7 +117,7 @@ module.exports=function(){return/([^\\\/]+)$/}},function(module,exports,__webpac * Copyright (c) 2015, Jon Schlinkert. * Licensed under the MIT License. */ -"use strict";function dirname(glob){return"/"===glob.slice(-1)?glob:path.dirname(glob)}var path=__webpack_require__(5),parent=__webpack_require__(83),isGlob=__webpack_require__(39);module.exports=function(pattern){if("string"!=typeof pattern)throw new TypeError("glob-base expects a string.");var res={};return res.base=parent(pattern),res.isGlob=isGlob(pattern),"."!==res.base?(res.glob=pattern.substr(res.base.length),"/"===res.glob.charAt(0)&&(res.glob=res.glob.substr(1))):res.glob=pattern,res.isGlob||(res.base=dirname(pattern),res.glob="."!==res.base?pattern.substr(res.base.length):pattern),"./"===res.glob.substr(0,2)&&(res.glob=res.glob.substr(2)),"/"===res.glob.charAt(0)&&(res.glob=res.glob.substr(1)),res}},function(module,exports,__webpack_require__){(function(process){"use strict";function isMatch(file,matcher){return"function"==typeof matcher?matcher(file.path):matcher instanceof RegExp?matcher.test(file.path):void 0}function isNegative(pattern){return"string"==typeof pattern?"!"===pattern[0]:pattern instanceof RegExp?!0:void 0}function indexGreaterThan(index){return function(obj){return obj.index>index}}function toGlob(obj){return obj.glob}function globIsSingular(glob){var globSet=glob.minimatch.set;return 1!==globSet.length?!1:globSet[0].every(function(value){return"string"==typeof value})}var through2=__webpack_require__(65),Combine=__webpack_require__(268),unique=__webpack_require__(303),glob=__webpack_require__(85),micromatch=__webpack_require__(259),resolveGlob=__webpack_require__(301),globParent=__webpack_require__(83),path=__webpack_require__(5),extend=__webpack_require__(223),gs={createStream:function(ourGlob,negatives,opt){function filterNegatives(filename,enc,cb){var matcha=isMatch.bind(null,filename);negatives.every(matcha)?cb(null,filename):cb()}ourGlob=resolveGlob(ourGlob,opt);var ourOpt=extend({},opt);delete ourOpt.root;var globber=new glob.Glob(ourGlob,ourOpt),basePath=opt.base||globParent(ourGlob)+path.sep,stream=through2.obj(opt,negatives.length?filterNegatives:void 0),found=!1;return globber.on("error",stream.emit.bind(stream,"error")),globber.once("end",function(){opt.allowEmpty!==!0&&!found&&globIsSingular(globber)&&stream.emit("error",new Error("File not found with singular glob: "+ourGlob)),stream.end()}),globber.on("match",function(filename){found=!0,stream.write({cwd:opt.cwd,base:basePath,path:filename})}),stream},create:function(globs,opt){function streamFromPositive(positive){var negativeGlobs=negatives.filter(indexGreaterThan(positive.index)).map(toGlob);return gs.createStream(positive.glob,negativeGlobs,opt)}opt||(opt={}),"string"!=typeof opt.cwd&&(opt.cwd=process.cwd()),"boolean"!=typeof opt.dot&&(opt.dot=!1),"boolean"!=typeof opt.silent&&(opt.silent=!0),"boolean"!=typeof opt.nonull&&(opt.nonull=!1),"boolean"!=typeof opt.cwdbase&&(opt.cwdbase=!1),opt.cwdbase&&(opt.base=opt.cwd),Array.isArray(globs)||(globs=[globs]);var positives=[],negatives=[],ourOpt=extend({},opt);if(delete ourOpt.root,globs.forEach(function(glob,index){if("string"!=typeof glob&&!(glob instanceof RegExp))throw new Error("Invalid glob at index "+index);var globArray=isNegative(glob)?negatives:positives;if(globArray===negatives&&"string"==typeof glob){var ourGlob=resolveGlob(glob,opt);glob=micromatch.matcher(ourGlob,ourOpt)}globArray.push({index:index,glob:glob})}),0===positives.length)throw new Error("Missing positive glob");if(1===positives.length)return streamFromPositive(positives[0]);var streams=positives.map(streamFromPositive),aggregate=new Combine(streams),uniqueStream=unique("path"),returnStream=aggregate.pipe(uniqueStream);return aggregate.on("error",function(err){returnStream.emit("error",err)}),returnStream}};module.exports=gs}).call(exports,__webpack_require__(2))},function(module,exports,__webpack_require__){(function(process){function globSync(pattern,options){if("function"==typeof options||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");return new GlobSync(pattern,options).found}function GlobSync(pattern,options){if(!pattern)throw new Error("must provide pattern");if("function"==typeof options||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof GlobSync))return new GlobSync(pattern,options);if(setopts(this,pattern,options),this.noprocess)return this;var n=this.minimatch.set.length;this.matches=new Array(n);for(var i=0;n>i;i++)this._process(this.minimatch.set[i],i,!1);this._finish()}module.exports=globSync,globSync.GlobSync=GlobSync;var fs=__webpack_require__(6),minimatch=__webpack_require__(55),path=(minimatch.Minimatch,__webpack_require__(85).Glob,__webpack_require__(8),__webpack_require__(5)),assert=__webpack_require__(41),isAbsolute=__webpack_require__(58),common=__webpack_require__(84),setopts=(common.alphasort,common.alphasorti,common.setopts),ownProp=common.ownProp,childrenIgnored=common.childrenIgnored;GlobSync.prototype._finish=function(){if(assert(this instanceof GlobSync),this.realpath){var self=this;this.matches.forEach(function(matchset,index){var set=self.matches[index]=Object.create(null);for(var p in matchset)try{p=self._makeAbs(p);var real=fs.realpathSync(p,self.realpathCache);set[real]=!0}catch(er){if("stat"!==er.syscall)throw er;set[self._makeAbs(p)]=!0}})}common.finish(this)},GlobSync.prototype._process=function(pattern,index,inGlobStar){assert(this instanceof GlobSync);for(var n=0;"string"==typeof pattern[n];)n++;var prefix;switch(n){case pattern.length:return void this._processSimple(pattern.join("/"),index);case 0:prefix=null;break;default:prefix=pattern.slice(0,n).join("/")}var read,remain=pattern.slice(n);null===prefix?read=".":isAbsolute(prefix)||isAbsolute(pattern.join("/"))?(prefix&&isAbsolute(prefix)||(prefix="/"+prefix),read=prefix):read=prefix;var abs=this._makeAbs(read);if(!childrenIgnored(this,read)){var isGlobStar=remain[0]===minimatch.GLOBSTAR;isGlobStar?this._processGlobStar(prefix,read,abs,remain,index,inGlobStar):this._processReaddir(prefix,read,abs,remain,index,inGlobStar)}},GlobSync.prototype._processReaddir=function(prefix,read,abs,remain,index,inGlobStar){var entries=this._readdir(abs,inGlobStar);if(entries){for(var pn=remain[0],negate=!!this.minimatch.negate,rawGlob=pn._glob,dotOk=this.dot||"."===rawGlob.charAt(0),matchedEntries=[],i=0;ii;i++){var newPattern,e=matchedEntries[i];newPattern=prefix?[prefix,e]:[e],this._process(newPattern.concat(remain),index,inGlobStar)}}else{this.matches[index]||(this.matches[index]=Object.create(null));for(var i=0;len>i;i++){var e=matchedEntries[i];prefix&&(e="/"!==prefix.slice(-1)?prefix+"/"+e:prefix+e),"/"!==e.charAt(0)||this.nomount||(e=path.join(this.root,e)),this.matches[index][e]=!0}}}},GlobSync.prototype._emitMatch=function(index,e){this._makeAbs(e);if(this.mark&&(e=this._mark(e)),!this.matches[index][e]){if(this.nodir){var c=this.cache[this._makeAbs(e)];if("DIR"===c||Array.isArray(c))return}this.matches[index][e]=!0,this.stat&&this._stat(e)}},GlobSync.prototype._readdirInGlobStar=function(abs){if(this.follow)return this._readdir(abs,!1);var entries,lstat;try{lstat=fs.lstatSync(abs)}catch(er){return null}var isSym=lstat.isSymbolicLink();return this.symlinks[abs]=isSym,isSym||lstat.isDirectory()?entries=this._readdir(abs,!1):this.cache[abs]="FILE",entries},GlobSync.prototype._readdir=function(abs,inGlobStar){if(inGlobStar&&!ownProp(this.symlinks,abs))return this._readdirInGlobStar(abs);if(ownProp(this.cache,abs)){var c=this.cache[abs];if(!c||"FILE"===c)return null;if(Array.isArray(c))return c}try{return this._readdirEntries(abs,fs.readdirSync(abs))}catch(er){return this._readdirError(abs,er),null}},GlobSync.prototype._readdirEntries=function(abs,entries){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);var below=gspref.concat(entries[i],remain);this._process(below,index,!0)}}}},GlobSync.prototype._processSimple=function(prefix,index){var exists=this._stat(prefix);if(this.matches[index]||(this.matches[index]=Object.create(null)),exists){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.matches[index][prefix]=!0}},GlobSync.prototype._stat=function(f){var abs=this._makeAbs(f),needDir="/"===f.slice(-1);if(f.length>this.maxLength)return!1;if(!this.stat&&ownProp(this.cache,abs)){var c=this.cache[abs];if(Array.isArray(c)&&(c="DIR"),!needDir||"DIR"===c)return c;if(needDir&&"FILE"===c)return!1}var stat=this.statCache[abs];if(!stat){var lstat;try{lstat=fs.lstatSync(abs)}catch(er){return!1}if(lstat.isSymbolicLink())try{stat=fs.statSync(abs)}catch(er){stat=lstat}else stat=lstat}this.statCache[abs]=stat;var c=stat.isDirectory()?"DIR":"FILE";return this.cache[abs]=this.cache[abs]||c,needDir&&"DIR"!==c?!1:c},GlobSync.prototype._mark=function(p){return common.mark(this,p)},GlobSync.prototype._makeAbs=function(f){return common.makeAbs(this,f)}}).call(exports,__webpack_require__(2))},function(module,exports,__webpack_require__){(function(process){function legacy(fs){function ReadStream(path,options){if(!(this instanceof ReadStream))return new ReadStream(path,options);Stream.call(this);var self=this;this.path=path,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=65536,options=options||{};for(var keys=Object.keys(options),index=0,length=keys.length;length>index;index++){var key=keys[index];this[key]=options[key]}if(this.encoding&&this.setEncoding(this.encoding),void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(void 0===this.end)this.end=1/0;else if("number"!=typeof this.end)throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}return null!==this.fd?void process.nextTick(function(){self._read()}):void fs.open(this.path,this.flags,this.mode,function(err,fd){return err?(self.emit("error",err),void(self.readable=!1)):(self.fd=fd,self.emit("open",fd),void self._read())})}function WriteStream(path,options){if(!(this instanceof WriteStream))return new WriteStream(path,options);Stream.call(this),this.path=path,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,options=options||{};for(var keys=Object.keys(options),index=0,length=keys.length;length>index;index++){var key=keys[index];this[key]=options[key]}if(void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],null===this.fd&&(this._open=fs.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}return{ReadStream:ReadStream,WriteStream:WriteStream}}var Stream=__webpack_require__(3).Stream;module.exports=legacy}).call(exports,__webpack_require__(2))},function(module,exports,__webpack_require__){(function(process){function patch(fs){constants.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&patchLchmod(fs),fs.lutimes||patchLutimes(fs),fs.chown=chownFix(fs.chown),fs.fchown=chownFix(fs.fchown),fs.lchown=chownFix(fs.lchown),fs.chmod=chownFix(fs.chmod),fs.fchmod=chownFix(fs.fchmod),fs.lchmod=chownFix(fs.lchmod),fs.chownSync=chownFixSync(fs.chownSync),fs.fchownSync=chownFixSync(fs.fchownSync),fs.lchownSync=chownFixSync(fs.lchownSync),fs.chmodSync=chownFix(fs.chmodSync),fs.fchmodSync=chownFix(fs.fchmodSync),fs.lchmodSync=chownFix(fs.lchmodSync),fs.lchmod||(fs.lchmod=function(path,mode,cb){process.nextTick(cb)},fs.lchmodSync=function(){}),fs.lchown||(fs.lchown=function(path,uid,gid,cb){process.nextTick(cb)},fs.lchownSync=function(){}),"win32"===process.platform&&(fs.rename=function(fs$rename){return function(from,to,cb){var start=Date.now();fs$rename(from,to,function CB(er){return er&&("EACCES"===er.code||"EPERM"===er.code)&&Date.now()-start<1e3?fs$rename(from,to,CB):void(cb&&cb(er))})}}(fs.rename)),fs.read=function(fs$read){return function(fd,buffer,offset,length,position,callback_){var callback;if(callback_&&"function"==typeof callback_){var eagCounter=0;callback=function(er,_,__){return er&&"EAGAIN"===er.code&&10>eagCounter?(eagCounter++,fs$read.call(fs,fd,buffer,offset,length,position,callback)):void callback_.apply(this,arguments)}}return fs$read.call(fs,fd,buffer,offset,length,position,callback)}}(fs.read),fs.readSync=function(fs$readSync){return function(fd,buffer,offset,length,position){for(var eagCounter=0;;)try{return fs$readSync.call(fs,fd,buffer,offset,length,position)}catch(er){if("EAGAIN"===er.code&&10>eagCounter){eagCounter++;continue}throw er}}}(fs.readSync)}function patchLchmod(fs){fs.lchmod=function(path,mode,callback){callback=callback||noop,fs.open(path,constants.O_WRONLY|constants.O_SYMLINK,mode,function(err,fd){return err?void callback(err):void fs.fchmod(fd,mode,function(err){fs.close(fd,function(err2){callback(err||err2)})})})},fs.lchmodSync=function(path,mode){var ret,fd=fs.openSync(path,constants.O_WRONLY|constants.O_SYMLINK,mode),threw=!0;try{ret=fs.fchmodSync(fd,mode),threw=!1}finally{if(threw)try{fs.closeSync(fd)}catch(er){}else fs.closeSync(fd)}return ret}}function patchLutimes(fs){constants.hasOwnProperty("O_SYMLINK")?(fs.lutimes=function(path,at,mt,cb){fs.open(path,constants.O_SYMLINK,function(er,fd){return cb=cb||noop,er?cb(er):void fs.futimes(fd,at,mt,function(er){fs.close(fd,function(er2){return cb(er||er2)})})})},fs.lutimesSync=function(path,at,mt){var ret,fd=fs.openSync(path,constants.O_SYMLINK),threw=!0;try{ret=fs.futimesSync(fd,at,mt),threw=!1}finally{if(threw)try{fs.closeSync(fd)}catch(er){}else fs.closeSync(fd)}return ret}):(fs.lutimes=function(_a,_b,_c,cb){process.nextTick(cb)},fs.lutimesSync=function(){})}function chownFix(orig){return orig?function(target,uid,gid,cb){return orig.call(fs,target,uid,gid,function(er,res){chownErOk(er)&&(er=null),cb(er,res)})}:orig}function chownFixSync(orig){return orig?function(target,uid,gid){try{return orig.call(fs,target,uid,gid)}catch(er){if(!chownErOk(er))throw er}}:orig}function chownErOk(er){if(!er)return!0;if("ENOSYS"===er.code)return!0;var nonroot=!process.getuid||0!==process.getuid();return!nonroot||"EINVAL"!==er.code&&"EPERM"!==er.code?!1:!0}var fs=__webpack_require__(86),constants=__webpack_require__(247),origCwd=process.cwd,cwd=null;process.cwd=function(){return cwd||(cwd=origCwd.call(process)),cwd};try{process.cwd()}catch(er){}var chdir=process.chdir;process.chdir=function(d){cwd=null,chdir.call(process,d)},module.exports=patch}).call(exports,__webpack_require__(2))},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__){var http=__webpack_require__(106),https=module.exports;for(var key in http)http.hasOwnProperty(key)&&(https[key]=http[key]);https.request=function(params,cb){return params||(params={}),params.scheme="https",params.protocol="https:",http.request.call(this,params,cb)}},function(module,exports){exports.read=function(buffer,offset,isLE,mLen,nBytes){var e,m,eLen=8*nBytes-mLen-1,eMax=(1<>1,nBits=-7,i=isLE?nBytes-1:0,d=isLE?-1:1,s=buffer[offset+i];for(i+=d,e=s&(1<<-nBits)-1,s>>=-nBits,nBits+=eLen;nBits>0;e=256*e+buffer[offset+i],i+=d,nBits-=8);for(m=e&(1<<-nBits)-1,e>>=-nBits,nBits+=mLen;nBits>0;m=256*m+buffer[offset+i],i+=d,nBits-=8);if(0===e)e=1-eBias;else{if(e===eMax)return m?NaN:(s?-1:1)*(1/0);m+=Math.pow(2,mLen),e-=eBias}return(s?-1:1)*m*Math.pow(2,e-mLen)},exports.write=function(buffer,value,offset,isLE,mLen,nBytes){var e,m,c,eLen=8*nBytes-mLen-1,eMax=(1<>1,rt=23===mLen?Math.pow(2,-24)-Math.pow(2,-77):0,i=isLE?0:nBytes-1,d=isLE?1:-1,s=0>value||0===value&&0>1/value?1:0;for(value=Math.abs(value),isNaN(value)||value===1/0?(m=isNaN(value)?1:0,e=eMax):(e=Math.floor(Math.log(value)/Math.LN2),value*(c=Math.pow(2,-e))<1&&(e--,c*=2),value+=e+eBias>=1?rt/c:rt*Math.pow(2,1-eBias),value*c>=2&&(e++,c/=2),e+eBias>=eMax?(m=0,e=eMax):e+eBias>=1?(m=(value*c-1)*Math.pow(2,mLen),e+=eBias):(m=value*Math.pow(2,eBias-1)*Math.pow(2,mLen),e=0));mLen>=8;buffer[offset+i]=255&m,i+=d,m/=256,mLen-=8);for(e=e<0;buffer[offset+i]=255&e,i+=d,e/=256,eLen-=8);buffer[offset+i-d]|=128*s}},function(module,exports,__webpack_require__){(function(process){function inflight(key,cb){return reqs[key]?(reqs[key].push(cb),null):(reqs[key]=[cb],makeres(key))}function makeres(key){return once(function RES(){for(var cbs=reqs[key],len=cbs.length,args=slice(arguments),i=0;len>i;i++)cbs[i].apply(null,args);cbs.length>len?(cbs.splice(0,len),process.nextTick(function(){RES.apply(null,args)})):delete reqs[key]})}function slice(args){for(var length=args.length,array=[],i=0;length>i;i++)array[i]=args[i];return array}var wrappy=__webpack_require__(115),reqs=Object.create(null),once=__webpack_require__(57);module.exports=wrappy(inflight)}).call(exports,__webpack_require__(2))},function(module,exports,__webpack_require__){"use strict";function _normalizeFamily(family){return family?family.toLowerCase():"ipv4"}var ip=exports,Buffer=__webpack_require__(1).Buffer,os=__webpack_require__(98);ip.toBuffer=function(ip,buff,offset){offset=~~offset;var result;if(this.isV4Format(ip))result=buff||new Buffer(offset+4),ip.split(/\./g).map(function(byte){result[offset++]=255&parseInt(byte,10)});else if(this.isV6Format(ip)){var i,sections=ip.split(":",8);for(i=0;i0;i--)argv.push("0");sections.splice.apply(sections,argv)}for(result=buff||new Buffer(offset+16),i=0;i>8&255,result[offset++]=255&word}}if(!result)throw Error("Invalid ip address: "+ip);return result},ip.toString=function(buff,offset,length){offset=~~offset,length=length||buff.length-offset;var result=[];if(4===length){for(var i=0;length>i;i++)result.push(buff[offset+i]);result=result.join(".")}else if(16===length){for(var i=0;length>i;i+=2)result.push(buff.readUInt16BE(offset+i).toString(16));result=result.join(":"),result=result.replace(/(^|:)0(:0)*:0(:|$)/,"$1::$3"),result=result.replace(/:{3,4}/,"::")}return result};var ipv4Regex=/^(\d{1,3}\.){3,3}\d{1,3}$/,ipv6Regex=/^(::)?(((\d{1,3}\.){3}(\d{1,3}){1})?([0-9a-f]){0,4}:{0,2}){1,8}(::)?$/i;ip.isV4Format=function(ip){return ipv4Regex.test(ip)},ip.isV6Format=function(ip){return ipv6Regex.test(ip)},ip.fromPrefixLen=function(prefixlen,family){family=prefixlen>32?"ipv6":_normalizeFamily(family);var len=4;"ipv6"===family&&(len=16);for(var buff=new Buffer(len),i=0,n=buff.length;n>i;++i){var bits=8;8>prefixlen&&(bits=prefixlen),prefixlen-=bits,buff[i]=~(255>>bits)}return ip.toString(buff)},ip.mask=function mask(addr,mask){addr=ip.toBuffer(addr),mask=ip.toBuffer(mask);var result=new Buffer(Math.max(addr.length,mask.length));if(addr.length===mask.length)for(var i=0;i=numberOfAddresses?ip.fromLong(networkAddress):ip.fromLong(networkAddress+1),lastAddress:2>=numberOfAddresses?ip.fromLong(networkAddress+numberOfAddresses-1):ip.fromLong(networkAddress+numberOfAddresses-2),broadcastAddress:ip.fromLong(networkAddress+numberOfAddresses-1),subnetMask:mask,subnetMaskLength:maskLength,numHosts:2>=numberOfAddresses?numberOfAddresses:numberOfAddresses-2,length:numberOfAddresses,contains:function(other){return networkAddress===ip.toLong(ip.mask(other,mask))}}},ip.cidrSubnet=function(cidrString){var cidrParts=cidrString.split("/"),addr=cidrParts[0];if(2!==cidrParts.length)throw new Error("invalid CIDR subnet: "+addr);var mask=ip.fromPrefixLen(parseInt(cidrParts[1],10));return ip.subnet(addr,mask)},ip.not=function(addr){for(var buff=ip.toBuffer(addr),i=0;ia.length&&(buff=b,other=a);for(var offset=buff.length-other.length,i=offset;ii;i++)if(0!==b[i])return!1;var word=b.readUInt16BE(10);if(0!==word&&65535!==word)return!1;for(var i=0;4>i;i++)if(a[i]!==b[i+12])return!1;return!0},ip.isPrivate=function(addr){return/^(::f{4}:)?10\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})$/.test(addr)||/^(::f{4}:)?192\.168\.([0-9]{1,3})\.([0-9]{1,3})$/.test(addr)||/^(::f{4}:)?172\.(1[6-9]|2\d|30|31)\.([0-9]{1,3})\.([0-9]{1,3})$/.test(addr)||/^(::f{4}:)?127\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})$/.test(addr)||/^(::f{4}:)?169\.254\.([0-9]{1,3})\.([0-9]{1,3})$/.test(addr)||/^fc00:/i.test(addr)||/^fe80:/i.test(addr)||/^::1$/.test(addr)||/^::$/.test(addr)},ip.isPublic=function(addr){return!ip.isPrivate(addr)},ip.isLoopback=function(addr){return/^(::f{4}:)?127\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})/.test(addr)||/^fe80::1$/.test(addr)||/^::1$/.test(addr)||/^::$/.test(addr)},ip.loopback=function(family){if(family=_normalizeFamily(family),"ipv4"!==family&&"ipv6"!==family)throw new Error("family must be ipv4 or ipv6");return"ipv4"===family?"127.0.0.1":"fe80::1"},ip.address=function(name,family){var all,interfaces=os.networkInterfaces();if(family=_normalizeFamily(family),name&&"private"!==name&&"public"!==name){var res=interfaces[name].filter(function(details){var itemFamily=details.family.toLowerCase();return itemFamily===family});if(0===res.length)return;return res[0].address}var all=Object.keys(interfaces).map(function(nic){var addresses=interfaces[nic].filter(function(details){return details.family=details.family.toLowerCase(),details.family!==family||ip.isLoopback(details.address)?!1:name?"public"===name?!ip.isPrivate(details.address):ip.isPrivate(details.address):!0});return addresses.length?addresses[0].address:void 0}).filter(Boolean);return all.length?all[0]:ip.loopback(family)},ip.toLong=function(ip){var ipl=0;return ip.split(".").forEach(function(octet){ipl<<=8,ipl+=parseInt(octet)}),ipl>>>0},ip.fromLong=function(ipl){return(ipl>>>24)+"."+(ipl>>16&255)+"."+(ipl>>8&255)+"."+(255&ipl)}},function(module,exports){module.exports=function(obj){return!(null==obj||!(obj._isBuffer||obj.constructor&&"function"==typeof obj.constructor.isBuffer&&obj.constructor.isBuffer(obj)))}},function(module,exports){/*! +"use strict";function dirname(glob){return"/"===glob.slice(-1)?glob:path.dirname(glob)}var path=__webpack_require__(5),parent=__webpack_require__(83),isGlob=__webpack_require__(39);module.exports=function(pattern){if("string"!=typeof pattern)throw new TypeError("glob-base expects a string.");var res={};return res.base=parent(pattern),res.isGlob=isGlob(pattern),"."!==res.base?(res.glob=pattern.substr(res.base.length),"/"===res.glob.charAt(0)&&(res.glob=res.glob.substr(1))):res.glob=pattern,res.isGlob||(res.base=dirname(pattern),res.glob="."!==res.base?pattern.substr(res.base.length):pattern),"./"===res.glob.substr(0,2)&&(res.glob=res.glob.substr(2)),"/"===res.glob.charAt(0)&&(res.glob=res.glob.substr(1)),res}},function(module,exports,__webpack_require__){(function(process){"use strict";function isMatch(file,matcher){return"function"==typeof matcher?matcher(file.path):matcher instanceof RegExp?matcher.test(file.path):void 0}function isNegative(pattern){return"string"==typeof pattern?"!"===pattern[0]:pattern instanceof RegExp?!0:void 0}function indexGreaterThan(index){return function(obj){return obj.index>index}}function toGlob(obj){return obj.glob}function globIsSingular(glob){var globSet=glob.minimatch.set;return 1!==globSet.length?!1:globSet[0].every(function(value){return"string"==typeof value})}var through2=__webpack_require__(65),Combine=__webpack_require__(272),unique=__webpack_require__(307),glob=__webpack_require__(85),micromatch=__webpack_require__(263),resolveGlob=__webpack_require__(305),globParent=__webpack_require__(83),path=__webpack_require__(5),extend=__webpack_require__(223),gs={createStream:function(ourGlob,negatives,opt){function filterNegatives(filename,enc,cb){var matcha=isMatch.bind(null,filename);negatives.every(matcha)?cb(null,filename):cb()}ourGlob=resolveGlob(ourGlob,opt);var ourOpt=extend({},opt);delete ourOpt.root;var globber=new glob.Glob(ourGlob,ourOpt),basePath=opt.base||globParent(ourGlob)+path.sep,stream=through2.obj(opt,negatives.length?filterNegatives:void 0),found=!1;return globber.on("error",stream.emit.bind(stream,"error")),globber.once("end",function(){opt.allowEmpty!==!0&&!found&&globIsSingular(globber)&&stream.emit("error",new Error("File not found with singular glob: "+ourGlob)),stream.end()}),globber.on("match",function(filename){found=!0,stream.write({cwd:opt.cwd,base:basePath,path:filename})}),stream},create:function(globs,opt){function streamFromPositive(positive){var negativeGlobs=negatives.filter(indexGreaterThan(positive.index)).map(toGlob);return gs.createStream(positive.glob,negativeGlobs,opt)}opt||(opt={}),"string"!=typeof opt.cwd&&(opt.cwd=process.cwd()),"boolean"!=typeof opt.dot&&(opt.dot=!1),"boolean"!=typeof opt.silent&&(opt.silent=!0),"boolean"!=typeof opt.nonull&&(opt.nonull=!1),"boolean"!=typeof opt.cwdbase&&(opt.cwdbase=!1),opt.cwdbase&&(opt.base=opt.cwd),Array.isArray(globs)||(globs=[globs]);var positives=[],negatives=[],ourOpt=extend({},opt);if(delete ourOpt.root,globs.forEach(function(glob,index){if("string"!=typeof glob&&!(glob instanceof RegExp))throw new Error("Invalid glob at index "+index);var globArray=isNegative(glob)?negatives:positives;if(globArray===negatives&&"string"==typeof glob){var ourGlob=resolveGlob(glob,opt);glob=micromatch.matcher(ourGlob,ourOpt)}globArray.push({index:index,glob:glob})}),0===positives.length)throw new Error("Missing positive glob");if(1===positives.length)return streamFromPositive(positives[0]);var streams=positives.map(streamFromPositive),aggregate=new Combine(streams),uniqueStream=unique("path"),returnStream=aggregate.pipe(uniqueStream);return aggregate.on("error",function(err){returnStream.emit("error",err)}),returnStream}};module.exports=gs}).call(exports,__webpack_require__(2))},function(module,exports,__webpack_require__){(function(process){function globSync(pattern,options){if("function"==typeof options||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");return new GlobSync(pattern,options).found}function GlobSync(pattern,options){if(!pattern)throw new Error("must provide pattern");if("function"==typeof options||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof GlobSync))return new GlobSync(pattern,options);if(setopts(this,pattern,options),this.noprocess)return this;var n=this.minimatch.set.length;this.matches=new Array(n);for(var i=0;n>i;i++)this._process(this.minimatch.set[i],i,!1);this._finish()}module.exports=globSync,globSync.GlobSync=GlobSync;var fs=__webpack_require__(6),minimatch=__webpack_require__(55),path=(minimatch.Minimatch,__webpack_require__(85).Glob,__webpack_require__(8),__webpack_require__(5)),assert=__webpack_require__(41),isAbsolute=__webpack_require__(58),common=__webpack_require__(84),setopts=(common.alphasort,common.alphasorti,common.setopts),ownProp=common.ownProp,childrenIgnored=common.childrenIgnored;GlobSync.prototype._finish=function(){if(assert(this instanceof GlobSync),this.realpath){var self=this;this.matches.forEach(function(matchset,index){var set=self.matches[index]=Object.create(null);for(var p in matchset)try{p=self._makeAbs(p);var real=fs.realpathSync(p,self.realpathCache);set[real]=!0}catch(er){if("stat"!==er.syscall)throw er;set[self._makeAbs(p)]=!0}})}common.finish(this)},GlobSync.prototype._process=function(pattern,index,inGlobStar){assert(this instanceof GlobSync);for(var n=0;"string"==typeof pattern[n];)n++;var prefix;switch(n){case pattern.length:return void this._processSimple(pattern.join("/"),index);case 0:prefix=null;break;default:prefix=pattern.slice(0,n).join("/")}var read,remain=pattern.slice(n);null===prefix?read=".":isAbsolute(prefix)||isAbsolute(pattern.join("/"))?(prefix&&isAbsolute(prefix)||(prefix="/"+prefix),read=prefix):read=prefix;var abs=this._makeAbs(read);if(!childrenIgnored(this,read)){var isGlobStar=remain[0]===minimatch.GLOBSTAR;isGlobStar?this._processGlobStar(prefix,read,abs,remain,index,inGlobStar):this._processReaddir(prefix,read,abs,remain,index,inGlobStar)}},GlobSync.prototype._processReaddir=function(prefix,read,abs,remain,index,inGlobStar){var entries=this._readdir(abs,inGlobStar);if(entries){for(var pn=remain[0],negate=!!this.minimatch.negate,rawGlob=pn._glob,dotOk=this.dot||"."===rawGlob.charAt(0),matchedEntries=[],i=0;ii;i++){var newPattern,e=matchedEntries[i];newPattern=prefix?[prefix,e]:[e],this._process(newPattern.concat(remain),index,inGlobStar)}}else{this.matches[index]||(this.matches[index]=Object.create(null));for(var i=0;len>i;i++){var e=matchedEntries[i];prefix&&(e="/"!==prefix.slice(-1)?prefix+"/"+e:prefix+e),"/"!==e.charAt(0)||this.nomount||(e=path.join(this.root,e)),this.matches[index][e]=!0}}}},GlobSync.prototype._emitMatch=function(index,e){this._makeAbs(e);if(this.mark&&(e=this._mark(e)),!this.matches[index][e]){if(this.nodir){var c=this.cache[this._makeAbs(e)];if("DIR"===c||Array.isArray(c))return}this.matches[index][e]=!0,this.stat&&this._stat(e)}},GlobSync.prototype._readdirInGlobStar=function(abs){if(this.follow)return this._readdir(abs,!1);var entries,lstat;try{lstat=fs.lstatSync(abs)}catch(er){return null}var isSym=lstat.isSymbolicLink();return this.symlinks[abs]=isSym,isSym||lstat.isDirectory()?entries=this._readdir(abs,!1):this.cache[abs]="FILE",entries},GlobSync.prototype._readdir=function(abs,inGlobStar){if(inGlobStar&&!ownProp(this.symlinks,abs))return this._readdirInGlobStar(abs);if(ownProp(this.cache,abs)){var c=this.cache[abs];if(!c||"FILE"===c)return null;if(Array.isArray(c))return c}try{return this._readdirEntries(abs,fs.readdirSync(abs))}catch(er){return this._readdirError(abs,er),null}},GlobSync.prototype._readdirEntries=function(abs,entries){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);var below=gspref.concat(entries[i],remain);this._process(below,index,!0)}}}},GlobSync.prototype._processSimple=function(prefix,index){var exists=this._stat(prefix);if(this.matches[index]||(this.matches[index]=Object.create(null)),exists){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.matches[index][prefix]=!0}},GlobSync.prototype._stat=function(f){var abs=this._makeAbs(f),needDir="/"===f.slice(-1);if(f.length>this.maxLength)return!1;if(!this.stat&&ownProp(this.cache,abs)){var c=this.cache[abs];if(Array.isArray(c)&&(c="DIR"),!needDir||"DIR"===c)return c;if(needDir&&"FILE"===c)return!1}var stat=this.statCache[abs];if(!stat){var lstat;try{lstat=fs.lstatSync(abs)}catch(er){return!1}if(lstat.isSymbolicLink())try{stat=fs.statSync(abs)}catch(er){stat=lstat}else stat=lstat}this.statCache[abs]=stat;var c=stat.isDirectory()?"DIR":"FILE";return this.cache[abs]=this.cache[abs]||c,needDir&&"DIR"!==c?!1:c},GlobSync.prototype._mark=function(p){return common.mark(this,p)},GlobSync.prototype._makeAbs=function(f){return common.makeAbs(this,f)}}).call(exports,__webpack_require__(2))},function(module,exports,__webpack_require__){(function(process){function legacy(fs){function ReadStream(path,options){if(!(this instanceof ReadStream))return new ReadStream(path,options);Stream.call(this);var self=this;this.path=path,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=65536,options=options||{};for(var keys=Object.keys(options),index=0,length=keys.length;length>index;index++){var key=keys[index];this[key]=options[key]}if(this.encoding&&this.setEncoding(this.encoding),void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(void 0===this.end)this.end=1/0;else if("number"!=typeof this.end)throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}return null!==this.fd?void process.nextTick(function(){self._read()}):void fs.open(this.path,this.flags,this.mode,function(err,fd){return err?(self.emit("error",err),void(self.readable=!1)):(self.fd=fd,self.emit("open",fd),void self._read())})}function WriteStream(path,options){if(!(this instanceof WriteStream))return new WriteStream(path,options);Stream.call(this),this.path=path,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,options=options||{};for(var keys=Object.keys(options),index=0,length=keys.length;length>index;index++){var key=keys[index];this[key]=options[key]}if(void 0!==this.start){if("number"!=typeof this.start)throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],null===this.fd&&(this._open=fs.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}return{ReadStream:ReadStream,WriteStream:WriteStream}}var Stream=__webpack_require__(3).Stream;module.exports=legacy}).call(exports,__webpack_require__(2))},function(module,exports,__webpack_require__){(function(process){function patch(fs){constants.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&patchLchmod(fs),fs.lutimes||patchLutimes(fs),fs.chown=chownFix(fs.chown),fs.fchown=chownFix(fs.fchown),fs.lchown=chownFix(fs.lchown),fs.chmod=chownFix(fs.chmod),fs.fchmod=chownFix(fs.fchmod),fs.lchmod=chownFix(fs.lchmod),fs.chownSync=chownFixSync(fs.chownSync),fs.fchownSync=chownFixSync(fs.fchownSync),fs.lchownSync=chownFixSync(fs.lchownSync),fs.chmodSync=chownFix(fs.chmodSync),fs.fchmodSync=chownFix(fs.fchmodSync),fs.lchmodSync=chownFix(fs.lchmodSync),fs.lchmod||(fs.lchmod=function(path,mode,cb){process.nextTick(cb)},fs.lchmodSync=function(){}),fs.lchown||(fs.lchown=function(path,uid,gid,cb){process.nextTick(cb)},fs.lchownSync=function(){}),"win32"===process.platform&&(fs.rename=function(fs$rename){return function(from,to,cb){var start=Date.now();fs$rename(from,to,function CB(er){return er&&("EACCES"===er.code||"EPERM"===er.code)&&Date.now()-start<1e3?fs$rename(from,to,CB):void(cb&&cb(er))})}}(fs.rename)),fs.read=function(fs$read){return function(fd,buffer,offset,length,position,callback_){var callback;if(callback_&&"function"==typeof callback_){var eagCounter=0;callback=function(er,_,__){return er&&"EAGAIN"===er.code&&10>eagCounter?(eagCounter++,fs$read.call(fs,fd,buffer,offset,length,position,callback)):void callback_.apply(this,arguments)}}return fs$read.call(fs,fd,buffer,offset,length,position,callback)}}(fs.read),fs.readSync=function(fs$readSync){return function(fd,buffer,offset,length,position){for(var eagCounter=0;;)try{return fs$readSync.call(fs,fd,buffer,offset,length,position)}catch(er){if("EAGAIN"===er.code&&10>eagCounter){eagCounter++;continue}throw er}}}(fs.readSync)}function patchLchmod(fs){fs.lchmod=function(path,mode,callback){callback=callback||noop,fs.open(path,constants.O_WRONLY|constants.O_SYMLINK,mode,function(err,fd){return err?void callback(err):void fs.fchmod(fd,mode,function(err){fs.close(fd,function(err2){callback(err||err2)})})})},fs.lchmodSync=function(path,mode){var ret,fd=fs.openSync(path,constants.O_WRONLY|constants.O_SYMLINK,mode),threw=!0;try{ret=fs.fchmodSync(fd,mode),threw=!1}finally{if(threw)try{fs.closeSync(fd)}catch(er){}else fs.closeSync(fd)}return ret}}function patchLutimes(fs){constants.hasOwnProperty("O_SYMLINK")?(fs.lutimes=function(path,at,mt,cb){fs.open(path,constants.O_SYMLINK,function(er,fd){return cb=cb||noop,er?cb(er):void fs.futimes(fd,at,mt,function(er){fs.close(fd,function(er2){return cb(er||er2)})})})},fs.lutimesSync=function(path,at,mt){var ret,fd=fs.openSync(path,constants.O_SYMLINK),threw=!0;try{ret=fs.futimesSync(fd,at,mt),threw=!1}finally{if(threw)try{fs.closeSync(fd)}catch(er){}else fs.closeSync(fd)}return ret}):(fs.lutimes=function(_a,_b,_c,cb){process.nextTick(cb)},fs.lutimesSync=function(){})}function chownFix(orig){return orig?function(target,uid,gid,cb){return orig.call(fs,target,uid,gid,function(er,res){chownErOk(er)&&(er=null),cb(er,res)})}:orig}function chownFixSync(orig){return orig?function(target,uid,gid){try{return orig.call(fs,target,uid,gid)}catch(er){if(!chownErOk(er))throw er}}:orig}function chownErOk(er){if(!er)return!0;if("ENOSYS"===er.code)return!0;var nonroot=!process.getuid||0!==process.getuid();return!nonroot||"EINVAL"!==er.code&&"EPERM"!==er.code?!1:!0}var fs=__webpack_require__(86),constants=__webpack_require__(247),origCwd=process.cwd,cwd=null;process.cwd=function(){return cwd||(cwd=origCwd.call(process)),cwd};try{process.cwd()}catch(er){}var chdir=process.chdir;process.chdir=function(d){cwd=null,chdir.call(process,d)},module.exports=patch}).call(exports,__webpack_require__(2))},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__){var http=__webpack_require__(106),https=module.exports;for(var key in http)http.hasOwnProperty(key)&&(https[key]=http[key]);https.request=function(params,cb){return params||(params={}),params.scheme="https",params.protocol="https:",http.request.call(this,params,cb)}},function(module,exports){exports.read=function(buffer,offset,isLE,mLen,nBytes){var e,m,eLen=8*nBytes-mLen-1,eMax=(1<>1,nBits=-7,i=isLE?nBytes-1:0,d=isLE?-1:1,s=buffer[offset+i];for(i+=d,e=s&(1<<-nBits)-1,s>>=-nBits,nBits+=eLen;nBits>0;e=256*e+buffer[offset+i],i+=d,nBits-=8);for(m=e&(1<<-nBits)-1,e>>=-nBits,nBits+=mLen;nBits>0;m=256*m+buffer[offset+i],i+=d,nBits-=8);if(0===e)e=1-eBias;else{if(e===eMax)return m?NaN:(s?-1:1)*(1/0);m+=Math.pow(2,mLen),e-=eBias}return(s?-1:1)*m*Math.pow(2,e-mLen)},exports.write=function(buffer,value,offset,isLE,mLen,nBytes){var e,m,c,eLen=8*nBytes-mLen-1,eMax=(1<>1,rt=23===mLen?Math.pow(2,-24)-Math.pow(2,-77):0,i=isLE?0:nBytes-1,d=isLE?1:-1,s=0>value||0===value&&0>1/value?1:0;for(value=Math.abs(value),isNaN(value)||value===1/0?(m=isNaN(value)?1:0,e=eMax):(e=Math.floor(Math.log(value)/Math.LN2),value*(c=Math.pow(2,-e))<1&&(e--,c*=2),value+=e+eBias>=1?rt/c:rt*Math.pow(2,1-eBias),value*c>=2&&(e++,c/=2),e+eBias>=eMax?(m=0,e=eMax):e+eBias>=1?(m=(value*c-1)*Math.pow(2,mLen),e+=eBias):(m=value*Math.pow(2,eBias-1)*Math.pow(2,mLen),e=0));mLen>=8;buffer[offset+i]=255&m,i+=d,m/=256,mLen-=8);for(e=e<0;buffer[offset+i]=255&e,i+=d,e/=256,eLen-=8);buffer[offset+i-d]|=128*s}},function(module,exports,__webpack_require__){(function(process){function inflight(key,cb){return reqs[key]?(reqs[key].push(cb),null):(reqs[key]=[cb],makeres(key))}function makeres(key){return once(function RES(){for(var cbs=reqs[key],len=cbs.length,args=slice(arguments),i=0;len>i;i++)cbs[i].apply(null,args);cbs.length>len?(cbs.splice(0,len),process.nextTick(function(){RES.apply(null,args)})):delete reqs[key]})}function slice(args){for(var length=args.length,array=[],i=0;length>i;i++)array[i]=args[i];return array}var wrappy=__webpack_require__(115),reqs=Object.create(null),once=__webpack_require__(57);module.exports=wrappy(inflight)}).call(exports,__webpack_require__(2))},function(module,exports,__webpack_require__){"use strict";function _normalizeFamily(family){return family?family.toLowerCase():"ipv4"}var ip=exports,Buffer=__webpack_require__(1).Buffer,os=__webpack_require__(98);ip.toBuffer=function(ip,buff,offset){offset=~~offset;var result;if(this.isV4Format(ip))result=buff||new Buffer(offset+4),ip.split(/\./g).map(function(byte){result[offset++]=255&parseInt(byte,10)});else if(this.isV6Format(ip)){var i,sections=ip.split(":",8);for(i=0;i0;i--)argv.push("0");sections.splice.apply(sections,argv)}for(result=buff||new Buffer(offset+16),i=0;i>8&255,result[offset++]=255&word}}if(!result)throw Error("Invalid ip address: "+ip);return result},ip.toString=function(buff,offset,length){offset=~~offset,length=length||buff.length-offset;var result=[];if(4===length){for(var i=0;length>i;i++)result.push(buff[offset+i]);result=result.join(".")}else if(16===length){for(var i=0;length>i;i+=2)result.push(buff.readUInt16BE(offset+i).toString(16));result=result.join(":"),result=result.replace(/(^|:)0(:0)*:0(:|$)/,"$1::$3"),result=result.replace(/:{3,4}/,"::")}return result};var ipv4Regex=/^(\d{1,3}\.){3,3}\d{1,3}$/,ipv6Regex=/^(::)?(((\d{1,3}\.){3}(\d{1,3}){1})?([0-9a-f]){0,4}:{0,2}){1,8}(::)?$/i;ip.isV4Format=function(ip){return ipv4Regex.test(ip)},ip.isV6Format=function(ip){return ipv6Regex.test(ip)},ip.fromPrefixLen=function(prefixlen,family){family=prefixlen>32?"ipv6":_normalizeFamily(family);var len=4;"ipv6"===family&&(len=16);for(var buff=new Buffer(len),i=0,n=buff.length;n>i;++i){var bits=8;8>prefixlen&&(bits=prefixlen),prefixlen-=bits,buff[i]=~(255>>bits)}return ip.toString(buff)},ip.mask=function mask(addr,mask){addr=ip.toBuffer(addr),mask=ip.toBuffer(mask);var result=new Buffer(Math.max(addr.length,mask.length));if(addr.length===mask.length)for(var i=0;i=numberOfAddresses?ip.fromLong(networkAddress):ip.fromLong(networkAddress+1),lastAddress:2>=numberOfAddresses?ip.fromLong(networkAddress+numberOfAddresses-1):ip.fromLong(networkAddress+numberOfAddresses-2),broadcastAddress:ip.fromLong(networkAddress+numberOfAddresses-1),subnetMask:mask,subnetMaskLength:maskLength,numHosts:2>=numberOfAddresses?numberOfAddresses:numberOfAddresses-2,length:numberOfAddresses,contains:function(other){return networkAddress===ip.toLong(ip.mask(other,mask))}}},ip.cidrSubnet=function(cidrString){var cidrParts=cidrString.split("/"),addr=cidrParts[0];if(2!==cidrParts.length)throw new Error("invalid CIDR subnet: "+addr);var mask=ip.fromPrefixLen(parseInt(cidrParts[1],10));return ip.subnet(addr,mask)},ip.not=function(addr){for(var buff=ip.toBuffer(addr),i=0;ia.length&&(buff=b,other=a);for(var offset=buff.length-other.length,i=offset;ii;i++)if(0!==b[i])return!1;var word=b.readUInt16BE(10);if(0!==word&&65535!==word)return!1;for(var i=0;4>i;i++)if(a[i]!==b[i+12])return!1;return!0},ip.isPrivate=function(addr){return/^(::f{4}:)?10\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})$/.test(addr)||/^(::f{4}:)?192\.168\.([0-9]{1,3})\.([0-9]{1,3})$/.test(addr)||/^(::f{4}:)?172\.(1[6-9]|2\d|30|31)\.([0-9]{1,3})\.([0-9]{1,3})$/.test(addr)||/^(::f{4}:)?127\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})$/.test(addr)||/^(::f{4}:)?169\.254\.([0-9]{1,3})\.([0-9]{1,3})$/.test(addr)||/^fc00:/i.test(addr)||/^fe80:/i.test(addr)||/^::1$/.test(addr)||/^::$/.test(addr)},ip.isPublic=function(addr){return!ip.isPrivate(addr)},ip.isLoopback=function(addr){return/^(::f{4}:)?127\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})/.test(addr)||/^fe80::1$/.test(addr)||/^::1$/.test(addr)||/^::$/.test(addr)},ip.loopback=function(family){if(family=_normalizeFamily(family),"ipv4"!==family&&"ipv6"!==family)throw new Error("family must be ipv4 or ipv6");return"ipv4"===family?"127.0.0.1":"fe80::1"},ip.address=function(name,family){var all,interfaces=os.networkInterfaces();if(family=_normalizeFamily(family),name&&"private"!==name&&"public"!==name){var res=interfaces[name].filter(function(details){var itemFamily=details.family.toLowerCase();return itemFamily===family});if(0===res.length)return;return res[0].address}var all=Object.keys(interfaces).map(function(nic){var addresses=interfaces[nic].filter(function(details){return details.family=details.family.toLowerCase(),details.family!==family||ip.isLoopback(details.address)?!1:name?"public"===name?!ip.isPrivate(details.address):ip.isPrivate(details.address):!0});return addresses.length?addresses[0].address:void 0}).filter(Boolean);return all.length?all[0]:ip.loopback(family)},ip.toLong=function(ip){var ipl=0;return ip.split(".").forEach(function(octet){ipl<<=8,ipl+=parseInt(octet)}),ipl>>>0},ip.fromLong=function(ipl){return(ipl>>>24)+"."+(ipl>>16&255)+"."+(ipl>>8&255)+"."+(255&ipl)}},function(module,exports){module.exports=function(obj){return!(null==obj||!(obj._isBuffer||obj.constructor&&"function"==typeof obj.constructor.isBuffer&&obj.constructor.isBuffer(obj)))}},function(module,exports){/*! * is-dotfile * * Copyright (c) 2015 Jon Schlinkert, contributors. @@ -135,19 +135,19 @@ 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.12.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){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":"^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 * * Copyright (c) 2014-2015, Jon Schlinkert. * Licensed under the MIT License. */ -"use strict";function micromatch(files,patterns,opts){if(!files||!patterns)return[];if(opts=opts||{},"undefined"==typeof opts.cache&&(opts.cache=!0),!Array.isArray(patterns))return match(files,patterns,opts);for(var len=patterns.length,i=0,omit=[],keep=[];len--;){var glob=patterns[i++];"string"==typeof glob&&33===glob.charCodeAt(0)?omit.push.apply(omit,match(files,glob.slice(1),opts)):keep.push.apply(keep,match(files,glob,opts))}return utils.diff(keep,omit)}function match(files,pattern,opts){if("string"!==utils.typeOf(files)&&!Array.isArray(files))throw new Error(msg("match","files","a string or array"));files=utils.arrayify(files),opts=opts||{};var negate=opts.negate||!1,orig=pattern;"string"==typeof pattern&&(negate="!"===pattern.charAt(0),negate&&(pattern=pattern.slice(1)),opts.nonegate===!0&&(negate=!1));for(var _isMatch=matcher(pattern,opts),len=files.length,i=0,res=[];len>i;){var file=files[i++],fp=utils.unixify(file,opts);_isMatch(fp)&&res.push(fp)}if(0===res.length){if(opts.failglob===!0)throw new Error('micromatch.match() found no matches for: "'+orig+'".');(opts.nonull||opts.nullglob)&&res.push(utils.unescapeGlob(orig))}return negate&&(res=utils.diff(files,res)),opts.ignore&&opts.ignore.length&&(pattern=opts.ignore,opts=utils.omit(opts,["ignore"]),res=utils.diff(res,micromatch(res,pattern,opts))),opts.nodupes?utils.unique(res):res}function filter(patterns,opts){if(!Array.isArray(patterns)&&"string"!=typeof patterns)throw new TypeError(msg("filter","patterns","a string or array"));patterns=utils.arrayify(patterns);for(var len=patterns.length,i=0,patternMatchers=Array(len);len>i;)patternMatchers[i]=matcher(patterns[i++],opts);return function(fp){if(null==fp)return[];var len=patternMatchers.length,i=0,res=!0;for(fp=utils.unixify(fp,opts);len>i;){var fn=patternMatchers[i++];if(!fn(fp)){res=!1;break}}return res}}function isMatch(fp,pattern,opts){if("string"!=typeof fp)throw new TypeError(msg("isMatch","filepath","a string"));return fp=utils.unixify(fp,opts),"object"===utils.typeOf(pattern)?matcher(fp,pattern):matcher(pattern,opts)(fp)}function contains(fp,pattern,opts){if("string"!=typeof fp)throw new TypeError(msg("contains","pattern","a string"));return opts=opts||{},opts.contains=""!==pattern,fp=utils.unixify(fp,opts),opts.contains&&!utils.isGlob(pattern)?-1!==fp.indexOf(pattern):matcher(pattern,opts)(fp)}function any(fp,patterns,opts){if(!Array.isArray(patterns)&&"string"!=typeof patterns)throw new TypeError(msg("any","patterns","a string or array"));patterns=utils.arrayify(patterns);var len=patterns.length;for(fp=utils.unixify(fp,opts);len--;){var isMatch=matcher(patterns[len],opts);if(isMatch(fp))return!0}return!1}function matchKeys(obj,glob,options){if("object"!==utils.typeOf(obj))throw new TypeError(msg("matchKeys","first argument","an object"));var fn=matcher(glob,options),res={};for(var key in obj)obj.hasOwnProperty(key)&&fn(key)&&(res[key]=obj[key]);return res}function matcher(pattern,opts){if("function"==typeof pattern)return pattern;if(pattern instanceof RegExp)return function(fp){return pattern.test(fp)};if("string"!=typeof pattern)throw new TypeError(msg("matcher","pattern","a string, regex, or function"));if(pattern=utils.unixify(pattern,opts),!utils.isGlob(pattern))return utils.matchPath(pattern,opts);var re=makeRe(pattern,opts);return opts&&opts.matchBase?utils.hasFilename(re,opts):function(fp){return fp=utils.unixify(fp,opts),re.test(fp)}}function toRegex(glob,options){var opts=Object.create(options||{}),flags=opts.flags||"";opts.nocase&&-1===flags.indexOf("i")&&(flags+="i");var parsed=expand(glob,opts);opts.negated=opts.negated||parsed.negated,opts.negate=opts.negated,glob=wrapGlob(parsed.pattern,opts);var re;try{return re=new RegExp(glob,flags)}catch(err){if(err.reason="micromatch invalid regex: ("+re+")",opts.strict)throw new SyntaxError(err)}return/$^/}function wrapGlob(glob,opts){var prefix=opts&&!opts.contains?"^":"",after=opts&&!opts.contains?"$":"";return glob="(?:"+glob+")"+after,opts&&opts.negate?prefix+("(?!^"+glob+").*$"):prefix+glob}function makeRe(glob,opts){if("string"!==utils.typeOf(glob))throw new Error(msg("makeRe","glob","a string"));return utils.cache(toRegex,glob,opts)}function msg(method,what,type){return"micromatch."+method+"(): "+what+" should be "+type+"."}var expand=__webpack_require__(261),utils=__webpack_require__(54);micromatch.any=any,micromatch.braces=micromatch.braceExpand=utils.braces,micromatch.contains=contains,micromatch.expand=expand,micromatch.filter=filter,micromatch.isMatch=isMatch,micromatch.makeRe=makeRe,micromatch.match=match,micromatch.matcher=matcher,micromatch.matchKeys=matchKeys,module.exports=micromatch},function(module,exports){"use strict";function reverse(object,prepender){return Object.keys(object).reduce(function(reversed,key){var newKey=prepender?prepender+key:key;return reversed[object[key]]=newKey,reversed},{})}var unesc,temp,chars={};chars.escapeRegex={"?":/\?/g,"@":/\@/g,"!":/\!/g,"+":/\+/g,"*":/\*/g,"(":/\(/g,")":/\)/g,"[":/\[/g,"]":/\]/g},chars.ESC={"?":"__UNESC_QMRK__","@":"__UNESC_AMPE__","!":"__UNESC_EXCL__","+":"__UNESC_PLUS__","*":"__UNESC_STAR__",",":"__UNESC_COMMA__","(":"__UNESC_LTPAREN__",")":"__UNESC_RTPAREN__","[":"__UNESC_LTBRACK__","]":"__UNESC_RTBRACK__"},chars.UNESC=unesc||(unesc=reverse(chars.ESC,"\\")),chars.ESC_TEMP={"?":"__TEMP_QMRK__","@":"__TEMP_AMPE__","!":"__TEMP_EXCL__","*":"__TEMP_STAR__","+":"__TEMP_PLUS__",",":"__TEMP_COMMA__","(":"__TEMP_LTPAREN__",")":"__TEMP_RTPAREN__","[":"__TEMP_LTBRACK__","]":"__TEMP_RTBRACK__"},chars.TEMP=temp||(temp=reverse(chars.ESC_TEMP)),module.exports=chars},function(module,exports,__webpack_require__){/*! +"use strict";function micromatch(files,patterns,opts){if(!files||!patterns)return[];if(opts=opts||{},"undefined"==typeof opts.cache&&(opts.cache=!0),!Array.isArray(patterns))return match(files,patterns,opts);for(var len=patterns.length,i=0,omit=[],keep=[];len--;){var glob=patterns[i++];"string"==typeof glob&&33===glob.charCodeAt(0)?omit.push.apply(omit,match(files,glob.slice(1),opts)):keep.push.apply(keep,match(files,glob,opts))}return utils.diff(keep,omit)}function match(files,pattern,opts){if("string"!==utils.typeOf(files)&&!Array.isArray(files))throw new Error(msg("match","files","a string or array"));files=utils.arrayify(files),opts=opts||{};var negate=opts.negate||!1,orig=pattern;"string"==typeof pattern&&(negate="!"===pattern.charAt(0),negate&&(pattern=pattern.slice(1)),opts.nonegate===!0&&(negate=!1));for(var _isMatch=matcher(pattern,opts),len=files.length,i=0,res=[];len>i;){var file=files[i++],fp=utils.unixify(file,opts);_isMatch(fp)&&res.push(fp)}if(0===res.length){if(opts.failglob===!0)throw new Error('micromatch.match() found no matches for: "'+orig+'".');(opts.nonull||opts.nullglob)&&res.push(utils.unescapeGlob(orig))}return negate&&(res=utils.diff(files,res)),opts.ignore&&opts.ignore.length&&(pattern=opts.ignore,opts=utils.omit(opts,["ignore"]),res=utils.diff(res,micromatch(res,pattern,opts))),opts.nodupes?utils.unique(res):res}function filter(patterns,opts){if(!Array.isArray(patterns)&&"string"!=typeof patterns)throw new TypeError(msg("filter","patterns","a string or array"));patterns=utils.arrayify(patterns);for(var len=patterns.length,i=0,patternMatchers=Array(len);len>i;)patternMatchers[i]=matcher(patterns[i++],opts);return function(fp){if(null==fp)return[];var len=patternMatchers.length,i=0,res=!0;for(fp=utils.unixify(fp,opts);len>i;){var fn=patternMatchers[i++];if(!fn(fp)){res=!1;break}}return res}}function isMatch(fp,pattern,opts){if("string"!=typeof fp)throw new TypeError(msg("isMatch","filepath","a string"));return fp=utils.unixify(fp,opts),"object"===utils.typeOf(pattern)?matcher(fp,pattern):matcher(pattern,opts)(fp)}function contains(fp,pattern,opts){if("string"!=typeof fp)throw new TypeError(msg("contains","pattern","a string"));return opts=opts||{},opts.contains=""!==pattern,fp=utils.unixify(fp,opts),opts.contains&&!utils.isGlob(pattern)?-1!==fp.indexOf(pattern):matcher(pattern,opts)(fp)}function any(fp,patterns,opts){if(!Array.isArray(patterns)&&"string"!=typeof patterns)throw new TypeError(msg("any","patterns","a string or array"));patterns=utils.arrayify(patterns);var len=patterns.length;for(fp=utils.unixify(fp,opts);len--;){var isMatch=matcher(patterns[len],opts);if(isMatch(fp))return!0}return!1}function matchKeys(obj,glob,options){if("object"!==utils.typeOf(obj))throw new TypeError(msg("matchKeys","first argument","an object"));var fn=matcher(glob,options),res={};for(var key in obj)obj.hasOwnProperty(key)&&fn(key)&&(res[key]=obj[key]);return res}function matcher(pattern,opts){if("function"==typeof pattern)return pattern;if(pattern instanceof RegExp)return function(fp){return pattern.test(fp)};if("string"!=typeof pattern)throw new TypeError(msg("matcher","pattern","a string, regex, or function"));if(pattern=utils.unixify(pattern,opts),!utils.isGlob(pattern))return utils.matchPath(pattern,opts);var re=makeRe(pattern,opts);return opts&&opts.matchBase?utils.hasFilename(re,opts):function(fp){return fp=utils.unixify(fp,opts),re.test(fp)}}function toRegex(glob,options){var opts=Object.create(options||{}),flags=opts.flags||"";opts.nocase&&-1===flags.indexOf("i")&&(flags+="i");var parsed=expand(glob,opts);opts.negated=opts.negated||parsed.negated,opts.negate=opts.negated,glob=wrapGlob(parsed.pattern,opts);var re;try{return re=new RegExp(glob,flags)}catch(err){if(err.reason="micromatch invalid regex: ("+re+")",opts.strict)throw new SyntaxError(err)}return/$^/}function wrapGlob(glob,opts){var prefix=opts&&!opts.contains?"^":"",after=opts&&!opts.contains?"$":"";return glob="(?:"+glob+")"+after,opts&&opts.negate?prefix+("(?!^"+glob+").*$"):prefix+glob}function makeRe(glob,opts){if("string"!==utils.typeOf(glob))throw new Error(msg("makeRe","glob","a string"));return utils.cache(toRegex,glob,opts)}function msg(method,what,type){return"micromatch."+method+"(): "+what+" should be "+type+"."}var expand=__webpack_require__(265),utils=__webpack_require__(54);micromatch.any=any,micromatch.braces=micromatch.braceExpand=utils.braces,micromatch.contains=contains,micromatch.expand=expand,micromatch.filter=filter,micromatch.isMatch=isMatch,micromatch.makeRe=makeRe,micromatch.match=match,micromatch.matcher=matcher,micromatch.matchKeys=matchKeys,module.exports=micromatch},function(module,exports){"use strict";function reverse(object,prepender){return Object.keys(object).reduce(function(reversed,key){var newKey=prepender?prepender+key:key;return reversed[object[key]]=newKey,reversed},{})}var unesc,temp,chars={};chars.escapeRegex={"?":/\?/g,"@":/\@/g,"!":/\!/g,"+":/\+/g,"*":/\*/g,"(":/\(/g,")":/\)/g,"[":/\[/g,"]":/\]/g},chars.ESC={"?":"__UNESC_QMRK__","@":"__UNESC_AMPE__","!":"__UNESC_EXCL__","+":"__UNESC_PLUS__","*":"__UNESC_STAR__",",":"__UNESC_COMMA__","(":"__UNESC_LTPAREN__",")":"__UNESC_RTPAREN__","[":"__UNESC_LTBRACK__","]":"__UNESC_RTBRACK__"},chars.UNESC=unesc||(unesc=reverse(chars.ESC,"\\")),chars.ESC_TEMP={"?":"__TEMP_QMRK__","@":"__TEMP_AMPE__","!":"__TEMP_EXCL__","*":"__TEMP_STAR__","+":"__TEMP_PLUS__",",":"__TEMP_COMMA__","(":"__TEMP_LTPAREN__",")":"__TEMP_RTPAREN__","[":"__TEMP_LTBRACK__","]":"__TEMP_RTBRACK__"},chars.TEMP=temp||(temp=reverse(chars.ESC_TEMP)),module.exports=chars},function(module,exports,__webpack_require__){/*! * micromatch * * Copyright (c) 2014-2015, Jon Schlinkert. * Licensed under the MIT License. */ -"use strict";function expand(pattern,options){if("string"!=typeof pattern)throw new TypeError("micromatch.expand(): argument should be a string.");var glob=new Glob(pattern,options||{}),opts=glob.options;if(!utils.isGlob(pattern))return glob.pattern=glob.pattern.replace(/([\/.])/g,"\\$1"),glob;if(glob.pattern=glob.pattern.replace(/(\+)(?!\()/g,"\\$1"),glob.pattern=glob.pattern.split("$").join("\\$"),"boolean"!=typeof opts.braces&&"boolean"!=typeof opts.nobraces&&(opts.braces=!0),".*"===glob.pattern)return{pattern:"\\."+star,tokens:tok,options:opts};if("*"===glob.pattern)return{pattern:oneStar(opts.dot),tokens:tok,options:opts};glob.parse();var tok=glob.tokens;return tok.is.negated=opts.negated,opts.dotfiles!==!0&&!tok.is.dotfile||opts.dot===!1||(opts.dotfiles=!0,opts.dot=!0),opts.dotdirs!==!0&&!tok.is.dotdir||opts.dot===!1||(opts.dotdirs=!0,opts.dot=!0),/[{,]\./.test(glob.pattern)&&(opts.makeRe=!1,opts.dot=!0),opts.nonegate!==!0&&(opts.negated=glob.negated),"."===glob.pattern.charAt(0)&&"/"!==glob.pattern.charAt(1)&&(glob.pattern="\\"+glob.pattern),glob.track("before braces"),tok.is.braces&&glob.braces(),glob.track("after braces"),glob.track("before extglob"),tok.is.extglob&&glob.extglob(),glob.track("after extglob"),glob.track("before brackets"),tok.is.brackets&&glob.brackets(),glob.track("after brackets"),glob._replace("[!","[^"),glob._replace("(?","(%~"),glob._replace(/\[\]/,"\\[\\]"),glob._replace("/[","/"+(opts.dot?dotfiles:nodot)+"[",!0),glob._replace("/?","/"+(opts.dot?dotfiles:nodot)+"[^/]",!0),glob._replace("/.","/(?=.)\\.",!0),glob._replace(/^(\w):([\\\/]+?)/gi,"(?=.)$1:$2",!0),-1!==glob.pattern.indexOf("[^")&&(glob.pattern=negateSlash(glob.pattern)),opts.globstar!==!1&&"**"===glob.pattern?glob.pattern=globstar(opts.dot):(glob._replace(/(\/\*)+/g,function(match){var len=match.length/2;return 1===len?match:"(?:\\/*){"+len+"}"}),glob.pattern=balance(glob.pattern,"[","]"),glob.escape(glob.pattern),tok.is.globstar&&(glob.pattern=collapse(glob.pattern,"/**"),glob.pattern=collapse(glob.pattern,"**/"),glob._replace("/**/","(?:/"+globstar(opts.dot)+"/|/)",!0),glob._replace(/\*{2,}/g,"**"),glob._replace(/(\w+)\*(?!\/)/g,"$1[^/]*?",!0),glob._replace(/\*\*\/\*(\w)/g,globstar(opts.dot)+"\\/"+(opts.dot?dotfiles:nodot)+"[^/]*?$1",!0),opts.dot!==!0&&glob._replace(/\*\*\/(.)/g,"(?:**\\/|)$1"),(""!==tok.path.dirname||/,\*\*|\*\*,/.test(glob.orig))&&glob._replace("**",globstar(opts.dot),!0)),glob._replace(/\/\*$/,"\\/"+oneStar(opts.dot),!0),glob._replace(/(?!\/)\*$/,star,!0),glob._replace(/([^\/]+)\*/,"$1"+oneStar(!0),!0),glob._replace("*",oneStar(opts.dot),!0),glob._replace("?.","?\\.",!0),glob._replace("?:","?:",!0),glob._replace(/\?+/g,function(match){var len=match.length;return 1===len?qmark:qmark+"{"+len+"}"}),glob._replace(/\.([*\w]+)/g,"\\.$1"),glob._replace(/\[\^[\\\/]+\]/g,qmark),glob._replace(/\/+/g,"\\/"),glob._replace(/\\{2,}/g,"\\")),glob.unescape(glob.pattern),glob._replace("__UNESC_STAR__","*"),glob._replace("?.","?\\."),glob._replace("[^\\/]",qmark),glob.pattern.length>1&&/^[\[?*]/.test(glob.pattern)&&(glob.pattern=(opts.dot?dotfiles:nodot)+glob.pattern),glob}function collapse(str,ch){var res=str.split(ch),isFirst=""===res[0],isLast=""===res[res.length-1];return res=res.filter(Boolean),isFirst&&res.unshift(""),isLast&&res.push(""),res.join(ch)}function negateSlash(str){return str.replace(/\[\^([^\]]*?)\]/g,function(match,inner){return-1===inner.indexOf("/")&&(inner="\\/"+inner),"[^"+inner+"]"})}function balance(str,a,b){var aarr=str.split(a),alen=aarr.join("").length,blen=str.split(b).join("").length;return alen!==blen?(str=aarr.join("\\"+a),str.split(b).join("\\"+b)):str}function oneStar(dotfile){return dotfile?"(?!"+dotfileGlob+")(?=.)"+star:nodot+star}function globstar(dotfile){return dotfile?twoStarDot:"(?:(?!(?:\\/|^)\\.).)*?"}var utils=__webpack_require__(54),Glob=__webpack_require__(262);module.exports=expand;var qmark="[^/]",star=qmark+"*?",nodot="(?!\\.)(?=.)",dotfileGlob="(?:\\/|^)\\.{1,2}($|\\/)",dotfiles="(?!"+dotfileGlob+")(?=.)",twoStarDot="(?:(?!"+dotfileGlob+").)*?"},function(module,exports,__webpack_require__){"use strict";function esc(str){return str=str.split("?").join("%~"),str=str.split("*").join("%%")}function unesc(str){return str=str.split("%~").join("?"),str=str.split("%%").join("*")}var chars=__webpack_require__(260),utils=__webpack_require__(54),Glob=module.exports=function Glob(pattern,options){return this instanceof Glob?(this.options=options||{},this.pattern=pattern,this.history=[],this.tokens={},void this.init(pattern)):new Glob(pattern,options)};Glob.prototype.init=function(pattern){this.orig=pattern,this.negated=this.isNegated(),this.options.track=this.options.track||!1,this.options.makeRe=!0},Glob.prototype.track=function(msg){this.options.track&&this.history.push({msg:msg,pattern:this.pattern})},Glob.prototype.isNegated=function(){return 33===this.pattern.charCodeAt(0)?(this.pattern=this.pattern.slice(1),!0):!1},Glob.prototype.braces=function(){if(this.options.nobraces!==!0&&this.options.nobrace!==!0){var a=this.pattern.match(/[\{\(\[]/g),b=this.pattern.match(/[\}\)\]]/g);a&&b&&a.length!==b.length&&(this.options.makeRe=!1);var expanded=utils.braces(this.pattern,this.options);this.pattern=expanded.join("|")}},Glob.prototype.brackets=function(){this.options.nobrackets!==!0&&(this.pattern=utils.brackets(this.pattern))},Glob.prototype.extglob=function(){this.options.noextglob!==!0&&utils.isExtglob(this.pattern)&&(this.pattern=utils.extglob(this.pattern,{escape:!0}))},Glob.prototype.parse=function(pattern){return this.tokens=utils.parseGlob(pattern||this.pattern,!0),this.tokens},Glob.prototype._replace=function(a,b,escape){this.track('before (find): "'+a+'" (replace with): "'+b+'"'),escape&&(b=esc(b)),a&&b&&"string"==typeof a?this.pattern=this.pattern.split(a).join(b):this.pattern=this.pattern.replace(a,b),this.track("after")},Glob.prototype.escape=function(str){this.track("before escape: ");var re=/["\\](['"]?[^"'\\]['"]?)/g;this.pattern=str.replace(re,function($0,$1){var o=chars.ESC,ch=o&&o[$1];return ch?ch:/[a-z]/i.test($0)?$0.split("\\").join(""):$0}),this.track("after escape: ")},Glob.prototype.unescape=function(str){var re=/__([A-Z]+)_([A-Z]+)__/g;this.pattern=str.replace(re,function($0,$1){return chars[$1][$0]}),this.pattern=unesc(this.pattern)}},function(module,exports,__webpack_require__){(function(Buffer){function stringToStringTuples(str){var tuples=[],parts=str.split("/").slice(1);if(1===parts.length&&""===parts[0])return[];for(var p=0;p=parts.length)throw ParseError("invalid address: "+str);tuples.push([part,parts[p]])}return tuples}function stringTuplesToString(tuples){var parts=[];return map(tuples,function(tup){var proto=protoFromTuple(tup);parts.push(proto.name),tup.length>1&&parts.push(tup[1])}),"/"+parts.join("/")}function stringTuplesToTuples(tuples){return map(tuples,function(tup){var proto=protoFromTuple(tup);return tup.length>1?[proto.code,convert.toBuffer(proto.code,tup[1])]:[proto.code]})}function tuplesToStringTuples(tuples){return map(tuples,function(tup){var proto=protoFromTuple(tup);return tup.length>1?[proto.code,convert.toString(proto.code,tup[1])]:[proto.code]})}function tuplesToBuffer(tuples){return fromBuffer(Buffer.concat(map(tuples,function(tup){var proto=protoFromTuple(tup),buf=new Buffer([proto.code]);return tup.length>1&&(buf=Buffer.concat([buf,tup[1]])),buf})))}function bufferToTuples(buf){for(var tuples=[],i=0;ibuf.length)throw ParseError("Invalid address buffer: "+buf.toString("hex"));tuples.push([code,addr])}return tuples}function bufferToString(buf){var a=bufferToTuples(buf),b=tuplesToStringTuples(a);return stringTuplesToString(b)}function stringToBuffer(str){str=cleanPath(str);var a=stringToStringTuples(str),b=stringTuplesToTuples(a);return tuplesToBuffer(b)}function fromString(str){return stringToBuffer(str)}function fromBuffer(buf){var err=validateBuffer(buf);if(err)throw err;return new Buffer(buf)}function validateBuffer(buf){bufferToTuples(buf)}function isValidBuffer(buf){try{return validateBuffer(buf),!0}catch(e){return!1}}function cleanPath(str){return"/"+filter(str.trim().split("/")).join("/")}function ParseError(str){return new Error("Error parsing address: "+str)}function protoFromTuple(tup){var proto=protocols(tup[0]);if(tup.length>1&&0===proto.size)throw ParseError("tuple has address but protocol size is 0");return proto}var map=__webpack_require__(53),filter=__webpack_require__(255),convert=__webpack_require__(264),protocols=__webpack_require__(56);module.exports={stringToStringTuples:stringToStringTuples,stringTuplesToString:stringTuplesToString,tuplesToStringTuples:tuplesToStringTuples,stringTuplesToTuples:stringTuplesToTuples,bufferToTuples:bufferToTuples,tuplesToBuffer:tuplesToBuffer,bufferToString:bufferToString,stringToBuffer:stringToBuffer,fromString:fromString,fromBuffer:fromBuffer,validateBuffer:validateBuffer,isValidBuffer:isValidBuffer,cleanPath:cleanPath,ParseError:ParseError,protoFromTuple:protoFromTuple}}).call(exports,__webpack_require__(1).Buffer)},function(module,exports,__webpack_require__){(function(Buffer){function Convert(proto,a){return a instanceof Buffer?Convert.toString(proto,a):Convert.toBuffer(proto,a)}function port2buf(port){var buf=new Buffer(2);return buf.writeUInt16BE(port,0),buf}function buf2port(buf){return buf.readUInt16BE(0)}var ip=__webpack_require__(239),protocols=__webpack_require__(56);module.exports=Convert,Convert.toString=function(proto,buf){switch(proto=protocols(proto),proto.code){case 4:case 41:return ip.toString(buf);case 6:case 17:case 33:case 132:return buf2port(buf)}return buf.toString("hex")},Convert.toBuffer=function(proto,str){switch(proto=protocols(proto),proto.code){case 4:case 41:return ip.toBuffer(str);case 6:case 17:case 33:case 132:return port2buf(parseInt(str,10))}return new Buffer(str,"hex")}}).call(exports,__webpack_require__(1).Buffer)},function(module,exports,__webpack_require__){(function(Buffer){function Multiaddr(addr){if(!(this instanceof Multiaddr))return new Multiaddr(addr);if(addr||(addr=""),addr instanceof Buffer)this.buffer=codec.fromBuffer(addr);else if("string"==typeof addr||addr instanceof String)this.buffer=codec.fromString(addr);else{if(!(addr.buffer&&addr.protos&&addr.protoCodes))throw new Error("addr must be a string, Buffer, or Multiaddr");this.buffer=codec.fromBuffer(addr.buffer)}}var map=__webpack_require__(53),extend=__webpack_require__(17),codec=__webpack_require__(263),bufeq=__webpack_require__(161),protocols=__webpack_require__(56),NotImplemented=new Error("Sorry, Not Implemented Yet.");exports=module.exports=Multiaddr,exports.Buffer=Buffer,Multiaddr.prototype.toString=function(){return codec.bufferToString(this.buffer)},Multiaddr.prototype.toOptions=function(){var opts={},parsed=this.toString().split("/");return opts.family="ip4"===parsed[1]?"ipv4":"ipv6",opts.host=parsed[2],opts.port=parsed[4],opts},Multiaddr.prototype.inspect=function(){return""},Multiaddr.prototype.protos=function(){return map(this.protoCodes(),function(code){return extend(protocols(code))})},Multiaddr.prototype.protos=function(){return map(this.protoCodes(),function(code){return extend(protocols(code))})},Multiaddr.prototype.protoCodes=function(){for(var codes=[],i=0;ii)throw new Error("Address "+this+" does not contain subaddress: "+addr);return Multiaddr(s.slice(0,i))},Multiaddr.prototype.equals=function(addr){return bufeq(this.buffer,addr.buffer)},Multiaddr.prototype.nodeAddress=function(){if(!this.isThinWaistAddress())throw new Error('Multiaddr must be "thin waist" address for nodeAddress.');var codes=this.protoCodes(),parts=this.toString().split("/").slice(1);return{family:41===codes[0]?"IPv6":"IPv4",address:parts[1],port:parts[3]}},Multiaddr.fromNodeAddress=function(addr,transport){if(!addr)throw new Error("requires node address object");if(!transport)throw new Error("requires transport protocol");var ip="IPv6"===addr.family?"ip6":"ip4";return Multiaddr("/"+[ip,addr.address,transport,addr.port].join("/"))},Multiaddr.prototype.isThinWaistAddress=function(addr){var protos=(addr||this).protos();return 2!==protos.length?!1:4!==protos[0].code&&41!==protos[0].code?!1:6!==protos[1].code&&17!==protos[1].code?!1:!0},Multiaddr.prototype.fromStupidString=function(str){throw NotImplemented},Multiaddr.protocols=protocols}).call(exports,__webpack_require__(1).Buffer)},function(module,exports){/*! +"use strict";function expand(pattern,options){if("string"!=typeof pattern)throw new TypeError("micromatch.expand(): argument should be a string.");var glob=new Glob(pattern,options||{}),opts=glob.options;if(!utils.isGlob(pattern))return glob.pattern=glob.pattern.replace(/([\/.])/g,"\\$1"),glob;if(glob.pattern=glob.pattern.replace(/(\+)(?!\()/g,"\\$1"),glob.pattern=glob.pattern.split("$").join("\\$"),"boolean"!=typeof opts.braces&&"boolean"!=typeof opts.nobraces&&(opts.braces=!0),".*"===glob.pattern)return{pattern:"\\."+star,tokens:tok,options:opts};if("*"===glob.pattern)return{pattern:oneStar(opts.dot),tokens:tok,options:opts};glob.parse();var tok=glob.tokens;return tok.is.negated=opts.negated,opts.dotfiles!==!0&&!tok.is.dotfile||opts.dot===!1||(opts.dotfiles=!0,opts.dot=!0),opts.dotdirs!==!0&&!tok.is.dotdir||opts.dot===!1||(opts.dotdirs=!0,opts.dot=!0),/[{,]\./.test(glob.pattern)&&(opts.makeRe=!1,opts.dot=!0),opts.nonegate!==!0&&(opts.negated=glob.negated),"."===glob.pattern.charAt(0)&&"/"!==glob.pattern.charAt(1)&&(glob.pattern="\\"+glob.pattern),glob.track("before braces"),tok.is.braces&&glob.braces(),glob.track("after braces"),glob.track("before extglob"),tok.is.extglob&&glob.extglob(),glob.track("after extglob"),glob.track("before brackets"),tok.is.brackets&&glob.brackets(),glob.track("after brackets"),glob._replace("[!","[^"),glob._replace("(?","(%~"),glob._replace(/\[\]/,"\\[\\]"),glob._replace("/[","/"+(opts.dot?dotfiles:nodot)+"[",!0),glob._replace("/?","/"+(opts.dot?dotfiles:nodot)+"[^/]",!0),glob._replace("/.","/(?=.)\\.",!0),glob._replace(/^(\w):([\\\/]+?)/gi,"(?=.)$1:$2",!0),-1!==glob.pattern.indexOf("[^")&&(glob.pattern=negateSlash(glob.pattern)),opts.globstar!==!1&&"**"===glob.pattern?glob.pattern=globstar(opts.dot):(glob._replace(/(\/\*)+/g,function(match){var len=match.length/2;return 1===len?match:"(?:\\/*){"+len+"}"}),glob.pattern=balance(glob.pattern,"[","]"),glob.escape(glob.pattern),tok.is.globstar&&(glob.pattern=collapse(glob.pattern,"/**"),glob.pattern=collapse(glob.pattern,"**/"),glob._replace("/**/","(?:/"+globstar(opts.dot)+"/|/)",!0),glob._replace(/\*{2,}/g,"**"),glob._replace(/(\w+)\*(?!\/)/g,"$1[^/]*?",!0),glob._replace(/\*\*\/\*(\w)/g,globstar(opts.dot)+"\\/"+(opts.dot?dotfiles:nodot)+"[^/]*?$1",!0),opts.dot!==!0&&glob._replace(/\*\*\/(.)/g,"(?:**\\/|)$1"),(""!==tok.path.dirname||/,\*\*|\*\*,/.test(glob.orig))&&glob._replace("**",globstar(opts.dot),!0)),glob._replace(/\/\*$/,"\\/"+oneStar(opts.dot),!0),glob._replace(/(?!\/)\*$/,star,!0),glob._replace(/([^\/]+)\*/,"$1"+oneStar(!0),!0),glob._replace("*",oneStar(opts.dot),!0),glob._replace("?.","?\\.",!0),glob._replace("?:","?:",!0),glob._replace(/\?+/g,function(match){var len=match.length;return 1===len?qmark:qmark+"{"+len+"}"}),glob._replace(/\.([*\w]+)/g,"\\.$1"),glob._replace(/\[\^[\\\/]+\]/g,qmark),glob._replace(/\/+/g,"\\/"),glob._replace(/\\{2,}/g,"\\")),glob.unescape(glob.pattern),glob._replace("__UNESC_STAR__","*"),glob._replace("?.","?\\."),glob._replace("[^\\/]",qmark),glob.pattern.length>1&&/^[\[?*]/.test(glob.pattern)&&(glob.pattern=(opts.dot?dotfiles:nodot)+glob.pattern),glob}function collapse(str,ch){var res=str.split(ch),isFirst=""===res[0],isLast=""===res[res.length-1];return res=res.filter(Boolean),isFirst&&res.unshift(""),isLast&&res.push(""),res.join(ch)}function negateSlash(str){return str.replace(/\[\^([^\]]*?)\]/g,function(match,inner){return-1===inner.indexOf("/")&&(inner="\\/"+inner),"[^"+inner+"]"})}function balance(str,a,b){var aarr=str.split(a),alen=aarr.join("").length,blen=str.split(b).join("").length;return alen!==blen?(str=aarr.join("\\"+a),str.split(b).join("\\"+b)):str}function oneStar(dotfile){return dotfile?"(?!"+dotfileGlob+")(?=.)"+star:nodot+star}function globstar(dotfile){return dotfile?twoStarDot:"(?:(?!(?:\\/|^)\\.).)*?"}var utils=__webpack_require__(54),Glob=__webpack_require__(266);module.exports=expand;var qmark="[^/]",star=qmark+"*?",nodot="(?!\\.)(?=.)",dotfileGlob="(?:\\/|^)\\.{1,2}($|\\/)",dotfiles="(?!"+dotfileGlob+")(?=.)",twoStarDot="(?:(?!"+dotfileGlob+").)*?"},function(module,exports,__webpack_require__){"use strict";function esc(str){return str=str.split("?").join("%~"),str=str.split("*").join("%%")}function unesc(str){return str=str.split("%~").join("?"),str=str.split("%%").join("*")}var chars=__webpack_require__(264),utils=__webpack_require__(54),Glob=module.exports=function Glob(pattern,options){return this instanceof Glob?(this.options=options||{},this.pattern=pattern,this.history=[],this.tokens={},void this.init(pattern)):new Glob(pattern,options)};Glob.prototype.init=function(pattern){this.orig=pattern,this.negated=this.isNegated(),this.options.track=this.options.track||!1,this.options.makeRe=!0},Glob.prototype.track=function(msg){this.options.track&&this.history.push({msg:msg,pattern:this.pattern})},Glob.prototype.isNegated=function(){return 33===this.pattern.charCodeAt(0)?(this.pattern=this.pattern.slice(1),!0):!1},Glob.prototype.braces=function(){if(this.options.nobraces!==!0&&this.options.nobrace!==!0){var a=this.pattern.match(/[\{\(\[]/g),b=this.pattern.match(/[\}\)\]]/g);a&&b&&a.length!==b.length&&(this.options.makeRe=!1);var expanded=utils.braces(this.pattern,this.options);this.pattern=expanded.join("|")}},Glob.prototype.brackets=function(){this.options.nobrackets!==!0&&(this.pattern=utils.brackets(this.pattern))},Glob.prototype.extglob=function(){this.options.noextglob!==!0&&utils.isExtglob(this.pattern)&&(this.pattern=utils.extglob(this.pattern,{escape:!0}))},Glob.prototype.parse=function(pattern){return this.tokens=utils.parseGlob(pattern||this.pattern,!0),this.tokens},Glob.prototype._replace=function(a,b,escape){this.track('before (find): "'+a+'" (replace with): "'+b+'"'),escape&&(b=esc(b)),a&&b&&"string"==typeof a?this.pattern=this.pattern.split(a).join(b):this.pattern=this.pattern.replace(a,b),this.track("after")},Glob.prototype.escape=function(str){this.track("before escape: ");var re=/["\\](['"]?[^"'\\]['"]?)/g;this.pattern=str.replace(re,function($0,$1){var o=chars.ESC,ch=o&&o[$1];return ch?ch:/[a-z]/i.test($0)?$0.split("\\").join(""):$0}),this.track("after escape: ")},Glob.prototype.unescape=function(str){var re=/__([A-Z]+)_([A-Z]+)__/g;this.pattern=str.replace(re,function($0,$1){return chars[$1][$0]}),this.pattern=unesc(this.pattern)}},function(module,exports,__webpack_require__){(function(Buffer){function stringToStringTuples(str){var tuples=[],parts=str.split("/").slice(1);if(1===parts.length&&""===parts[0])return[];for(var p=0;p=parts.length)throw ParseError("invalid address: "+str);tuples.push([part,parts[p]])}return tuples}function stringTuplesToString(tuples){var parts=[];return map(tuples,function(tup){var proto=protoFromTuple(tup);parts.push(proto.name),tup.length>1&&parts.push(tup[1])}),"/"+parts.join("/")}function stringTuplesToTuples(tuples){return map(tuples,function(tup){var proto=protoFromTuple(tup);return tup.length>1?[proto.code,convert.toBuffer(proto.code,tup[1])]:[proto.code]})}function tuplesToStringTuples(tuples){return map(tuples,function(tup){var proto=protoFromTuple(tup);return tup.length>1?[proto.code,convert.toString(proto.code,tup[1])]:[proto.code]})}function tuplesToBuffer(tuples){return fromBuffer(Buffer.concat(map(tuples,function(tup){var proto=protoFromTuple(tup),buf=new Buffer([proto.code]);return tup.length>1&&(buf=Buffer.concat([buf,tup[1]])),buf})))}function bufferToTuples(buf){for(var tuples=[],i=0;ibuf.length)throw ParseError("Invalid address buffer: "+buf.toString("hex"));tuples.push([code,addr])}return tuples}function bufferToString(buf){var a=bufferToTuples(buf),b=tuplesToStringTuples(a);return stringTuplesToString(b)}function stringToBuffer(str){str=cleanPath(str);var a=stringToStringTuples(str),b=stringTuplesToTuples(a);return tuplesToBuffer(b)}function fromString(str){return stringToBuffer(str)}function fromBuffer(buf){var err=validateBuffer(buf);if(err)throw err;return new Buffer(buf)}function validateBuffer(buf){bufferToTuples(buf)}function isValidBuffer(buf){try{return validateBuffer(buf),!0}catch(e){return!1}}function cleanPath(str){return"/"+filter(str.trim().split("/")).join("/")}function ParseError(str){return new Error("Error parsing address: "+str)}function protoFromTuple(tup){var proto=protocols(tup[0]);if(tup.length>1&&0===proto.size)throw ParseError("tuple has address but protocol size is 0");return proto}var map=__webpack_require__(53),filter=__webpack_require__(259),convert=__webpack_require__(268),protocols=__webpack_require__(56);module.exports={stringToStringTuples:stringToStringTuples,stringTuplesToString:stringTuplesToString,tuplesToStringTuples:tuplesToStringTuples,stringTuplesToTuples:stringTuplesToTuples,bufferToTuples:bufferToTuples,tuplesToBuffer:tuplesToBuffer,bufferToString:bufferToString,stringToBuffer:stringToBuffer,fromString:fromString,fromBuffer:fromBuffer,validateBuffer:validateBuffer,isValidBuffer:isValidBuffer,cleanPath:cleanPath,ParseError:ParseError,protoFromTuple:protoFromTuple}}).call(exports,__webpack_require__(1).Buffer)},function(module,exports,__webpack_require__){(function(Buffer){function Convert(proto,a){return a instanceof Buffer?Convert.toString(proto,a):Convert.toBuffer(proto,a)}function port2buf(port){var buf=new Buffer(2);return buf.writeUInt16BE(port,0),buf}function buf2port(buf){return buf.readUInt16BE(0)}var ip=__webpack_require__(239),protocols=__webpack_require__(56);module.exports=Convert,Convert.toString=function(proto,buf){switch(proto=protocols(proto),proto.code){case 4:case 41:return ip.toString(buf);case 6:case 17:case 33:case 132:return buf2port(buf)}return buf.toString("hex")},Convert.toBuffer=function(proto,str){switch(proto=protocols(proto),proto.code){case 4:case 41:return ip.toBuffer(str);case 6:case 17:case 33:case 132:return port2buf(parseInt(str,10))}return new Buffer(str,"hex")}}).call(exports,__webpack_require__(1).Buffer)},function(module,exports,__webpack_require__){(function(Buffer){function Multiaddr(addr){if(!(this instanceof Multiaddr))return new Multiaddr(addr);if(addr||(addr=""),addr instanceof Buffer)this.buffer=codec.fromBuffer(addr);else if("string"==typeof addr||addr instanceof String)this.buffer=codec.fromString(addr);else{if(!(addr.buffer&&addr.protos&&addr.protoCodes))throw new Error("addr must be a string, Buffer, or Multiaddr");this.buffer=codec.fromBuffer(addr.buffer)}}var map=__webpack_require__(53),extend=__webpack_require__(17),codec=__webpack_require__(267),bufeq=__webpack_require__(161),protocols=__webpack_require__(56),NotImplemented=new Error("Sorry, Not Implemented Yet.");exports=module.exports=Multiaddr,exports.Buffer=Buffer,Multiaddr.prototype.toString=function(){return codec.bufferToString(this.buffer)},Multiaddr.prototype.toOptions=function(){var opts={},parsed=this.toString().split("/");return opts.family="ip4"===parsed[1]?"ipv4":"ipv6",opts.host=parsed[2],opts.port=parsed[4],opts},Multiaddr.prototype.inspect=function(){return""},Multiaddr.prototype.protos=function(){return map(this.protoCodes(),function(code){return extend(protocols(code))})},Multiaddr.prototype.protos=function(){return map(this.protoCodes(),function(code){return extend(protocols(code))})},Multiaddr.prototype.protoCodes=function(){for(var codes=[],i=0;ii)throw new Error("Address "+this+" does not contain subaddress: "+addr);return Multiaddr(s.slice(0,i))},Multiaddr.prototype.equals=function(addr){return bufeq(this.buffer,addr.buffer)},Multiaddr.prototype.nodeAddress=function(){if(!this.isThinWaistAddress())throw new Error('Multiaddr must be "thin waist" address for nodeAddress.');var codes=this.protoCodes(),parts=this.toString().split("/").slice(1);return{family:41===codes[0]?"IPv6":"IPv4",address:parts[1],port:parts[3]}},Multiaddr.fromNodeAddress=function(addr,transport){if(!addr)throw new Error("requires node address object");if(!transport)throw new Error("requires transport protocol");var ip="IPv6"===addr.family?"ip6":"ip4";return Multiaddr("/"+[ip,addr.address,transport,addr.port].join("/"))},Multiaddr.prototype.isThinWaistAddress=function(addr){var protos=(addr||this).protos();return 2!==protos.length?!1:4!==protos[0].code&&41!==protos[0].code?!1:6!==protos[1].code&&17!==protos[1].code?!1:!0},Multiaddr.prototype.fromStupidString=function(str){throw NotImplemented},Multiaddr.protocols=protocols}).call(exports,__webpack_require__(1).Buffer)},function(module,exports){/*! * normalize-path * * Copyright (c) 2014-2015, Jon Schlinkert. @@ -171,7 +171,7 @@ module.exports=function(str,stripTrailing){if("string"!=typeof str)throw new Typ * Copyright (c) 2014-2015, Jon Schlinkert. * Licensed under the MIT license. */ -"use strict";function randomize(){return Math.random().toString().slice(2,7)}exports.before=function(str,re){return str.replace(re,function(match){var id=randomize();return cache[id]=match,"__ID"+id+"__"})},exports.after=function(str){return str.replace(/__ID(.{5})__/g,function(_,id){return cache[id]})};var cache={}},function(module,exports){"use strict";function hasOwnProperty(obj,prop){return Object.prototype.hasOwnProperty.call(obj,prop)}module.exports=function(qs,sep,eq,options){sep=sep||"&",eq=eq||"=";var obj={};if("string"!=typeof qs||0===qs.length)return obj;var regexp=/\+/g;qs=qs.split(sep);var maxKeys=1e3;options&&"number"==typeof options.maxKeys&&(maxKeys=options.maxKeys);var len=qs.length;maxKeys>0&&len>maxKeys&&(len=maxKeys);for(var i=0;len>i;++i){var kstr,vstr,k,v,x=qs[i].replace(regexp,"%20"),idx=x.indexOf(eq);idx>=0?(kstr=x.substr(0,idx),vstr=x.substr(idx+1)):(kstr=x,vstr=""),k=decodeURIComponent(kstr),v=decodeURIComponent(vstr),hasOwnProperty(obj,k)?Array.isArray(obj[k])?obj[k].push(v):obj[k]=[obj[k],v]:obj[k]=v}return obj}},function(module,exports){"use strict";var stringifyPrimitive=function(v){switch(typeof v){case"string":return v;case"boolean":return v?"true":"false";case"number":return isFinite(v)?v:"";default:return""}};module.exports=function(obj,sep,eq,name){return sep=sep||"&",eq=eq||"=",null===obj&&(obj=void 0),"object"==typeof obj?Object.keys(obj).map(function(k){var ks=encodeURIComponent(stringifyPrimitive(k))+eq;return Array.isArray(obj[k])?obj[k].map(function(v){return ks+encodeURIComponent(stringifyPrimitive(v))}).join(sep):ks+encodeURIComponent(stringifyPrimitive(obj[k]))}).join(sep):name?encodeURIComponent(stringifyPrimitive(name))+eq+encodeURIComponent(stringifyPrimitive(obj)):""}},function(module,exports,__webpack_require__){"use strict";exports.decode=exports.parse=__webpack_require__(272),exports.encode=exports.stringify=__webpack_require__(273)},function(module,exports,__webpack_require__){/*! +"use strict";function randomize(){return Math.random().toString().slice(2,7)}exports.before=function(str,re){return str.replace(re,function(match){var id=randomize();return cache[id]=match,"__ID"+id+"__"})},exports.after=function(str){return str.replace(/__ID(.{5})__/g,function(_,id){return cache[id]})};var cache={}},function(module,exports){"use strict";function hasOwnProperty(obj,prop){return Object.prototype.hasOwnProperty.call(obj,prop)}module.exports=function(qs,sep,eq,options){sep=sep||"&",eq=eq||"=";var obj={};if("string"!=typeof qs||0===qs.length)return obj;var regexp=/\+/g;qs=qs.split(sep);var maxKeys=1e3;options&&"number"==typeof options.maxKeys&&(maxKeys=options.maxKeys);var len=qs.length;maxKeys>0&&len>maxKeys&&(len=maxKeys);for(var i=0;len>i;++i){var kstr,vstr,k,v,x=qs[i].replace(regexp,"%20"),idx=x.indexOf(eq);idx>=0?(kstr=x.substr(0,idx),vstr=x.substr(idx+1)):(kstr=x,vstr=""),k=decodeURIComponent(kstr),v=decodeURIComponent(vstr),hasOwnProperty(obj,k)?Array.isArray(obj[k])?obj[k].push(v):obj[k]=[obj[k],v]:obj[k]=v}return obj}},function(module,exports){"use strict";var stringifyPrimitive=function(v){switch(typeof v){case"string":return v;case"boolean":return v?"true":"false";case"number":return isFinite(v)?v:"";default:return""}};module.exports=function(obj,sep,eq,name){return sep=sep||"&",eq=eq||"=",null===obj&&(obj=void 0),"object"==typeof obj?Object.keys(obj).map(function(k){var ks=encodeURIComponent(stringifyPrimitive(k))+eq;return Array.isArray(obj[k])?obj[k].map(function(v){return ks+encodeURIComponent(stringifyPrimitive(v))}).join(sep):ks+encodeURIComponent(stringifyPrimitive(obj[k]))}).join(sep):name?encodeURIComponent(stringifyPrimitive(name))+eq+encodeURIComponent(stringifyPrimitive(obj)):""}},function(module,exports,__webpack_require__){"use strict";exports.decode=exports.parse=__webpack_require__(276),exports.encode=exports.stringify=__webpack_require__(277)},function(module,exports,__webpack_require__){/*! * randomatic * * This was originally inspired by @@ -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__(282)(Buffer);exports.sha1=__webpack_require__(284)(Buffer,Hash),exports.sha256=__webpack_require__(285)(Buffer,Hash),exports.sha512=__webpack_require__(286)(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=JSON.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;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__(330)(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__(319),dest:__webpack_require__(308),symlink:__webpack_require__(321)}},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__(309);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__(311),writeStream=__webpack_require__(312),writeBuffer=__webpack_require__(310),writeSymbolicLink=__webpack_require__(313);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__(317),readSymbolicLink=__webpack_require__(318),bufferFile=__webpack_require__(315),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__(314),isValidGlob=__webpack_require__(245),getContents=__webpack_require__(316),resolveSymlinks=__webpack_require__(320);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__(324),tree=__webpack_require__(325),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 +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"}}},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 a53bb781d8a7d4474d6258e26c3315662f72f704 Mon Sep 17 00:00:00 2001 From: David Dias Date: Sun, 21 Feb 2016 19:24:18 +0000 Subject: [PATCH 13/17] chore: build --- dist/ipfsapi.js | 2 +- dist/ipfsapi.min.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/ipfsapi.js b/dist/ipfsapi.js index 0763bd14f..bb9798e6d 100644 --- a/dist/ipfsapi.js +++ b/dist/ipfsapi.js @@ -35,7 +35,7 @@ var ipfsAPI = /******/ __webpack_require__.c = installedModules; /******/ // __webpack_public_path__ -/******/ __webpack_require__.p = ""; +/******/ __webpack_require__.p = "/_karma_webpack_//"; /******/ // Load entry module and return exports /******/ return __webpack_require__(0); diff --git a/dist/ipfsapi.min.js b/dist/ipfsapi.min.js index 25401803e..3a0a53c18 100644 --- a/dist/ipfsapi.min.js +++ b/dist/ipfsapi.min.js @@ -1,4 +1,4 @@ -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="",__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__(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){/*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh From 09d396d4a5c7c26a769cb05dc993029c69236190 Mon Sep 17 00:00:00 2001 From: David Dias Date: Sun, 21 Feb 2016 19:24:18 +0000 Subject: [PATCH 14/17] chore: release version v2.13.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 3a42307b3..4efe054c3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ipfs-api", - "version": "2.13.0", + "version": "2.13.1", "description": "A client library for the IPFS API", "main": "src/index.js", "dependencies": { From a3ef80362cac36ac2e3c92207fa03028ed196b6e Mon Sep 17 00:00:00 2001 From: Francisco Baio Dias Date: Wed, 24 Feb 2016 19:44:50 +0000 Subject: [PATCH 15/17] Avoid calling the cb twice when statusCode > 400 --- src/request-api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/request-api.js b/src/request-api.js index 37ef7d75b..eb8aa5908 100644 --- a/src/request-api.js +++ b/src/request-api.js @@ -30,7 +30,7 @@ function onRes (buffer, cb) { if (res.statusCode >= 400 || !res.statusCode) { const error = new Error(`Server responded with ${res.statusCode}`) - Wreck.read(res, {json: true}, (err, payload) => { + return Wreck.read(res, {json: true}, (err, payload) => { if (err) { return cb(err) } From 135739d7939cf3ab9413c2ff183e49c65595fb11 Mon Sep 17 00:00:00 2001 From: dignifiedquire Date: Thu, 25 Feb 2016 12:15:01 +0100 Subject: [PATCH 16/17] fix(object): Add new object patch methods --- src/api/object.js | 15 +++++- test/api/object.spec.js | 101 +++++++++++++++++++++++++++++++--------- 2 files changed, 93 insertions(+), 23 deletions(-) diff --git a/src/api/object.js b/src/api/object.js index ff5d7ba3f..890e0355f 100644 --- a/src/api/object.js +++ b/src/api/object.js @@ -15,8 +15,19 @@ module.exports = send => { links: argCommand(send, 'object/links'), stat: argCommand(send, 'object/stat'), new: argCommand(send, 'object/new'), - patch (file, opts, cb) { - return send('object/patch', [file].concat(opts), null, null, cb) + patch: { + rmLink: (root, link, cb) => { + return send('object/patch/rm-link', [root, link], null, null, cb) + }, + setData: (root, data, cb) => { + return send('object/patch/set-data', [root], null, data, cb) + }, + appendData: (root, data, cb) => { + return send('object/patch/append-data', [root], null, data, cb) + }, + addLink: (root, name, ref, cb) => { + return send('object/patch/add-link', [root, name, ref], null, null, cb) + } } } } diff --git a/test/api/object.spec.js b/test/api/object.spec.js index 09776e03f..88bd54513 100644 --- a/test/api/object.spec.js +++ b/test/api/object.spec.js @@ -66,32 +66,91 @@ describe('.object', () => { }) }) - // TODO: fix this - // the behaviour of ipfs object patch changed in 0.4.0 - // now patch is a parent command to: append-data, - // - it.skip('object.patch', done => { - apiClients['a'].object.put(testPatchObject, 'json', (err, res) => { - expect(err).to.not.exist - apiClients['a'].object.patch(testObjectHash, ['add-link', 'next', testPatchObjectHash], (err, res) => { + describe('object.path', () => { + before((done) => { + apiClients['a'].object.put(testPatchObject, 'json', (err, res) => { expect(err).to.not.exist - expect(res).to.be.eql({ - Hash: 'QmZFdJ3CQsY4kkyQtjoUo8oAzsEs5BNguxBhp8sjQMpgkd', - Links: null + done() + }) + }) + + it('.addLink', (done) => { + apiClients['a'].object.patch + .addLink(testObjectHash, 'next', testPatchObjectHash, (err, res) => { + expect(err).to.not.exist + expect(res).to.be.eql({ + Hash: 'QmZFdJ3CQsY4kkyQtjoUo8oAzsEs5BNguxBhp8sjQMpgkd', + Links: null + }) + apiClients['a'].object.get(res.Hash, (err, res2) => { + expect(err).to.not.exist + expect(res2).to.be.eql({ + Data: 'testdata', + Links: [{ + Name: 'next', + Hash: 'QmWJDtdQWQSajQPx1UVAGWKaSGrHVWdjnrNhbooHP7LuF2', + Size: 15 + }] + }) + done() + }) }) - apiClients['a'].object.get(res.Hash, (err, res2) => { + }) + + it('.rmLink', (done) => { + apiClients['a'].object.patch + .rmLink('QmZFdJ3CQsY4kkyQtjoUo8oAzsEs5BNguxBhp8sjQMpgkd', 'next', (err, res) => { expect(err).to.not.exist - expect(res2).to.be.eql({ - Data: 'testdata', - Links: [{ - Name: 'next', - Hash: 'QmWJDtdQWQSajQPx1UVAGWKaSGrHVWdjnrNhbooHP7LuF2', - Size: 15 - }] + expect(res).to.be.eql({ + Hash: testObjectHash, + Links: null + }) + apiClients['a'].object.get(res.Hash, (err, res2) => { + expect(err).to.not.exist + expect(res2).to.be.eql({ + Data: 'testdata', + Links: [] + }) + done() + }) + }) + }) + + it('.appendData', (done) => { + apiClients['a'].object.patch + .appendData(testObjectHash, new Buffer(' hello'), (err, res) => { + expect(err).to.not.exist + expect(res).to.be.eql({ + Hash: 'Qmcjhr2QztQxCAoEf8tJPTGTVkTsUrTQ36JurH14DNYNsc', + Links: null + }) + apiClients['a'].object.get(res.Hash, (err, res2) => { + expect(err).to.not.exist + expect(res2).to.be.eql({ + Data: 'testdata hello', + Links: [] + }) + done() + }) + }) + }) + it('.setData', (done) => { + apiClients['a'].object.patch + .setData(testObjectHash, new Buffer('hello world'), (err, res) => { + expect(err).to.not.exist + expect(res).to.be.eql({ + Hash: 'QmU1Sq1B7RPQD2XcQNLB58qJUyJffVJqihcxmmN1STPMxf', + Links: null + }) + apiClients['a'].object.get(res.Hash, (err, res2) => { + expect(err).to.not.exist + expect(res2).to.be.eql({ + Data: 'hello world', + Links: [] + }) + done() }) - done() }) - }) }) }) From a185c92f007cbf640d7877ed2c88deeffcd8ea25 Mon Sep 17 00:00:00 2001 From: David Dias Date: Thu, 25 Feb 2016 12:10:15 +0000 Subject: [PATCH 17/17] fix ls and refs --- test/api/ls.spec.js | 10 +++++----- test/api/refs.spec.js | 19 ++++++++----------- 2 files changed, 13 insertions(+), 16 deletions(-) diff --git a/test/api/ls.spec.js b/test/api/ls.spec.js index 8ebe3cdff..d2a823248 100644 --- a/test/api/ls.spec.js +++ b/test/api/ls.spec.js @@ -1,4 +1,4 @@ -'use strict' +/* eslint-env mocha */ const isNode = !global.window @@ -6,12 +6,12 @@ describe('ls', function () { it('should correctly retrieve links', function (done) { if (!isNode) return done() - apiClients['a'].ls('QmSzLpCVbWnEm3XoTWnv6DT6Ju5BsVoLhzvxKXZeQ2cmdg', (err, res) => { + apiClients['a'].ls('QmYwAPJzv5CZsnA625s3Xf2nemtYgPpHdWEz79ojWnPbdG', (err, res) => { expect(err).to.not.exist expect(res).to.have.a.property('Objects') expect(res.Objects[0]).to.have.a.property('Links') - expect(res.Objects[0]).to.have.property('Hash', 'QmSzLpCVbWnEm3XoTWnv6DT6Ju5BsVoLhzvxKXZeQ2cmdg') + expect(res.Objects[0]).to.have.property('Hash', 'QmYwAPJzv5CZsnA625s3Xf2nemtYgPpHdWEz79ojWnPbdG') done() }) }) @@ -38,11 +38,11 @@ describe('ls', function () { it('should correctly retrieve links', () => { if (!isNode) return - return apiClients['a'].ls('QmSzLpCVbWnEm3XoTWnv6DT6Ju5BsVoLhzvxKXZeQ2cmdg') + return apiClients['a'].ls('QmYwAPJzv5CZsnA625s3Xf2nemtYgPpHdWEz79ojWnPbdG') .then((res) => { expect(res).to.have.a.property('Objects') expect(res.Objects[0]).to.have.a.property('Links') - expect(res.Objects[0]).to.have.property('Hash', 'QmSzLpCVbWnEm3XoTWnv6DT6Ju5BsVoLhzvxKXZeQ2cmdg') + expect(res.Objects[0]).to.have.property('Hash', 'QmYwAPJzv5CZsnA625s3Xf2nemtYgPpHdWEz79ojWnPbdG') }) }) diff --git a/test/api/refs.spec.js b/test/api/refs.spec.js index f08bd18e9..d89167b16 100644 --- a/test/api/refs.spec.js +++ b/test/api/refs.spec.js @@ -1,27 +1,24 @@ -'use strict' +/* eslint-env mocha */ describe('.refs', () => { - const folder = 'QmSzLpCVbWnEm3XoTWnv6DT6Ju5BsVoLhzvxKXZeQ2cmdg' + const folder = 'QmYwAPJzv5CZsnA625s3Xf2nemtYgPpHdWEz79ojWnPbdG' const result = [{ - Ref: 'QmSzLpCVbWnEm3XoTWnv6DT6Ju5BsVoLhzvxKXZeQ2cmdg QmcUYKmQxmTcFom4R4UZP7FWeQzgJkwcFn51XrvsMy7PE9 add.js', + Ref: 'QmYwAPJzv5CZsnA625s3Xf2nemtYgPpHdWEz79ojWnPbdG QmZTR5bcpQD7cFgTorqxZDYaew1Wqgfbd2ud9QqGPAkK2V about', Err: '' }, { - Ref: 'QmSzLpCVbWnEm3XoTWnv6DT6Ju5BsVoLhzvxKXZeQ2cmdg QmNeHxDfQfjVFyYj2iruvysLH9zpp78v3cu1s3BZq1j5hY cat.js', + Ref: 'QmYwAPJzv5CZsnA625s3Xf2nemtYgPpHdWEz79ojWnPbdG QmYCvbfNbCwFR45HiNP45rwJgvatpiW38D961L5qAhUM5Y contact', Err: '' }, { - Ref: 'QmSzLpCVbWnEm3XoTWnv6DT6Ju5BsVoLhzvxKXZeQ2cmdg QmTYFLz5vsdMpq4XXw1a1pSxujJc9Z5V3Aw1Qg64d849Zy files', + Ref: 'QmYwAPJzv5CZsnA625s3Xf2nemtYgPpHdWEz79ojWnPbdG QmY5heUM5qgRubMDD1og9fhCPA6QdkMp3QCwd4s7gJsyE7 help', Err: '' }, { - Ref: 'QmSzLpCVbWnEm3XoTWnv6DT6Ju5BsVoLhzvxKXZeQ2cmdg QmU7wetVaAqc3Meurif9hcYBHGvQmL5QdpPJYBoZizyTNL ipfs-add.js', + Ref: 'QmYwAPJzv5CZsnA625s3Xf2nemtYgPpHdWEz79ojWnPbdG QmdncfsVm2h5Kqq9hPmU7oAVX2zTSVP3L869tgTbPYnsha quick-start', Err: '' }, { - Ref: 'QmSzLpCVbWnEm3XoTWnv6DT6Ju5BsVoLhzvxKXZeQ2cmdg QmctZfSuegbi2TMFY2y3VQjxsH5JbRBu7XmiLfHNvshhio ls.js', + Ref: 'QmYwAPJzv5CZsnA625s3Xf2nemtYgPpHdWEz79ojWnPbdG QmPZ9gcCEpqKTo6aq61g2nXGUhM4iCL3ewB6LDXZCtioEB readme', Err: '' }, { - Ref: 'QmSzLpCVbWnEm3XoTWnv6DT6Ju5BsVoLhzvxKXZeQ2cmdg QmTDH2RXGn8XyDAo9YyfbZAUXwL1FCr44YJCN9HBZmL9Gj test-folder', - Err: '' - }, { - Ref: 'QmSzLpCVbWnEm3XoTWnv6DT6Ju5BsVoLhzvxKXZeQ2cmdg QmbkMNB6rwfYAxRvnG9CWJ6cKKHEdq2ZKTozyF5FQ7H8Rs version.js', + Ref: 'QmYwAPJzv5CZsnA625s3Xf2nemtYgPpHdWEz79ojWnPbdG QmTumTjvcYCAvRRwQ8sDRxh8ezmrcr88YFU7iYNroGGTBZ security-notes', Err: '' }]