Skip to content

Instantly share code, notes, and snippets.

@maxkueng
Created August 24, 2013 09:13
Show Gist options
  • Save maxkueng/6327059 to your computer and use it in GitHub Desktop.
Save maxkueng/6327059 to your computer and use it in GitHub Desktop.
requirebin sketch
var Writable = require('readable-stream/writable'),
Readable = require('readable-stream/readable'),
QueryStream = require('querystream');
// Some sample data
var sampleData = [
{ x : 10, y : 200 },
{ x : 20, y : 190 },
{ x : 30, y : 180 },
{ x : 40, y : 170 },
{ x : 50, y : 160 },
{ x : 60, y : 150 },
{ x : 70, y : 140 },
{ x : 80, y : 130 },
{ x : 90, y : 120 },
{ x : 100, y : 110 }
];
// Create a readable stream that provides the sample data
var inputStream = new Readable({ objectMode : true });
inputStream._read = function (size) {
sampleData.forEach(function(data) {
inputStream.push(data);
});
inputStream.push(null);
};
// Create a writable stream that prints the data to the console
var outputStream = new Writable({ objectMode : true });
outputStream._write = function (chunk, encoding, next) {
console.log(chunk);
next();
};
// Create a new QueryStream that only emits data with
// an `x` property greater than 50
var greater50Stream = new QueryStream({
x : { $gt : 50 }
});
// Pipe it all together
inputStream
.pipe(greater50Stream)
.pipe(outputStream);
require=function(t,e,r){function n(r,o){if(!e[r]){if(!t[r]){var s="function"==typeof require&&require;if(!o&&s)return s(r,!0);if(i)return i(r,!0);throw Error("Cannot find module '"+r+"'")}var a=e[r]={exports:{}};t[r][0].call(a.exports,function(e){var i=t[r][1][e];return n(i?i:e)},a,a.exports)}return e[r].exports}for(var i="function"==typeof require&&require,o=0;r.length>o;o++)n(r[o]);return n}({1:[function(t,e,r){function n(t){return t instanceof Array||Array.isArray(t)||t&&t!==Object.prototype&&n(t.__proto__)}function i(t){return t instanceof RegExp||"object"==typeof t&&"[object RegExp]"===Object.prototype.toString.call(t)}function o(t){if(t instanceof Date)return!0;if("object"!=typeof t)return!1;var e=Date.prototype&&a(Date.prototype),r=t.__proto__&&a(t.__proto__);return JSON.stringify(r)===JSON.stringify(e)}t("events"),r.isArray=n,r.isDate=function(t){return"[object Date]"===Object.prototype.toString.call(t)},r.isRegExp=function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},r.print=function(){},r.puts=function(){},r.debug=function(){},r.inspect=function(t,e,u,f){function h(t,u){if(t&&"function"==typeof t.inspect&&t!==r&&(!t.constructor||t.constructor.prototype!==t))return t.inspect(u);switch(typeof t){case"undefined":return c("undefined","undefined");case"string":var f="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return c(f,"string");case"number":return c(""+t,"number");case"boolean":return c(""+t,"boolean")}if(null===t)return c("null","null");var p=s(t),d=e?a(t):p;if("function"==typeof t&&0===d.length){if(i(t))return c(""+t,"regexp");var g=t.name?": "+t.name:"";return c("[Function"+g+"]","special")}if(o(t)&&0===d.length)return c(t.toUTCString(),"date");var y,v,b;if(n(t)?(v="Array",b=["[","]"]):(v="Object",b=["{","}"]),"function"==typeof t){var w=t.name?": "+t.name:"";y=i(t)?" "+t:" [Function"+w+"]"}else y="";if(o(t)&&(y=" "+t.toUTCString()),0===d.length)return b[0]+y+b[1];if(0>u)return i(t)?c(""+t,"regexp"):c("[Object]","special");l.push(t);var m=d.map(function(e){var r,i;if(t.__lookupGetter__&&(t.__lookupGetter__(e)?i=t.__lookupSetter__(e)?c("[Getter/Setter]","special"):c("[Getter]","special"):t.__lookupSetter__(e)&&(i=c("[Setter]","special"))),0>p.indexOf(e)&&(r="["+e+"]"),i||(0>l.indexOf(t[e])?(i=null===u?h(t[e]):h(t[e],u-1),i.indexOf("\n")>-1&&(i=n(t)?i.split("\n").map(function(t){return" "+t}).join("\n").substr(2):"\n"+i.split("\n").map(function(t){return" "+t}).join("\n"))):i=c("[Circular]","special")),r===void 0){if("Array"===v&&e.match(/^\d+$/))return i;r=JSON.stringify(""+e),r.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(r=r.substr(1,r.length-2),r=c(r,"name")):(r=r.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),r=c(r,"string"))}return r+": "+i});l.pop();var E=0,_=m.reduce(function(t,e){return E++,e.indexOf("\n")>=0&&E++,t+e.length+1},0);return m=_>50?b[0]+(""===y?"":y+"\n ")+" "+m.join(",\n ")+" "+b[1]:b[0]+y+" "+m.join(", ")+" "+b[1]}var l=[],c=function(t,e){var r={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]},n={special:"cyan",number:"blue","boolean":"yellow",undefined:"grey","null":"bold",string:"green",date:"magenta",regexp:"red"}[e];return n?"["+r[n][0]+"m"+t+"["+r[n][1]+"m":t};return f||(c=function(t){return t}),h(t,u===void 0?2:u)},r.log=function(){},r.pump=null;var s=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e},a=Object.getOwnPropertyNames||function(t){var e=[];for(var r in t)Object.hasOwnProperty.call(t,r)&&e.push(r);return e},u=Object.create||function(t,e){var r;if(null===t)r={__proto__:null};else{if("object"!=typeof t)throw new TypeError("typeof prototype["+typeof t+"] != 'object'");var n=function(){};n.prototype=t,r=new n,r.__proto__=t}return e!==void 0&&Object.defineProperties&&Object.defineProperties(r,e),r};r.inherits=function(t,e){t.super_=e,t.prototype=u(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})};var f=/%[sdj%]/g;r.format=function(t){if("string"!=typeof t){for(var e=[],n=0;arguments.length>n;n++)e.push(r.inspect(arguments[n]));return e.join(" ")}for(var n=1,i=arguments,o=i.length,s=(t+"").replace(f,function(t){if("%%"===t)return"%";if(n>=o)return t;switch(t){case"%s":return i[n++]+"";case"%d":return Number(i[n++]);case"%j":return JSON.stringify(i[n++]);default:return t}}),a=i[n];o>n;a=i[++n])s+=null===a||"object"!=typeof a?" "+a:" "+r.inspect(a);return s}},{events:2}],querystream:[function(t,e){e.exports=t("KE/EwN")},{}],"KE/EwN":[function(t,e){"use strict";function r(t,e){return this instanceof r?(e instanceof Object||(e={}),e.objectMode=!0,n.call(this,e),this.match=o(t),void 0):new r(t,e)}var n=t("readable-stream").Transform,i=t("util").inherits,o=t("qry");i(r,n),r.prototype._transform=function(t,e,r){(t===void 0||null===t)&&this.push({}),this.match(t)&&this.push(t),r()},e.exports=r},{util:1,"readable-stream":3,qry:4}],5:[function(t,e){var r=e.exports={};r.nextTick=function(){var t="undefined"!=typeof window&&window.setImmediate,e="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(t)return function(t){return window.setImmediate(t)};if(e){var r=[];return window.addEventListener("message",function(t){if(t.source===window&&"process-tick"===t.data&&(t.stopPropagation(),r.length>0)){var e=r.shift();e()}},!0),function(t){r.push(t),window.postMessage("process-tick","*")}}return function(t){setTimeout(t,0)}}(),r.title="browser",r.browser=!0,r.env={},r.argv=[],r.binding=function(){throw Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(){throw Error("process.chdir is not supported")}},{}],2:[function(t,e,r){(function(t){function e(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0;t.length>r;r++)if(e===t[r])return r;return-1}t.EventEmitter||(t.EventEmitter=function(){});var n=r.EventEmitter=t.EventEmitter,i="function"==typeof Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},o=10;n.prototype.setMaxListeners=function(t){this._events||(this._events={}),this._events.maxListeners=t},n.prototype.emit=function(t){if("error"===t&&(!this._events||!this._events.error||i(this._events.error)&&!this._events.error.length))throw arguments[1]instanceof Error?arguments[1]:Error("Uncaught, unspecified 'error' event.");if(!this._events)return!1;var e=this._events[t];if(!e)return!1;if("function"==typeof e){switch(arguments.length){case 1:e.call(this);break;case 2:e.call(this,arguments[1]);break;case 3:e.call(this,arguments[1],arguments[2]);break;default:var r=Array.prototype.slice.call(arguments,1);e.apply(this,r)}return!0}if(i(e)){for(var r=Array.prototype.slice.call(arguments,1),n=e.slice(),o=0,s=n.length;s>o;o++)n[o].apply(this,r);return!0}return!1},n.prototype.addListener=function(t,e){if("function"!=typeof e)throw Error("addListener only takes instances of Function");if(this._events||(this._events={}),this.emit("newListener",t,e),this._events[t])if(i(this._events[t])){if(!this._events[t].warned){var r;r=void 0!==this._events.maxListeners?this._events.maxListeners:o,r&&r>0&&this._events[t].length>r&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),console.trace())}this._events[t].push(e)}else this._events[t]=[this._events[t],e];else this._events[t]=e;return this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(t,e){var r=this;return r.on(t,function n(){r.removeListener(t,n),e.apply(this,arguments)}),this},n.prototype.removeListener=function(t,r){if("function"!=typeof r)throw Error("removeListener only takes instances of Function");if(!this._events||!this._events[t])return this;var n=this._events[t];if(i(n)){var o=e(n,r);if(0>o)return this;n.splice(o,1),0==n.length&&delete this._events[t]}else this._events[t]===r&&delete this._events[t];return this},n.prototype.removeAllListeners=function(t){return 0===arguments.length?(this._events={},this):(t&&this._events&&this._events[t]&&(this._events[t]=null),this)},n.prototype.listeners=function(t){return this._events||(this._events={}),this._events[t]||(this._events[t]=[]),i(this._events[t])||(this._events[t]=[this._events[t]]),this._events[t]}})(t("__browserify_process"))},{__browserify_process:5}],4:[function(t,e){(function(){"use strict";function t(t,e){function n(t,e){if(!(t instanceof Array))return!1;if(t.length!==e.length)return!1;for(var r=0;e.length>r;r++)if(t[r]!==e[r])return!1;return!0}function i(t,e){for(var r in e)if(e.hasOwnProperty(r)){var n=r;if(n in s){if(!s[n](t,e[r],e))return!1}else if(!o(t[r],e[r]))return!1}return!0}function o(t,e){return e instanceof RegExp?e.test(t):e instanceof Array?n(t,e):"object"==typeof e?i(t,e):e===t}e=e||r;var s={$all:function(t,e){if(!(e instanceof Array&&t instanceof Array))return!1;for(var r=0;e.length>r;r++)if(-1===t.indexOf(e[r]))return!1;return!0},$gt:function(t,e){return t>e},$gte:function(t,e){return t>=e},$in:function(t,e){return-1!==e.indexOf(t)},$lt:function(t,e){return e>t},$lte:function(t,e){return e>=t},$ne:function(t,e){return t!==e},$nin:function(t,e){return t===void 0?!0:-1===e.indexOf(t)},$and:function(t,e){for(var r=0;e.length>r;r++)if(!o(t,e[r]))return!1;return!0},$nor:function(t,e){for(var r=0;e.length>r;r++)if(o(t,e[r]))return!1;return!0},$not:function(t,e){return!o(t,e)},$or:function(t,e){for(var r=0;e.length>r;r++)if(o(t,e[r]))return!0;return!1},$exists:function(t,e){return t!==void 0===e},$mod:function(t,e){var r=e[0],n=e[1];return t%r===n},$regex:function(t,e,r){var n=r.$options;return RegExp(e,n).test(t)},$options:function(){return!0},$where:function(t,r){return e.$where?("function"==typeof r&&(r="return ("+(""+r)+").call(this);"),r=Function("obj",r),!!r.call(t,t)):!1},$elemMatch:function(t,e){for(var r=0;t.length>r;r++)if(o(t[r],e))return!0;return!1},$size:function(t,e){return t.length===e}};return function(e){return o(e,t)}}e.exports=t;var r={$where:!1}})()},{}],3:[function(t,e,r){r=e.exports=t("./lib/_stream_readable.js"),r.Readable=r,r.Writable=t("./lib/_stream_writable.js"),r.Duplex=t("./lib/_stream_duplex.js"),r.Transform=t("./lib/_stream_transform.js"),r.PassThrough=t("./lib/_stream_passthrough.js")},{"./lib/_stream_readable.js":6,"./lib/_stream_duplex.js":7,"./lib/_stream_transform.js":8,"./lib/_stream_writable.js":9,"./lib/_stream_passthrough.js":10}],11:[function(t,e){t=function(t,e,r,n){function i(n){if(!r[n]){if(!e[n]){if(t)return t(n);throw Error("Cannot find module '"+n+"'")}var o=r[n]={exports:{}};e[n][0](function(t){var r=e[n][1][t];return i(r?r:t)},o,o.exports)}return r[n].exports}for(var o=0;n.length>o;o++)i(n[o]);return i}(t!==void 0&&t,{1:[function(t,e){function r(t){if(Object.keys)return Object.keys(t);var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.push(r);return e}function n(t,e){return void 0===e?""+e:"number"!=typeof e||!isNaN(e)&&isFinite(e)?"function"==typeof e||e instanceof RegExp?""+e:e:""+e}function i(t,e){return"string"==typeof t?e>t.length?t:t.slice(0,e):t}function o(t,e,r,n,i){throw new y.AssertionError({message:r,actual:t,expected:e,operator:n,stackStartFunction:i})}function s(t,e){t||o(t,!0,e,"==",y.ok)}function a(t,e){if(t===e)return!0;if(d.isBuffer(t)&&d.isBuffer(e)){if(t.length!=e.length)return!1;for(var r=0;t.length>r;r++)if(t[r]!==e[r])return!1;return!0}return t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():"object"!=typeof t&&"object"!=typeof e?t==e:h(t,e)}function u(t){return null===t||void 0===t}function f(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function h(t,e){if(u(t)||u(e))return!1;if(t.prototype!==e.prototype)return!1;if(f(t))return f(e)?(t=g.call(t),e=g.call(e),a(t,e)):!1;try{var n,i,o=r(t),s=r(e)}catch(h){return!1}if(o.length!=s.length)return!1;for(o.sort(),s.sort(),i=o.length-1;i>=0;i--)if(o[i]!=s[i])return!1;for(i=o.length-1;i>=0;i--)if(n=o[i],!a(t[n],e[n]))return!1;return!0}function l(t,e){return t&&e?e instanceof RegExp?e.test(t):t instanceof e?!0:e.call({},t)===!0?!0:!1:!1}function c(t,e,r,n){var i;"string"==typeof r&&(n=r,r=null);try{e()}catch(s){i=s}if(n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),t&&!i&&o("Missing expected exception"+n),!t&&l(i,r)&&o("Got unwanted exception"+n),t&&i&&r&&!l(i,r)||!t&&i)throw i}var p=t("util"),d=t("buffer").Buffer,g=Array.prototype.slice,y=e.exports=s;y.AssertionError=function(t){this.name="AssertionError",this.message=t.message,this.actual=t.actual,this.expected=t.expected,this.operator=t.operator;var e=t.stackStartFunction||o;Error.captureStackTrace&&Error.captureStackTrace(this,e)},p.inherits(y.AssertionError,Error),y.AssertionError.prototype.toString=function(){return this.message?[this.name+":",this.message].join(" "):[this.name+":",i(JSON.stringify(this.actual,n),128),this.operator,i(JSON.stringify(this.expected,n),128)].join(" ")},y.AssertionError.__proto__=Error.prototype,y.fail=o,y.ok=s,y.equal=function(t,e,r){t!=e&&o(t,e,r,"==",y.equal)},y.notEqual=function(t,e,r){t==e&&o(t,e,r,"!=",y.notEqual)},y.deepEqual=function(t,e,r){a(t,e)||o(t,e,r,"deepEqual",y.deepEqual)},y.notDeepEqual=function(t,e,r){a(t,e)&&o(t,e,r,"notDeepEqual",y.notDeepEqual)},y.strictEqual=function(t,e,r){t!==e&&o(t,e,r,"===",y.strictEqual)},y.notStrictEqual=function(t,e,r){t===e&&o(t,e,r,"!==",y.notStrictEqual)},y.throws=function(){c.apply(this,[!0].concat(g.call(arguments)))},y.doesNotThrow=function(){c.apply(this,[!1].concat(g.call(arguments)))},y.ifError=function(t){if(t)throw t}},{util:2,buffer:3}],2:[function(t,e,r){function n(t){return t instanceof Array||Array.isArray(t)||t&&t!==Object.prototype&&n(t.__proto__)}function i(t){return t instanceof RegExp||"object"==typeof t&&"[object RegExp]"===Object.prototype.toString.call(t)}function o(t){if(t instanceof Date)return!0;if("object"!=typeof t)return!1;var e=Date.prototype&&a(Date.prototype),r=t.__proto__&&a(t.__proto__);return JSON.stringify(r)===JSON.stringify(e)}t("events"),r.isArray=n,r.isDate=function(t){return"[object Date]"===Object.prototype.toString.call(t)},r.isRegExp=function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},r.print=function(){},r.puts=function(){},r.debug=function(){},r.inspect=function(t,e,u,f){function h(t,u){if(t&&"function"==typeof t.inspect&&t!==r&&(!t.constructor||t.constructor.prototype!==t))return t.inspect(u);switch(typeof t){case"undefined":return c("undefined","undefined");case"string":var f="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return c(f,"string");case"number":return c(""+t,"number");case"boolean":return c(""+t,"boolean")}if(null===t)return c("null","null");var p=s(t),d=e?a(t):p;if("function"==typeof t&&0===d.length){if(i(t))return c(""+t,"regexp");var g=t.name?": "+t.name:"";return c("[Function"+g+"]","special")}if(o(t)&&0===d.length)return c(t.toUTCString(),"date");var y,v,b;if(n(t)?(v="Array",b=["[","]"]):(v="Object",b=["{","}"]),"function"==typeof t){var w=t.name?": "+t.name:"";y=i(t)?" "+t:" [Function"+w+"]"}else y="";if(o(t)&&(y=" "+t.toUTCString()),0===d.length)return b[0]+y+b[1];if(0>u)return i(t)?c(""+t,"regexp"):c("[Object]","special");l.push(t);var m=d.map(function(e){var r,i;if(t.__lookupGetter__&&(t.__lookupGetter__(e)?i=t.__lookupSetter__(e)?c("[Getter/Setter]","special"):c("[Getter]","special"):t.__lookupSetter__(e)&&(i=c("[Setter]","special"))),0>p.indexOf(e)&&(r="["+e+"]"),i||(0>l.indexOf(t[e])?(i=null===u?h(t[e]):h(t[e],u-1),i.indexOf("\n")>-1&&(i=n(t)?i.split("\n").map(function(t){return" "+t}).join("\n").substr(2):"\n"+i.split("\n").map(function(t){return" "+t}).join("\n"))):i=c("[Circular]","special")),r===void 0){if("Array"===v&&e.match(/^\d+$/))return i;r=JSON.stringify(""+e),r.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(r=r.substr(1,r.length-2),r=c(r,"name")):(r=r.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),r=c(r,"string"))}return r+": "+i});l.pop();var E=0,_=m.reduce(function(t,e){return E++,e.indexOf("\n")>=0&&E++,t+e.length+1},0);return m=_>50?b[0]+(""===y?"":y+"\n ")+" "+m.join(",\n ")+" "+b[1]:b[0]+y+" "+m.join(", ")+" "+b[1]}var l=[],c=function(t,e){var r={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]},n={special:"cyan",number:"blue","boolean":"yellow",undefined:"grey","null":"bold",string:"green",date:"magenta",regexp:"red"}[e];return n?"["+r[n][0]+"m"+t+"["+r[n][1]+"m":t};return f||(c=function(t){return t}),h(t,u===void 0?2:u)},r.log=function(){},r.pump=null;var s=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e},a=Object.getOwnPropertyNames||function(t){var e=[];for(var r in t)Object.hasOwnProperty.call(t,r)&&e.push(r);return e},u=Object.create||function(t,e){var r;if(null===t)r={__proto__:null};else{if("object"!=typeof t)throw new TypeError("typeof prototype["+typeof t+"] != 'object'");var n=function(){};n.prototype=t,r=new n,r.__proto__=t}return e!==void 0&&Object.defineProperties&&Object.defineProperties(r,e),r};r.inherits=function(t,e){t.super_=e,t.prototype=u(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})};var f=/%[sdj%]/g;r.format=function(t){if("string"!=typeof t){for(var e=[],n=0;arguments.length>n;n++)e.push(r.inspect(arguments[n]));return e.join(" ")}for(var n=1,i=arguments,o=i.length,s=(t+"").replace(f,function(t){if("%%"===t)return"%";if(n>=o)return t;switch(t){case"%s":return i[n++]+"";case"%d":return Number(i[n++]);case"%j":return JSON.stringify(i[n++]);default:return t}}),a=i[n];o>n;a=i[++n])s+=null===a||"object"!=typeof a?" "+a:" "+r.inspect(a);return s}},{events:4}],5:[function(t,e,r){r.readIEEE754=function(t,e,r,n,i){var o,s,a=8*i-n-1,u=(1<<a)-1,f=u>>1,h=-7,l=r?0:i-1,c=r?1:-1,p=t[e+l];for(l+=c,o=p&(1<<-h)-1,p>>=-h,h+=a;h>0;o=256*o+t[e+l],l+=c,h-=8);for(s=o&(1<<-h)-1,o>>=-h,h+=n;h>0;s=256*s+t[e+l],l+=c,h-=8);if(0===o)o=1-f;else{if(o===u)return s?0/0:1/0*(p?-1:1);s+=Math.pow(2,n),o-=f}return(p?-1:1)*s*Math.pow(2,o-n)},r.writeIEEE754=function(t,e,r,n,i,o){var s,a,u,f=8*o-i-1,h=(1<<f)-1,l=h>>1,c=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?o-1:0,d=n?-1:1,g=0>e||0===e&&0>1/e?1:0;for(e=Math.abs(e),isNaN(e)||1/0===e?(a=isNaN(e)?1:0,s=h):(s=Math.floor(Math.log(e)/Math.LN2),1>e*(u=Math.pow(2,-s))&&(s--,u*=2),e+=s+l>=1?c/u:c*Math.pow(2,1-l),e*u>=2&&(s++,u/=2),s+l>=h?(a=0,s=h):s+l>=1?(a=(e*u-1)*Math.pow(2,i),s+=l):(a=e*Math.pow(2,l-1)*Math.pow(2,i),s=0));i>=8;t[r+p]=255&a,p+=d,a/=256,i-=8);for(s=s<<i|a,f+=i;f>0;t[r+p]=255&s,p+=d,s/=256,f-=8);t[r+p-d]|=128*g}},{}],6:[function(t,e){var r=e.exports={};r.nextTick=function(){var t="undefined"!=typeof window&&window.setImmediate,e="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(t)return function(t){return window.setImmediate(t)};if(e){var r=[];return window.addEventListener("message",function(t){if(t.source===window&&"process-tick"===t.data&&(t.stopPropagation(),r.length>0)){var e=r.shift();e()}},!0),function(t){r.push(t),window.postMessage("process-tick","*")}}return function(t){setTimeout(t,0)}}(),r.title="browser",r.browser=!0,r.env={},r.argv=[],r.binding=function(){throw Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(){throw Error("process.chdir is not supported")}},{}],4:[function(t,e,r){(function(t){function e(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0;t.length>r;r++)if(e===t[r])return r;return-1}t.EventEmitter||(t.EventEmitter=function(){});var n=r.EventEmitter=t.EventEmitter,i="function"==typeof Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},o=10;n.prototype.setMaxListeners=function(t){this._events||(this._events={}),this._events.maxListeners=t},n.prototype.emit=function(t){if("error"===t&&(!this._events||!this._events.error||i(this._events.error)&&!this._events.error.length))throw arguments[1]instanceof Error?arguments[1]:Error("Uncaught, unspecified 'error' event.");if(!this._events)return!1;var e=this._events[t];if(!e)return!1;if("function"==typeof e){switch(arguments.length){case 1:e.call(this);break;case 2:e.call(this,arguments[1]);break;case 3:e.call(this,arguments[1],arguments[2]);break;default:var r=Array.prototype.slice.call(arguments,1);e.apply(this,r)}return!0}if(i(e)){for(var r=Array.prototype.slice.call(arguments,1),n=e.slice(),o=0,s=n.length;s>o;o++)n[o].apply(this,r);return!0}return!1},n.prototype.addListener=function(t,e){if("function"!=typeof e)throw Error("addListener only takes instances of Function");if(this._events||(this._events={}),this.emit("newListener",t,e),this._events[t])if(i(this._events[t])){if(!this._events[t].warned){var r;r=void 0!==this._events.maxListeners?this._events.maxListeners:o,r&&r>0&&this._events[t].length>r&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),console.trace())}this._events[t].push(e)}else this._events[t]=[this._events[t],e];else this._events[t]=e;return this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(t,e){var r=this;return r.on(t,function n(){r.removeListener(t,n),e.apply(this,arguments)}),this},n.prototype.removeListener=function(t,r){if("function"!=typeof r)throw Error("removeListener only takes instances of Function");if(!this._events||!this._events[t])return this;var n=this._events[t];if(i(n)){var o=e(n,r);if(0>o)return this;n.splice(o,1),0==n.length&&delete this._events[t]}else this._events[t]===r&&delete this._events[t];return this},n.prototype.removeAllListeners=function(t){return 0===arguments.length?(this._events={},this):(t&&this._events&&this._events[t]&&(this._events[t]=null),this)},n.prototype.listeners=function(t){return this._events||(this._events={}),this._events[t]||(this._events[t]=[]),i(this._events[t])||(this._events[t]=[this._events[t]]),this._events[t]}})(t("__browserify_process"))},{__browserify_process:6}],"buffer-browserify":[function(t,e){e.exports=t("q9TxCC")},{}],q9TxCC:[function(t,e,r){function n(t){this.length=t}function i(t){return 16>t?"0"+t.toString(16):t.toString(16)}function o(t){for(var e=[],r=0;t.length>r;r++)if(127>=t.charCodeAt(r))e.push(t.charCodeAt(r));else for(var n=encodeURIComponent(t.charAt(r)).substr(1).split("%"),i=0;n.length>i;i++)e.push(parseInt(n[i],16));return e}function s(t){for(var e=[],r=0;t.length>r;r++)e.push(255&t.charCodeAt(r));return e}function a(e){return t("base64-js").toByteArray(e)}function u(t,e,r,n){for(var i=0;n>i&&!(i+r>=e.length||i>=t.length);)e[i+r]=t[i],i++;return i}function f(t){try{return decodeURIComponent(t)}catch(e){return String.fromCharCode(65533)}}function h(t){return t=~~Math.ceil(+t),0>t?0:t}function l(t,e,r){if(!(this instanceof l))return new l(t,e,r);var i;if("number"==typeof r)this.length=h(e),this.parent=t,this.offset=r;else{switch(i=typeof t){case"number":this.length=h(t);break;case"string":this.length=l.byteLength(t,e);break;case"object":this.length=h(t.length);break;default:throw Error("First argument needs to be a number, array or string.")}if(this.length>l.poolSize?(this.parent=new n(this.length),this.offset=0):((!A||A.length-A.used<this.length)&&p(),this.parent=A,this.offset=A.used,A.used+=this.length),c(t))for(var o=0;this.length>o;o++)this.parent[o+this.offset]=t instanceof l?t.readUInt8(o):t[o];else"string"==i&&(this.length=this.write(t,0,e))}}function c(t){return Array.isArray(t)||l.isBuffer(t)||t&&"object"==typeof t&&"number"==typeof t.length}function p(){A=new n(l.poolSize),A.used=0}function d(t,e,r,n){var i=0;return n||(j.ok("boolean"==typeof r,"missing or invalid endian"),j.ok(void 0!==e&&null!==e,"missing offset"),j.ok(t.length>e+1,"Trying to read beyond buffer length")),e>=t.length?0:(r?(i=t.parent[t.offset+e]<<8,t.length>e+1&&(i|=t.parent[t.offset+e+1])):(i=t.parent[t.offset+e],t.length>e+1&&(i|=t.parent[t.offset+e+1]<<8)),i)}function g(t,e,r,n){var i=0;return n||(j.ok("boolean"==typeof r,"missing or invalid endian"),j.ok(void 0!==e&&null!==e,"missing offset"),j.ok(t.length>e+3,"Trying to read beyond buffer length")),e>=t.length?0:(r?(t.length>e+1&&(i=t.parent[t.offset+e+1]<<16),t.length>e+2&&(i|=t.parent[t.offset+e+2]<<8),t.length>e+3&&(i|=t.parent[t.offset+e+3]),i+=t.parent[t.offset+e]<<24>>>0):(t.length>e+2&&(i=t.parent[t.offset+e+2]<<16),t.length>e+1&&(i|=t.parent[t.offset+e+1]<<8),i|=t.parent[t.offset+e],t.length>e+3&&(i+=t.parent[t.offset+e+3]<<24>>>0)),i)}function y(t,e,r,n){var i,o;return n||(j.ok("boolean"==typeof r,"missing or invalid endian"),j.ok(void 0!==e&&null!==e,"missing offset"),j.ok(t.length>e+1,"Trying to read beyond buffer length")),o=d(t,e,r,n),i=32768&o,i?-1*(65535-o+1):o}function v(t,e,r,n){var i,o;return n||(j.ok("boolean"==typeof r,"missing or invalid endian"),j.ok(void 0!==e&&null!==e,"missing offset"),j.ok(t.length>e+3,"Trying to read beyond buffer length")),o=g(t,e,r,n),i=2147483648&o,i?-1*(4294967295-o+1):o}function b(e,r,n,i){return i||(j.ok("boolean"==typeof n,"missing or invalid endian"),j.ok(e.length>r+3,"Trying to read beyond buffer length")),t("./buffer_ieee754").readIEEE754(e,r,n,23,4)}function w(e,r,n,i){return i||(j.ok("boolean"==typeof n,"missing or invalid endian"),j.ok(e.length>r+7,"Trying to read beyond buffer length")),t("./buffer_ieee754").readIEEE754(e,r,n,52,8)}function m(t,e){j.ok("number"==typeof t,"cannot write a non-number as a number"),j.ok(t>=0,"specified a negative value for writing an unsigned value"),j.ok(e>=t,"value is larger than maximum value for type"),j.ok(Math.floor(t)===t,"value has a fractional component")}function E(t,e,r,n,i){i||(j.ok(void 0!==e&&null!==e,"missing value"),j.ok("boolean"==typeof n,"missing or invalid endian"),j.ok(void 0!==r&&null!==r,"missing offset"),j.ok(t.length>r+1,"trying to write beyond buffer length"),m(e,65535));for(var o=0;Math.min(t.length-r,2)>o;o++)t.parent[t.offset+r+o]=(e&255<<8*(n?1-o:o))>>>8*(n?1-o:o)}function _(t,e,r,n,i){i||(j.ok(void 0!==e&&null!==e,"missing value"),j.ok("boolean"==typeof n,"missing or invalid endian"),j.ok(void 0!==r&&null!==r,"missing offset"),j.ok(t.length>r+3,"trying to write beyond buffer length"),m(e,4294967295));for(var o=0;Math.min(t.length-r,4)>o;o++)t.parent[t.offset+r+o]=255&e>>>8*(n?3-o:o)}function k(t,e,r){j.ok("number"==typeof t,"cannot write a non-number as a number"),j.ok(e>=t,"value larger than maximum allowed value"),j.ok(t>=r,"value smaller than minimum allowed value"),j.ok(Math.floor(t)===t,"value has a fractional component")}function S(t,e,r){j.ok("number"==typeof t,"cannot write a non-number as a number"),j.ok(e>=t,"value larger than maximum allowed value"),j.ok(t>=r,"value smaller than minimum allowed value")}function I(t,e,r,n,i){i||(j.ok(void 0!==e&&null!==e,"missing value"),j.ok("boolean"==typeof n,"missing or invalid endian"),j.ok(void 0!==r&&null!==r,"missing offset"),j.ok(t.length>r+1,"Trying to write beyond buffer length"),k(e,32767,-32768)),e>=0?E(t,e,r,n,i):E(t,65535+e+1,r,n,i)}function L(t,e,r,n,i){i||(j.ok(void 0!==e&&null!==e,"missing value"),j.ok("boolean"==typeof n,"missing or invalid endian"),j.ok(void 0!==r&&null!==r,"missing offset"),j.ok(t.length>r+3,"Trying to write beyond buffer length"),k(e,2147483647,-2147483648)),e>=0?_(t,e,r,n,i):_(t,4294967295+e+1,r,n,i)}function x(e,r,n,i,o){o||(j.ok(void 0!==r&&null!==r,"missing value"),j.ok("boolean"==typeof i,"missing or invalid endian"),j.ok(void 0!==n&&null!==n,"missing offset"),j.ok(e.length>n+3,"Trying to write beyond buffer length"),S(r,3.4028234663852886e38,-3.4028234663852886e38)),t("./buffer_ieee754").writeIEEE754(e,r,n,i,23,4)}function B(e,r,n,i,o){o||(j.ok(void 0!==r&&null!==r,"missing value"),j.ok("boolean"==typeof i,"missing or invalid endian"),j.ok(void 0!==n&&null!==n,"missing offset"),j.ok(e.length>n+7,"Trying to write beyond buffer length"),S(r,1.7976931348623157e308,-1.7976931348623157e308)),t("./buffer_ieee754").writeIEEE754(e,r,n,i,52,8)}var j=t("assert");r.INSPECT_MAX_BYTES=50,n.byteLength=function(t,e){switch(e||"utf8"){case"hex":return t.length/2;case"utf8":case"utf-8":return o(t).length;case"ascii":case"binary":return t.length;case"base64":return a(t).length;default:throw Error("Unknown encoding")}},n.prototype.utf8Write=function(t,e,r){return n._charsWritten=u(o(t),this,e,r)},n.prototype.asciiWrite=function(t,e,r){return n._charsWritten=u(s(t),this,e,r)},n.prototype.binaryWrite=n.prototype.asciiWrite,n.prototype.base64Write=function(t,e,r){return n._charsWritten=u(a(t),this,e,r)},n.prototype.base64Slice=function(){var e=Array.prototype.slice.apply(this,arguments);return t("base64-js").fromByteArray(e)},n.prototype.utf8Slice=function(){for(var t=Array.prototype.slice.apply(this,arguments),e="",r="",n=0;t.length>n;)127>=t[n]?(e+=f(r)+String.fromCharCode(t[n]),r=""):r+="%"+t[n].toString(16),n++;return e+f(r)},n.prototype.asciiSlice=function(){for(var t=Array.prototype.slice.apply(this,arguments),e="",r=0;t.length>r;r++)e+=String.fromCharCode(t[r]);return e},n.prototype.binarySlice=n.prototype.asciiSlice,n.prototype.inspect=function(){for(var t=[],e=this.length,n=0;e>n;n++)if(t[n]=i(this[n]),n==r.INSPECT_MAX_BYTES){t[n+1]="...";break}return"<SlowBuffer "+t.join(" ")+">"},n.prototype.hexSlice=function(t,e){var r=this.length;(!t||0>t)&&(t=0),(!e||0>e||e>r)&&(e=r);for(var n="",o=t;e>o;o++)n+=i(this[o]);return n},n.prototype.toString=function(t,e,r){if(t=((t||"utf8")+"").toLowerCase(),e=+e||0,r===void 0&&(r=this.length),+r==e)return"";switch(t){case"hex":return this.hexSlice(e,r);case"utf8":case"utf-8":return this.utf8Slice(e,r);case"ascii":return this.asciiSlice(e,r);case"binary":return this.binarySlice(e,r);case"base64":return this.base64Slice(e,r);case"ucs2":case"ucs-2":return this.ucs2Slice(e,r);default:throw Error("Unknown encoding")}},n.prototype.hexWrite=function(t,e,r){e=+e||0;var i=this.length-e;r?(r=+r,r>i&&(r=i)):r=i;var o=t.length;if(o%2)throw Error("Invalid hex string");r>o/2&&(r=o/2);for(var s=0;r>s;s++){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))throw Error("Invalid hex string");this[e+s]=a}return n._charsWritten=2*s,s},n.prototype.write=function(t,e,r,n){if(isFinite(e))isFinite(r)||(n=r,r=void 0);else{var i=n;n=e,e=r,r=i}e=+e||0;var o=this.length-e;switch(r?(r=+r,r>o&&(r=o)):r=o,n=((n||"utf8")+"").toLowerCase()){case"hex":return this.hexWrite(t,e,r);case"utf8":case"utf-8":return this.utf8Write(t,e,r);case"ascii":return this.asciiWrite(t,e,r);case"binary":return this.binaryWrite(t,e,r);case"base64":return this.base64Write(t,e,r);case"ucs2":case"ucs-2":return this.ucs2Write(t,e,r);default:throw Error("Unknown encoding")}},n.prototype.slice=function(t,e){if(void 0===e&&(e=this.length),e>this.length)throw Error("oob");if(t>e)throw Error("oob");return new l(this,e-t,+t)},n.prototype.copy=function(t,e,r,n){for(var i=[],o=r;n>o;o++)j.ok(this[o]!==void 0,"copying undefined buffer bytes!"),i.push(this[o]);for(var o=e;e+i.length>o;o++)t[o]=i[o-e]},n.prototype.fill=function(t,e,r){if(r>this.length)throw Error("oob");if(e>r)throw Error("oob");for(var n=e;r>n;n++)this[n]=t},r.SlowBuffer=n,r.Buffer=l,l.poolSize=8192;var A;l.isBuffer=function(t){return t instanceof l||t instanceof n},l.concat=function(t,e){if(!Array.isArray(t))throw Error("Usage: Buffer.concat(list, [totalLength])\n list should be an Array.");if(0===t.length)return new l(0);if(1===t.length)return t[0];if("number"!=typeof e){e=0;for(var r=0;t.length>r;r++){var n=t[r];e+=n.length}}for(var i=new l(e),o=0,r=0;t.length>r;r++){var n=t[r];n.copy(i,o),o+=n.length}return i},l.prototype.inspect=function(){for(var t=[],e=this.length,n=0;e>n;n++)if(t[n]=i(this.parent[n+this.offset]),n==r.INSPECT_MAX_BYTES){t[n+1]="...";break}return"<Buffer "+t.join(" ")+">"},l.prototype.get=function(t){if(0>t||t>=this.length)throw Error("oob");return this.parent[this.offset+t]},l.prototype.set=function(t,e){if(0>t||t>=this.length)throw Error("oob");
return this.parent[this.offset+t]=e},l.prototype.write=function(t,e,r,i){if(isFinite(e))isFinite(r)||(i=r,r=void 0);else{var o=i;i=e,e=r,r=o}e=+e||0;var s=this.length-e;r?(r=+r,r>s&&(r=s)):r=s,i=((i||"utf8")+"").toLowerCase();var a;switch(i){case"hex":a=this.parent.hexWrite(t,this.offset+e,r);break;case"utf8":case"utf-8":a=this.parent.utf8Write(t,this.offset+e,r);break;case"ascii":a=this.parent.asciiWrite(t,this.offset+e,r);break;case"binary":a=this.parent.binaryWrite(t,this.offset+e,r);break;case"base64":a=this.parent.base64Write(t,this.offset+e,r);break;case"ucs2":case"ucs-2":a=this.parent.ucs2Write(t,this.offset+e,r);break;default:throw Error("Unknown encoding")}return l._charsWritten=n._charsWritten,a},l.prototype.toString=function(t,e,r){switch(t=((t||"utf8")+"").toLowerCase(),e===void 0||0>e?e=0:e>this.length&&(e=this.length),r===void 0||r>this.length?r=this.length:0>r&&(r=0),e+=this.offset,r+=this.offset,t){case"hex":return this.parent.hexSlice(e,r);case"utf8":case"utf-8":return this.parent.utf8Slice(e,r);case"ascii":return this.parent.asciiSlice(e,r);case"binary":return this.parent.binarySlice(e,r);case"base64":return this.parent.base64Slice(e,r);case"ucs2":case"ucs-2":return this.parent.ucs2Slice(e,r);default:throw Error("Unknown encoding")}},l.byteLength=n.byteLength,l.prototype.fill=function(t,e,r){if(t||(t=0),e||(e=0),r||(r=this.length),"string"==typeof t&&(t=t.charCodeAt(0)),"number"!=typeof t||isNaN(t))throw Error("value is not a number");if(e>r)throw Error("end < start");if(r===e)return 0;if(0==this.length)return 0;if(0>e||e>=this.length)throw Error("start out of bounds");if(0>r||r>this.length)throw Error("end out of bounds");return this.parent.fill(t,e+this.offset,r+this.offset)},l.prototype.copy=function(t,e,r,n){var i=this;if(r||(r=0),n||(n=this.length),e||(e=0),r>n)throw Error("sourceEnd < sourceStart");if(n===r)return 0;if(0==t.length||0==i.length)return 0;if(0>e||e>=t.length)throw Error("targetStart out of bounds");if(0>r||r>=i.length)throw Error("sourceStart out of bounds");if(0>n||n>i.length)throw Error("sourceEnd out of bounds");return n>this.length&&(n=this.length),n-r>t.length-e&&(n=t.length-e+r),this.parent.copy(t.parent,e+t.offset,r+this.offset,n+this.offset)},l.prototype.slice=function(t,e){if(void 0===e&&(e=this.length),e>this.length)throw Error("oob");if(t>e)throw Error("oob");return new l(this.parent,e-t,+t+this.offset)},l.prototype.utf8Slice=function(t,e){return this.toString("utf8",t,e)},l.prototype.binarySlice=function(t,e){return this.toString("binary",t,e)},l.prototype.asciiSlice=function(t,e){return this.toString("ascii",t,e)},l.prototype.utf8Write=function(t,e){return this.write(t,e,"utf8")},l.prototype.binaryWrite=function(t,e){return this.write(t,e,"binary")},l.prototype.asciiWrite=function(t,e){return this.write(t,e,"ascii")},l.prototype.readUInt8=function(t,e){var r=this;return e||(j.ok(void 0!==t&&null!==t,"missing offset"),j.ok(r.length>t,"Trying to read beyond buffer length")),t>=r.length?void 0:r.parent[r.offset+t]},l.prototype.readUInt16LE=function(t,e){return d(this,t,!1,e)},l.prototype.readUInt16BE=function(t,e){return d(this,t,!0,e)},l.prototype.readUInt32LE=function(t,e){return g(this,t,!1,e)},l.prototype.readUInt32BE=function(t,e){return g(this,t,!0,e)},l.prototype.readInt8=function(t,e){var r,n=this;return e||(j.ok(void 0!==t&&null!==t,"missing offset"),j.ok(n.length>t,"Trying to read beyond buffer length")),t>=n.length?void 0:(r=128&n.parent[n.offset+t],r?-1*(255-n.parent[n.offset+t]+1):n.parent[n.offset+t])},l.prototype.readInt16LE=function(t,e){return y(this,t,!1,e)},l.prototype.readInt16BE=function(t,e){return y(this,t,!0,e)},l.prototype.readInt32LE=function(t,e){return v(this,t,!1,e)},l.prototype.readInt32BE=function(t,e){return v(this,t,!0,e)},l.prototype.readFloatLE=function(t,e){return b(this,t,!1,e)},l.prototype.readFloatBE=function(t,e){return b(this,t,!0,e)},l.prototype.readDoubleLE=function(t,e){return w(this,t,!1,e)},l.prototype.readDoubleBE=function(t,e){return w(this,t,!0,e)},l.prototype.writeUInt8=function(t,e,r){var n=this;r||(j.ok(void 0!==t&&null!==t,"missing value"),j.ok(void 0!==e&&null!==e,"missing offset"),j.ok(n.length>e,"trying to write beyond buffer length"),m(t,255)),n.length>e&&(n.parent[n.offset+e]=t)},l.prototype.writeUInt16LE=function(t,e,r){E(this,t,e,!1,r)},l.prototype.writeUInt16BE=function(t,e,r){E(this,t,e,!0,r)},l.prototype.writeUInt32LE=function(t,e,r){_(this,t,e,!1,r)},l.prototype.writeUInt32BE=function(t,e,r){_(this,t,e,!0,r)},l.prototype.writeInt8=function(t,e,r){var n=this;r||(j.ok(void 0!==t&&null!==t,"missing value"),j.ok(void 0!==e&&null!==e,"missing offset"),j.ok(n.length>e,"Trying to write beyond buffer length"),k(t,127,-128)),t>=0?n.writeUInt8(t,e,r):n.writeUInt8(255+t+1,e,r)},l.prototype.writeInt16LE=function(t,e,r){I(this,t,e,!1,r)},l.prototype.writeInt16BE=function(t,e,r){I(this,t,e,!0,r)},l.prototype.writeInt32LE=function(t,e,r){L(this,t,e,!1,r)},l.prototype.writeInt32BE=function(t,e,r){L(this,t,e,!0,r)},l.prototype.writeFloatLE=function(t,e,r){x(this,t,e,!1,r)},l.prototype.writeFloatBE=function(t,e,r){x(this,t,e,!0,r)},l.prototype.writeDoubleLE=function(t,e,r){B(this,t,e,!1,r)},l.prototype.writeDoubleBE=function(t,e,r){B(this,t,e,!0,r)},n.prototype.readUInt8=l.prototype.readUInt8,n.prototype.readUInt16LE=l.prototype.readUInt16LE,n.prototype.readUInt16BE=l.prototype.readUInt16BE,n.prototype.readUInt32LE=l.prototype.readUInt32LE,n.prototype.readUInt32BE=l.prototype.readUInt32BE,n.prototype.readInt8=l.prototype.readInt8,n.prototype.readInt16LE=l.prototype.readInt16LE,n.prototype.readInt16BE=l.prototype.readInt16BE,n.prototype.readInt32LE=l.prototype.readInt32LE,n.prototype.readInt32BE=l.prototype.readInt32BE,n.prototype.readFloatLE=l.prototype.readFloatLE,n.prototype.readFloatBE=l.prototype.readFloatBE,n.prototype.readDoubleLE=l.prototype.readDoubleLE,n.prototype.readDoubleBE=l.prototype.readDoubleBE,n.prototype.writeUInt8=l.prototype.writeUInt8,n.prototype.writeUInt16LE=l.prototype.writeUInt16LE,n.prototype.writeUInt16BE=l.prototype.writeUInt16BE,n.prototype.writeUInt32LE=l.prototype.writeUInt32LE,n.prototype.writeUInt32BE=l.prototype.writeUInt32BE,n.prototype.writeInt8=l.prototype.writeInt8,n.prototype.writeInt16LE=l.prototype.writeInt16LE,n.prototype.writeInt16BE=l.prototype.writeInt16BE,n.prototype.writeInt32LE=l.prototype.writeInt32LE,n.prototype.writeInt32BE=l.prototype.writeInt32BE,n.prototype.writeFloatLE=l.prototype.writeFloatLE,n.prototype.writeFloatBE=l.prototype.writeFloatBE,n.prototype.writeDoubleLE=l.prototype.writeDoubleLE,n.prototype.writeDoubleBE=l.prototype.writeDoubleBE},{assert:1,"./buffer_ieee754":5,"base64-js":7}],7:[function(t,e){(function(){"use strict";function t(t){var e,r,i,o,s,a;if(t.length%4>0)throw"Invalid string. Length must be a multiple of 4";for(s=t.indexOf("="),s=s>0?t.length-s:0,a=[],i=s>0?t.length-4:t.length,e=0,r=0;i>e;e+=4,r+=3)o=n.indexOf(t[e])<<18|n.indexOf(t[e+1])<<12|n.indexOf(t[e+2])<<6|n.indexOf(t[e+3]),a.push((16711680&o)>>16),a.push((65280&o)>>8),a.push(255&o);return 2===s?(o=n.indexOf(t[e])<<2|n.indexOf(t[e+1])>>4,a.push(255&o)):1===s&&(o=n.indexOf(t[e])<<10|n.indexOf(t[e+1])<<4|n.indexOf(t[e+2])>>2,a.push(255&o>>8),a.push(255&o)),a}function r(t){function e(t){return n[63&t>>18]+n[63&t>>12]+n[63&t>>6]+n[63&t]}var r,i,o,s=t.length%3,a="";for(r=0,o=t.length-s;o>r;r+=3)i=(t[r]<<16)+(t[r+1]<<8)+t[r+2],a+=e(i);switch(s){case 1:i=t[t.length-1],a+=n[i>>2],a+=n[63&i<<4],a+="==";break;case 2:i=(t[t.length-2]<<8)+t[t.length-1],a+=n[i>>10],a+=n[63&i>>4],a+=n[63&i<<2],a+="="}return a}var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";e.exports.toByteArray=t,e.exports.fromByteArray=r})()},{}],8:[function(t,e,r){r.readIEEE754=function(t,e,r,n,i){var o,s,a=8*i-n-1,u=(1<<a)-1,f=u>>1,h=-7,l=r?0:i-1,c=r?1:-1,p=t[e+l];for(l+=c,o=p&(1<<-h)-1,p>>=-h,h+=a;h>0;o=256*o+t[e+l],l+=c,h-=8);for(s=o&(1<<-h)-1,o>>=-h,h+=n;h>0;s=256*s+t[e+l],l+=c,h-=8);if(0===o)o=1-f;else{if(o===u)return s?0/0:1/0*(p?-1:1);s+=Math.pow(2,n),o-=f}return(p?-1:1)*s*Math.pow(2,o-n)},r.writeIEEE754=function(t,e,r,n,i,o){var s,a,u,f=8*o-i-1,h=(1<<f)-1,l=h>>1,c=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?o-1:0,d=n?-1:1,g=0>e||0===e&&0>1/e?1:0;for(e=Math.abs(e),isNaN(e)||1/0===e?(a=isNaN(e)?1:0,s=h):(s=Math.floor(Math.log(e)/Math.LN2),1>e*(u=Math.pow(2,-s))&&(s--,u*=2),e+=s+l>=1?c/u:c*Math.pow(2,1-l),e*u>=2&&(s++,u/=2),s+l>=h?(a=0,s=h):s+l>=1?(a=(e*u-1)*Math.pow(2,i),s+=l):(a=e*Math.pow(2,l-1)*Math.pow(2,i),s=0));i>=8;t[r+p]=255&a,p+=d,a/=256,i-=8);for(s=s<<i|a,f+=i;f>0;t[r+p]=255&s,p+=d,s/=256,f-=8);t[r+p-d]|=128*g}},{}],3:[function(t,e,r){function n(t){this.length=t}function i(t){return 16>t?"0"+t.toString(16):t.toString(16)}function o(t){for(var e=[],r=0;t.length>r;r++)if(127>=t.charCodeAt(r))e.push(t.charCodeAt(r));else for(var n=encodeURIComponent(t.charAt(r)).substr(1).split("%"),i=0;n.length>i;i++)e.push(parseInt(n[i],16));return e}function s(t){for(var e=[],r=0;t.length>r;r++)e.push(255&t.charCodeAt(r));return e}function a(e){return t("base64-js").toByteArray(e)}function u(t,e,r,n){for(var i=0;n>i&&!(i+r>=e.length||i>=t.length);)e[i+r]=t[i],i++;return i}function f(t){try{return decodeURIComponent(t)}catch(e){return String.fromCharCode(65533)}}function h(t){return t=~~Math.ceil(+t),0>t?0:t}function l(t,e,r){if(!(this instanceof l))return new l(t,e,r);var i;if("number"==typeof r)this.length=h(e),this.parent=t,this.offset=r;else{switch(i=typeof t){case"number":this.length=h(t);break;case"string":this.length=l.byteLength(t,e);break;case"object":this.length=h(t.length);break;default:throw Error("First argument needs to be a number, array or string.")}if(this.length>l.poolSize?(this.parent=new n(this.length),this.offset=0):((!A||A.length-A.used<this.length)&&p(),this.parent=A,this.offset=A.used,A.used+=this.length),c(t))for(var o=0;this.length>o;o++)this.parent[o+this.offset]=t[o];else"string"==i&&(this.length=this.write(t,0,e))}}function c(t){return Array.isArray(t)||l.isBuffer(t)||t&&"object"==typeof t&&"number"==typeof t.length}function p(){A=new n(l.poolSize),A.used=0}function d(t,e,r,n){var i=0;return n||(j.ok("boolean"==typeof r,"missing or invalid endian"),j.ok(void 0!==e&&null!==e,"missing offset"),j.ok(t.length>e+1,"Trying to read beyond buffer length")),r?(i=t.parent[t.offset+e]<<8,i|=t.parent[t.offset+e+1]):(i=t.parent[t.offset+e],i|=t.parent[t.offset+e+1]<<8),i}function g(t,e,r,n){var i=0;return n||(j.ok("boolean"==typeof r,"missing or invalid endian"),j.ok(void 0!==e&&null!==e,"missing offset"),j.ok(t.length>e+3,"Trying to read beyond buffer length")),r?(i=t.parent[t.offset+e+1]<<16,i|=t.parent[t.offset+e+2]<<8,i|=t.parent[t.offset+e+3],i+=t.parent[t.offset+e]<<24>>>0):(i=t.parent[t.offset+e+2]<<16,i|=t.parent[t.offset+e+1]<<8,i|=t.parent[t.offset+e],i+=t.parent[t.offset+e+3]<<24>>>0),i}function y(t,e,r,n){var i,o;return n||(j.ok("boolean"==typeof r,"missing or invalid endian"),j.ok(void 0!==e&&null!==e,"missing offset"),j.ok(t.length>e+1,"Trying to read beyond buffer length")),o=d(t,e,r,n),i=32768&o,i?-1*(65535-o+1):o}function v(t,e,r,n){var i,o;return n||(j.ok("boolean"==typeof r,"missing or invalid endian"),j.ok(void 0!==e&&null!==e,"missing offset"),j.ok(t.length>e+3,"Trying to read beyond buffer length")),o=g(t,e,r,n),i=2147483648&o,i?-1*(4294967295-o+1):o}function b(e,r,n,i){return i||(j.ok("boolean"==typeof n,"missing or invalid endian"),j.ok(e.length>r+3,"Trying to read beyond buffer length")),t("./buffer_ieee754").readIEEE754(e,r,n,23,4)}function w(e,r,n,i){return i||(j.ok("boolean"==typeof n,"missing or invalid endian"),j.ok(e.length>r+7,"Trying to read beyond buffer length")),t("./buffer_ieee754").readIEEE754(e,r,n,52,8)}function m(t,e){j.ok("number"==typeof t,"cannot write a non-number as a number"),j.ok(t>=0,"specified a negative value for writing an unsigned value"),j.ok(e>=t,"value is larger than maximum value for type"),j.ok(Math.floor(t)===t,"value has a fractional component")}function E(t,e,r,n,i){i||(j.ok(void 0!==e&&null!==e,"missing value"),j.ok("boolean"==typeof n,"missing or invalid endian"),j.ok(void 0!==r&&null!==r,"missing offset"),j.ok(t.length>r+1,"trying to write beyond buffer length"),m(e,65535)),n?(t.parent[t.offset+r]=(65280&e)>>>8,t.parent[t.offset+r+1]=255&e):(t.parent[t.offset+r+1]=(65280&e)>>>8,t.parent[t.offset+r]=255&e)}function _(t,e,r,n,i){i||(j.ok(void 0!==e&&null!==e,"missing value"),j.ok("boolean"==typeof n,"missing or invalid endian"),j.ok(void 0!==r&&null!==r,"missing offset"),j.ok(t.length>r+3,"trying to write beyond buffer length"),m(e,4294967295)),n?(t.parent[t.offset+r]=255&e>>>24,t.parent[t.offset+r+1]=255&e>>>16,t.parent[t.offset+r+2]=255&e>>>8,t.parent[t.offset+r+3]=255&e):(t.parent[t.offset+r+3]=255&e>>>24,t.parent[t.offset+r+2]=255&e>>>16,t.parent[t.offset+r+1]=255&e>>>8,t.parent[t.offset+r]=255&e)}function k(t,e,r){j.ok("number"==typeof t,"cannot write a non-number as a number"),j.ok(e>=t,"value larger than maximum allowed value"),j.ok(t>=r,"value smaller than minimum allowed value"),j.ok(Math.floor(t)===t,"value has a fractional component")}function S(t,e,r){j.ok("number"==typeof t,"cannot write a non-number as a number"),j.ok(e>=t,"value larger than maximum allowed value"),j.ok(t>=r,"value smaller than minimum allowed value")}function I(t,e,r,n,i){i||(j.ok(void 0!==e&&null!==e,"missing value"),j.ok("boolean"==typeof n,"missing or invalid endian"),j.ok(void 0!==r&&null!==r,"missing offset"),j.ok(t.length>r+1,"Trying to write beyond buffer length"),k(e,32767,-32768)),e>=0?E(t,e,r,n,i):E(t,65535+e+1,r,n,i)}function L(t,e,r,n,i){i||(j.ok(void 0!==e&&null!==e,"missing value"),j.ok("boolean"==typeof n,"missing or invalid endian"),j.ok(void 0!==r&&null!==r,"missing offset"),j.ok(t.length>r+3,"Trying to write beyond buffer length"),k(e,2147483647,-2147483648)),e>=0?_(t,e,r,n,i):_(t,4294967295+e+1,r,n,i)}function x(e,r,n,i,o){o||(j.ok(void 0!==r&&null!==r,"missing value"),j.ok("boolean"==typeof i,"missing or invalid endian"),j.ok(void 0!==n&&null!==n,"missing offset"),j.ok(e.length>n+3,"Trying to write beyond buffer length"),S(r,3.4028234663852886e38,-3.4028234663852886e38)),t("./buffer_ieee754").writeIEEE754(e,r,n,i,23,4)}function B(e,r,n,i,o){o||(j.ok(void 0!==r&&null!==r,"missing value"),j.ok("boolean"==typeof i,"missing or invalid endian"),j.ok(void 0!==n&&null!==n,"missing offset"),j.ok(e.length>n+7,"Trying to write beyond buffer length"),S(r,1.7976931348623157e308,-1.7976931348623157e308)),t("./buffer_ieee754").writeIEEE754(e,r,n,i,52,8)}var j=t("assert");r.INSPECT_MAX_BYTES=50,n.byteLength=function(t,e){switch(e||"utf8"){case"hex":return t.length/2;case"utf8":case"utf-8":return o(t).length;case"ascii":return t.length;case"base64":return a(t).length;default:throw Error("Unknown encoding")}},n.prototype.utf8Write=function(t,e,r){return n._charsWritten=u(o(t),this,e,r)},n.prototype.asciiWrite=function(t,e,r){return n._charsWritten=u(s(t),this,e,r)},n.prototype.base64Write=function(t,e,r){return n._charsWritten=u(a(t),this,e,r)},n.prototype.base64Slice=function(){var e=Array.prototype.slice.apply(this,arguments);return t("base64-js").fromByteArray(e)},n.prototype.utf8Slice=function(){for(var t=Array.prototype.slice.apply(this,arguments),e="",r="",n=0;t.length>n;)127>=t[n]?(e+=f(r)+String.fromCharCode(t[n]),r=""):r+="%"+t[n].toString(16),n++;return e+f(r)},n.prototype.asciiSlice=function(){for(var t=Array.prototype.slice.apply(this,arguments),e="",r=0;t.length>r;r++)e+=String.fromCharCode(t[r]);return e},n.prototype.inspect=function(){for(var t=[],e=this.length,n=0;e>n;n++)if(t[n]=i(this[n]),n==r.INSPECT_MAX_BYTES){t[n+1]="...";break}return"<SlowBuffer "+t.join(" ")+">"},n.prototype.hexSlice=function(t,e){var r=this.length;(!t||0>t)&&(t=0),(!e||0>e||e>r)&&(e=r);for(var n="",o=t;e>o;o++)n+=i(this[o]);return n},n.prototype.toString=function(t,e,r){if(t=((t||"utf8")+"").toLowerCase(),e=+e||0,r===void 0&&(r=this.length),+r==e)return"";switch(t){case"hex":return this.hexSlice(e,r);case"utf8":case"utf-8":return this.utf8Slice(e,r);case"ascii":return this.asciiSlice(e,r);case"binary":return this.binarySlice(e,r);case"base64":return this.base64Slice(e,r);case"ucs2":case"ucs-2":return this.ucs2Slice(e,r);default:throw Error("Unknown encoding")}},n.prototype.hexWrite=function(t,e,r){e=+e||0;var i=this.length-e;r?(r=+r,r>i&&(r=i)):r=i;var o=t.length;if(o%2)throw Error("Invalid hex string");r>o/2&&(r=o/2);for(var s=0;r>s;s++){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))throw Error("Invalid hex string");this[e+s]=a}return n._charsWritten=2*s,s},n.prototype.write=function(t,e,r,n){if(isFinite(e))isFinite(r)||(n=r,r=void 0);else{var i=n;n=e,e=r,r=i}e=+e||0;var o=this.length-e;switch(r?(r=+r,r>o&&(r=o)):r=o,n=((n||"utf8")+"").toLowerCase()){case"hex":return this.hexWrite(t,e,r);case"utf8":case"utf-8":return this.utf8Write(t,e,r);case"ascii":return this.asciiWrite(t,e,r);case"binary":return this.binaryWrite(t,e,r);case"base64":return this.base64Write(t,e,r);case"ucs2":case"ucs-2":return this.ucs2Write(t,e,r);default:throw Error("Unknown encoding")}},n.prototype.slice=function(t,e){if(void 0===e&&(e=this.length),e>this.length)throw Error("oob");if(t>e)throw Error("oob");return new l(this,e-t,+t)},n.prototype.copy=function(t,e,r,n){for(var i=[],o=r;n>o;o++)j.ok(this[o]!==void 0,"copying undefined buffer bytes!"),i.push(this[o]);for(var o=e;e+i.length>o;o++)t[o]=i[o-e]},r.SlowBuffer=n,r.Buffer=l,l.poolSize=8192;var A;l.isBuffer=function(t){return t instanceof l||t instanceof n},l.concat=function(t,e){if(!Array.isArray(t))throw Error("Usage: Buffer.concat(list, [totalLength])\n list should be an Array.");if(0===t.length)return new l(0);if(1===t.length)return t[0];if("number"!=typeof e){e=0;for(var r=0;t.length>r;r++){var n=t[r];e+=n.length}}for(var i=new l(e),o=0,r=0;t.length>r;r++){var n=t[r];n.copy(i,o),o+=n.length}return i},l.prototype.inspect=function(){for(var t=[],e=this.length,n=0;e>n;n++)if(t[n]=i(this.parent[n+this.offset]),n==r.INSPECT_MAX_BYTES){t[n+1]="...";break}return"<Buffer "+t.join(" ")+">"},l.prototype.get=function(t){if(0>t||t>=this.length)throw Error("oob");return this.parent[this.offset+t]},l.prototype.set=function(t,e){if(0>t||t>=this.length)throw Error("oob");return this.parent[this.offset+t]=e},l.prototype.write=function(t,e,r,i){if(isFinite(e))isFinite(r)||(i=r,r=void 0);else{var o=i;i=e,e=r,r=o}e=+e||0;var s=this.length-e;r?(r=+r,r>s&&(r=s)):r=s,i=((i||"utf8")+"").toLowerCase();var a;switch(i){case"hex":a=this.parent.hexWrite(t,this.offset+e,r);break;case"utf8":case"utf-8":a=this.parent.utf8Write(t,this.offset+e,r);break;case"ascii":a=this.parent.asciiWrite(t,this.offset+e,r);break;case"binary":a=this.parent.binaryWrite(t,this.offset+e,r);break;case"base64":a=this.parent.base64Write(t,this.offset+e,r);break;case"ucs2":case"ucs-2":a=this.parent.ucs2Write(t,this.offset+e,r);break;default:throw Error("Unknown encoding")}return l._charsWritten=n._charsWritten,a},l.prototype.toString=function(t,e,r){switch(t=((t||"utf8")+"").toLowerCase(),e===void 0||0>e?e=0:e>this.length&&(e=this.length),r===void 0||r>this.length?r=this.length:0>r&&(r=0),e+=this.offset,r+=this.offset,t){case"hex":return this.parent.hexSlice(e,r);case"utf8":case"utf-8":return this.parent.utf8Slice(e,r);case"ascii":return this.parent.asciiSlice(e,r);case"binary":return this.parent.binarySlice(e,r);case"base64":return this.parent.base64Slice(e,r);case"ucs2":case"ucs-2":return this.parent.ucs2Slice(e,r);default:throw Error("Unknown encoding")}},l.byteLength=n.byteLength,l.prototype.fill=function(t,e,r){if(t||(t=0),e||(e=0),r||(r=this.length),"string"==typeof t&&(t=t.charCodeAt(0)),"number"!=typeof t||isNaN(t))throw Error("value is not a number");if(e>r)throw Error("end < start");if(r===e)return 0;if(0==this.length)return 0;if(0>e||e>=this.length)throw Error("start out of bounds");if(0>r||r>this.length)throw Error("end out of bounds");return this.parent.fill(t,e+this.offset,r+this.offset)},l.prototype.copy=function(t,e,r,n){var i=this;if(r||(r=0),n||(n=this.length),e||(e=0),r>n)throw Error("sourceEnd < sourceStart");if(n===r)return 0;if(0==t.length||0==i.length)return 0;if(0>e||e>=t.length)throw Error("targetStart out of bounds");if(0>r||r>=i.length)throw Error("sourceStart out of bounds");if(0>n||n>i.length)throw Error("sourceEnd out of bounds");return n>this.length&&(n=this.length),n-r>t.length-e&&(n=t.length-e+r),this.parent.copy(t.parent,e+t.offset,r+this.offset,n+this.offset)},l.prototype.slice=function(t,e){if(void 0===e&&(e=this.length),e>this.length)throw Error("oob");if(t>e)throw Error("oob");return new l(this.parent,e-t,+t+this.offset)},l.prototype.utf8Slice=function(t,e){return this.toString("utf8",t,e)},l.prototype.binarySlice=function(t,e){return this.toString("binary",t,e)},l.prototype.asciiSlice=function(t,e){return this.toString("ascii",t,e)},l.prototype.utf8Write=function(t,e){return this.write(t,e,"utf8")},l.prototype.binaryWrite=function(t,e){return this.write(t,e,"binary")},l.prototype.asciiWrite=function(t,e){return this.write(t,e,"ascii")},l.prototype.readUInt8=function(t,e){var r=this;return e||(j.ok(void 0!==t&&null!==t,"missing offset"),j.ok(r.length>t,"Trying to read beyond buffer length")),r.parent[r.offset+t]},l.prototype.readUInt16LE=function(t,e){return d(this,t,!1,e)},l.prototype.readUInt16BE=function(t,e){return d(this,t,!0,e)},l.prototype.readUInt32LE=function(t,e){return g(this,t,!1,e)},l.prototype.readUInt32BE=function(t,e){return g(this,t,!0,e)},l.prototype.readInt8=function(t,e){var r,n=this;return e||(j.ok(void 0!==t&&null!==t,"missing offset"),j.ok(n.length>t,"Trying to read beyond buffer length")),r=128&n.parent[n.offset+t],r?-1*(255-n.parent[n.offset+t]+1):n.parent[n.offset+t]},l.prototype.readInt16LE=function(t,e){return y(this,t,!1,e)},l.prototype.readInt16BE=function(t,e){return y(this,t,!0,e)},l.prototype.readInt32LE=function(t,e){return v(this,t,!1,e)},l.prototype.readInt32BE=function(t,e){return v(this,t,!0,e)},l.prototype.readFloatLE=function(t,e){return b(this,t,!1,e)},l.prototype.readFloatBE=function(t,e){return b(this,t,!0,e)},l.prototype.readDoubleLE=function(t,e){return w(this,t,!1,e)},l.prototype.readDoubleBE=function(t,e){return w(this,t,!0,e)},l.prototype.writeUInt8=function(t,e,r){var n=this;r||(j.ok(void 0!==t&&null!==t,"missing value"),j.ok(void 0!==e&&null!==e,"missing offset"),j.ok(n.length>e,"trying to write beyond buffer length"),m(t,255)),n.parent[n.offset+e]=t},l.prototype.writeUInt16LE=function(t,e,r){E(this,t,e,!1,r)},l.prototype.writeUInt16BE=function(t,e,r){E(this,t,e,!0,r)},l.prototype.writeUInt32LE=function(t,e,r){_(this,t,e,!1,r)},l.prototype.writeUInt32BE=function(t,e,r){_(this,t,e,!0,r)},l.prototype.writeInt8=function(t,e,r){var n=this;r||(j.ok(void 0!==t&&null!==t,"missing value"),j.ok(void 0!==e&&null!==e,"missing offset"),j.ok(n.length>e,"Trying to write beyond buffer length"),k(t,127,-128)),t>=0?n.writeUInt8(t,e,r):n.writeUInt8(255+t+1,e,r)},l.prototype.writeInt16LE=function(t,e,r){I(this,t,e,!1,r)},l.prototype.writeInt16BE=function(t,e,r){I(this,t,e,!0,r)},l.prototype.writeInt32LE=function(t,e,r){L(this,t,e,!1,r)},l.prototype.writeInt32BE=function(t,e,r){L(this,t,e,!0,r)},l.prototype.writeFloatLE=function(t,e,r){x(this,t,e,!1,r)},l.prototype.writeFloatBE=function(t,e,r){x(this,t,e,!0,r)},l.prototype.writeDoubleLE=function(t,e,r){B(this,t,e,!1,r)},l.prototype.writeDoubleBE=function(t,e,r){B(this,t,e,!0,r)},n.prototype.readUInt8=l.prototype.readUInt8,n.prototype.readUInt16LE=l.prototype.readUInt16LE,n.prototype.readUInt16BE=l.prototype.readUInt16BE,n.prototype.readUInt32LE=l.prototype.readUInt32LE,n.prototype.readUInt32BE=l.prototype.readUInt32BE,n.prototype.readInt8=l.prototype.readInt8,n.prototype.readInt16LE=l.prototype.readInt16LE,n.prototype.readInt16BE=l.prototype.readInt16BE,n.prototype.readInt32LE=l.prototype.readInt32LE,n.prototype.readInt32BE=l.prototype.readInt32BE,n.prototype.readFloatLE=l.prototype.readFloatLE,n.prototype.readFloatBE=l.prototype.readFloatBE,n.prototype.readDoubleLE=l.prototype.readDoubleLE,n.prototype.readDoubleBE=l.prototype.readDoubleBE,n.prototype.writeUInt8=l.prototype.writeUInt8,n.prototype.writeUInt16LE=l.prototype.writeUInt16LE,n.prototype.writeUInt16BE=l.prototype.writeUInt16BE,n.prototype.writeUInt32LE=l.prototype.writeUInt32LE,n.prototype.writeUInt32BE=l.prototype.writeUInt32BE,n.prototype.writeInt8=l.prototype.writeInt8,n.prototype.writeInt16LE=l.prototype.writeInt16LE,n.prototype.writeInt16BE=l.prototype.writeInt16BE,n.prototype.writeInt32LE=l.prototype.writeInt32LE,n.prototype.writeInt32BE=l.prototype.writeInt32BE,n.prototype.writeFloatLE=l.prototype.writeFloatLE,n.prototype.writeFloatBE=l.prototype.writeFloatBE,n.prototype.writeDoubleLE=l.prototype.writeDoubleLE,n.prototype.writeDoubleBE=l.prototype.writeDoubleBE},{assert:1,"./buffer_ieee754":8,"base64-js":9}],9:[function(t,e){(function(){"use strict";function t(t){var e,r,i,o,s,a;if(t.length%4>0)throw"Invalid string. Length must be a multiple of 4";for(s=t.indexOf("="),s=s>0?t.length-s:0,a=[],i=s>0?t.length-4:t.length,e=0,r=0;i>e;e+=4,r+=3)o=n.indexOf(t[e])<<18|n.indexOf(t[e+1])<<12|n.indexOf(t[e+2])<<6|n.indexOf(t[e+3]),a.push((16711680&o)>>16),a.push((65280&o)>>8),a.push(255&o);return 2===s?(o=n.indexOf(t[e])<<2|n.indexOf(t[e+1])>>4,a.push(255&o)):1===s&&(o=n.indexOf(t[e])<<10|n.indexOf(t[e+1])<<4|n.indexOf(t[e+2])>>2,a.push(255&o>>8),a.push(255&o)),a}function r(t){function e(t){return n[63&t>>18]+n[63&t>>12]+n[63&t>>6]+n[63&t]}var r,i,o,s=t.length%3,a="";for(r=0,o=t.length-s;o>r;r+=3)i=(t[r]<<16)+(t[r+1]<<8)+t[r+2],a+=e(i);switch(s){case 1:i=t[t.length-1],a+=n[i>>2],a+=n[63&i<<4],a+="==";break;case 2:i=(t[t.length-2]<<8)+t[t.length-1],a+=n[i>>10],a+=n[63&i>>4],a+=n[63&i<<2],a+="="}return a}var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";e.exports.toByteArray=t,e.exports.fromByteArray=r})()},{}]},{},[]),e.exports=t("buffer-browserify")},{}],6:[function(t,e){(function(r,n){function i(e){e=e||{};var r=e.highWaterMark;this.highWaterMark=r||0===r?r: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=!!e.objectMode,this.defaultEncoding=e.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(k||(k=t("string_decoder").StringDecoder),this.decoder=new k(e.encoding),this.encoding=e.encoding)}function o(t){return this instanceof o?(this._readableState=new i(t,this),this.readable=!0,S.call(this),void 0):new o(t)}function s(t,e,r,n,i){var o=h(e,r);if(o)t.emit("error",o);else if(null===r||void 0===r)e.reading=!1,e.ended||l(t,e);else if(e.objectMode||r&&r.length>0)if(e.ended&&!i){var s=Error("stream.push() after EOF");t.emit("error",s)}else if(e.endEmitted&&i){var s=Error("stream.unshift() after end event");t.emit("error",s)}else!e.decoder||i||n||(r=e.decoder.write(r)),e.length+=e.objectMode?1:r.length,i?e.buffer.unshift(r):(e.reading=!1,e.buffer.push(r)),e.needReadable&&c(t),d(t,e);else i||(e.reading=!1);return a(e)}function a(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}function u(t){if(t>=L)t=L;else{t--;for(var e=1;32>e;e<<=1)t|=t>>e;t++}return t}function f(t,e){return 0===e.length&&e.ended?0:e.objectMode?0===t?0:1:isNaN(t)||null===t?e.flowing&&e.buffer.length?e.buffer[0].length:e.length:0>=t?0:(t>e.highWaterMark&&(e.highWaterMark=u(t)),t>e.length?e.ended?e.length:(e.needReadable=!0,0):t)}function h(t,e){var r=null;return n.isBuffer(e)||"string"==typeof e||null===e||void 0===e||t.objectMode||r||(r=new TypeError("Invalid non-string/buffer chunk")),r}function l(t,e){if(e.decoder&&!e.ended){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.length>0?c(t):E(t)}function c(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,e.sync?r.nextTick(function(){p(t)}):p(t))}function p(t){t.emit("readable")}function d(t,e){e.readingMore||(e.readingMore=!0,r.nextTick(function(){g(t,e)}))}function g(t,e){for(var r=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(t.read(0),r!==e.length);)r=e.length;e.readingMore=!1}function y(t){return function(){var e=t._readableState;e.awaitDrain--,0===e.awaitDrain&&v(t)}}function v(t){function e(t){var e=t.write(r);!1===e&&n.awaitDrain++}var r,n=t._readableState;for(n.awaitDrain=0;n.pipesCount&&null!==(r=t.read());)if(1===n.pipesCount?e(n.pipes,0,null):n.pipes.forEach(e),t.emit("data",r),n.awaitDrain>0)return;return 0===n.pipesCount?(n.flowing=!1,_.listenerCount(t,"data")>0&&w(t),void 0):(n.ranOut=!0,void 0)}function b(){this._readableState.ranOut&&(this._readableState.ranOut=!1,v(this))}function w(t,e){var n=t._readableState;if(n.flowing)throw Error("Cannot switch to old mode now.");var i=e||!1,o=!1;t.readable=!0,t.pipe=S.prototype.pipe,t.on=t.addListener=S.prototype.on,t.on("readable",function(){o=!0;for(var e;!i&&null!==(e=t.read());)t.emit("data",e);null===e&&(o=!1,t._readableState.needReadable=!0)}),t.pause=function(){i=!0,this.emit("pause")},t.resume=function(){i=!1,o?r.nextTick(function(){t.emit("readable")}):this.read(0),this.emit("resume")},t.emit("readable")}function m(t,e){var r,i=e.buffer,o=e.length,s=!!e.decoder,a=!!e.objectMode;if(0===i.length)return null;if(0===o)r=null;else if(a)r=i.shift();else if(!t||t>=o)r=s?i.join(""):n.concat(i,o),i.length=0;else if(i[0].length>t){var u=i[0];r=u.slice(0,t),i[0]=u.slice(t)}else if(t===i[0].length)r=i.shift();else{r=s?"":new n(t);for(var f=0,h=0,l=i.length;l>h&&t>f;h++){var u=i[0],c=Math.min(t-f,u.length);s?r+=u.slice(0,c):u.copy(r,f,0,c),u.length>c?i[0]=u.slice(c):i.shift(),f+=c}}return r}function E(t){var e=t._readableState;if(e.length>0)throw Error("endReadable called on non-empty stream");!e.endEmitted&&e.calledRead&&(e.ended=!0,r.nextTick(function(){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}))}e.exports=o,o.ReadableState=i;var _=t("events").EventEmitter;_.listenerCount||(_.listenerCount=function(t,e){return t.listeners(e).length});var k,S=t("stream"),I=t("util");I.inherits(o,S),o.prototype.push=function(t,e){var r=this._readableState;return"string"!=typeof t||r.objectMode||(e=e||r.defaultEncoding,e!==r.encoding&&(t=new n(t,e),e="")),s(this,r,t,e,!1)},o.prototype.unshift=function(t){var e=this._readableState;return s(this,e,t,"",!0)},o.prototype.setEncoding=function(e){k||(k=t("string_decoder").StringDecoder),this._readableState.decoder=new k(e),this._readableState.encoding=e};var L=8388608;o.prototype.read=function(t){var e=this._readableState;e.calledRead=!0;var r=t;if(("number"!=typeof t||t>0)&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return c(this),null;if(t=f(t,e),0===t&&e.ended)return 0===e.length&&E(this),null;var n=e.needReadable;e.length-t<=e.highWaterMark&&(n=!0),(e.ended||e.reading)&&(n=!1),n&&(e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1),n&&!e.reading&&(t=f(r,e));var i;return i=t>0?m(t,e):null,null===i&&(e.needReadable=!0,t=0),e.length-=t,0!==e.length||e.ended||(e.needReadable=!0),e.ended&&!e.endEmitted&&0===e.length&&E(this),i},o.prototype._read=function(){this.emit("error",Error("not implemented"))},o.prototype.pipe=function(t,e){function n(t){t===h&&o()}function i(){t.end()}function o(){t.removeListener("close",a),t.removeListener("finish",u),t.removeListener("drain",d),t.removeListener("error",s),t.removeListener("unpipe",n),h.removeListener("end",i),h.removeListener("end",o),(!t._writableState||t._writableState.needDrain)&&d()}function s(e){f(),0===_.listenerCount(t,"error")&&t.emit("error",e)}function a(){t.removeListener("finish",u),f()}function u(){t.removeListener("close",a),f()}function f(){h.unpipe(t)}var h=this,l=this._readableState;switch(l.pipesCount){case 0:l.pipes=t;break;case 1:l.pipes=[l.pipes,t];
break;default:l.pipes.push(t)}l.pipesCount+=1;var c=(!e||e.end!==!1)&&t!==r.stdout&&t!==r.stderr,p=c?i:o;l.endEmitted?r.nextTick(p):h.once("end",p),t.on("unpipe",n);var d=y(h);return t.on("drain",d),t.once("error",s),t.once("close",a),t.once("finish",u),t.emit("pipe",h),l.flowing||(this.on("readable",b),l.flowing=!0,r.nextTick(function(){v(h)})),t},o.prototype.unpipe=function(t){var e=this._readableState;if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,this.removeListener("readable",b),e.flowing=!1,t&&t.emit("unpipe",this),this);if(!t){var r=e.pipes,n=e.pipesCount;e.pipes=null,e.pipesCount=0,this.removeListener("readable",b),e.flowing=!1;for(var i=0;n>i;i++)r[i].emit("unpipe",this);return this}var i=e.pipes.indexOf(t);return-1===i?this:(e.pipes.splice(i,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this),this)},o.prototype.on=function(t,e){var r=S.prototype.on.call(this,t,e);if("data"!==t||this._readableState.flowing||w(this),"readable"===t&&this.readable){var n=this._readableState;n.readableListening||(n.readableListening=!0,n.emittedReadable=!1,n.needReadable=!0,n.reading?n.length&&c(this,n):this.read(0))}return r},o.prototype.addListener=o.prototype.on,o.prototype.resume=function(){w(this),this.read(0),this.emit("resume")},o.prototype.pause=function(){w(this,!0),this.emit("pause")},o.prototype.wrap=function(t){var e=this._readableState,r=!1,n=this;t.on("end",function(){if(e.decoder&&!e.ended){var t=e.decoder.end();t&&t.length&&n.push(t)}n.push(null)}),t.on("data",function(i){if(e.decoder&&(i=e.decoder.write(i)),i&&(e.objectMode||i.length)){var o=n.push(i);o||(r=!0,t.pause())}});for(var i in t)"function"==typeof t[i]&&this[i]===void 0&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));var o=["error","close","destroy","pause","resume"];return o.forEach(function(e){t.on(e,n.emit.bind(n,e))}),n._read=function(){r&&(r=!1,t.resume())},n},o._fromList=m})(t("__browserify_process"),t("__browserify_Buffer").Buffer)},{events:2,stream:12,util:1,string_decoder:13,__browserify_process:5,__browserify_Buffer:11}],13:[function(t,e,r){(function(t){function e(t){return t.toString(this.encoding)}function n(t){var e=this.charReceived=t.length%2;return this.charLength=e?2:0,e}function i(t){var e=this.charReceived=t.length%3;return this.charLength=e?3:0,e}var o=r.StringDecoder=function(r){switch(this.encoding=(r||"utf8").toLowerCase().replace(/[-_]/,""),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=n;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=i;break;default:return this.write=e,void 0}this.charBuffer=new t(6),this.charReceived=0,this.charLength=0};o.prototype.write=function(t){for(var e="",r=0;this.charLength;){var n=t.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:t.length;if(t.copy(this.charBuffer,this.charReceived,r,n),this.charReceived+=n-r,r=n,this.charReceived<this.charLength)return"";e=this.charBuffer.slice(0,this.charLength).toString(this.encoding);var i=e.charCodeAt(e.length-1);if(!(i>=55296&&56319>=i)){if(this.charReceived=this.charLength=0,n==t.length)return e;t=t.slice(n,t.length);break}this.charLength+=this.surrogateSize,e=""}var o=this.detectIncompleteChar(t),s=t.length;this.charLength&&(t.copy(this.charBuffer,0,t.length-o,s),this.charReceived=o,s-=o),e+=t.toString(this.encoding,0,s);var s=e.length-1,i=e.charCodeAt(s);if(i>=55296&&56319>=i){var a=this.surrogateSize;return this.charLength+=a,this.charReceived+=a,this.charBuffer.copy(this.charBuffer,a,0,a),this.charBuffer.write(e.charAt(e.length-1),this.encoding),e.substring(0,s)}return e},o.prototype.detectIncompleteChar=function(t){for(var e=t.length>=3?3:t.length;e>0;e--){var r=t[t.length-e];if(1==e&&6==r>>5){this.charLength=2;break}if(2>=e&&14==r>>4){this.charLength=3;break}if(3>=e&&30==r>>3){this.charLength=4;break}}return e},o.prototype.end=function(t){var e="";if(t&&t.length&&(e=this.write(t)),this.charReceived){var r=this.charReceived,n=this.charBuffer,i=this.encoding;e+=n.slice(0,r).toString(i)}return e}})(t("__browserify_Buffer").Buffer)},{__browserify_Buffer:11}],12:[function(t,e){function r(){n.EventEmitter.call(this)}var n=t("events"),i=t("util");i.inherits(r,n.EventEmitter),e.exports=r,r.Stream=r,r.prototype.pipe=function(t,e){function r(e){t.writable&&!1===t.write(e)&&u.pause&&u.pause()}function n(){u.readable&&u.resume&&u.resume()}function i(){f||(f=!0,t._pipeCount--,a(),t._pipeCount>0||t.end())}function o(){f||(f=!0,t._pipeCount--,a(),t._pipeCount>0||t.destroy())}function s(t){if(a(),0===this.listeners("error").length)throw t}function a(){u.removeListener("data",r),t.removeListener("drain",n),u.removeListener("end",i),u.removeListener("close",o),u.removeListener("error",s),t.removeListener("error",s),u.removeListener("end",a),u.removeListener("close",a),t.removeListener("end",a),t.removeListener("close",a)}var u=this;u.on("data",r),t.on("drain",n),t._isStdio||e&&e.end===!1||(t._pipeCount=t._pipeCount||0,t._pipeCount++,u.on("end",i),u.on("close",o));var f=!1;return u.on("error",s),t.on("error",s),u.on("end",a),u.on("close",a),t.on("end",a),t.on("close",a),t.emit("pipe",u),t}},{events:2,util:1}],7:[function(t,e){(function(r){function n(t){return this instanceof n?(s.call(this,t),a.call(this,t),t&&t.readable===!1&&(this.readable=!1),t&&t.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,t&&t.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",i),void 0):new n(t)}function i(){this.allowHalfOpen||this._writableState.ended||r.nextTick(this.end.bind(this))}e.exports=n;var o=t("util"),s=t("./_stream_readable"),a=t("./_stream_writable");o.inherits(n,s),Object.keys(a.prototype).forEach(function(t){n.prototype[t]||(n.prototype[t]=a.prototype[t])})})(t("__browserify_process"))},{util:1,"./_stream_readable":6,"./_stream_writable":9,__browserify_process:5}],8:[function(t,e){function r(t,e){this.afterTransform=function(t,r){return n(e,t,r)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null}function n(t,e,r){var n=t._transformState;n.transforming=!1;var i=n.writecb;if(!i)return t.emit("error",Error("no writecb in Transform class"));n.writechunk=null,n.writecb=null,null!==r&&void 0!==r&&t.push(r),i&&i(e);var o=t._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&t._read(o.highWaterMark)}function i(t){if(!(this instanceof i))return new i(t);s.call(this,t),this._transformState=new r(t,this);var e=this;this._readableState.needReadable=!0,this._readableState.sync=!1,this.once("finish",function(){"function"==typeof this._flush?this._flush(function(t){o(e,t)}):o(e)})}function o(t,e){if(e)return t.emit("error",e);var r=t._writableState;t._readableState;var n=t._transformState;if(r.length)throw Error("calling transform done when ws.length != 0");if(n.transforming)throw Error("calling transform done when still transforming");return t.push(null)}e.exports=i;var s=t("./_stream_duplex"),a=t("util");a.inherits(i,s),i.prototype.push=function(t,e){return this._transformState.needTransform=!1,s.prototype.push.call(this,t,e)},i.prototype._transform=function(){throw Error("not implemented")},i.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},i.prototype._read=function(){var t=this._transformState;t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0}},{util:1,"./_stream_duplex":7}],9:[function(t,e){(function(r,n){function i(t,e,r){this.chunk=t,this.encoding=e,this.callback=r}function o(t,e){t=t||{};var r=t.highWaterMark;this.highWaterMark=r||0===r?r:16384,this.objectMode=!!t.objectMode,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var n=t.decodeStrings===!1;this.decodeStrings=!n,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){d(e,t)},this.writecb=null,this.writelen=0,this.buffer=[]}function s(e){return this instanceof s||this instanceof t("./_stream_duplex")?(this._writableState=new o(e,this),this.writable=!0,_.call(this),void 0):new s(e)}function a(t,e,n){var i=Error("write after end");t.emit("error",i),r.nextTick(function(){n(i)})}function u(t,e,i,o){var s=!0;if(!n.isBuffer(i)&&"string"!=typeof i&&null!==i&&void 0!==i&&!e.objectMode){var a=new TypeError("Invalid non-string/buffer chunk");t.emit("error",a),r.nextTick(function(){o(a)}),s=!1}return s}function f(t,e,r){return t.objectMode||t.decodeStrings===!1||"string"!=typeof e||(e=new n(e,r)),e}function h(t,e,r,n,o){r=f(e,r,n);var s=e.objectMode?1:r.length;e.length+=s;var a=e.length<e.highWaterMark;return e.needDrain=!a,e.writing?e.buffer.push(new i(r,n,o)):l(t,e,s,r,n,o),a}function l(t,e,r,n,i,o){e.writelen=r,e.writecb=o,e.writing=!0,e.sync=!0,t._write(n,i,e.onwrite),e.sync=!1}function c(t,e,n,i,o){n?r.nextTick(function(){o(i)}):o(i),t.emit("error",i)}function p(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function d(t,e){var n=t._writableState,i=n.sync,o=n.writecb;if(p(n),e)c(t,n,i,e,o);else{var s=b(t,n);s||n.bufferProcessing||!n.buffer.length||v(t,n),i?r.nextTick(function(){g(t,n,s,o)}):g(t,n,s,o)}}function g(t,e,r,n){r||y(t,e),n(),r&&w(t,e)}function y(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function v(t,e){e.bufferProcessing=!0;for(var r=0;e.buffer.length>r;r++){var n=e.buffer[r],i=n.chunk,o=n.encoding,s=n.callback,a=e.objectMode?1:i.length;if(l(t,e,a,i,o,s),e.writing){r++;break}}e.bufferProcessing=!1,e.buffer.length>r?e.buffer=e.buffer.slice(r):e.buffer.length=0}function b(t,e){return e.ending&&0===e.length&&!e.finished&&!e.writing}function w(t,e){var r=b(t,e);return r&&(e.finished=!0,t.emit("finish")),r}function m(t,e,n){e.ending=!0,w(t,e),n&&(e.finished?r.nextTick(n):t.once("finish",n)),e.ended=!0}e.exports=s,s.WritableState=o;var E=t("util");t("assert");var _=t("stream");E.inherits(s,_),s.prototype.pipe=function(){this.emit("error",Error("Cannot pipe. Not readable."))},s.prototype.write=function(t,e,r){var i=this._writableState,o=!1;return"function"==typeof e&&(r=e,e=null),n.isBuffer(t)?e="buffer":e||(e=i.defaultEncoding),"function"!=typeof r&&(r=function(){}),i.ended?a(this,i,r):u(this,i,t,r)&&(o=h(this,i,t,e,r)),o},s.prototype._write=function(t,e,r){r(Error("not implemented"))},s.prototype.end=function(t,e,r){var n=this._writableState;"function"==typeof t?(r=t,t=null,e=null):"function"==typeof e&&(r=e,e=null),t!==void 0&&null!==t&&this.write(t,e),n.ending||n.finished||m(this,n,r)}})(t("__browserify_process"),t("__browserify_Buffer").Buffer)},{util:1,assert:14,stream:12,"./_stream_duplex":7,__browserify_process:5,__browserify_Buffer:11}],10:[function(t,e){function r(t){return this instanceof r?(n.call(this,t),void 0):new r(t)}e.exports=r;var n=t("./_stream_transform"),i=t("util");i.inherits(r,n),r.prototype._transform=function(t,e,r){r(null,t)}},{util:1,"./_stream_transform":8}],14:[function(t,e){(function(){function r(t){if(Object.keys)return Object.keys(t);var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.push(r);return e}function n(t,e){return void 0===e?""+e:"number"!=typeof e||!isNaN(e)&&isFinite(e)?"function"==typeof e||e instanceof RegExp?""+e:e:""+e}function i(t,e){return"string"==typeof t?e>t.length?t:t.slice(0,e):t}function o(t,e,r,n,i){throw new y.AssertionError({message:r,actual:t,expected:e,operator:n,stackStartFunction:i})}function s(t,e){t||o(t,!0,e,"==",y.ok)}function a(t,e){if(t===e)return!0;if(d.isBuffer(t)&&d.isBuffer(e)){if(t.length!=e.length)return!1;for(var r=0;t.length>r;r++)if(t[r]!==e[r])return!1;return!0}return t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():"object"!=typeof t&&"object"!=typeof e?t==e:h(t,e)}function u(t){return null===t||void 0===t}function f(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function h(t,e){if(u(t)||u(e))return!1;if(t.prototype!==e.prototype)return!1;if(f(t))return f(e)?(t=g.call(t),e=g.call(e),a(t,e)):!1;try{var n,i,o=r(t),s=r(e)}catch(h){return!1}if(o.length!=s.length)return!1;for(o.sort(),s.sort(),i=o.length-1;i>=0;i--)if(o[i]!=s[i])return!1;for(i=o.length-1;i>=0;i--)if(n=o[i],!a(t[n],e[n]))return!1;return!0}function l(t,e){return t&&e?e instanceof RegExp?e.test(t):t instanceof e?!0:e.call({},t)===!0?!0:!1:!1}function c(t,e,r,n){var i;"string"==typeof r&&(n=r,r=null);try{e()}catch(s){i=s}if(n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),t&&!i&&o("Missing expected exception"+n),!t&&l(i,r)&&o("Got unwanted exception"+n),t&&i&&r&&!l(i,r)||!t&&i)throw i}var p=t("util"),d=t("buffer").Buffer,g=Array.prototype.slice,y=e.exports=s;y.AssertionError=function(t){this.name="AssertionError",this.message=t.message,this.actual=t.actual,this.expected=t.expected,this.operator=t.operator;var e=t.stackStartFunction||o;Error.captureStackTrace&&Error.captureStackTrace(this,e)},p.inherits(y.AssertionError,Error),y.AssertionError.prototype.toString=function(){return this.message?[this.name+":",this.message].join(" "):[this.name+":",i(JSON.stringify(this.actual,n),128),this.operator,i(JSON.stringify(this.expected,n),128)].join(" ")},y.AssertionError.__proto__=Error.prototype,y.fail=o,y.ok=s,y.equal=function(t,e,r){t!=e&&o(t,e,r,"==",y.equal)},y.notEqual=function(t,e,r){t==e&&o(t,e,r,"!=",y.notEqual)},y.deepEqual=function(t,e,r){a(t,e)||o(t,e,r,"deepEqual",y.deepEqual)},y.notDeepEqual=function(t,e,r){a(t,e)&&o(t,e,r,"notDeepEqual",y.notDeepEqual)},y.strictEqual=function(t,e,r){t!==e&&o(t,e,r,"===",y.strictEqual)},y.notStrictEqual=function(t,e,r){t===e&&o(t,e,r,"!==",y.notStrictEqual)},y.throws=function(){c.apply(this,[!0].concat(g.call(arguments)))},y.doesNotThrow=function(){c.apply(this,[!1].concat(g.call(arguments)))},y.ifError=function(t){if(t)throw t}})()},{util:1,buffer:15}],16:[function(t,e,r){r.readIEEE754=function(t,e,r,n,i){var o,s,a=8*i-n-1,u=(1<<a)-1,f=u>>1,h=-7,l=r?0:i-1,c=r?1:-1,p=t[e+l];for(l+=c,o=p&(1<<-h)-1,p>>=-h,h+=a;h>0;o=256*o+t[e+l],l+=c,h-=8);for(s=o&(1<<-h)-1,o>>=-h,h+=n;h>0;s=256*s+t[e+l],l+=c,h-=8);if(0===o)o=1-f;else{if(o===u)return s?0/0:1/0*(p?-1:1);s+=Math.pow(2,n),o-=f}return(p?-1:1)*s*Math.pow(2,o-n)},r.writeIEEE754=function(t,e,r,n,i,o){var s,a,u,f=8*o-i-1,h=(1<<f)-1,l=h>>1,c=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?o-1:0,d=n?-1:1,g=0>e||0===e&&0>1/e?1:0;for(e=Math.abs(e),isNaN(e)||1/0===e?(a=isNaN(e)?1:0,s=h):(s=Math.floor(Math.log(e)/Math.LN2),1>e*(u=Math.pow(2,-s))&&(s--,u*=2),e+=s+l>=1?c/u:c*Math.pow(2,1-l),e*u>=2&&(s++,u/=2),s+l>=h?(a=0,s=h):s+l>=1?(a=(e*u-1)*Math.pow(2,i),s+=l):(a=e*Math.pow(2,l-1)*Math.pow(2,i),s=0));i>=8;t[r+p]=255&a,p+=d,a/=256,i-=8);for(s=s<<i|a,f+=i;f>0;t[r+p]=255&s,p+=d,s/=256,f-=8);t[r+p-d]|=128*g}},{}],15:[function(t,e,r){(function(){function e(t,r,i){if(!(this instanceof e))return new e(t,r,i);this.parent=this,this.offset=0;var s;if("number"==typeof i)this.length=n(r),this.offset=i;else{switch(s=typeof t){case"number":this.length=n(t);break;case"string":this.length=e.byteLength(t,r);break;case"object":this.length=n(t.length);break;default:throw Error("First argument needs to be a number, array or string.")}if(o(t))for(var a=0;this.length>a;a++)this[a]=t instanceof e?t.readUInt8(a):t[a];else if("string"==s)this.length=this.write(t,0,r);else if("number"===s)for(var a=0;this.length>a;a++)this[a]=0}}function n(t){return t=~~Math.ceil(+t),0>t?0:t}function i(t){return(Array.isArray||function(t){return"[object Array]"=={}.toString.apply(t)})(t)}function o(t){return i(t)||e.isBuffer(t)||t&&"object"==typeof t&&"number"==typeof t.length}function s(t){return 16>t?"0"+t.toString(16):t.toString(16)}function a(t){for(var e=[],r=0;t.length>r;r++)if(127>=t.charCodeAt(r))e.push(t.charCodeAt(r));else for(var n=encodeURIComponent(t.charAt(r)).substr(1).split("%"),i=0;n.length>i;i++)e.push(parseInt(n[i],16));return e}function u(t){for(var e=[],r=0;t.length>r;r++)e.push(255&t.charCodeAt(r));return e}function f(e){return t("base64-js").toByteArray(e)}function h(t,e,r,n){for(var i=0;n>i&&!(i+r>=e.length||i>=t.length);)e[i+r]=t[i],i++;return i}function l(t){try{return decodeURIComponent(t)}catch(e){return String.fromCharCode(65533)}}function c(t,e,r,n){var i=0;return n||(x.ok("boolean"==typeof r,"missing or invalid endian"),x.ok(void 0!==e&&null!==e,"missing offset"),x.ok(t.length>e+1,"Trying to read beyond buffer length")),e>=t.length?0:(r?(i=t[e]<<8,t.length>e+1&&(i|=t[e+1])):(i=t[e],t.length>e+1&&(i|=t[e+1]<<8)),i)}function p(t,e,r,n){var i=0;return n||(x.ok("boolean"==typeof r,"missing or invalid endian"),x.ok(void 0!==e&&null!==e,"missing offset"),x.ok(t.length>e+3,"Trying to read beyond buffer length")),e>=t.length?0:(r?(t.length>e+1&&(i=t[e+1]<<16),t.length>e+2&&(i|=t[e+2]<<8),t.length>e+3&&(i|=t[e+3]),i+=t[e]<<24>>>0):(t.length>e+2&&(i=t[e+2]<<16),t.length>e+1&&(i|=t[e+1]<<8),i|=t[e],t.length>e+3&&(i+=t[e+3]<<24>>>0)),i)}function d(t,e,r,n){var i,o;return n||(x.ok("boolean"==typeof r,"missing or invalid endian"),x.ok(void 0!==e&&null!==e,"missing offset"),x.ok(t.length>e+1,"Trying to read beyond buffer length")),o=c(t,e,r,n),i=32768&o,i?-1*(65535-o+1):o}function g(t,e,r,n){var i,o;return n||(x.ok("boolean"==typeof r,"missing or invalid endian"),x.ok(void 0!==e&&null!==e,"missing offset"),x.ok(t.length>e+3,"Trying to read beyond buffer length")),o=p(t,e,r,n),i=2147483648&o,i?-1*(4294967295-o+1):o}function y(e,r,n,i){return i||(x.ok("boolean"==typeof n,"missing or invalid endian"),x.ok(e.length>r+3,"Trying to read beyond buffer length")),t("./buffer_ieee754").readIEEE754(e,r,n,23,4)}function v(e,r,n,i){return i||(x.ok("boolean"==typeof n,"missing or invalid endian"),x.ok(e.length>r+7,"Trying to read beyond buffer length")),t("./buffer_ieee754").readIEEE754(e,r,n,52,8)}function b(t,e){x.ok("number"==typeof t,"cannot write a non-number as a number"),x.ok(t>=0,"specified a negative value for writing an unsigned value"),x.ok(e>=t,"value is larger than maximum value for type"),x.ok(Math.floor(t)===t,"value has a fractional component")}function w(t,e,r,n,i){i||(x.ok(void 0!==e&&null!==e,"missing value"),x.ok("boolean"==typeof n,"missing or invalid endian"),x.ok(void 0!==r&&null!==r,"missing offset"),x.ok(t.length>r+1,"trying to write beyond buffer length"),b(e,65535));for(var o=0;Math.min(t.length-r,2)>o;o++)t[r+o]=(e&255<<8*(n?1-o:o))>>>8*(n?1-o:o)}function m(t,e,r,n,i){i||(x.ok(void 0!==e&&null!==e,"missing value"),x.ok("boolean"==typeof n,"missing or invalid endian"),x.ok(void 0!==r&&null!==r,"missing offset"),x.ok(t.length>r+3,"trying to write beyond buffer length"),b(e,4294967295));for(var o=0;Math.min(t.length-r,4)>o;o++)t[r+o]=255&e>>>8*(n?3-o:o)}function E(t,e,r){x.ok("number"==typeof t,"cannot write a non-number as a number"),x.ok(e>=t,"value larger than maximum allowed value"),x.ok(t>=r,"value smaller than minimum allowed value"),x.ok(Math.floor(t)===t,"value has a fractional component")}function _(t,e,r){x.ok("number"==typeof t,"cannot write a non-number as a number"),x.ok(e>=t,"value larger than maximum allowed value"),x.ok(t>=r,"value smaller than minimum allowed value")}function k(t,e,r,n,i){i||(x.ok(void 0!==e&&null!==e,"missing value"),x.ok("boolean"==typeof n,"missing or invalid endian"),x.ok(void 0!==r&&null!==r,"missing offset"),x.ok(t.length>r+1,"Trying to write beyond buffer length"),E(e,32767,-32768)),e>=0?w(t,e,r,n,i):w(t,65535+e+1,r,n,i)}function S(t,e,r,n,i){i||(x.ok(void 0!==e&&null!==e,"missing value"),x.ok("boolean"==typeof n,"missing or invalid endian"),x.ok(void 0!==r&&null!==r,"missing offset"),x.ok(t.length>r+3,"Trying to write beyond buffer length"),E(e,2147483647,-2147483648)),e>=0?m(t,e,r,n,i):m(t,4294967295+e+1,r,n,i)}function I(e,r,n,i,o){o||(x.ok(void 0!==r&&null!==r,"missing value"),x.ok("boolean"==typeof i,"missing or invalid endian"),x.ok(void 0!==n&&null!==n,"missing offset"),x.ok(e.length>n+3,"Trying to write beyond buffer length"),_(r,3.4028234663852886e38,-3.4028234663852886e38)),t("./buffer_ieee754").writeIEEE754(e,r,n,i,23,4)}function L(e,r,n,i,o){o||(x.ok(void 0!==r&&null!==r,"missing value"),x.ok("boolean"==typeof i,"missing or invalid endian"),x.ok(void 0!==n&&null!==n,"missing offset"),x.ok(e.length>n+7,"Trying to write beyond buffer length"),_(r,1.7976931348623157e308,-1.7976931348623157e308)),t("./buffer_ieee754").writeIEEE754(e,r,n,i,52,8)}var x=t("assert");r.Buffer=e,r.SlowBuffer=e,e.poolSize=8192,r.INSPECT_MAX_BYTES=50,e.prototype.get=function(t){if(0>t||t>=this.length)throw Error("oob");return this[t]},e.prototype.set=function(t,e){if(0>t||t>=this.length)throw Error("oob");return this[t]=e},e.byteLength=function(t,e){switch(e||"utf8"){case"hex":return t.length/2;case"utf8":case"utf-8":return a(t).length;case"ascii":case"binary":return t.length;case"base64":return f(t).length;default:throw Error("Unknown encoding")}},e.prototype.utf8Write=function(t,r,n){return e._charsWritten=h(a(t),this,r,n)},e.prototype.asciiWrite=function(t,r,n){return e._charsWritten=h(u(t),this,r,n)},e.prototype.binaryWrite=e.prototype.asciiWrite,e.prototype.base64Write=function(t,r,n){return e._charsWritten=h(f(t),this,r,n)},e.prototype.base64Slice=function(){var e=Array.prototype.slice.apply(this,arguments);return t("base64-js").fromByteArray(e)},e.prototype.utf8Slice=function(){for(var t=Array.prototype.slice.apply(this,arguments),e="",r="",n=0;t.length>n;)127>=t[n]?(e+=l(r)+String.fromCharCode(t[n]),r=""):r+="%"+t[n].toString(16),n++;return e+l(r)},e.prototype.asciiSlice=function(){for(var t=Array.prototype.slice.apply(this,arguments),e="",r=0;t.length>r;r++)e+=String.fromCharCode(t[r]);return e},e.prototype.binarySlice=e.prototype.asciiSlice,e.prototype.inspect=function(){for(var t=[],e=this.length,n=0;e>n;n++)if(t[n]=s(this[n]),n==r.INSPECT_MAX_BYTES){t[n+1]="...";break}return"<Buffer "+t.join(" ")+">"},e.prototype.hexSlice=function(t,e){var r=this.length;(!t||0>t)&&(t=0),(!e||0>e||e>r)&&(e=r);for(var n="",i=t;e>i;i++)n+=s(this[i]);return n},e.prototype.toString=function(t,e,r){if(t=((t||"utf8")+"").toLowerCase(),e=+e||0,r===void 0&&(r=this.length),+r==e)return"";switch(t){case"hex":return this.hexSlice(e,r);case"utf8":case"utf-8":return this.utf8Slice(e,r);case"ascii":return this.asciiSlice(e,r);case"binary":return this.binarySlice(e,r);case"base64":return this.base64Slice(e,r);case"ucs2":case"ucs-2":return this.ucs2Slice(e,r);default:throw Error("Unknown encoding")}},e.prototype.hexWrite=function(t,r,n){r=+r||0;var i=this.length-r;n?(n=+n,n>i&&(n=i)):n=i;var o=t.length;if(o%2)throw Error("Invalid hex string");n>o/2&&(n=o/2);for(var s=0;n>s;s++){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))throw Error("Invalid hex string");this[r+s]=a}return e._charsWritten=2*s,s},e.prototype.write=function(t,e,r,n){if(isFinite(e))isFinite(r)||(n=r,r=void 0);else{var i=n;n=e,e=r,r=i}e=+e||0;var o=this.length-e;switch(r?(r=+r,r>o&&(r=o)):r=o,n=((n||"utf8")+"").toLowerCase()){case"hex":return this.hexWrite(t,e,r);case"utf8":case"utf-8":return this.utf8Write(t,e,r);case"ascii":return this.asciiWrite(t,e,r);case"binary":return this.binaryWrite(t,e,r);case"base64":return this.base64Write(t,e,r);case"ucs2":case"ucs-2":return this.ucs2Write(t,e,r);default:throw Error("Unknown encoding")}},e.prototype.slice=function(t,r){if(void 0===r&&(r=this.length),r>this.length)throw Error("oob");if(t>r)throw Error("oob");return new e(this,r-t,+t)},e.prototype.copy=function(t,e,r,n){var i=this;if(r||(r=0),(void 0===n||isNaN(n))&&(n=this.length),e||(e=0),r>n)throw Error("sourceEnd < sourceStart");if(n===r)return 0;if(0==t.length||0==i.length)return 0;if(0>e||e>=t.length)throw Error("targetStart out of bounds");if(0>r||r>=i.length)throw Error("sourceStart out of bounds");if(0>n||n>i.length)throw Error("sourceEnd out of bounds");n>this.length&&(n=this.length),n-r>t.length-e&&(n=t.length-e+r);for(var o=[],s=r;n>s;s++)x.ok(this[s]!==void 0,"copying undefined buffer bytes!"),o.push(this[s]);for(var s=e;e+o.length>s;s++)t[s]=o[s-e]},e.prototype.fill=function(t,e,r){if(t||(t=0),e||(e=0),r||(r=this.length),"string"==typeof t&&(t=t.charCodeAt(0)),"number"!=typeof t||isNaN(t))throw Error("value is not a number");if(e>r)throw Error("end < start");if(r===e)return 0;if(0==this.length)return 0;if(0>e||e>=this.length)throw Error("start out of bounds");if(0>r||r>this.length)throw Error("end out of bounds");for(var n=e;r>n;n++)this[n]=t},e.isBuffer=function(t){return t instanceof e||t instanceof e},e.concat=function(t,r){if(!i(t))throw Error("Usage: Buffer.concat(list, [totalLength])\n list should be an Array.");if(0===t.length)return new e(0);if(1===t.length)return t[0];if("number"!=typeof r){r=0;for(var n=0;t.length>n;n++){var o=t[n];r+=o.length}}for(var s=new e(r),a=0,n=0;t.length>n;n++){var o=t[n];o.copy(s,a),a+=o.length}return s},e.prototype.readUInt8=function(t,e){var r=this;return e||(x.ok(void 0!==t&&null!==t,"missing offset"),x.ok(r.length>t,"Trying to read beyond buffer length")),t>=r.length?void 0:r[t]},e.prototype.readUInt16LE=function(t,e){return c(this,t,!1,e)},e.prototype.readUInt16BE=function(t,e){return c(this,t,!0,e)},e.prototype.readUInt32LE=function(t,e){return p(this,t,!1,e)},e.prototype.readUInt32BE=function(t,e){return p(this,t,!0,e)},e.prototype.readInt8=function(t,e){var r,n=this;return e||(x.ok(void 0!==t&&null!==t,"missing offset"),x.ok(n.length>t,"Trying to read beyond buffer length")),t>=n.length?void 0:(r=128&n[t],r?-1*(255-n[t]+1):n[t])},e.prototype.readInt16LE=function(t,e){return d(this,t,!1,e)},e.prototype.readInt16BE=function(t,e){return d(this,t,!0,e)},e.prototype.readInt32LE=function(t,e){return g(this,t,!1,e)},e.prototype.readInt32BE=function(t,e){return g(this,t,!0,e)},e.prototype.readFloatLE=function(t,e){return y(this,t,!1,e)},e.prototype.readFloatBE=function(t,e){return y(this,t,!0,e)},e.prototype.readDoubleLE=function(t,e){return v(this,t,!1,e)},e.prototype.readDoubleBE=function(t,e){return v(this,t,!0,e)},e.prototype.writeUInt8=function(t,e,r){var n=this;r||(x.ok(void 0!==t&&null!==t,"missing value"),x.ok(void 0!==e&&null!==e,"missing offset"),x.ok(n.length>e,"trying to write beyond buffer length"),b(t,255)),n.length>e&&(n[e]=t)},e.prototype.writeUInt16LE=function(t,e,r){w(this,t,e,!1,r)},e.prototype.writeUInt16BE=function(t,e,r){w(this,t,e,!0,r)},e.prototype.writeUInt32LE=function(t,e,r){m(this,t,e,!1,r)},e.prototype.writeUInt32BE=function(t,e,r){m(this,t,e,!0,r)},e.prototype.writeInt8=function(t,e,r){var n=this;r||(x.ok(void 0!==t&&null!==t,"missing value"),x.ok(void 0!==e&&null!==e,"missing offset"),x.ok(n.length>e,"Trying to write beyond buffer length"),E(t,127,-128)),t>=0?n.writeUInt8(t,e,r):n.writeUInt8(255+t+1,e,r)},e.prototype.writeInt16LE=function(t,e,r){k(this,t,e,!1,r)},e.prototype.writeInt16BE=function(t,e,r){k(this,t,e,!0,r)},e.prototype.writeInt32LE=function(t,e,r){S(this,t,e,!1,r)},e.prototype.writeInt32BE=function(t,e,r){S(this,t,e,!0,r)},e.prototype.writeFloatLE=function(t,e,r){I(this,t,e,!1,r)},e.prototype.writeFloatBE=function(t,e,r){I(this,t,e,!0,r)},e.prototype.writeDoubleLE=function(t,e,r){L(this,t,e,!1,r)},e.prototype.writeDoubleBE=function(t,e,r){L(this,t,e,!0,r)}})()},{assert:14,"./buffer_ieee754":16,"base64-js":17}],17:[function(t,e){(function(){"use strict";function t(t){var e,r,i,o,s,a;if(t.length%4>0)throw"Invalid string. Length must be a multiple of 4";for(s=t.indexOf("="),s=s>0?t.length-s:0,a=[],i=s>0?t.length-4:t.length,e=0,r=0;i>e;e+=4,r+=3)o=n.indexOf(t[e])<<18|n.indexOf(t[e+1])<<12|n.indexOf(t[e+2])<<6|n.indexOf(t[e+3]),a.push((16711680&o)>>16),a.push((65280&o)>>8),a.push(255&o);return 2===s?(o=n.indexOf(t[e])<<2|n.indexOf(t[e+1])>>4,a.push(255&o)):1===s&&(o=n.indexOf(t[e])<<10|n.indexOf(t[e+1])<<4|n.indexOf(t[e+2])>>2,a.push(255&o>>8),a.push(255&o)),a}function r(t){function e(t){return n[63&t>>18]+n[63&t>>12]+n[63&t>>6]+n[63&t]}var r,i,o,s=t.length%3,a="";for(r=0,o=t.length-s;o>r;r+=3)i=(t[r]<<16)+(t[r+1]<<8)+t[r+2],a+=e(i);switch(s){case 1:i=t[t.length-1],a+=n[i>>2],a+=n[63&i<<4],a+="==";break;case 2:i=(t[t.length-2]<<8)+t[t.length-1],a+=n[i>>10],a+=n[63&i>>4],a+=n[63&i<<2],a+="="}return a}var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";e.exports.toByteArray=t,e.exports.fromByteArray=r})()},{}]},{},[]),require=function(t,e,r){function n(r,o){if(!e[r]){if(!t[r]){var s="function"==typeof require&&require;if(!o&&s)return s(r,!0);if(i)return i(r,!0);throw Error("Cannot find module '"+r+"'")}var a=e[r]={exports:{}};t[r][0].call(a.exports,function(e){var i=t[r][1][e];return n(i?i:e)},a,a.exports)}return e[r].exports}for(var i="function"==typeof require&&require,o=0;r.length>o;o++)n(r[o]);return n}({"readable-stream/writable":[function(t,e){e.exports=t("Gzrta9")},{}],Gzrta9:[function(t,e){e.exports=t("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":1}],2:[function(t,e){var r=e.exports={};r.nextTick=function(){var t="undefined"!=typeof window&&window.setImmediate,e="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(t)return function(t){return window.setImmediate(t)};if(e){var r=[];return window.addEventListener("message",function(t){if(t.source===window&&"process-tick"===t.data&&(t.stopPropagation(),r.length>0)){var e=r.shift();e()}},!0),function(t){r.push(t),window.postMessage("process-tick","*")}}return function(t){setTimeout(t,0)}}(),r.title="browser",r.browser=!0,r.env={},r.argv=[],r.binding=function(){throw Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(){throw Error("process.chdir is not supported")}},{}],3:[function(t,e){t=function(t,e,r,n){function i(n){if(!r[n]){if(!e[n]){if(t)return t(n);throw Error("Cannot find module '"+n+"'")}var o=r[n]={exports:{}};e[n][0](function(t){var r=e[n][1][t];return i(r?r:t)},o,o.exports)}return r[n].exports}for(var o=0;n.length>o;o++)i(n[o]);return i}(t!==void 0&&t,{1:[function(t,e){function r(t){if(Object.keys)return Object.keys(t);var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.push(r);return e}function n(t,e){return void 0===e?""+e:"number"!=typeof e||!isNaN(e)&&isFinite(e)?"function"==typeof e||e instanceof RegExp?""+e:e:""+e}function i(t,e){return"string"==typeof t?e>t.length?t:t.slice(0,e):t}function o(t,e,r,n,i){throw new y.AssertionError({message:r,actual:t,expected:e,operator:n,stackStartFunction:i})}function s(t,e){t||o(t,!0,e,"==",y.ok)}function a(t,e){if(t===e)return!0;if(d.isBuffer(t)&&d.isBuffer(e)){if(t.length!=e.length)return!1;for(var r=0;t.length>r;r++)if(t[r]!==e[r])return!1;return!0}return t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():"object"!=typeof t&&"object"!=typeof e?t==e:h(t,e)}function u(t){return null===t||void 0===t}function f(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function h(t,e){if(u(t)||u(e))return!1;if(t.prototype!==e.prototype)return!1;if(f(t))return f(e)?(t=g.call(t),e=g.call(e),a(t,e)):!1;try{var n,i,o=r(t),s=r(e)}catch(h){return!1}if(o.length!=s.length)return!1;for(o.sort(),s.sort(),i=o.length-1;i>=0;i--)if(o[i]!=s[i])return!1;for(i=o.length-1;i>=0;i--)if(n=o[i],!a(t[n],e[n]))return!1;return!0}function l(t,e){return t&&e?e instanceof RegExp?e.test(t):t instanceof e?!0:e.call({},t)===!0?!0:!1:!1}function c(t,e,r,n){var i;"string"==typeof r&&(n=r,r=null);try{e()}catch(s){i=s}if(n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),t&&!i&&o("Missing expected exception"+n),!t&&l(i,r)&&o("Got unwanted exception"+n),t&&i&&r&&!l(i,r)||!t&&i)throw i}var p=t("util"),d=t("buffer").Buffer,g=Array.prototype.slice,y=e.exports=s;y.AssertionError=function(t){this.name="AssertionError",this.message=t.message,this.actual=t.actual,this.expected=t.expected,this.operator=t.operator;var e=t.stackStartFunction||o;Error.captureStackTrace&&Error.captureStackTrace(this,e)},p.inherits(y.AssertionError,Error),y.AssertionError.prototype.toString=function(){return this.message?[this.name+":",this.message].join(" "):[this.name+":",i(JSON.stringify(this.actual,n),128),this.operator,i(JSON.stringify(this.expected,n),128)].join(" ")
},y.AssertionError.__proto__=Error.prototype,y.fail=o,y.ok=s,y.equal=function(t,e,r){t!=e&&o(t,e,r,"==",y.equal)},y.notEqual=function(t,e,r){t==e&&o(t,e,r,"!=",y.notEqual)},y.deepEqual=function(t,e,r){a(t,e)||o(t,e,r,"deepEqual",y.deepEqual)},y.notDeepEqual=function(t,e,r){a(t,e)&&o(t,e,r,"notDeepEqual",y.notDeepEqual)},y.strictEqual=function(t,e,r){t!==e&&o(t,e,r,"===",y.strictEqual)},y.notStrictEqual=function(t,e,r){t===e&&o(t,e,r,"!==",y.notStrictEqual)},y.throws=function(){c.apply(this,[!0].concat(g.call(arguments)))},y.doesNotThrow=function(){c.apply(this,[!1].concat(g.call(arguments)))},y.ifError=function(t){if(t)throw t}},{util:2,buffer:3}],2:[function(t,e,r){function n(t){return t instanceof Array||Array.isArray(t)||t&&t!==Object.prototype&&n(t.__proto__)}function i(t){return t instanceof RegExp||"object"==typeof t&&"[object RegExp]"===Object.prototype.toString.call(t)}function o(t){if(t instanceof Date)return!0;if("object"!=typeof t)return!1;var e=Date.prototype&&a(Date.prototype),r=t.__proto__&&a(t.__proto__);return JSON.stringify(r)===JSON.stringify(e)}t("events"),r.isArray=n,r.isDate=function(t){return"[object Date]"===Object.prototype.toString.call(t)},r.isRegExp=function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},r.print=function(){},r.puts=function(){},r.debug=function(){},r.inspect=function(t,e,u,f){function h(t,u){if(t&&"function"==typeof t.inspect&&t!==r&&(!t.constructor||t.constructor.prototype!==t))return t.inspect(u);switch(typeof t){case"undefined":return c("undefined","undefined");case"string":var f="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return c(f,"string");case"number":return c(""+t,"number");case"boolean":return c(""+t,"boolean")}if(null===t)return c("null","null");var p=s(t),d=e?a(t):p;if("function"==typeof t&&0===d.length){if(i(t))return c(""+t,"regexp");var g=t.name?": "+t.name:"";return c("[Function"+g+"]","special")}if(o(t)&&0===d.length)return c(t.toUTCString(),"date");var y,v,b;if(n(t)?(v="Array",b=["[","]"]):(v="Object",b=["{","}"]),"function"==typeof t){var w=t.name?": "+t.name:"";y=i(t)?" "+t:" [Function"+w+"]"}else y="";if(o(t)&&(y=" "+t.toUTCString()),0===d.length)return b[0]+y+b[1];if(0>u)return i(t)?c(""+t,"regexp"):c("[Object]","special");l.push(t);var m=d.map(function(e){var r,i;if(t.__lookupGetter__&&(t.__lookupGetter__(e)?i=t.__lookupSetter__(e)?c("[Getter/Setter]","special"):c("[Getter]","special"):t.__lookupSetter__(e)&&(i=c("[Setter]","special"))),0>p.indexOf(e)&&(r="["+e+"]"),i||(0>l.indexOf(t[e])?(i=null===u?h(t[e]):h(t[e],u-1),i.indexOf("\n")>-1&&(i=n(t)?i.split("\n").map(function(t){return" "+t}).join("\n").substr(2):"\n"+i.split("\n").map(function(t){return" "+t}).join("\n"))):i=c("[Circular]","special")),r===void 0){if("Array"===v&&e.match(/^\d+$/))return i;r=JSON.stringify(""+e),r.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(r=r.substr(1,r.length-2),r=c(r,"name")):(r=r.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),r=c(r,"string"))}return r+": "+i});l.pop();var E=0,_=m.reduce(function(t,e){return E++,e.indexOf("\n")>=0&&E++,t+e.length+1},0);return m=_>50?b[0]+(""===y?"":y+"\n ")+" "+m.join(",\n ")+" "+b[1]:b[0]+y+" "+m.join(", ")+" "+b[1]}var l=[],c=function(t,e){var r={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]},n={special:"cyan",number:"blue","boolean":"yellow",undefined:"grey","null":"bold",string:"green",date:"magenta",regexp:"red"}[e];return n?"["+r[n][0]+"m"+t+"["+r[n][1]+"m":t};return f||(c=function(t){return t}),h(t,u===void 0?2:u)},r.log=function(){},r.pump=null;var s=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e},a=Object.getOwnPropertyNames||function(t){var e=[];for(var r in t)Object.hasOwnProperty.call(t,r)&&e.push(r);return e},u=Object.create||function(t,e){var r;if(null===t)r={__proto__:null};else{if("object"!=typeof t)throw new TypeError("typeof prototype["+typeof t+"] != 'object'");var n=function(){};n.prototype=t,r=new n,r.__proto__=t}return e!==void 0&&Object.defineProperties&&Object.defineProperties(r,e),r};r.inherits=function(t,e){t.super_=e,t.prototype=u(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})};var f=/%[sdj%]/g;r.format=function(t){if("string"!=typeof t){for(var e=[],n=0;arguments.length>n;n++)e.push(r.inspect(arguments[n]));return e.join(" ")}for(var n=1,i=arguments,o=i.length,s=(t+"").replace(f,function(t){if("%%"===t)return"%";if(n>=o)return t;switch(t){case"%s":return i[n++]+"";case"%d":return Number(i[n++]);case"%j":return JSON.stringify(i[n++]);default:return t}}),a=i[n];o>n;a=i[++n])s+=null===a||"object"!=typeof a?" "+a:" "+r.inspect(a);return s}},{events:4}],5:[function(t,e,r){r.readIEEE754=function(t,e,r,n,i){var o,s,a=8*i-n-1,u=(1<<a)-1,f=u>>1,h=-7,l=r?0:i-1,c=r?1:-1,p=t[e+l];for(l+=c,o=p&(1<<-h)-1,p>>=-h,h+=a;h>0;o=256*o+t[e+l],l+=c,h-=8);for(s=o&(1<<-h)-1,o>>=-h,h+=n;h>0;s=256*s+t[e+l],l+=c,h-=8);if(0===o)o=1-f;else{if(o===u)return s?0/0:1/0*(p?-1:1);s+=Math.pow(2,n),o-=f}return(p?-1:1)*s*Math.pow(2,o-n)},r.writeIEEE754=function(t,e,r,n,i,o){var s,a,u,f=8*o-i-1,h=(1<<f)-1,l=h>>1,c=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?o-1:0,d=n?-1:1,g=0>e||0===e&&0>1/e?1:0;for(e=Math.abs(e),isNaN(e)||1/0===e?(a=isNaN(e)?1:0,s=h):(s=Math.floor(Math.log(e)/Math.LN2),1>e*(u=Math.pow(2,-s))&&(s--,u*=2),e+=s+l>=1?c/u:c*Math.pow(2,1-l),e*u>=2&&(s++,u/=2),s+l>=h?(a=0,s=h):s+l>=1?(a=(e*u-1)*Math.pow(2,i),s+=l):(a=e*Math.pow(2,l-1)*Math.pow(2,i),s=0));i>=8;t[r+p]=255&a,p+=d,a/=256,i-=8);for(s=s<<i|a,f+=i;f>0;t[r+p]=255&s,p+=d,s/=256,f-=8);t[r+p-d]|=128*g}},{}],6:[function(t,e){var r=e.exports={};r.nextTick=function(){var t="undefined"!=typeof window&&window.setImmediate,e="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(t)return function(t){return window.setImmediate(t)};if(e){var r=[];return window.addEventListener("message",function(t){if(t.source===window&&"process-tick"===t.data&&(t.stopPropagation(),r.length>0)){var e=r.shift();e()}},!0),function(t){r.push(t),window.postMessage("process-tick","*")}}return function(t){setTimeout(t,0)}}(),r.title="browser",r.browser=!0,r.env={},r.argv=[],r.binding=function(){throw Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(){throw Error("process.chdir is not supported")}},{}],4:[function(t,e,r){(function(t){function e(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0;t.length>r;r++)if(e===t[r])return r;return-1}t.EventEmitter||(t.EventEmitter=function(){});var n=r.EventEmitter=t.EventEmitter,i="function"==typeof Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},o=10;n.prototype.setMaxListeners=function(t){this._events||(this._events={}),this._events.maxListeners=t},n.prototype.emit=function(t){if("error"===t&&(!this._events||!this._events.error||i(this._events.error)&&!this._events.error.length))throw arguments[1]instanceof Error?arguments[1]:Error("Uncaught, unspecified 'error' event.");if(!this._events)return!1;var e=this._events[t];if(!e)return!1;if("function"==typeof e){switch(arguments.length){case 1:e.call(this);break;case 2:e.call(this,arguments[1]);break;case 3:e.call(this,arguments[1],arguments[2]);break;default:var r=Array.prototype.slice.call(arguments,1);e.apply(this,r)}return!0}if(i(e)){for(var r=Array.prototype.slice.call(arguments,1),n=e.slice(),o=0,s=n.length;s>o;o++)n[o].apply(this,r);return!0}return!1},n.prototype.addListener=function(t,e){if("function"!=typeof e)throw Error("addListener only takes instances of Function");if(this._events||(this._events={}),this.emit("newListener",t,e),this._events[t])if(i(this._events[t])){if(!this._events[t].warned){var r;r=void 0!==this._events.maxListeners?this._events.maxListeners:o,r&&r>0&&this._events[t].length>r&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),console.trace())}this._events[t].push(e)}else this._events[t]=[this._events[t],e];else this._events[t]=e;return this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(t,e){var r=this;return r.on(t,function n(){r.removeListener(t,n),e.apply(this,arguments)}),this},n.prototype.removeListener=function(t,r){if("function"!=typeof r)throw Error("removeListener only takes instances of Function");if(!this._events||!this._events[t])return this;var n=this._events[t];if(i(n)){var o=e(n,r);if(0>o)return this;n.splice(o,1),0==n.length&&delete this._events[t]}else this._events[t]===r&&delete this._events[t];return this},n.prototype.removeAllListeners=function(t){return 0===arguments.length?(this._events={},this):(t&&this._events&&this._events[t]&&(this._events[t]=null),this)},n.prototype.listeners=function(t){return this._events||(this._events={}),this._events[t]||(this._events[t]=[]),i(this._events[t])||(this._events[t]=[this._events[t]]),this._events[t]}})(t("__browserify_process"))},{__browserify_process:6}],"buffer-browserify":[function(t,e){e.exports=t("q9TxCC")},{}],q9TxCC:[function(t,e,r){function n(t){this.length=t}function i(t){return 16>t?"0"+t.toString(16):t.toString(16)}function o(t){for(var e=[],r=0;t.length>r;r++)if(127>=t.charCodeAt(r))e.push(t.charCodeAt(r));else for(var n=encodeURIComponent(t.charAt(r)).substr(1).split("%"),i=0;n.length>i;i++)e.push(parseInt(n[i],16));return e}function s(t){for(var e=[],r=0;t.length>r;r++)e.push(255&t.charCodeAt(r));return e}function a(e){return t("base64-js").toByteArray(e)}function u(t,e,r,n){for(var i=0;n>i&&!(i+r>=e.length||i>=t.length);)e[i+r]=t[i],i++;return i}function f(t){try{return decodeURIComponent(t)}catch(e){return String.fromCharCode(65533)}}function h(t){return t=~~Math.ceil(+t),0>t?0:t}function l(t,e,r){if(!(this instanceof l))return new l(t,e,r);var i;if("number"==typeof r)this.length=h(e),this.parent=t,this.offset=r;else{switch(i=typeof t){case"number":this.length=h(t);break;case"string":this.length=l.byteLength(t,e);break;case"object":this.length=h(t.length);break;default:throw Error("First argument needs to be a number, array or string.")}if(this.length>l.poolSize?(this.parent=new n(this.length),this.offset=0):((!A||A.length-A.used<this.length)&&p(),this.parent=A,this.offset=A.used,A.used+=this.length),c(t))for(var o=0;this.length>o;o++)this.parent[o+this.offset]=t instanceof l?t.readUInt8(o):t[o];else"string"==i&&(this.length=this.write(t,0,e))}}function c(t){return Array.isArray(t)||l.isBuffer(t)||t&&"object"==typeof t&&"number"==typeof t.length}function p(){A=new n(l.poolSize),A.used=0}function d(t,e,r,n){var i=0;return n||(j.ok("boolean"==typeof r,"missing or invalid endian"),j.ok(void 0!==e&&null!==e,"missing offset"),j.ok(t.length>e+1,"Trying to read beyond buffer length")),e>=t.length?0:(r?(i=t.parent[t.offset+e]<<8,t.length>e+1&&(i|=t.parent[t.offset+e+1])):(i=t.parent[t.offset+e],t.length>e+1&&(i|=t.parent[t.offset+e+1]<<8)),i)}function g(t,e,r,n){var i=0;return n||(j.ok("boolean"==typeof r,"missing or invalid endian"),j.ok(void 0!==e&&null!==e,"missing offset"),j.ok(t.length>e+3,"Trying to read beyond buffer length")),e>=t.length?0:(r?(t.length>e+1&&(i=t.parent[t.offset+e+1]<<16),t.length>e+2&&(i|=t.parent[t.offset+e+2]<<8),t.length>e+3&&(i|=t.parent[t.offset+e+3]),i+=t.parent[t.offset+e]<<24>>>0):(t.length>e+2&&(i=t.parent[t.offset+e+2]<<16),t.length>e+1&&(i|=t.parent[t.offset+e+1]<<8),i|=t.parent[t.offset+e],t.length>e+3&&(i+=t.parent[t.offset+e+3]<<24>>>0)),i)}function y(t,e,r,n){var i,o;return n||(j.ok("boolean"==typeof r,"missing or invalid endian"),j.ok(void 0!==e&&null!==e,"missing offset"),j.ok(t.length>e+1,"Trying to read beyond buffer length")),o=d(t,e,r,n),i=32768&o,i?-1*(65535-o+1):o}function v(t,e,r,n){var i,o;return n||(j.ok("boolean"==typeof r,"missing or invalid endian"),j.ok(void 0!==e&&null!==e,"missing offset"),j.ok(t.length>e+3,"Trying to read beyond buffer length")),o=g(t,e,r,n),i=2147483648&o,i?-1*(4294967295-o+1):o}function b(e,r,n,i){return i||(j.ok("boolean"==typeof n,"missing or invalid endian"),j.ok(e.length>r+3,"Trying to read beyond buffer length")),t("./buffer_ieee754").readIEEE754(e,r,n,23,4)}function w(e,r,n,i){return i||(j.ok("boolean"==typeof n,"missing or invalid endian"),j.ok(e.length>r+7,"Trying to read beyond buffer length")),t("./buffer_ieee754").readIEEE754(e,r,n,52,8)}function m(t,e){j.ok("number"==typeof t,"cannot write a non-number as a number"),j.ok(t>=0,"specified a negative value for writing an unsigned value"),j.ok(e>=t,"value is larger than maximum value for type"),j.ok(Math.floor(t)===t,"value has a fractional component")}function E(t,e,r,n,i){i||(j.ok(void 0!==e&&null!==e,"missing value"),j.ok("boolean"==typeof n,"missing or invalid endian"),j.ok(void 0!==r&&null!==r,"missing offset"),j.ok(t.length>r+1,"trying to write beyond buffer length"),m(e,65535));for(var o=0;Math.min(t.length-r,2)>o;o++)t.parent[t.offset+r+o]=(e&255<<8*(n?1-o:o))>>>8*(n?1-o:o)}function _(t,e,r,n,i){i||(j.ok(void 0!==e&&null!==e,"missing value"),j.ok("boolean"==typeof n,"missing or invalid endian"),j.ok(void 0!==r&&null!==r,"missing offset"),j.ok(t.length>r+3,"trying to write beyond buffer length"),m(e,4294967295));for(var o=0;Math.min(t.length-r,4)>o;o++)t.parent[t.offset+r+o]=255&e>>>8*(n?3-o:o)}function k(t,e,r){j.ok("number"==typeof t,"cannot write a non-number as a number"),j.ok(e>=t,"value larger than maximum allowed value"),j.ok(t>=r,"value smaller than minimum allowed value"),j.ok(Math.floor(t)===t,"value has a fractional component")}function S(t,e,r){j.ok("number"==typeof t,"cannot write a non-number as a number"),j.ok(e>=t,"value larger than maximum allowed value"),j.ok(t>=r,"value smaller than minimum allowed value")}function I(t,e,r,n,i){i||(j.ok(void 0!==e&&null!==e,"missing value"),j.ok("boolean"==typeof n,"missing or invalid endian"),j.ok(void 0!==r&&null!==r,"missing offset"),j.ok(t.length>r+1,"Trying to write beyond buffer length"),k(e,32767,-32768)),e>=0?E(t,e,r,n,i):E(t,65535+e+1,r,n,i)}function L(t,e,r,n,i){i||(j.ok(void 0!==e&&null!==e,"missing value"),j.ok("boolean"==typeof n,"missing or invalid endian"),j.ok(void 0!==r&&null!==r,"missing offset"),j.ok(t.length>r+3,"Trying to write beyond buffer length"),k(e,2147483647,-2147483648)),e>=0?_(t,e,r,n,i):_(t,4294967295+e+1,r,n,i)}function x(e,r,n,i,o){o||(j.ok(void 0!==r&&null!==r,"missing value"),j.ok("boolean"==typeof i,"missing or invalid endian"),j.ok(void 0!==n&&null!==n,"missing offset"),j.ok(e.length>n+3,"Trying to write beyond buffer length"),S(r,3.4028234663852886e38,-3.4028234663852886e38)),t("./buffer_ieee754").writeIEEE754(e,r,n,i,23,4)}function B(e,r,n,i,o){o||(j.ok(void 0!==r&&null!==r,"missing value"),j.ok("boolean"==typeof i,"missing or invalid endian"),j.ok(void 0!==n&&null!==n,"missing offset"),j.ok(e.length>n+7,"Trying to write beyond buffer length"),S(r,1.7976931348623157e308,-1.7976931348623157e308)),t("./buffer_ieee754").writeIEEE754(e,r,n,i,52,8)}var j=t("assert");r.INSPECT_MAX_BYTES=50,n.byteLength=function(t,e){switch(e||"utf8"){case"hex":return t.length/2;case"utf8":case"utf-8":return o(t).length;case"ascii":case"binary":return t.length;case"base64":return a(t).length;default:throw Error("Unknown encoding")}},n.prototype.utf8Write=function(t,e,r){return n._charsWritten=u(o(t),this,e,r)},n.prototype.asciiWrite=function(t,e,r){return n._charsWritten=u(s(t),this,e,r)},n.prototype.binaryWrite=n.prototype.asciiWrite,n.prototype.base64Write=function(t,e,r){return n._charsWritten=u(a(t),this,e,r)},n.prototype.base64Slice=function(){var e=Array.prototype.slice.apply(this,arguments);return t("base64-js").fromByteArray(e)},n.prototype.utf8Slice=function(){for(var t=Array.prototype.slice.apply(this,arguments),e="",r="",n=0;t.length>n;)127>=t[n]?(e+=f(r)+String.fromCharCode(t[n]),r=""):r+="%"+t[n].toString(16),n++;return e+f(r)},n.prototype.asciiSlice=function(){for(var t=Array.prototype.slice.apply(this,arguments),e="",r=0;t.length>r;r++)e+=String.fromCharCode(t[r]);return e},n.prototype.binarySlice=n.prototype.asciiSlice,n.prototype.inspect=function(){for(var t=[],e=this.length,n=0;e>n;n++)if(t[n]=i(this[n]),n==r.INSPECT_MAX_BYTES){t[n+1]="...";break}return"<SlowBuffer "+t.join(" ")+">"},n.prototype.hexSlice=function(t,e){var r=this.length;(!t||0>t)&&(t=0),(!e||0>e||e>r)&&(e=r);for(var n="",o=t;e>o;o++)n+=i(this[o]);return n},n.prototype.toString=function(t,e,r){if(t=((t||"utf8")+"").toLowerCase(),e=+e||0,r===void 0&&(r=this.length),+r==e)return"";switch(t){case"hex":return this.hexSlice(e,r);case"utf8":case"utf-8":return this.utf8Slice(e,r);case"ascii":return this.asciiSlice(e,r);case"binary":return this.binarySlice(e,r);case"base64":return this.base64Slice(e,r);case"ucs2":case"ucs-2":return this.ucs2Slice(e,r);default:throw Error("Unknown encoding")}},n.prototype.hexWrite=function(t,e,r){e=+e||0;var i=this.length-e;r?(r=+r,r>i&&(r=i)):r=i;var o=t.length;if(o%2)throw Error("Invalid hex string");r>o/2&&(r=o/2);for(var s=0;r>s;s++){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))throw Error("Invalid hex string");this[e+s]=a}return n._charsWritten=2*s,s},n.prototype.write=function(t,e,r,n){if(isFinite(e))isFinite(r)||(n=r,r=void 0);else{var i=n;n=e,e=r,r=i}e=+e||0;var o=this.length-e;switch(r?(r=+r,r>o&&(r=o)):r=o,n=((n||"utf8")+"").toLowerCase()){case"hex":return this.hexWrite(t,e,r);case"utf8":case"utf-8":return this.utf8Write(t,e,r);case"ascii":return this.asciiWrite(t,e,r);case"binary":return this.binaryWrite(t,e,r);case"base64":return this.base64Write(t,e,r);case"ucs2":case"ucs-2":return this.ucs2Write(t,e,r);default:throw Error("Unknown encoding")}},n.prototype.slice=function(t,e){if(void 0===e&&(e=this.length),e>this.length)throw Error("oob");if(t>e)throw Error("oob");return new l(this,e-t,+t)},n.prototype.copy=function(t,e,r,n){for(var i=[],o=r;n>o;o++)j.ok(this[o]!==void 0,"copying undefined buffer bytes!"),i.push(this[o]);for(var o=e;e+i.length>o;o++)t[o]=i[o-e]},n.prototype.fill=function(t,e,r){if(r>this.length)throw Error("oob");if(e>r)throw Error("oob");for(var n=e;r>n;n++)this[n]=t},r.SlowBuffer=n,r.Buffer=l,l.poolSize=8192;var A;l.isBuffer=function(t){return t instanceof l||t instanceof n},l.concat=function(t,e){if(!Array.isArray(t))throw Error("Usage: Buffer.concat(list, [totalLength])\n list should be an Array.");if(0===t.length)return new l(0);if(1===t.length)return t[0];if("number"!=typeof e){e=0;for(var r=0;t.length>r;r++){var n=t[r];e+=n.length}}for(var i=new l(e),o=0,r=0;t.length>r;r++){var n=t[r];n.copy(i,o),o+=n.length}return i},l.prototype.inspect=function(){for(var t=[],e=this.length,n=0;e>n;n++)if(t[n]=i(this.parent[n+this.offset]),n==r.INSPECT_MAX_BYTES){t[n+1]="...";break}return"<Buffer "+t.join(" ")+">"},l.prototype.get=function(t){if(0>t||t>=this.length)throw Error("oob");return this.parent[this.offset+t]},l.prototype.set=function(t,e){if(0>t||t>=this.length)throw Error("oob");return this.parent[this.offset+t]=e},l.prototype.write=function(t,e,r,i){if(isFinite(e))isFinite(r)||(i=r,r=void 0);else{var o=i;i=e,e=r,r=o}e=+e||0;var s=this.length-e;r?(r=+r,r>s&&(r=s)):r=s,i=((i||"utf8")+"").toLowerCase();var a;switch(i){case"hex":a=this.parent.hexWrite(t,this.offset+e,r);break;case"utf8":case"utf-8":a=this.parent.utf8Write(t,this.offset+e,r);break;case"ascii":a=this.parent.asciiWrite(t,this.offset+e,r);break;case"binary":a=this.parent.binaryWrite(t,this.offset+e,r);break;case"base64":a=this.parent.base64Write(t,this.offset+e,r);break;case"ucs2":case"ucs-2":a=this.parent.ucs2Write(t,this.offset+e,r);break;default:throw Error("Unknown encoding")}return l._charsWritten=n._charsWritten,a},l.prototype.toString=function(t,e,r){switch(t=((t||"utf8")+"").toLowerCase(),e===void 0||0>e?e=0:e>this.length&&(e=this.length),r===void 0||r>this.length?r=this.length:0>r&&(r=0),e+=this.offset,r+=this.offset,t){case"hex":return this.parent.hexSlice(e,r);case"utf8":case"utf-8":return this.parent.utf8Slice(e,r);case"ascii":return this.parent.asciiSlice(e,r);case"binary":return this.parent.binarySlice(e,r);case"base64":return this.parent.base64Slice(e,r);case"ucs2":case"ucs-2":return this.parent.ucs2Slice(e,r);default:throw Error("Unknown encoding")}},l.byteLength=n.byteLength,l.prototype.fill=function(t,e,r){if(t||(t=0),e||(e=0),r||(r=this.length),"string"==typeof t&&(t=t.charCodeAt(0)),"number"!=typeof t||isNaN(t))throw Error("value is not a number");if(e>r)throw Error("end < start");if(r===e)return 0;if(0==this.length)return 0;if(0>e||e>=this.length)throw Error("start out of bounds");if(0>r||r>this.length)throw Error("end out of bounds");return this.parent.fill(t,e+this.offset,r+this.offset)},l.prototype.copy=function(t,e,r,n){var i=this;if(r||(r=0),n||(n=this.length),e||(e=0),r>n)throw Error("sourceEnd < sourceStart");if(n===r)return 0;if(0==t.length||0==i.length)return 0;if(0>e||e>=t.length)throw Error("targetStart out of bounds");if(0>r||r>=i.length)throw Error("sourceStart out of bounds");if(0>n||n>i.length)throw Error("sourceEnd out of bounds");return n>this.length&&(n=this.length),n-r>t.length-e&&(n=t.length-e+r),this.parent.copy(t.parent,e+t.offset,r+this.offset,n+this.offset)},l.prototype.slice=function(t,e){if(void 0===e&&(e=this.length),e>this.length)throw Error("oob");if(t>e)throw Error("oob");return new l(this.parent,e-t,+t+this.offset)},l.prototype.utf8Slice=function(t,e){return this.toString("utf8",t,e)},l.prototype.binarySlice=function(t,e){return this.toString("binary",t,e)},l.prototype.asciiSlice=function(t,e){return this.toString("ascii",t,e)},l.prototype.utf8Write=function(t,e){return this.write(t,e,"utf8")},l.prototype.binaryWrite=function(t,e){return this.write(t,e,"binary")},l.prototype.asciiWrite=function(t,e){return this.write(t,e,"ascii")},l.prototype.readUInt8=function(t,e){var r=this;return e||(j.ok(void 0!==t&&null!==t,"missing offset"),j.ok(r.length>t,"Trying to read beyond buffer length")),t>=r.length?void 0:r.parent[r.offset+t]},l.prototype.readUInt16LE=function(t,e){return d(this,t,!1,e)},l.prototype.readUInt16BE=function(t,e){return d(this,t,!0,e)},l.prototype.readUInt32LE=function(t,e){return g(this,t,!1,e)},l.prototype.readUInt32BE=function(t,e){return g(this,t,!0,e)},l.prototype.readInt8=function(t,e){var r,n=this;return e||(j.ok(void 0!==t&&null!==t,"missing offset"),j.ok(n.length>t,"Trying to read beyond buffer length")),t>=n.length?void 0:(r=128&n.parent[n.offset+t],r?-1*(255-n.parent[n.offset+t]+1):n.parent[n.offset+t])},l.prototype.readInt16LE=function(t,e){return y(this,t,!1,e)},l.prototype.readInt16BE=function(t,e){return y(this,t,!0,e)},l.prototype.readInt32LE=function(t,e){return v(this,t,!1,e)},l.prototype.readInt32BE=function(t,e){return v(this,t,!0,e)},l.prototype.readFloatLE=function(t,e){return b(this,t,!1,e)},l.prototype.readFloatBE=function(t,e){return b(this,t,!0,e)},l.prototype.readDoubleLE=function(t,e){return w(this,t,!1,e)},l.prototype.readDoubleBE=function(t,e){return w(this,t,!0,e)},l.prototype.writeUInt8=function(t,e,r){var n=this;r||(j.ok(void 0!==t&&null!==t,"missing value"),j.ok(void 0!==e&&null!==e,"missing offset"),j.ok(n.length>e,"trying to write beyond buffer length"),m(t,255)),n.length>e&&(n.parent[n.offset+e]=t)},l.prototype.writeUInt16LE=function(t,e,r){E(this,t,e,!1,r)},l.prototype.writeUInt16BE=function(t,e,r){E(this,t,e,!0,r)},l.prototype.writeUInt32LE=function(t,e,r){_(this,t,e,!1,r)},l.prototype.writeUInt32BE=function(t,e,r){_(this,t,e,!0,r)},l.prototype.writeInt8=function(t,e,r){var n=this;r||(j.ok(void 0!==t&&null!==t,"missing value"),j.ok(void 0!==e&&null!==e,"missing offset"),j.ok(n.length>e,"Trying to write beyond buffer length"),k(t,127,-128)),t>=0?n.writeUInt8(t,e,r):n.writeUInt8(255+t+1,e,r)},l.prototype.writeInt16LE=function(t,e,r){I(this,t,e,!1,r)},l.prototype.writeInt16BE=function(t,e,r){I(this,t,e,!0,r)},l.prototype.writeInt32LE=function(t,e,r){L(this,t,e,!1,r)},l.prototype.writeInt32BE=function(t,e,r){L(this,t,e,!0,r)},l.prototype.writeFloatLE=function(t,e,r){x(this,t,e,!1,r)},l.prototype.writeFloatBE=function(t,e,r){x(this,t,e,!0,r)},l.prototype.writeDoubleLE=function(t,e,r){B(this,t,e,!1,r)},l.prototype.writeDoubleBE=function(t,e,r){B(this,t,e,!0,r)},n.prototype.readUInt8=l.prototype.readUInt8,n.prototype.readUInt16LE=l.prototype.readUInt16LE,n.prototype.readUInt16BE=l.prototype.readUInt16BE,n.prototype.readUInt32LE=l.prototype.readUInt32LE,n.prototype.readUInt32BE=l.prototype.readUInt32BE,n.prototype.readInt8=l.prototype.readInt8,n.prototype.readInt16LE=l.prototype.readInt16LE,n.prototype.readInt16BE=l.prototype.readInt16BE,n.prototype.readInt32LE=l.prototype.readInt32LE,n.prototype.readInt32BE=l.prototype.readInt32BE,n.prototype.readFloatLE=l.prototype.readFloatLE,n.prototype.readFloatBE=l.prototype.readFloatBE,n.prototype.readDoubleLE=l.prototype.readDoubleLE,n.prototype.readDoubleBE=l.prototype.readDoubleBE,n.prototype.writeUInt8=l.prototype.writeUInt8,n.prototype.writeUInt16LE=l.prototype.writeUInt16LE,n.prototype.writeUInt16BE=l.prototype.writeUInt16BE,n.prototype.writeUInt32LE=l.prototype.writeUInt32LE,n.prototype.writeUInt32BE=l.prototype.writeUInt32BE,n.prototype.writeInt8=l.prototype.writeInt8,n.prototype.writeInt16LE=l.prototype.writeInt16LE,n.prototype.writeInt16BE=l.prototype.writeInt16BE,n.prototype.writeInt32LE=l.prototype.writeInt32LE,n.prototype.writeInt32BE=l.prototype.writeInt32BE,n.prototype.writeFloatLE=l.prototype.writeFloatLE,n.prototype.writeFloatBE=l.prototype.writeFloatBE,n.prototype.writeDoubleLE=l.prototype.writeDoubleLE,n.prototype.writeDoubleBE=l.prototype.writeDoubleBE},{assert:1,"./buffer_ieee754":5,"base64-js":7}],7:[function(t,e){(function(){"use strict";function t(t){var e,r,i,o,s,a;if(t.length%4>0)throw"Invalid string. Length must be a multiple of 4";for(s=t.indexOf("="),s=s>0?t.length-s:0,a=[],i=s>0?t.length-4:t.length,e=0,r=0;i>e;e+=4,r+=3)o=n.indexOf(t[e])<<18|n.indexOf(t[e+1])<<12|n.indexOf(t[e+2])<<6|n.indexOf(t[e+3]),a.push((16711680&o)>>16),a.push((65280&o)>>8),a.push(255&o);return 2===s?(o=n.indexOf(t[e])<<2|n.indexOf(t[e+1])>>4,a.push(255&o)):1===s&&(o=n.indexOf(t[e])<<10|n.indexOf(t[e+1])<<4|n.indexOf(t[e+2])>>2,a.push(255&o>>8),a.push(255&o)),a}function r(t){function e(t){return n[63&t>>18]+n[63&t>>12]+n[63&t>>6]+n[63&t]}var r,i,o,s=t.length%3,a="";for(r=0,o=t.length-s;o>r;r+=3)i=(t[r]<<16)+(t[r+1]<<8)+t[r+2],a+=e(i);switch(s){case 1:i=t[t.length-1],a+=n[i>>2],a+=n[63&i<<4],a+="==";break;case 2:i=(t[t.length-2]<<8)+t[t.length-1],a+=n[i>>10],a+=n[63&i>>4],a+=n[63&i<<2],a+="="}return a}var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";e.exports.toByteArray=t,e.exports.fromByteArray=r})()},{}],8:[function(t,e,r){r.readIEEE754=function(t,e,r,n,i){var o,s,a=8*i-n-1,u=(1<<a)-1,f=u>>1,h=-7,l=r?0:i-1,c=r?1:-1,p=t[e+l];for(l+=c,o=p&(1<<-h)-1,p>>=-h,h+=a;h>0;o=256*o+t[e+l],l+=c,h-=8);for(s=o&(1<<-h)-1,o>>=-h,h+=n;h>0;s=256*s+t[e+l],l+=c,h-=8);if(0===o)o=1-f;else{if(o===u)return s?0/0:1/0*(p?-1:1);s+=Math.pow(2,n),o-=f}return(p?-1:1)*s*Math.pow(2,o-n)},r.writeIEEE754=function(t,e,r,n,i,o){var s,a,u,f=8*o-i-1,h=(1<<f)-1,l=h>>1,c=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?o-1:0,d=n?-1:1,g=0>e||0===e&&0>1/e?1:0;for(e=Math.abs(e),isNaN(e)||1/0===e?(a=isNaN(e)?1:0,s=h):(s=Math.floor(Math.log(e)/Math.LN2),1>e*(u=Math.pow(2,-s))&&(s--,u*=2),e+=s+l>=1?c/u:c*Math.pow(2,1-l),e*u>=2&&(s++,u/=2),s+l>=h?(a=0,s=h):s+l>=1?(a=(e*u-1)*Math.pow(2,i),s+=l):(a=e*Math.pow(2,l-1)*Math.pow(2,i),s=0));i>=8;t[r+p]=255&a,p+=d,a/=256,i-=8);for(s=s<<i|a,f+=i;f>0;t[r+p]=255&s,p+=d,s/=256,f-=8);t[r+p-d]|=128*g}},{}],3:[function(t,e,r){function n(t){this.length=t}function i(t){return 16>t?"0"+t.toString(16):t.toString(16)}function o(t){for(var e=[],r=0;t.length>r;r++)if(127>=t.charCodeAt(r))e.push(t.charCodeAt(r));else for(var n=encodeURIComponent(t.charAt(r)).substr(1).split("%"),i=0;n.length>i;i++)e.push(parseInt(n[i],16));return e}function s(t){for(var e=[],r=0;t.length>r;r++)e.push(255&t.charCodeAt(r));return e}function a(e){return t("base64-js").toByteArray(e)}function u(t,e,r,n){for(var i=0;n>i&&!(i+r>=e.length||i>=t.length);)e[i+r]=t[i],i++;return i}function f(t){try{return decodeURIComponent(t)}catch(e){return String.fromCharCode(65533)}}function h(t){return t=~~Math.ceil(+t),0>t?0:t}function l(t,e,r){if(!(this instanceof l))return new l(t,e,r);var i;if("number"==typeof r)this.length=h(e),this.parent=t,this.offset=r;else{switch(i=typeof t){case"number":this.length=h(t);break;case"string":this.length=l.byteLength(t,e);break;case"object":this.length=h(t.length);break;default:throw Error("First argument needs to be a number, array or string.")}if(this.length>l.poolSize?(this.parent=new n(this.length),this.offset=0):((!A||A.length-A.used<this.length)&&p(),this.parent=A,this.offset=A.used,A.used+=this.length),c(t))for(var o=0;this.length>o;o++)this.parent[o+this.offset]=t[o];else"string"==i&&(this.length=this.write(t,0,e))}}function c(t){return Array.isArray(t)||l.isBuffer(t)||t&&"object"==typeof t&&"number"==typeof t.length}function p(){A=new n(l.poolSize),A.used=0}function d(t,e,r,n){var i=0;return n||(j.ok("boolean"==typeof r,"missing or invalid endian"),j.ok(void 0!==e&&null!==e,"missing offset"),j.ok(t.length>e+1,"Trying to read beyond buffer length")),r?(i=t.parent[t.offset+e]<<8,i|=t.parent[t.offset+e+1]):(i=t.parent[t.offset+e],i|=t.parent[t.offset+e+1]<<8),i}function g(t,e,r,n){var i=0;return n||(j.ok("boolean"==typeof r,"missing or invalid endian"),j.ok(void 0!==e&&null!==e,"missing offset"),j.ok(t.length>e+3,"Trying to read beyond buffer length")),r?(i=t.parent[t.offset+e+1]<<16,i|=t.parent[t.offset+e+2]<<8,i|=t.parent[t.offset+e+3],i+=t.parent[t.offset+e]<<24>>>0):(i=t.parent[t.offset+e+2]<<16,i|=t.parent[t.offset+e+1]<<8,i|=t.parent[t.offset+e],i+=t.parent[t.offset+e+3]<<24>>>0),i}function y(t,e,r,n){var i,o;return n||(j.ok("boolean"==typeof r,"missing or invalid endian"),j.ok(void 0!==e&&null!==e,"missing offset"),j.ok(t.length>e+1,"Trying to read beyond buffer length")),o=d(t,e,r,n),i=32768&o,i?-1*(65535-o+1):o}function v(t,e,r,n){var i,o;return n||(j.ok("boolean"==typeof r,"missing or invalid endian"),j.ok(void 0!==e&&null!==e,"missing offset"),j.ok(t.length>e+3,"Trying to read beyond buffer length")),o=g(t,e,r,n),i=2147483648&o,i?-1*(4294967295-o+1):o}function b(e,r,n,i){return i||(j.ok("boolean"==typeof n,"missing or invalid endian"),j.ok(e.length>r+3,"Trying to read beyond buffer length")),t("./buffer_ieee754").readIEEE754(e,r,n,23,4)}function w(e,r,n,i){return i||(j.ok("boolean"==typeof n,"missing or invalid endian"),j.ok(e.length>r+7,"Trying to read beyond buffer length")),t("./buffer_ieee754").readIEEE754(e,r,n,52,8)}function m(t,e){j.ok("number"==typeof t,"cannot write a non-number as a number"),j.ok(t>=0,"specified a negative value for writing an unsigned value"),j.ok(e>=t,"value is larger than maximum value for type"),j.ok(Math.floor(t)===t,"value has a fractional component")}function E(t,e,r,n,i){i||(j.ok(void 0!==e&&null!==e,"missing value"),j.ok("boolean"==typeof n,"missing or invalid endian"),j.ok(void 0!==r&&null!==r,"missing offset"),j.ok(t.length>r+1,"trying to write beyond buffer length"),m(e,65535)),n?(t.parent[t.offset+r]=(65280&e)>>>8,t.parent[t.offset+r+1]=255&e):(t.parent[t.offset+r+1]=(65280&e)>>>8,t.parent[t.offset+r]=255&e)}function _(t,e,r,n,i){i||(j.ok(void 0!==e&&null!==e,"missing value"),j.ok("boolean"==typeof n,"missing or invalid endian"),j.ok(void 0!==r&&null!==r,"missing offset"),j.ok(t.length>r+3,"trying to write beyond buffer length"),m(e,4294967295)),n?(t.parent[t.offset+r]=255&e>>>24,t.parent[t.offset+r+1]=255&e>>>16,t.parent[t.offset+r+2]=255&e>>>8,t.parent[t.offset+r+3]=255&e):(t.parent[t.offset+r+3]=255&e>>>24,t.parent[t.offset+r+2]=255&e>>>16,t.parent[t.offset+r+1]=255&e>>>8,t.parent[t.offset+r]=255&e)}function k(t,e,r){j.ok("number"==typeof t,"cannot write a non-number as a number"),j.ok(e>=t,"value larger than maximum allowed value"),j.ok(t>=r,"value smaller than minimum allowed value"),j.ok(Math.floor(t)===t,"value has a fractional component")
}function S(t,e,r){j.ok("number"==typeof t,"cannot write a non-number as a number"),j.ok(e>=t,"value larger than maximum allowed value"),j.ok(t>=r,"value smaller than minimum allowed value")}function I(t,e,r,n,i){i||(j.ok(void 0!==e&&null!==e,"missing value"),j.ok("boolean"==typeof n,"missing or invalid endian"),j.ok(void 0!==r&&null!==r,"missing offset"),j.ok(t.length>r+1,"Trying to write beyond buffer length"),k(e,32767,-32768)),e>=0?E(t,e,r,n,i):E(t,65535+e+1,r,n,i)}function L(t,e,r,n,i){i||(j.ok(void 0!==e&&null!==e,"missing value"),j.ok("boolean"==typeof n,"missing or invalid endian"),j.ok(void 0!==r&&null!==r,"missing offset"),j.ok(t.length>r+3,"Trying to write beyond buffer length"),k(e,2147483647,-2147483648)),e>=0?_(t,e,r,n,i):_(t,4294967295+e+1,r,n,i)}function x(e,r,n,i,o){o||(j.ok(void 0!==r&&null!==r,"missing value"),j.ok("boolean"==typeof i,"missing or invalid endian"),j.ok(void 0!==n&&null!==n,"missing offset"),j.ok(e.length>n+3,"Trying to write beyond buffer length"),S(r,3.4028234663852886e38,-3.4028234663852886e38)),t("./buffer_ieee754").writeIEEE754(e,r,n,i,23,4)}function B(e,r,n,i,o){o||(j.ok(void 0!==r&&null!==r,"missing value"),j.ok("boolean"==typeof i,"missing or invalid endian"),j.ok(void 0!==n&&null!==n,"missing offset"),j.ok(e.length>n+7,"Trying to write beyond buffer length"),S(r,1.7976931348623157e308,-1.7976931348623157e308)),t("./buffer_ieee754").writeIEEE754(e,r,n,i,52,8)}var j=t("assert");r.INSPECT_MAX_BYTES=50,n.byteLength=function(t,e){switch(e||"utf8"){case"hex":return t.length/2;case"utf8":case"utf-8":return o(t).length;case"ascii":return t.length;case"base64":return a(t).length;default:throw Error("Unknown encoding")}},n.prototype.utf8Write=function(t,e,r){return n._charsWritten=u(o(t),this,e,r)},n.prototype.asciiWrite=function(t,e,r){return n._charsWritten=u(s(t),this,e,r)},n.prototype.base64Write=function(t,e,r){return n._charsWritten=u(a(t),this,e,r)},n.prototype.base64Slice=function(){var e=Array.prototype.slice.apply(this,arguments);return t("base64-js").fromByteArray(e)},n.prototype.utf8Slice=function(){for(var t=Array.prototype.slice.apply(this,arguments),e="",r="",n=0;t.length>n;)127>=t[n]?(e+=f(r)+String.fromCharCode(t[n]),r=""):r+="%"+t[n].toString(16),n++;return e+f(r)},n.prototype.asciiSlice=function(){for(var t=Array.prototype.slice.apply(this,arguments),e="",r=0;t.length>r;r++)e+=String.fromCharCode(t[r]);return e},n.prototype.inspect=function(){for(var t=[],e=this.length,n=0;e>n;n++)if(t[n]=i(this[n]),n==r.INSPECT_MAX_BYTES){t[n+1]="...";break}return"<SlowBuffer "+t.join(" ")+">"},n.prototype.hexSlice=function(t,e){var r=this.length;(!t||0>t)&&(t=0),(!e||0>e||e>r)&&(e=r);for(var n="",o=t;e>o;o++)n+=i(this[o]);return n},n.prototype.toString=function(t,e,r){if(t=((t||"utf8")+"").toLowerCase(),e=+e||0,r===void 0&&(r=this.length),+r==e)return"";switch(t){case"hex":return this.hexSlice(e,r);case"utf8":case"utf-8":return this.utf8Slice(e,r);case"ascii":return this.asciiSlice(e,r);case"binary":return this.binarySlice(e,r);case"base64":return this.base64Slice(e,r);case"ucs2":case"ucs-2":return this.ucs2Slice(e,r);default:throw Error("Unknown encoding")}},n.prototype.hexWrite=function(t,e,r){e=+e||0;var i=this.length-e;r?(r=+r,r>i&&(r=i)):r=i;var o=t.length;if(o%2)throw Error("Invalid hex string");r>o/2&&(r=o/2);for(var s=0;r>s;s++){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))throw Error("Invalid hex string");this[e+s]=a}return n._charsWritten=2*s,s},n.prototype.write=function(t,e,r,n){if(isFinite(e))isFinite(r)||(n=r,r=void 0);else{var i=n;n=e,e=r,r=i}e=+e||0;var o=this.length-e;switch(r?(r=+r,r>o&&(r=o)):r=o,n=((n||"utf8")+"").toLowerCase()){case"hex":return this.hexWrite(t,e,r);case"utf8":case"utf-8":return this.utf8Write(t,e,r);case"ascii":return this.asciiWrite(t,e,r);case"binary":return this.binaryWrite(t,e,r);case"base64":return this.base64Write(t,e,r);case"ucs2":case"ucs-2":return this.ucs2Write(t,e,r);default:throw Error("Unknown encoding")}},n.prototype.slice=function(t,e){if(void 0===e&&(e=this.length),e>this.length)throw Error("oob");if(t>e)throw Error("oob");return new l(this,e-t,+t)},n.prototype.copy=function(t,e,r,n){for(var i=[],o=r;n>o;o++)j.ok(this[o]!==void 0,"copying undefined buffer bytes!"),i.push(this[o]);for(var o=e;e+i.length>o;o++)t[o]=i[o-e]},r.SlowBuffer=n,r.Buffer=l,l.poolSize=8192;var A;l.isBuffer=function(t){return t instanceof l||t instanceof n},l.concat=function(t,e){if(!Array.isArray(t))throw Error("Usage: Buffer.concat(list, [totalLength])\n list should be an Array.");if(0===t.length)return new l(0);if(1===t.length)return t[0];if("number"!=typeof e){e=0;for(var r=0;t.length>r;r++){var n=t[r];e+=n.length}}for(var i=new l(e),o=0,r=0;t.length>r;r++){var n=t[r];n.copy(i,o),o+=n.length}return i},l.prototype.inspect=function(){for(var t=[],e=this.length,n=0;e>n;n++)if(t[n]=i(this.parent[n+this.offset]),n==r.INSPECT_MAX_BYTES){t[n+1]="...";break}return"<Buffer "+t.join(" ")+">"},l.prototype.get=function(t){if(0>t||t>=this.length)throw Error("oob");return this.parent[this.offset+t]},l.prototype.set=function(t,e){if(0>t||t>=this.length)throw Error("oob");return this.parent[this.offset+t]=e},l.prototype.write=function(t,e,r,i){if(isFinite(e))isFinite(r)||(i=r,r=void 0);else{var o=i;i=e,e=r,r=o}e=+e||0;var s=this.length-e;r?(r=+r,r>s&&(r=s)):r=s,i=((i||"utf8")+"").toLowerCase();var a;switch(i){case"hex":a=this.parent.hexWrite(t,this.offset+e,r);break;case"utf8":case"utf-8":a=this.parent.utf8Write(t,this.offset+e,r);break;case"ascii":a=this.parent.asciiWrite(t,this.offset+e,r);break;case"binary":a=this.parent.binaryWrite(t,this.offset+e,r);break;case"base64":a=this.parent.base64Write(t,this.offset+e,r);break;case"ucs2":case"ucs-2":a=this.parent.ucs2Write(t,this.offset+e,r);break;default:throw Error("Unknown encoding")}return l._charsWritten=n._charsWritten,a},l.prototype.toString=function(t,e,r){switch(t=((t||"utf8")+"").toLowerCase(),e===void 0||0>e?e=0:e>this.length&&(e=this.length),r===void 0||r>this.length?r=this.length:0>r&&(r=0),e+=this.offset,r+=this.offset,t){case"hex":return this.parent.hexSlice(e,r);case"utf8":case"utf-8":return this.parent.utf8Slice(e,r);case"ascii":return this.parent.asciiSlice(e,r);case"binary":return this.parent.binarySlice(e,r);case"base64":return this.parent.base64Slice(e,r);case"ucs2":case"ucs-2":return this.parent.ucs2Slice(e,r);default:throw Error("Unknown encoding")}},l.byteLength=n.byteLength,l.prototype.fill=function(t,e,r){if(t||(t=0),e||(e=0),r||(r=this.length),"string"==typeof t&&(t=t.charCodeAt(0)),"number"!=typeof t||isNaN(t))throw Error("value is not a number");if(e>r)throw Error("end < start");if(r===e)return 0;if(0==this.length)return 0;if(0>e||e>=this.length)throw Error("start out of bounds");if(0>r||r>this.length)throw Error("end out of bounds");return this.parent.fill(t,e+this.offset,r+this.offset)},l.prototype.copy=function(t,e,r,n){var i=this;if(r||(r=0),n||(n=this.length),e||(e=0),r>n)throw Error("sourceEnd < sourceStart");if(n===r)return 0;if(0==t.length||0==i.length)return 0;if(0>e||e>=t.length)throw Error("targetStart out of bounds");if(0>r||r>=i.length)throw Error("sourceStart out of bounds");if(0>n||n>i.length)throw Error("sourceEnd out of bounds");return n>this.length&&(n=this.length),n-r>t.length-e&&(n=t.length-e+r),this.parent.copy(t.parent,e+t.offset,r+this.offset,n+this.offset)},l.prototype.slice=function(t,e){if(void 0===e&&(e=this.length),e>this.length)throw Error("oob");if(t>e)throw Error("oob");return new l(this.parent,e-t,+t+this.offset)},l.prototype.utf8Slice=function(t,e){return this.toString("utf8",t,e)},l.prototype.binarySlice=function(t,e){return this.toString("binary",t,e)},l.prototype.asciiSlice=function(t,e){return this.toString("ascii",t,e)},l.prototype.utf8Write=function(t,e){return this.write(t,e,"utf8")},l.prototype.binaryWrite=function(t,e){return this.write(t,e,"binary")},l.prototype.asciiWrite=function(t,e){return this.write(t,e,"ascii")},l.prototype.readUInt8=function(t,e){var r=this;return e||(j.ok(void 0!==t&&null!==t,"missing offset"),j.ok(r.length>t,"Trying to read beyond buffer length")),r.parent[r.offset+t]},l.prototype.readUInt16LE=function(t,e){return d(this,t,!1,e)},l.prototype.readUInt16BE=function(t,e){return d(this,t,!0,e)},l.prototype.readUInt32LE=function(t,e){return g(this,t,!1,e)},l.prototype.readUInt32BE=function(t,e){return g(this,t,!0,e)},l.prototype.readInt8=function(t,e){var r,n=this;return e||(j.ok(void 0!==t&&null!==t,"missing offset"),j.ok(n.length>t,"Trying to read beyond buffer length")),r=128&n.parent[n.offset+t],r?-1*(255-n.parent[n.offset+t]+1):n.parent[n.offset+t]},l.prototype.readInt16LE=function(t,e){return y(this,t,!1,e)},l.prototype.readInt16BE=function(t,e){return y(this,t,!0,e)},l.prototype.readInt32LE=function(t,e){return v(this,t,!1,e)},l.prototype.readInt32BE=function(t,e){return v(this,t,!0,e)},l.prototype.readFloatLE=function(t,e){return b(this,t,!1,e)},l.prototype.readFloatBE=function(t,e){return b(this,t,!0,e)},l.prototype.readDoubleLE=function(t,e){return w(this,t,!1,e)},l.prototype.readDoubleBE=function(t,e){return w(this,t,!0,e)},l.prototype.writeUInt8=function(t,e,r){var n=this;r||(j.ok(void 0!==t&&null!==t,"missing value"),j.ok(void 0!==e&&null!==e,"missing offset"),j.ok(n.length>e,"trying to write beyond buffer length"),m(t,255)),n.parent[n.offset+e]=t},l.prototype.writeUInt16LE=function(t,e,r){E(this,t,e,!1,r)},l.prototype.writeUInt16BE=function(t,e,r){E(this,t,e,!0,r)},l.prototype.writeUInt32LE=function(t,e,r){_(this,t,e,!1,r)},l.prototype.writeUInt32BE=function(t,e,r){_(this,t,e,!0,r)},l.prototype.writeInt8=function(t,e,r){var n=this;r||(j.ok(void 0!==t&&null!==t,"missing value"),j.ok(void 0!==e&&null!==e,"missing offset"),j.ok(n.length>e,"Trying to write beyond buffer length"),k(t,127,-128)),t>=0?n.writeUInt8(t,e,r):n.writeUInt8(255+t+1,e,r)},l.prototype.writeInt16LE=function(t,e,r){I(this,t,e,!1,r)},l.prototype.writeInt16BE=function(t,e,r){I(this,t,e,!0,r)},l.prototype.writeInt32LE=function(t,e,r){L(this,t,e,!1,r)},l.prototype.writeInt32BE=function(t,e,r){L(this,t,e,!0,r)},l.prototype.writeFloatLE=function(t,e,r){x(this,t,e,!1,r)},l.prototype.writeFloatBE=function(t,e,r){x(this,t,e,!0,r)},l.prototype.writeDoubleLE=function(t,e,r){B(this,t,e,!1,r)},l.prototype.writeDoubleBE=function(t,e,r){B(this,t,e,!0,r)},n.prototype.readUInt8=l.prototype.readUInt8,n.prototype.readUInt16LE=l.prototype.readUInt16LE,n.prototype.readUInt16BE=l.prototype.readUInt16BE,n.prototype.readUInt32LE=l.prototype.readUInt32LE,n.prototype.readUInt32BE=l.prototype.readUInt32BE,n.prototype.readInt8=l.prototype.readInt8,n.prototype.readInt16LE=l.prototype.readInt16LE,n.prototype.readInt16BE=l.prototype.readInt16BE,n.prototype.readInt32LE=l.prototype.readInt32LE,n.prototype.readInt32BE=l.prototype.readInt32BE,n.prototype.readFloatLE=l.prototype.readFloatLE,n.prototype.readFloatBE=l.prototype.readFloatBE,n.prototype.readDoubleLE=l.prototype.readDoubleLE,n.prototype.readDoubleBE=l.prototype.readDoubleBE,n.prototype.writeUInt8=l.prototype.writeUInt8,n.prototype.writeUInt16LE=l.prototype.writeUInt16LE,n.prototype.writeUInt16BE=l.prototype.writeUInt16BE,n.prototype.writeUInt32LE=l.prototype.writeUInt32LE,n.prototype.writeUInt32BE=l.prototype.writeUInt32BE,n.prototype.writeInt8=l.prototype.writeInt8,n.prototype.writeInt16LE=l.prototype.writeInt16LE,n.prototype.writeInt16BE=l.prototype.writeInt16BE,n.prototype.writeInt32LE=l.prototype.writeInt32LE,n.prototype.writeInt32BE=l.prototype.writeInt32BE,n.prototype.writeFloatLE=l.prototype.writeFloatLE,n.prototype.writeFloatBE=l.prototype.writeFloatBE,n.prototype.writeDoubleLE=l.prototype.writeDoubleLE,n.prototype.writeDoubleBE=l.prototype.writeDoubleBE},{assert:1,"./buffer_ieee754":8,"base64-js":9}],9:[function(t,e){(function(){"use strict";function t(t){var e,r,i,o,s,a;if(t.length%4>0)throw"Invalid string. Length must be a multiple of 4";for(s=t.indexOf("="),s=s>0?t.length-s:0,a=[],i=s>0?t.length-4:t.length,e=0,r=0;i>e;e+=4,r+=3)o=n.indexOf(t[e])<<18|n.indexOf(t[e+1])<<12|n.indexOf(t[e+2])<<6|n.indexOf(t[e+3]),a.push((16711680&o)>>16),a.push((65280&o)>>8),a.push(255&o);return 2===s?(o=n.indexOf(t[e])<<2|n.indexOf(t[e+1])>>4,a.push(255&o)):1===s&&(o=n.indexOf(t[e])<<10|n.indexOf(t[e+1])<<4|n.indexOf(t[e+2])>>2,a.push(255&o>>8),a.push(255&o)),a}function r(t){function e(t){return n[63&t>>18]+n[63&t>>12]+n[63&t>>6]+n[63&t]}var r,i,o,s=t.length%3,a="";for(r=0,o=t.length-s;o>r;r+=3)i=(t[r]<<16)+(t[r+1]<<8)+t[r+2],a+=e(i);switch(s){case 1:i=t[t.length-1],a+=n[i>>2],a+=n[63&i<<4],a+="==";break;case 2:i=(t[t.length-2]<<8)+t[t.length-1],a+=n[i>>10],a+=n[63&i>>4],a+=n[63&i<<2],a+="="}return a}var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";e.exports.toByteArray=t,e.exports.fromByteArray=r})()},{}]},{},[]),e.exports=t("buffer-browserify")},{}],1:[function(t,e){(function(r,n){function i(t,e,r){this.chunk=t,this.encoding=e,this.callback=r}function o(t,e){t=t||{};var r=t.highWaterMark;this.highWaterMark=r||0===r?r:16384,this.objectMode=!!t.objectMode,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var n=t.decodeStrings===!1;this.decodeStrings=!n,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){d(e,t)},this.writecb=null,this.writelen=0,this.buffer=[]}function s(e){return this instanceof s||this instanceof t("./_stream_duplex")?(this._writableState=new o(e,this),this.writable=!0,_.call(this),void 0):new s(e)}function a(t,e,n){var i=Error("write after end");t.emit("error",i),r.nextTick(function(){n(i)})}function u(t,e,i,o){var s=!0;if(!n.isBuffer(i)&&"string"!=typeof i&&null!==i&&void 0!==i&&!e.objectMode){var a=new TypeError("Invalid non-string/buffer chunk");t.emit("error",a),r.nextTick(function(){o(a)}),s=!1}return s}function f(t,e,r){return t.objectMode||t.decodeStrings===!1||"string"!=typeof e||(e=new n(e,r)),e}function h(t,e,r,n,o){r=f(e,r,n);var s=e.objectMode?1:r.length;e.length+=s;var a=e.length<e.highWaterMark;return e.needDrain=!a,e.writing?e.buffer.push(new i(r,n,o)):l(t,e,s,r,n,o),a}function l(t,e,r,n,i,o){e.writelen=r,e.writecb=o,e.writing=!0,e.sync=!0,t._write(n,i,e.onwrite),e.sync=!1}function c(t,e,n,i,o){n?r.nextTick(function(){o(i)}):o(i),t.emit("error",i)}function p(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function d(t,e){var n=t._writableState,i=n.sync,o=n.writecb;if(p(n),e)c(t,n,i,e,o);else{var s=b(t,n);s||n.bufferProcessing||!n.buffer.length||v(t,n),i?r.nextTick(function(){g(t,n,s,o)}):g(t,n,s,o)}}function g(t,e,r,n){r||y(t,e),n(),r&&w(t,e)}function y(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function v(t,e){e.bufferProcessing=!0;for(var r=0;e.buffer.length>r;r++){var n=e.buffer[r],i=n.chunk,o=n.encoding,s=n.callback,a=e.objectMode?1:i.length;if(l(t,e,a,i,o,s),e.writing){r++;break}}e.bufferProcessing=!1,e.buffer.length>r?e.buffer=e.buffer.slice(r):e.buffer.length=0}function b(t,e){return e.ending&&0===e.length&&!e.finished&&!e.writing}function w(t,e){var r=b(t,e);return r&&(e.finished=!0,t.emit("finish")),r}function m(t,e,n){e.ending=!0,w(t,e),n&&(e.finished?r.nextTick(n):t.once("finish",n)),e.ended=!0}e.exports=s,s.WritableState=o;var E=t("util");t("assert");var _=t("stream");E.inherits(s,_),s.prototype.pipe=function(){this.emit("error",Error("Cannot pipe. Not readable."))},s.prototype.write=function(t,e,r){var i=this._writableState,o=!1;return"function"==typeof e&&(r=e,e=null),n.isBuffer(t)?e="buffer":e||(e=i.defaultEncoding),"function"!=typeof r&&(r=function(){}),i.ended?a(this,i,r):u(this,i,t,r)&&(o=h(this,i,t,e,r)),o},s.prototype._write=function(t,e,r){r(Error("not implemented"))},s.prototype.end=function(t,e,r){var n=this._writableState;"function"==typeof t?(r=t,t=null,e=null):"function"==typeof e&&(r=e,e=null),t!==void 0&&null!==t&&this.write(t,e),n.ending||n.finished||m(this,n,r)}})(t("__browserify_process"),t("__browserify_Buffer").Buffer)},{util:4,assert:5,stream:6,"./_stream_duplex":7,__browserify_process:2,__browserify_Buffer:3}],4:[function(t,e,r){function n(t){return t instanceof Array||Array.isArray(t)||t&&t!==Object.prototype&&n(t.__proto__)}function i(t){return t instanceof RegExp||"object"==typeof t&&"[object RegExp]"===Object.prototype.toString.call(t)}function o(t){if(t instanceof Date)return!0;if("object"!=typeof t)return!1;var e=Date.prototype&&a(Date.prototype),r=t.__proto__&&a(t.__proto__);return JSON.stringify(r)===JSON.stringify(e)}t("events"),r.isArray=n,r.isDate=function(t){return"[object Date]"===Object.prototype.toString.call(t)},r.isRegExp=function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},r.print=function(){},r.puts=function(){},r.debug=function(){},r.inspect=function(t,e,u,f){function h(t,u){if(t&&"function"==typeof t.inspect&&t!==r&&(!t.constructor||t.constructor.prototype!==t))return t.inspect(u);switch(typeof t){case"undefined":return c("undefined","undefined");case"string":var f="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return c(f,"string");case"number":return c(""+t,"number");case"boolean":return c(""+t,"boolean")}if(null===t)return c("null","null");var p=s(t),d=e?a(t):p;if("function"==typeof t&&0===d.length){if(i(t))return c(""+t,"regexp");var g=t.name?": "+t.name:"";return c("[Function"+g+"]","special")}if(o(t)&&0===d.length)return c(t.toUTCString(),"date");var y,v,b;if(n(t)?(v="Array",b=["[","]"]):(v="Object",b=["{","}"]),"function"==typeof t){var w=t.name?": "+t.name:"";y=i(t)?" "+t:" [Function"+w+"]"}else y="";if(o(t)&&(y=" "+t.toUTCString()),0===d.length)return b[0]+y+b[1];if(0>u)return i(t)?c(""+t,"regexp"):c("[Object]","special");l.push(t);var m=d.map(function(e){var r,i;if(t.__lookupGetter__&&(t.__lookupGetter__(e)?i=t.__lookupSetter__(e)?c("[Getter/Setter]","special"):c("[Getter]","special"):t.__lookupSetter__(e)&&(i=c("[Setter]","special"))),0>p.indexOf(e)&&(r="["+e+"]"),i||(0>l.indexOf(t[e])?(i=null===u?h(t[e]):h(t[e],u-1),i.indexOf("\n")>-1&&(i=n(t)?i.split("\n").map(function(t){return" "+t}).join("\n").substr(2):"\n"+i.split("\n").map(function(t){return" "+t}).join("\n"))):i=c("[Circular]","special")),r===void 0){if("Array"===v&&e.match(/^\d+$/))return i;r=JSON.stringify(""+e),r.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(r=r.substr(1,r.length-2),r=c(r,"name")):(r=r.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),r=c(r,"string"))}return r+": "+i});l.pop();var E=0,_=m.reduce(function(t,e){return E++,e.indexOf("\n")>=0&&E++,t+e.length+1},0);return m=_>50?b[0]+(""===y?"":y+"\n ")+" "+m.join(",\n ")+" "+b[1]:b[0]+y+" "+m.join(", ")+" "+b[1]}var l=[],c=function(t,e){var r={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]},n={special:"cyan",number:"blue","boolean":"yellow",undefined:"grey","null":"bold",string:"green",date:"magenta",regexp:"red"}[e];return n?"["+r[n][0]+"m"+t+"["+r[n][1]+"m":t};return f||(c=function(t){return t}),h(t,u===void 0?2:u)},r.log=function(){},r.pump=null;var s=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e},a=Object.getOwnPropertyNames||function(t){var e=[];for(var r in t)Object.hasOwnProperty.call(t,r)&&e.push(r);return e},u=Object.create||function(t,e){var r;if(null===t)r={__proto__:null};else{if("object"!=typeof t)throw new TypeError("typeof prototype["+typeof t+"] != 'object'");var n=function(){};n.prototype=t,r=new n,r.__proto__=t}return e!==void 0&&Object.defineProperties&&Object.defineProperties(r,e),r};r.inherits=function(t,e){t.super_=e,t.prototype=u(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})};var f=/%[sdj%]/g;r.format=function(t){if("string"!=typeof t){for(var e=[],n=0;arguments.length>n;n++)e.push(r.inspect(arguments[n]));return e.join(" ")}for(var n=1,i=arguments,o=i.length,s=(t+"").replace(f,function(t){if("%%"===t)return"%";if(n>=o)return t;switch(t){case"%s":return i[n++]+"";case"%d":return Number(i[n++]);case"%j":return JSON.stringify(i[n++]);default:return t}}),a=i[n];o>n;a=i[++n])s+=null===a||"object"!=typeof a?" "+a:" "+r.inspect(a);return s}},{events:8}],6:[function(t,e){function r(){n.EventEmitter.call(this)}var n=t("events"),i=t("util");i.inherits(r,n.EventEmitter),e.exports=r,r.Stream=r,r.prototype.pipe=function(t,e){function r(e){t.writable&&!1===t.write(e)&&u.pause&&u.pause()}function n(){u.readable&&u.resume&&u.resume()}function i(){f||(f=!0,t._pipeCount--,a(),t._pipeCount>0||t.end())}function o(){f||(f=!0,t._pipeCount--,a(),t._pipeCount>0||t.destroy())}function s(t){if(a(),0===this.listeners("error").length)throw t}function a(){u.removeListener("data",r),t.removeListener("drain",n),u.removeListener("end",i),u.removeListener("close",o),u.removeListener("error",s),t.removeListener("error",s),u.removeListener("end",a),u.removeListener("close",a),t.removeListener("end",a),t.removeListener("close",a)}var u=this;u.on("data",r),t.on("drain",n),t._isStdio||e&&e.end===!1||(t._pipeCount=t._pipeCount||0,t._pipeCount++,u.on("end",i),u.on("close",o));var f=!1;return u.on("error",s),t.on("error",s),u.on("end",a),u.on("close",a),t.on("end",a),t.on("close",a),t.emit("pipe",u),t}},{events:8,util:4}],5:[function(t,e){(function(){function r(t){if(Object.keys)return Object.keys(t);var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.push(r);return e}function n(t,e){return void 0===e?""+e:"number"!=typeof e||!isNaN(e)&&isFinite(e)?"function"==typeof e||e instanceof RegExp?""+e:e:""+e}function i(t,e){return"string"==typeof t?e>t.length?t:t.slice(0,e):t}function o(t,e,r,n,i){throw new y.AssertionError({message:r,actual:t,expected:e,operator:n,stackStartFunction:i})}function s(t,e){t||o(t,!0,e,"==",y.ok)}function a(t,e){if(t===e)return!0;if(d.isBuffer(t)&&d.isBuffer(e)){if(t.length!=e.length)return!1;for(var r=0;t.length>r;r++)if(t[r]!==e[r])return!1;return!0}return t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():"object"!=typeof t&&"object"!=typeof e?t==e:h(t,e)}function u(t){return null===t||void 0===t}function f(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function h(t,e){if(u(t)||u(e))return!1;if(t.prototype!==e.prototype)return!1;if(f(t))return f(e)?(t=g.call(t),e=g.call(e),a(t,e)):!1;try{var n,i,o=r(t),s=r(e)}catch(h){return!1}if(o.length!=s.length)return!1;for(o.sort(),s.sort(),i=o.length-1;i>=0;i--)if(o[i]!=s[i])return!1;for(i=o.length-1;i>=0;i--)if(n=o[i],!a(t[n],e[n]))return!1;return!0}function l(t,e){return t&&e?e instanceof RegExp?e.test(t):t instanceof e?!0:e.call({},t)===!0?!0:!1:!1}function c(t,e,r,n){var i;"string"==typeof r&&(n=r,r=null);try{e()}catch(s){i=s}if(n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),t&&!i&&o("Missing expected exception"+n),!t&&l(i,r)&&o("Got unwanted exception"+n),t&&i&&r&&!l(i,r)||!t&&i)throw i}var p=t("util"),d=t("buffer").Buffer,g=Array.prototype.slice,y=e.exports=s;y.AssertionError=function(t){this.name="AssertionError",this.message=t.message,this.actual=t.actual,this.expected=t.expected,this.operator=t.operator;var e=t.stackStartFunction||o;Error.captureStackTrace&&Error.captureStackTrace(this,e)},p.inherits(y.AssertionError,Error),y.AssertionError.prototype.toString=function(){return this.message?[this.name+":",this.message].join(" "):[this.name+":",i(JSON.stringify(this.actual,n),128),this.operator,i(JSON.stringify(this.expected,n),128)].join(" ")},y.AssertionError.__proto__=Error.prototype,y.fail=o,y.ok=s,y.equal=function(t,e,r){t!=e&&o(t,e,r,"==",y.equal)},y.notEqual=function(t,e,r){t==e&&o(t,e,r,"!=",y.notEqual)},y.deepEqual=function(t,e,r){a(t,e)||o(t,e,r,"deepEqual",y.deepEqual)},y.notDeepEqual=function(t,e,r){a(t,e)&&o(t,e,r,"notDeepEqual",y.notDeepEqual)},y.strictEqual=function(t,e,r){t!==e&&o(t,e,r,"===",y.strictEqual)},y.notStrictEqual=function(t,e,r){t===e&&o(t,e,r,"!==",y.notStrictEqual)},y.throws=function(){c.apply(this,[!0].concat(g.call(arguments)))},y.doesNotThrow=function(){c.apply(this,[!1].concat(g.call(arguments)))},y.ifError=function(t){if(t)throw t}})()},{util:4,buffer:9}],8:[function(t,e,r){(function(t){function e(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0;t.length>r;r++)if(e===t[r])return r;return-1}t.EventEmitter||(t.EventEmitter=function(){});var n=r.EventEmitter=t.EventEmitter,i="function"==typeof Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},o=10;n.prototype.setMaxListeners=function(t){this._events||(this._events={}),this._events.maxListeners=t},n.prototype.emit=function(t){if("error"===t&&(!this._events||!this._events.error||i(this._events.error)&&!this._events.error.length))throw arguments[1]instanceof Error?arguments[1]:Error("Uncaught, unspecified 'error' event.");if(!this._events)return!1;var e=this._events[t];if(!e)return!1;if("function"==typeof e){switch(arguments.length){case 1:e.call(this);break;case 2:e.call(this,arguments[1]);break;case 3:e.call(this,arguments[1],arguments[2]);break;default:var r=Array.prototype.slice.call(arguments,1);e.apply(this,r)}return!0}if(i(e)){for(var r=Array.prototype.slice.call(arguments,1),n=e.slice(),o=0,s=n.length;s>o;o++)n[o].apply(this,r);return!0}return!1},n.prototype.addListener=function(t,e){if("function"!=typeof e)throw Error("addListener only takes instances of Function");if(this._events||(this._events={}),this.emit("newListener",t,e),this._events[t])if(i(this._events[t])){if(!this._events[t].warned){var r;r=void 0!==this._events.maxListeners?this._events.maxListeners:o,r&&r>0&&this._events[t].length>r&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),console.trace())}this._events[t].push(e)}else this._events[t]=[this._events[t],e];else this._events[t]=e;return this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(t,e){var r=this;return r.on(t,function n(){r.removeListener(t,n),e.apply(this,arguments)}),this},n.prototype.removeListener=function(t,r){if("function"!=typeof r)throw Error("removeListener only takes instances of Function");if(!this._events||!this._events[t])return this;var n=this._events[t];if(i(n)){var o=e(n,r);if(0>o)return this;n.splice(o,1),0==n.length&&delete this._events[t]}else this._events[t]===r&&delete this._events[t];return this},n.prototype.removeAllListeners=function(t){return 0===arguments.length?(this._events={},this):(t&&this._events&&this._events[t]&&(this._events[t]=null),this)},n.prototype.listeners=function(t){return this._events||(this._events={}),this._events[t]||(this._events[t]=[]),i(this._events[t])||(this._events[t]=[this._events[t]]),this._events[t]}})(t("__browserify_process"))},{__browserify_process:2}],7:[function(t,e){(function(r){function n(t){return this instanceof n?(s.call(this,t),a.call(this,t),t&&t.readable===!1&&(this.readable=!1),t&&t.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,t&&t.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",i),void 0):new n(t)}function i(){this.allowHalfOpen||this._writableState.ended||r.nextTick(this.end.bind(this))}e.exports=n;var o=t("util"),s=t("./_stream_readable"),a=t("./_stream_writable");o.inherits(n,s),Object.keys(a.prototype).forEach(function(t){n.prototype[t]||(n.prototype[t]=a.prototype[t])})})(t("__browserify_process"))},{util:4,"./_stream_readable":10,"./_stream_writable":1,__browserify_process:2}],10:[function(t,e){(function(r,n){function i(e){e=e||{};var r=e.highWaterMark;this.highWaterMark=r||0===r?r: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=!!e.objectMode,this.defaultEncoding=e.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(k||(k=t("string_decoder").StringDecoder),this.decoder=new k(e.encoding),this.encoding=e.encoding)}function o(t){return this instanceof o?(this._readableState=new i(t,this),this.readable=!0,S.call(this),void 0):new o(t)}function s(t,e,r,n,i){var o=h(e,r);if(o)t.emit("error",o);else if(null===r||void 0===r)e.reading=!1,e.ended||l(t,e);else if(e.objectMode||r&&r.length>0)if(e.ended&&!i){var s=Error("stream.push() after EOF");t.emit("error",s)}else if(e.endEmitted&&i){var s=Error("stream.unshift() after end event");t.emit("error",s)}else!e.decoder||i||n||(r=e.decoder.write(r)),e.length+=e.objectMode?1:r.length,i?e.buffer.unshift(r):(e.reading=!1,e.buffer.push(r)),e.needReadable&&c(t),d(t,e);else i||(e.reading=!1);return a(e)}function a(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}function u(t){if(t>=L)t=L;else{t--;for(var e=1;32>e;e<<=1)t|=t>>e;t++}return t}function f(t,e){return 0===e.length&&e.ended?0:e.objectMode?0===t?0:1:isNaN(t)||null===t?e.flowing&&e.buffer.length?e.buffer[0].length:e.length:0>=t?0:(t>e.highWaterMark&&(e.highWaterMark=u(t)),t>e.length?e.ended?e.length:(e.needReadable=!0,0):t)}function h(t,e){var r=null;return n.isBuffer(e)||"string"==typeof e||null===e||void 0===e||t.objectMode||r||(r=new TypeError("Invalid non-string/buffer chunk")),r}function l(t,e){if(e.decoder&&!e.ended){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.length>0?c(t):E(t)}function c(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,e.sync?r.nextTick(function(){p(t)}):p(t))}function p(t){t.emit("readable")}function d(t,e){e.readingMore||(e.readingMore=!0,r.nextTick(function(){g(t,e)}))}function g(t,e){for(var r=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(t.read(0),r!==e.length);)r=e.length;e.readingMore=!1}function y(t){return function(){var e=t._readableState;e.awaitDrain--,0===e.awaitDrain&&v(t)}}function v(t){function e(t){var e=t.write(r);!1===e&&n.awaitDrain++}var r,n=t._readableState;for(n.awaitDrain=0;n.pipesCount&&null!==(r=t.read());)if(1===n.pipesCount?e(n.pipes,0,null):n.pipes.forEach(e),t.emit("data",r),n.awaitDrain>0)return;return 0===n.pipesCount?(n.flowing=!1,_.listenerCount(t,"data")>0&&w(t),void 0):(n.ranOut=!0,void 0)}function b(){this._readableState.ranOut&&(this._readableState.ranOut=!1,v(this))}function w(t,e){var n=t._readableState;if(n.flowing)throw Error("Cannot switch to old mode now.");var i=e||!1,o=!1;t.readable=!0,t.pipe=S.prototype.pipe,t.on=t.addListener=S.prototype.on,t.on("readable",function(){o=!0;for(var e;!i&&null!==(e=t.read());)t.emit("data",e);null===e&&(o=!1,t._readableState.needReadable=!0)}),t.pause=function(){i=!0,this.emit("pause")},t.resume=function(){i=!1,o?r.nextTick(function(){t.emit("readable")}):this.read(0),this.emit("resume")},t.emit("readable")}function m(t,e){var r,i=e.buffer,o=e.length,s=!!e.decoder,a=!!e.objectMode;if(0===i.length)return null;if(0===o)r=null;else if(a)r=i.shift();else if(!t||t>=o)r=s?i.join(""):n.concat(i,o),i.length=0;else if(i[0].length>t){var u=i[0];r=u.slice(0,t),i[0]=u.slice(t)}else if(t===i[0].length)r=i.shift();else{r=s?"":new n(t);for(var f=0,h=0,l=i.length;l>h&&t>f;h++){var u=i[0],c=Math.min(t-f,u.length);s?r+=u.slice(0,c):u.copy(r,f,0,c),u.length>c?i[0]=u.slice(c):i.shift(),f+=c}}return r}function E(t){var e=t._readableState;if(e.length>0)throw Error("endReadable called on non-empty stream");!e.endEmitted&&e.calledRead&&(e.ended=!0,r.nextTick(function(){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}))}e.exports=o,o.ReadableState=i;var _=t("events").EventEmitter;_.listenerCount||(_.listenerCount=function(t,e){return t.listeners(e).length});var k,S=t("stream"),I=t("util");I.inherits(o,S),o.prototype.push=function(t,e){var r=this._readableState;return"string"!=typeof t||r.objectMode||(e=e||r.defaultEncoding,e!==r.encoding&&(t=new n(t,e),e="")),s(this,r,t,e,!1)
},o.prototype.unshift=function(t){var e=this._readableState;return s(this,e,t,"",!0)},o.prototype.setEncoding=function(e){k||(k=t("string_decoder").StringDecoder),this._readableState.decoder=new k(e),this._readableState.encoding=e};var L=8388608;o.prototype.read=function(t){var e=this._readableState;e.calledRead=!0;var r=t;if(("number"!=typeof t||t>0)&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return c(this),null;if(t=f(t,e),0===t&&e.ended)return 0===e.length&&E(this),null;var n=e.needReadable;e.length-t<=e.highWaterMark&&(n=!0),(e.ended||e.reading)&&(n=!1),n&&(e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1),n&&!e.reading&&(t=f(r,e));var i;return i=t>0?m(t,e):null,null===i&&(e.needReadable=!0,t=0),e.length-=t,0!==e.length||e.ended||(e.needReadable=!0),e.ended&&!e.endEmitted&&0===e.length&&E(this),i},o.prototype._read=function(){this.emit("error",Error("not implemented"))},o.prototype.pipe=function(t,e){function n(t){t===h&&o()}function i(){t.end()}function o(){t.removeListener("close",a),t.removeListener("finish",u),t.removeListener("drain",d),t.removeListener("error",s),t.removeListener("unpipe",n),h.removeListener("end",i),h.removeListener("end",o),(!t._writableState||t._writableState.needDrain)&&d()}function s(e){f(),0===_.listenerCount(t,"error")&&t.emit("error",e)}function a(){t.removeListener("finish",u),f()}function u(){t.removeListener("close",a),f()}function f(){h.unpipe(t)}var h=this,l=this._readableState;switch(l.pipesCount){case 0:l.pipes=t;break;case 1:l.pipes=[l.pipes,t];break;default:l.pipes.push(t)}l.pipesCount+=1;var c=(!e||e.end!==!1)&&t!==r.stdout&&t!==r.stderr,p=c?i:o;l.endEmitted?r.nextTick(p):h.once("end",p),t.on("unpipe",n);var d=y(h);return t.on("drain",d),t.once("error",s),t.once("close",a),t.once("finish",u),t.emit("pipe",h),l.flowing||(this.on("readable",b),l.flowing=!0,r.nextTick(function(){v(h)})),t},o.prototype.unpipe=function(t){var e=this._readableState;if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,this.removeListener("readable",b),e.flowing=!1,t&&t.emit("unpipe",this),this);if(!t){var r=e.pipes,n=e.pipesCount;e.pipes=null,e.pipesCount=0,this.removeListener("readable",b),e.flowing=!1;for(var i=0;n>i;i++)r[i].emit("unpipe",this);return this}var i=e.pipes.indexOf(t);return-1===i?this:(e.pipes.splice(i,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this),this)},o.prototype.on=function(t,e){var r=S.prototype.on.call(this,t,e);if("data"!==t||this._readableState.flowing||w(this),"readable"===t&&this.readable){var n=this._readableState;n.readableListening||(n.readableListening=!0,n.emittedReadable=!1,n.needReadable=!0,n.reading?n.length&&c(this,n):this.read(0))}return r},o.prototype.addListener=o.prototype.on,o.prototype.resume=function(){w(this),this.read(0),this.emit("resume")},o.prototype.pause=function(){w(this,!0),this.emit("pause")},o.prototype.wrap=function(t){var e=this._readableState,r=!1,n=this;t.on("end",function(){if(e.decoder&&!e.ended){var t=e.decoder.end();t&&t.length&&n.push(t)}n.push(null)}),t.on("data",function(i){if(e.decoder&&(i=e.decoder.write(i)),i&&(e.objectMode||i.length)){var o=n.push(i);o||(r=!0,t.pause())}});for(var i in t)"function"==typeof t[i]&&this[i]===void 0&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));var o=["error","close","destroy","pause","resume"];return o.forEach(function(e){t.on(e,n.emit.bind(n,e))}),n._read=function(){r&&(r=!1,t.resume())},n},o._fromList=m})(t("__browserify_process"),t("__browserify_Buffer").Buffer)},{events:8,stream:6,util:4,string_decoder:11,__browserify_process:2,__browserify_Buffer:3}],12:[function(t,e,r){r.readIEEE754=function(t,e,r,n,i){var o,s,a=8*i-n-1,u=(1<<a)-1,f=u>>1,h=-7,l=r?0:i-1,c=r?1:-1,p=t[e+l];for(l+=c,o=p&(1<<-h)-1,p>>=-h,h+=a;h>0;o=256*o+t[e+l],l+=c,h-=8);for(s=o&(1<<-h)-1,o>>=-h,h+=n;h>0;s=256*s+t[e+l],l+=c,h-=8);if(0===o)o=1-f;else{if(o===u)return s?0/0:1/0*(p?-1:1);s+=Math.pow(2,n),o-=f}return(p?-1:1)*s*Math.pow(2,o-n)},r.writeIEEE754=function(t,e,r,n,i,o){var s,a,u,f=8*o-i-1,h=(1<<f)-1,l=h>>1,c=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?o-1:0,d=n?-1:1,g=0>e||0===e&&0>1/e?1:0;for(e=Math.abs(e),isNaN(e)||1/0===e?(a=isNaN(e)?1:0,s=h):(s=Math.floor(Math.log(e)/Math.LN2),1>e*(u=Math.pow(2,-s))&&(s--,u*=2),e+=s+l>=1?c/u:c*Math.pow(2,1-l),e*u>=2&&(s++,u/=2),s+l>=h?(a=0,s=h):s+l>=1?(a=(e*u-1)*Math.pow(2,i),s+=l):(a=e*Math.pow(2,l-1)*Math.pow(2,i),s=0));i>=8;t[r+p]=255&a,p+=d,a/=256,i-=8);for(s=s<<i|a,f+=i;f>0;t[r+p]=255&s,p+=d,s/=256,f-=8);t[r+p-d]|=128*g}},{}],11:[function(t,e,r){(function(t){function e(t){return t.toString(this.encoding)}function n(t){var e=this.charReceived=t.length%2;return this.charLength=e?2:0,e}function i(t){var e=this.charReceived=t.length%3;return this.charLength=e?3:0,e}var o=r.StringDecoder=function(r){switch(this.encoding=(r||"utf8").toLowerCase().replace(/[-_]/,""),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=n;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=i;break;default:return this.write=e,void 0}this.charBuffer=new t(6),this.charReceived=0,this.charLength=0};o.prototype.write=function(t){for(var e="",r=0;this.charLength;){var n=t.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:t.length;if(t.copy(this.charBuffer,this.charReceived,r,n),this.charReceived+=n-r,r=n,this.charReceived<this.charLength)return"";e=this.charBuffer.slice(0,this.charLength).toString(this.encoding);var i=e.charCodeAt(e.length-1);if(!(i>=55296&&56319>=i)){if(this.charReceived=this.charLength=0,n==t.length)return e;t=t.slice(n,t.length);break}this.charLength+=this.surrogateSize,e=""}var o=this.detectIncompleteChar(t),s=t.length;this.charLength&&(t.copy(this.charBuffer,0,t.length-o,s),this.charReceived=o,s-=o),e+=t.toString(this.encoding,0,s);var s=e.length-1,i=e.charCodeAt(s);if(i>=55296&&56319>=i){var a=this.surrogateSize;return this.charLength+=a,this.charReceived+=a,this.charBuffer.copy(this.charBuffer,a,0,a),this.charBuffer.write(e.charAt(e.length-1),this.encoding),e.substring(0,s)}return e},o.prototype.detectIncompleteChar=function(t){for(var e=t.length>=3?3:t.length;e>0;e--){var r=t[t.length-e];if(1==e&&6==r>>5){this.charLength=2;break}if(2>=e&&14==r>>4){this.charLength=3;break}if(3>=e&&30==r>>3){this.charLength=4;break}}return e},o.prototype.end=function(t){var e="";if(t&&t.length&&(e=this.write(t)),this.charReceived){var r=this.charReceived,n=this.charBuffer,i=this.encoding;e+=n.slice(0,r).toString(i)}return e}})(t("__browserify_Buffer").Buffer)},{__browserify_Buffer:3}],9:[function(t,e,r){(function(){function e(t,r,i){if(!(this instanceof e))return new e(t,r,i);this.parent=this,this.offset=0;var s;if("number"==typeof i)this.length=n(r),this.offset=i;else{switch(s=typeof t){case"number":this.length=n(t);break;case"string":this.length=e.byteLength(t,r);break;case"object":this.length=n(t.length);break;default:throw Error("First argument needs to be a number, array or string.")}if(o(t))for(var a=0;this.length>a;a++)this[a]=t instanceof e?t.readUInt8(a):t[a];else if("string"==s)this.length=this.write(t,0,r);else if("number"===s)for(var a=0;this.length>a;a++)this[a]=0}}function n(t){return t=~~Math.ceil(+t),0>t?0:t}function i(t){return(Array.isArray||function(t){return"[object Array]"=={}.toString.apply(t)})(t)}function o(t){return i(t)||e.isBuffer(t)||t&&"object"==typeof t&&"number"==typeof t.length}function s(t){return 16>t?"0"+t.toString(16):t.toString(16)}function a(t){for(var e=[],r=0;t.length>r;r++)if(127>=t.charCodeAt(r))e.push(t.charCodeAt(r));else for(var n=encodeURIComponent(t.charAt(r)).substr(1).split("%"),i=0;n.length>i;i++)e.push(parseInt(n[i],16));return e}function u(t){for(var e=[],r=0;t.length>r;r++)e.push(255&t.charCodeAt(r));return e}function f(e){return t("base64-js").toByteArray(e)}function h(t,e,r,n){for(var i=0;n>i&&!(i+r>=e.length||i>=t.length);)e[i+r]=t[i],i++;return i}function l(t){try{return decodeURIComponent(t)}catch(e){return String.fromCharCode(65533)}}function c(t,e,r,n){var i=0;return n||(x.ok("boolean"==typeof r,"missing or invalid endian"),x.ok(void 0!==e&&null!==e,"missing offset"),x.ok(t.length>e+1,"Trying to read beyond buffer length")),e>=t.length?0:(r?(i=t[e]<<8,t.length>e+1&&(i|=t[e+1])):(i=t[e],t.length>e+1&&(i|=t[e+1]<<8)),i)}function p(t,e,r,n){var i=0;return n||(x.ok("boolean"==typeof r,"missing or invalid endian"),x.ok(void 0!==e&&null!==e,"missing offset"),x.ok(t.length>e+3,"Trying to read beyond buffer length")),e>=t.length?0:(r?(t.length>e+1&&(i=t[e+1]<<16),t.length>e+2&&(i|=t[e+2]<<8),t.length>e+3&&(i|=t[e+3]),i+=t[e]<<24>>>0):(t.length>e+2&&(i=t[e+2]<<16),t.length>e+1&&(i|=t[e+1]<<8),i|=t[e],t.length>e+3&&(i+=t[e+3]<<24>>>0)),i)}function d(t,e,r,n){var i,o;return n||(x.ok("boolean"==typeof r,"missing or invalid endian"),x.ok(void 0!==e&&null!==e,"missing offset"),x.ok(t.length>e+1,"Trying to read beyond buffer length")),o=c(t,e,r,n),i=32768&o,i?-1*(65535-o+1):o}function g(t,e,r,n){var i,o;return n||(x.ok("boolean"==typeof r,"missing or invalid endian"),x.ok(void 0!==e&&null!==e,"missing offset"),x.ok(t.length>e+3,"Trying to read beyond buffer length")),o=p(t,e,r,n),i=2147483648&o,i?-1*(4294967295-o+1):o}function y(e,r,n,i){return i||(x.ok("boolean"==typeof n,"missing or invalid endian"),x.ok(e.length>r+3,"Trying to read beyond buffer length")),t("./buffer_ieee754").readIEEE754(e,r,n,23,4)}function v(e,r,n,i){return i||(x.ok("boolean"==typeof n,"missing or invalid endian"),x.ok(e.length>r+7,"Trying to read beyond buffer length")),t("./buffer_ieee754").readIEEE754(e,r,n,52,8)}function b(t,e){x.ok("number"==typeof t,"cannot write a non-number as a number"),x.ok(t>=0,"specified a negative value for writing an unsigned value"),x.ok(e>=t,"value is larger than maximum value for type"),x.ok(Math.floor(t)===t,"value has a fractional component")}function w(t,e,r,n,i){i||(x.ok(void 0!==e&&null!==e,"missing value"),x.ok("boolean"==typeof n,"missing or invalid endian"),x.ok(void 0!==r&&null!==r,"missing offset"),x.ok(t.length>r+1,"trying to write beyond buffer length"),b(e,65535));for(var o=0;Math.min(t.length-r,2)>o;o++)t[r+o]=(e&255<<8*(n?1-o:o))>>>8*(n?1-o:o)}function m(t,e,r,n,i){i||(x.ok(void 0!==e&&null!==e,"missing value"),x.ok("boolean"==typeof n,"missing or invalid endian"),x.ok(void 0!==r&&null!==r,"missing offset"),x.ok(t.length>r+3,"trying to write beyond buffer length"),b(e,4294967295));for(var o=0;Math.min(t.length-r,4)>o;o++)t[r+o]=255&e>>>8*(n?3-o:o)}function E(t,e,r){x.ok("number"==typeof t,"cannot write a non-number as a number"),x.ok(e>=t,"value larger than maximum allowed value"),x.ok(t>=r,"value smaller than minimum allowed value"),x.ok(Math.floor(t)===t,"value has a fractional component")}function _(t,e,r){x.ok("number"==typeof t,"cannot write a non-number as a number"),x.ok(e>=t,"value larger than maximum allowed value"),x.ok(t>=r,"value smaller than minimum allowed value")}function k(t,e,r,n,i){i||(x.ok(void 0!==e&&null!==e,"missing value"),x.ok("boolean"==typeof n,"missing or invalid endian"),x.ok(void 0!==r&&null!==r,"missing offset"),x.ok(t.length>r+1,"Trying to write beyond buffer length"),E(e,32767,-32768)),e>=0?w(t,e,r,n,i):w(t,65535+e+1,r,n,i)}function S(t,e,r,n,i){i||(x.ok(void 0!==e&&null!==e,"missing value"),x.ok("boolean"==typeof n,"missing or invalid endian"),x.ok(void 0!==r&&null!==r,"missing offset"),x.ok(t.length>r+3,"Trying to write beyond buffer length"),E(e,2147483647,-2147483648)),e>=0?m(t,e,r,n,i):m(t,4294967295+e+1,r,n,i)}function I(e,r,n,i,o){o||(x.ok(void 0!==r&&null!==r,"missing value"),x.ok("boolean"==typeof i,"missing or invalid endian"),x.ok(void 0!==n&&null!==n,"missing offset"),x.ok(e.length>n+3,"Trying to write beyond buffer length"),_(r,3.4028234663852886e38,-3.4028234663852886e38)),t("./buffer_ieee754").writeIEEE754(e,r,n,i,23,4)}function L(e,r,n,i,o){o||(x.ok(void 0!==r&&null!==r,"missing value"),x.ok("boolean"==typeof i,"missing or invalid endian"),x.ok(void 0!==n&&null!==n,"missing offset"),x.ok(e.length>n+7,"Trying to write beyond buffer length"),_(r,1.7976931348623157e308,-1.7976931348623157e308)),t("./buffer_ieee754").writeIEEE754(e,r,n,i,52,8)}var x=t("assert");r.Buffer=e,r.SlowBuffer=e,e.poolSize=8192,r.INSPECT_MAX_BYTES=50,e.prototype.get=function(t){if(0>t||t>=this.length)throw Error("oob");return this[t]},e.prototype.set=function(t,e){if(0>t||t>=this.length)throw Error("oob");return this[t]=e},e.byteLength=function(t,e){switch(e||"utf8"){case"hex":return t.length/2;case"utf8":case"utf-8":return a(t).length;case"ascii":case"binary":return t.length;case"base64":return f(t).length;default:throw Error("Unknown encoding")}},e.prototype.utf8Write=function(t,r,n){return e._charsWritten=h(a(t),this,r,n)},e.prototype.asciiWrite=function(t,r,n){return e._charsWritten=h(u(t),this,r,n)},e.prototype.binaryWrite=e.prototype.asciiWrite,e.prototype.base64Write=function(t,r,n){return e._charsWritten=h(f(t),this,r,n)},e.prototype.base64Slice=function(){var e=Array.prototype.slice.apply(this,arguments);return t("base64-js").fromByteArray(e)},e.prototype.utf8Slice=function(){for(var t=Array.prototype.slice.apply(this,arguments),e="",r="",n=0;t.length>n;)127>=t[n]?(e+=l(r)+String.fromCharCode(t[n]),r=""):r+="%"+t[n].toString(16),n++;return e+l(r)},e.prototype.asciiSlice=function(){for(var t=Array.prototype.slice.apply(this,arguments),e="",r=0;t.length>r;r++)e+=String.fromCharCode(t[r]);return e},e.prototype.binarySlice=e.prototype.asciiSlice,e.prototype.inspect=function(){for(var t=[],e=this.length,n=0;e>n;n++)if(t[n]=s(this[n]),n==r.INSPECT_MAX_BYTES){t[n+1]="...";break}return"<Buffer "+t.join(" ")+">"},e.prototype.hexSlice=function(t,e){var r=this.length;(!t||0>t)&&(t=0),(!e||0>e||e>r)&&(e=r);for(var n="",i=t;e>i;i++)n+=s(this[i]);return n},e.prototype.toString=function(t,e,r){if(t=((t||"utf8")+"").toLowerCase(),e=+e||0,r===void 0&&(r=this.length),+r==e)return"";switch(t){case"hex":return this.hexSlice(e,r);case"utf8":case"utf-8":return this.utf8Slice(e,r);case"ascii":return this.asciiSlice(e,r);case"binary":return this.binarySlice(e,r);case"base64":return this.base64Slice(e,r);case"ucs2":case"ucs-2":return this.ucs2Slice(e,r);default:throw Error("Unknown encoding")}},e.prototype.hexWrite=function(t,r,n){r=+r||0;var i=this.length-r;n?(n=+n,n>i&&(n=i)):n=i;var o=t.length;if(o%2)throw Error("Invalid hex string");n>o/2&&(n=o/2);for(var s=0;n>s;s++){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))throw Error("Invalid hex string");this[r+s]=a}return e._charsWritten=2*s,s},e.prototype.write=function(t,e,r,n){if(isFinite(e))isFinite(r)||(n=r,r=void 0);else{var i=n;n=e,e=r,r=i}e=+e||0;var o=this.length-e;switch(r?(r=+r,r>o&&(r=o)):r=o,n=((n||"utf8")+"").toLowerCase()){case"hex":return this.hexWrite(t,e,r);case"utf8":case"utf-8":return this.utf8Write(t,e,r);case"ascii":return this.asciiWrite(t,e,r);case"binary":return this.binaryWrite(t,e,r);case"base64":return this.base64Write(t,e,r);case"ucs2":case"ucs-2":return this.ucs2Write(t,e,r);default:throw Error("Unknown encoding")}},e.prototype.slice=function(t,r){if(void 0===r&&(r=this.length),r>this.length)throw Error("oob");if(t>r)throw Error("oob");return new e(this,r-t,+t)},e.prototype.copy=function(t,e,r,n){var i=this;if(r||(r=0),(void 0===n||isNaN(n))&&(n=this.length),e||(e=0),r>n)throw Error("sourceEnd < sourceStart");if(n===r)return 0;if(0==t.length||0==i.length)return 0;if(0>e||e>=t.length)throw Error("targetStart out of bounds");if(0>r||r>=i.length)throw Error("sourceStart out of bounds");if(0>n||n>i.length)throw Error("sourceEnd out of bounds");n>this.length&&(n=this.length),n-r>t.length-e&&(n=t.length-e+r);for(var o=[],s=r;n>s;s++)x.ok(this[s]!==void 0,"copying undefined buffer bytes!"),o.push(this[s]);for(var s=e;e+o.length>s;s++)t[s]=o[s-e]},e.prototype.fill=function(t,e,r){if(t||(t=0),e||(e=0),r||(r=this.length),"string"==typeof t&&(t=t.charCodeAt(0)),"number"!=typeof t||isNaN(t))throw Error("value is not a number");if(e>r)throw Error("end < start");if(r===e)return 0;if(0==this.length)return 0;if(0>e||e>=this.length)throw Error("start out of bounds");if(0>r||r>this.length)throw Error("end out of bounds");for(var n=e;r>n;n++)this[n]=t},e.isBuffer=function(t){return t instanceof e||t instanceof e},e.concat=function(t,r){if(!i(t))throw Error("Usage: Buffer.concat(list, [totalLength])\n list should be an Array.");if(0===t.length)return new e(0);if(1===t.length)return t[0];if("number"!=typeof r){r=0;for(var n=0;t.length>n;n++){var o=t[n];r+=o.length}}for(var s=new e(r),a=0,n=0;t.length>n;n++){var o=t[n];o.copy(s,a),a+=o.length}return s},e.prototype.readUInt8=function(t,e){var r=this;return e||(x.ok(void 0!==t&&null!==t,"missing offset"),x.ok(r.length>t,"Trying to read beyond buffer length")),t>=r.length?void 0:r[t]},e.prototype.readUInt16LE=function(t,e){return c(this,t,!1,e)},e.prototype.readUInt16BE=function(t,e){return c(this,t,!0,e)},e.prototype.readUInt32LE=function(t,e){return p(this,t,!1,e)},e.prototype.readUInt32BE=function(t,e){return p(this,t,!0,e)},e.prototype.readInt8=function(t,e){var r,n=this;return e||(x.ok(void 0!==t&&null!==t,"missing offset"),x.ok(n.length>t,"Trying to read beyond buffer length")),t>=n.length?void 0:(r=128&n[t],r?-1*(255-n[t]+1):n[t])},e.prototype.readInt16LE=function(t,e){return d(this,t,!1,e)},e.prototype.readInt16BE=function(t,e){return d(this,t,!0,e)},e.prototype.readInt32LE=function(t,e){return g(this,t,!1,e)},e.prototype.readInt32BE=function(t,e){return g(this,t,!0,e)},e.prototype.readFloatLE=function(t,e){return y(this,t,!1,e)},e.prototype.readFloatBE=function(t,e){return y(this,t,!0,e)},e.prototype.readDoubleLE=function(t,e){return v(this,t,!1,e)},e.prototype.readDoubleBE=function(t,e){return v(this,t,!0,e)},e.prototype.writeUInt8=function(t,e,r){var n=this;r||(x.ok(void 0!==t&&null!==t,"missing value"),x.ok(void 0!==e&&null!==e,"missing offset"),x.ok(n.length>e,"trying to write beyond buffer length"),b(t,255)),n.length>e&&(n[e]=t)},e.prototype.writeUInt16LE=function(t,e,r){w(this,t,e,!1,r)},e.prototype.writeUInt16BE=function(t,e,r){w(this,t,e,!0,r)},e.prototype.writeUInt32LE=function(t,e,r){m(this,t,e,!1,r)},e.prototype.writeUInt32BE=function(t,e,r){m(this,t,e,!0,r)},e.prototype.writeInt8=function(t,e,r){var n=this;r||(x.ok(void 0!==t&&null!==t,"missing value"),x.ok(void 0!==e&&null!==e,"missing offset"),x.ok(n.length>e,"Trying to write beyond buffer length"),E(t,127,-128)),t>=0?n.writeUInt8(t,e,r):n.writeUInt8(255+t+1,e,r)},e.prototype.writeInt16LE=function(t,e,r){k(this,t,e,!1,r)},e.prototype.writeInt16BE=function(t,e,r){k(this,t,e,!0,r)},e.prototype.writeInt32LE=function(t,e,r){S(this,t,e,!1,r)},e.prototype.writeInt32BE=function(t,e,r){S(this,t,e,!0,r)},e.prototype.writeFloatLE=function(t,e,r){I(this,t,e,!1,r)},e.prototype.writeFloatBE=function(t,e,r){I(this,t,e,!0,r)},e.prototype.writeDoubleLE=function(t,e,r){L(this,t,e,!1,r)},e.prototype.writeDoubleBE=function(t,e,r){L(this,t,e,!0,r)}})()},{assert:5,"./buffer_ieee754":12,"base64-js":13}],13:[function(t,e){(function(){"use strict";function t(t){var e,r,i,o,s,a;if(t.length%4>0)throw"Invalid string. Length must be a multiple of 4";for(s=t.indexOf("="),s=s>0?t.length-s:0,a=[],i=s>0?t.length-4:t.length,e=0,r=0;i>e;e+=4,r+=3)o=n.indexOf(t[e])<<18|n.indexOf(t[e+1])<<12|n.indexOf(t[e+2])<<6|n.indexOf(t[e+3]),a.push((16711680&o)>>16),a.push((65280&o)>>8),a.push(255&o);return 2===s?(o=n.indexOf(t[e])<<2|n.indexOf(t[e+1])>>4,a.push(255&o)):1===s&&(o=n.indexOf(t[e])<<10|n.indexOf(t[e+1])<<4|n.indexOf(t[e+2])>>2,a.push(255&o>>8),a.push(255&o)),a}function r(t){function e(t){return n[63&t>>18]+n[63&t>>12]+n[63&t>>6]+n[63&t]}var r,i,o,s=t.length%3,a="";for(r=0,o=t.length-s;o>r;r+=3)i=(t[r]<<16)+(t[r+1]<<8)+t[r+2],a+=e(i);switch(s){case 1:i=t[t.length-1],a+=n[i>>2],a+=n[63&i<<4],a+="==";break;case 2:i=(t[t.length-2]<<8)+t[t.length-1],a+=n[i>>10],a+=n[63&i>>4],a+=n[63&i<<2],a+="="}return a}var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";e.exports.toByteArray=t,e.exports.fromByteArray=r})()},{}]},{},[]),require=function(t,e,r){function n(r,o){if(!e[r]){if(!t[r]){var s="function"==typeof require&&require;if(!o&&s)return s(r,!0);if(i)return i(r,!0);throw Error("Cannot find module '"+r+"'")}var a=e[r]={exports:{}};t[r][0].call(a.exports,function(e){var i=t[r][1][e];return n(i?i:e)},a,a.exports)}return e[r].exports}for(var i="function"==typeof require&&require,o=0;r.length>o;o++)n(r[o]);return n}({"readable-stream/readable":[function(t,e){e.exports=t("ZcBpjA")},{}],ZcBpjA:[function(t,e,r){r=e.exports=t("./lib/_stream_readable.js"),r.Readable=r,r.Writable=t("./lib/_stream_writable.js"),r.Duplex=t("./lib/_stream_duplex.js"),r.Transform=t("./lib/_stream_transform.js"),r.PassThrough=t("./lib/_stream_passthrough.js")},{"./lib/_stream_readable.js":1,"./lib/_stream_writable.js":2,"./lib/_stream_duplex.js":3,"./lib/_stream_transform.js":4,"./lib/_stream_passthrough.js":5}],6:[function(t,e){var r=e.exports={};r.nextTick=function(){var t="undefined"!=typeof window&&window.setImmediate,e="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(t)return function(t){return window.setImmediate(t)};if(e){var r=[];return window.addEventListener("message",function(t){if(t.source===window&&"process-tick"===t.data&&(t.stopPropagation(),r.length>0)){var e=r.shift();e()}},!0),function(t){r.push(t),window.postMessage("process-tick","*")}}return function(t){setTimeout(t,0)}}(),r.title="browser",r.browser=!0,r.env={},r.argv=[],r.binding=function(){throw Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(){throw Error("process.chdir is not supported")}},{}],7:[function(t,e){t=function(t,e,r,n){function i(n){if(!r[n]){if(!e[n]){if(t)return t(n);throw Error("Cannot find module '"+n+"'")}var o=r[n]={exports:{}};e[n][0](function(t){var r=e[n][1][t];return i(r?r:t)},o,o.exports)}return r[n].exports}for(var o=0;n.length>o;o++)i(n[o]);return i}(t!==void 0&&t,{1:[function(t,e){function r(t){if(Object.keys)return Object.keys(t);var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.push(r);return e}function n(t,e){return void 0===e?""+e:"number"!=typeof e||!isNaN(e)&&isFinite(e)?"function"==typeof e||e instanceof RegExp?""+e:e:""+e}function i(t,e){return"string"==typeof t?e>t.length?t:t.slice(0,e):t}function o(t,e,r,n,i){throw new y.AssertionError({message:r,actual:t,expected:e,operator:n,stackStartFunction:i})}function s(t,e){t||o(t,!0,e,"==",y.ok)}function a(t,e){if(t===e)return!0;if(d.isBuffer(t)&&d.isBuffer(e)){if(t.length!=e.length)return!1;for(var r=0;t.length>r;r++)if(t[r]!==e[r])return!1;return!0}return t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():"object"!=typeof t&&"object"!=typeof e?t==e:h(t,e)}function u(t){return null===t||void 0===t}function f(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function h(t,e){if(u(t)||u(e))return!1;if(t.prototype!==e.prototype)return!1;if(f(t))return f(e)?(t=g.call(t),e=g.call(e),a(t,e)):!1;try{var n,i,o=r(t),s=r(e)}catch(h){return!1}if(o.length!=s.length)return!1;for(o.sort(),s.sort(),i=o.length-1;i>=0;i--)if(o[i]!=s[i])return!1;for(i=o.length-1;i>=0;i--)if(n=o[i],!a(t[n],e[n]))return!1;return!0}function l(t,e){return t&&e?e instanceof RegExp?e.test(t):t instanceof e?!0:e.call({},t)===!0?!0:!1:!1}function c(t,e,r,n){var i;"string"==typeof r&&(n=r,r=null);try{e()}catch(s){i=s}if(n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),t&&!i&&o("Missing expected exception"+n),!t&&l(i,r)&&o("Got unwanted exception"+n),t&&i&&r&&!l(i,r)||!t&&i)throw i}var p=t("util"),d=t("buffer").Buffer,g=Array.prototype.slice,y=e.exports=s;y.AssertionError=function(t){this.name="AssertionError",this.message=t.message,this.actual=t.actual,this.expected=t.expected,this.operator=t.operator;var e=t.stackStartFunction||o;Error.captureStackTrace&&Error.captureStackTrace(this,e)},p.inherits(y.AssertionError,Error),y.AssertionError.prototype.toString=function(){return this.message?[this.name+":",this.message].join(" "):[this.name+":",i(JSON.stringify(this.actual,n),128),this.operator,i(JSON.stringify(this.expected,n),128)].join(" ")},y.AssertionError.__proto__=Error.prototype,y.fail=o,y.ok=s,y.equal=function(t,e,r){t!=e&&o(t,e,r,"==",y.equal)},y.notEqual=function(t,e,r){t==e&&o(t,e,r,"!=",y.notEqual)},y.deepEqual=function(t,e,r){a(t,e)||o(t,e,r,"deepEqual",y.deepEqual)},y.notDeepEqual=function(t,e,r){a(t,e)&&o(t,e,r,"notDeepEqual",y.notDeepEqual)},y.strictEqual=function(t,e,r){t!==e&&o(t,e,r,"===",y.strictEqual)},y.notStrictEqual=function(t,e,r){t===e&&o(t,e,r,"!==",y.notStrictEqual)},y.throws=function(){c.apply(this,[!0].concat(g.call(arguments)))},y.doesNotThrow=function(){c.apply(this,[!1].concat(g.call(arguments)))},y.ifError=function(t){if(t)throw t}},{util:2,buffer:3}],2:[function(t,e,r){function n(t){return t instanceof Array||Array.isArray(t)||t&&t!==Object.prototype&&n(t.__proto__)}function i(t){return t instanceof RegExp||"object"==typeof t&&"[object RegExp]"===Object.prototype.toString.call(t)}function o(t){if(t instanceof Date)return!0;if("object"!=typeof t)return!1;var e=Date.prototype&&a(Date.prototype),r=t.__proto__&&a(t.__proto__);return JSON.stringify(r)===JSON.stringify(e)}t("events"),r.isArray=n,r.isDate=function(t){return"[object Date]"===Object.prototype.toString.call(t)},r.isRegExp=function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},r.print=function(){},r.puts=function(){},r.debug=function(){},r.inspect=function(t,e,u,f){function h(t,u){if(t&&"function"==typeof t.inspect&&t!==r&&(!t.constructor||t.constructor.prototype!==t))return t.inspect(u);switch(typeof t){case"undefined":return c("undefined","undefined");case"string":var f="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return c(f,"string");case"number":return c(""+t,"number");case"boolean":return c(""+t,"boolean")}if(null===t)return c("null","null");var p=s(t),d=e?a(t):p;if("function"==typeof t&&0===d.length){if(i(t))return c(""+t,"regexp");var g=t.name?": "+t.name:"";return c("[Function"+g+"]","special")}if(o(t)&&0===d.length)return c(t.toUTCString(),"date");var y,v,b;if(n(t)?(v="Array",b=["[","]"]):(v="Object",b=["{","}"]),"function"==typeof t){var w=t.name?": "+t.name:"";y=i(t)?" "+t:" [Function"+w+"]"}else y="";if(o(t)&&(y=" "+t.toUTCString()),0===d.length)return b[0]+y+b[1];if(0>u)return i(t)?c(""+t,"regexp"):c("[Object]","special");l.push(t);var m=d.map(function(e){var r,i;if(t.__lookupGetter__&&(t.__lookupGetter__(e)?i=t.__lookupSetter__(e)?c("[Getter/Setter]","special"):c("[Getter]","special"):t.__lookupSetter__(e)&&(i=c("[Setter]","special"))),0>p.indexOf(e)&&(r="["+e+"]"),i||(0>l.indexOf(t[e])?(i=null===u?h(t[e]):h(t[e],u-1),i.indexOf("\n")>-1&&(i=n(t)?i.split("\n").map(function(t){return" "+t}).join("\n").substr(2):"\n"+i.split("\n").map(function(t){return" "+t}).join("\n"))):i=c("[Circular]","special")),r===void 0){if("Array"===v&&e.match(/^\d+$/))return i;r=JSON.stringify(""+e),r.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(r=r.substr(1,r.length-2),r=c(r,"name")):(r=r.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),r=c(r,"string"))}return r+": "+i});l.pop();var E=0,_=m.reduce(function(t,e){return E++,e.indexOf("\n")>=0&&E++,t+e.length+1},0);return m=_>50?b[0]+(""===y?"":y+"\n ")+" "+m.join(",\n ")+" "+b[1]:b[0]+y+" "+m.join(", ")+" "+b[1]}var l=[],c=function(t,e){var r={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]},n={special:"cyan",number:"blue","boolean":"yellow",undefined:"grey","null":"bold",string:"green",date:"magenta",regexp:"red"}[e];return n?"["+r[n][0]+"m"+t+"["+r[n][1]+"m":t};return f||(c=function(t){return t}),h(t,u===void 0?2:u)},r.log=function(){},r.pump=null;var s=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e},a=Object.getOwnPropertyNames||function(t){var e=[];for(var r in t)Object.hasOwnProperty.call(t,r)&&e.push(r);return e},u=Object.create||function(t,e){var r;if(null===t)r={__proto__:null};else{if("object"!=typeof t)throw new TypeError("typeof prototype["+typeof t+"] != 'object'");var n=function(){};n.prototype=t,r=new n,r.__proto__=t}return e!==void 0&&Object.defineProperties&&Object.defineProperties(r,e),r};r.inherits=function(t,e){t.super_=e,t.prototype=u(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})};var f=/%[sdj%]/g;r.format=function(t){if("string"!=typeof t){for(var e=[],n=0;arguments.length>n;n++)e.push(r.inspect(arguments[n]));return e.join(" ")}for(var n=1,i=arguments,o=i.length,s=(t+"").replace(f,function(t){if("%%"===t)return"%";if(n>=o)return t;switch(t){case"%s":return i[n++]+"";case"%d":return Number(i[n++]);case"%j":return JSON.stringify(i[n++]);default:return t}}),a=i[n];o>n;a=i[++n])s+=null===a||"object"!=typeof a?" "+a:" "+r.inspect(a);return s}},{events:4}],5:[function(t,e,r){r.readIEEE754=function(t,e,r,n,i){var o,s,a=8*i-n-1,u=(1<<a)-1,f=u>>1,h=-7,l=r?0:i-1,c=r?1:-1,p=t[e+l];for(l+=c,o=p&(1<<-h)-1,p>>=-h,h+=a;h>0;o=256*o+t[e+l],l+=c,h-=8);for(s=o&(1<<-h)-1,o>>=-h,h+=n;h>0;s=256*s+t[e+l],l+=c,h-=8);if(0===o)o=1-f;else{if(o===u)return s?0/0:1/0*(p?-1:1);s+=Math.pow(2,n),o-=f}return(p?-1:1)*s*Math.pow(2,o-n)},r.writeIEEE754=function(t,e,r,n,i,o){var s,a,u,f=8*o-i-1,h=(1<<f)-1,l=h>>1,c=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?o-1:0,d=n?-1:1,g=0>e||0===e&&0>1/e?1:0;for(e=Math.abs(e),isNaN(e)||1/0===e?(a=isNaN(e)?1:0,s=h):(s=Math.floor(Math.log(e)/Math.LN2),1>e*(u=Math.pow(2,-s))&&(s--,u*=2),e+=s+l>=1?c/u:c*Math.pow(2,1-l),e*u>=2&&(s++,u/=2),s+l>=h?(a=0,s=h):s+l>=1?(a=(e*u-1)*Math.pow(2,i),s+=l):(a=e*Math.pow(2,l-1)*Math.pow(2,i),s=0));i>=8;t[r+p]=255&a,p+=d,a/=256,i-=8);for(s=s<<i|a,f+=i;f>0;t[r+p]=255&s,p+=d,s/=256,f-=8);t[r+p-d]|=128*g}},{}],6:[function(t,e){var r=e.exports={};r.nextTick=function(){var t="undefined"!=typeof window&&window.setImmediate,e="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(t)return function(t){return window.setImmediate(t)};if(e){var r=[];return window.addEventListener("message",function(t){if(t.source===window&&"process-tick"===t.data&&(t.stopPropagation(),r.length>0)){var e=r.shift();e()}},!0),function(t){r.push(t),window.postMessage("process-tick","*")}}return function(t){setTimeout(t,0)}}(),r.title="browser",r.browser=!0,r.env={},r.argv=[],r.binding=function(){throw Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(){throw Error("process.chdir is not supported")}},{}],4:[function(t,e,r){(function(t){function e(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0;t.length>r;r++)if(e===t[r])return r;return-1}t.EventEmitter||(t.EventEmitter=function(){});var n=r.EventEmitter=t.EventEmitter,i="function"==typeof Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},o=10;n.prototype.setMaxListeners=function(t){this._events||(this._events={}),this._events.maxListeners=t},n.prototype.emit=function(t){if("error"===t&&(!this._events||!this._events.error||i(this._events.error)&&!this._events.error.length))throw arguments[1]instanceof Error?arguments[1]:Error("Uncaught, unspecified 'error' event.");if(!this._events)return!1;var e=this._events[t];if(!e)return!1;if("function"==typeof e){switch(arguments.length){case 1:e.call(this);break;case 2:e.call(this,arguments[1]);break;case 3:e.call(this,arguments[1],arguments[2]);break;default:var r=Array.prototype.slice.call(arguments,1);e.apply(this,r)}return!0}if(i(e)){for(var r=Array.prototype.slice.call(arguments,1),n=e.slice(),o=0,s=n.length;s>o;o++)n[o].apply(this,r);return!0}return!1},n.prototype.addListener=function(t,e){if("function"!=typeof e)throw Error("addListener only takes instances of Function");if(this._events||(this._events={}),this.emit("newListener",t,e),this._events[t])if(i(this._events[t])){if(!this._events[t].warned){var r;
r=void 0!==this._events.maxListeners?this._events.maxListeners:o,r&&r>0&&this._events[t].length>r&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),console.trace())}this._events[t].push(e)}else this._events[t]=[this._events[t],e];else this._events[t]=e;return this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(t,e){var r=this;return r.on(t,function n(){r.removeListener(t,n),e.apply(this,arguments)}),this},n.prototype.removeListener=function(t,r){if("function"!=typeof r)throw Error("removeListener only takes instances of Function");if(!this._events||!this._events[t])return this;var n=this._events[t];if(i(n)){var o=e(n,r);if(0>o)return this;n.splice(o,1),0==n.length&&delete this._events[t]}else this._events[t]===r&&delete this._events[t];return this},n.prototype.removeAllListeners=function(t){return 0===arguments.length?(this._events={},this):(t&&this._events&&this._events[t]&&(this._events[t]=null),this)},n.prototype.listeners=function(t){return this._events||(this._events={}),this._events[t]||(this._events[t]=[]),i(this._events[t])||(this._events[t]=[this._events[t]]),this._events[t]}})(t("__browserify_process"))},{__browserify_process:6}],"buffer-browserify":[function(t,e){e.exports=t("q9TxCC")},{}],q9TxCC:[function(t,e,r){function n(t){this.length=t}function i(t){return 16>t?"0"+t.toString(16):t.toString(16)}function o(t){for(var e=[],r=0;t.length>r;r++)if(127>=t.charCodeAt(r))e.push(t.charCodeAt(r));else for(var n=encodeURIComponent(t.charAt(r)).substr(1).split("%"),i=0;n.length>i;i++)e.push(parseInt(n[i],16));return e}function s(t){for(var e=[],r=0;t.length>r;r++)e.push(255&t.charCodeAt(r));return e}function a(e){return t("base64-js").toByteArray(e)}function u(t,e,r,n){for(var i=0;n>i&&!(i+r>=e.length||i>=t.length);)e[i+r]=t[i],i++;return i}function f(t){try{return decodeURIComponent(t)}catch(e){return String.fromCharCode(65533)}}function h(t){return t=~~Math.ceil(+t),0>t?0:t}function l(t,e,r){if(!(this instanceof l))return new l(t,e,r);var i;if("number"==typeof r)this.length=h(e),this.parent=t,this.offset=r;else{switch(i=typeof t){case"number":this.length=h(t);break;case"string":this.length=l.byteLength(t,e);break;case"object":this.length=h(t.length);break;default:throw Error("First argument needs to be a number, array or string.")}if(this.length>l.poolSize?(this.parent=new n(this.length),this.offset=0):((!A||A.length-A.used<this.length)&&p(),this.parent=A,this.offset=A.used,A.used+=this.length),c(t))for(var o=0;this.length>o;o++)this.parent[o+this.offset]=t instanceof l?t.readUInt8(o):t[o];else"string"==i&&(this.length=this.write(t,0,e))}}function c(t){return Array.isArray(t)||l.isBuffer(t)||t&&"object"==typeof t&&"number"==typeof t.length}function p(){A=new n(l.poolSize),A.used=0}function d(t,e,r,n){var i=0;return n||(j.ok("boolean"==typeof r,"missing or invalid endian"),j.ok(void 0!==e&&null!==e,"missing offset"),j.ok(t.length>e+1,"Trying to read beyond buffer length")),e>=t.length?0:(r?(i=t.parent[t.offset+e]<<8,t.length>e+1&&(i|=t.parent[t.offset+e+1])):(i=t.parent[t.offset+e],t.length>e+1&&(i|=t.parent[t.offset+e+1]<<8)),i)}function g(t,e,r,n){var i=0;return n||(j.ok("boolean"==typeof r,"missing or invalid endian"),j.ok(void 0!==e&&null!==e,"missing offset"),j.ok(t.length>e+3,"Trying to read beyond buffer length")),e>=t.length?0:(r?(t.length>e+1&&(i=t.parent[t.offset+e+1]<<16),t.length>e+2&&(i|=t.parent[t.offset+e+2]<<8),t.length>e+3&&(i|=t.parent[t.offset+e+3]),i+=t.parent[t.offset+e]<<24>>>0):(t.length>e+2&&(i=t.parent[t.offset+e+2]<<16),t.length>e+1&&(i|=t.parent[t.offset+e+1]<<8),i|=t.parent[t.offset+e],t.length>e+3&&(i+=t.parent[t.offset+e+3]<<24>>>0)),i)}function y(t,e,r,n){var i,o;return n||(j.ok("boolean"==typeof r,"missing or invalid endian"),j.ok(void 0!==e&&null!==e,"missing offset"),j.ok(t.length>e+1,"Trying to read beyond buffer length")),o=d(t,e,r,n),i=32768&o,i?-1*(65535-o+1):o}function v(t,e,r,n){var i,o;return n||(j.ok("boolean"==typeof r,"missing or invalid endian"),j.ok(void 0!==e&&null!==e,"missing offset"),j.ok(t.length>e+3,"Trying to read beyond buffer length")),o=g(t,e,r,n),i=2147483648&o,i?-1*(4294967295-o+1):o}function b(e,r,n,i){return i||(j.ok("boolean"==typeof n,"missing or invalid endian"),j.ok(e.length>r+3,"Trying to read beyond buffer length")),t("./buffer_ieee754").readIEEE754(e,r,n,23,4)}function w(e,r,n,i){return i||(j.ok("boolean"==typeof n,"missing or invalid endian"),j.ok(e.length>r+7,"Trying to read beyond buffer length")),t("./buffer_ieee754").readIEEE754(e,r,n,52,8)}function m(t,e){j.ok("number"==typeof t,"cannot write a non-number as a number"),j.ok(t>=0,"specified a negative value for writing an unsigned value"),j.ok(e>=t,"value is larger than maximum value for type"),j.ok(Math.floor(t)===t,"value has a fractional component")}function E(t,e,r,n,i){i||(j.ok(void 0!==e&&null!==e,"missing value"),j.ok("boolean"==typeof n,"missing or invalid endian"),j.ok(void 0!==r&&null!==r,"missing offset"),j.ok(t.length>r+1,"trying to write beyond buffer length"),m(e,65535));for(var o=0;Math.min(t.length-r,2)>o;o++)t.parent[t.offset+r+o]=(e&255<<8*(n?1-o:o))>>>8*(n?1-o:o)}function _(t,e,r,n,i){i||(j.ok(void 0!==e&&null!==e,"missing value"),j.ok("boolean"==typeof n,"missing or invalid endian"),j.ok(void 0!==r&&null!==r,"missing offset"),j.ok(t.length>r+3,"trying to write beyond buffer length"),m(e,4294967295));for(var o=0;Math.min(t.length-r,4)>o;o++)t.parent[t.offset+r+o]=255&e>>>8*(n?3-o:o)}function k(t,e,r){j.ok("number"==typeof t,"cannot write a non-number as a number"),j.ok(e>=t,"value larger than maximum allowed value"),j.ok(t>=r,"value smaller than minimum allowed value"),j.ok(Math.floor(t)===t,"value has a fractional component")}function S(t,e,r){j.ok("number"==typeof t,"cannot write a non-number as a number"),j.ok(e>=t,"value larger than maximum allowed value"),j.ok(t>=r,"value smaller than minimum allowed value")}function I(t,e,r,n,i){i||(j.ok(void 0!==e&&null!==e,"missing value"),j.ok("boolean"==typeof n,"missing or invalid endian"),j.ok(void 0!==r&&null!==r,"missing offset"),j.ok(t.length>r+1,"Trying to write beyond buffer length"),k(e,32767,-32768)),e>=0?E(t,e,r,n,i):E(t,65535+e+1,r,n,i)}function L(t,e,r,n,i){i||(j.ok(void 0!==e&&null!==e,"missing value"),j.ok("boolean"==typeof n,"missing or invalid endian"),j.ok(void 0!==r&&null!==r,"missing offset"),j.ok(t.length>r+3,"Trying to write beyond buffer length"),k(e,2147483647,-2147483648)),e>=0?_(t,e,r,n,i):_(t,4294967295+e+1,r,n,i)}function x(e,r,n,i,o){o||(j.ok(void 0!==r&&null!==r,"missing value"),j.ok("boolean"==typeof i,"missing or invalid endian"),j.ok(void 0!==n&&null!==n,"missing offset"),j.ok(e.length>n+3,"Trying to write beyond buffer length"),S(r,3.4028234663852886e38,-3.4028234663852886e38)),t("./buffer_ieee754").writeIEEE754(e,r,n,i,23,4)}function B(e,r,n,i,o){o||(j.ok(void 0!==r&&null!==r,"missing value"),j.ok("boolean"==typeof i,"missing or invalid endian"),j.ok(void 0!==n&&null!==n,"missing offset"),j.ok(e.length>n+7,"Trying to write beyond buffer length"),S(r,1.7976931348623157e308,-1.7976931348623157e308)),t("./buffer_ieee754").writeIEEE754(e,r,n,i,52,8)}var j=t("assert");r.INSPECT_MAX_BYTES=50,n.byteLength=function(t,e){switch(e||"utf8"){case"hex":return t.length/2;case"utf8":case"utf-8":return o(t).length;case"ascii":case"binary":return t.length;case"base64":return a(t).length;default:throw Error("Unknown encoding")}},n.prototype.utf8Write=function(t,e,r){return n._charsWritten=u(o(t),this,e,r)},n.prototype.asciiWrite=function(t,e,r){return n._charsWritten=u(s(t),this,e,r)},n.prototype.binaryWrite=n.prototype.asciiWrite,n.prototype.base64Write=function(t,e,r){return n._charsWritten=u(a(t),this,e,r)},n.prototype.base64Slice=function(){var e=Array.prototype.slice.apply(this,arguments);return t("base64-js").fromByteArray(e)},n.prototype.utf8Slice=function(){for(var t=Array.prototype.slice.apply(this,arguments),e="",r="",n=0;t.length>n;)127>=t[n]?(e+=f(r)+String.fromCharCode(t[n]),r=""):r+="%"+t[n].toString(16),n++;return e+f(r)},n.prototype.asciiSlice=function(){for(var t=Array.prototype.slice.apply(this,arguments),e="",r=0;t.length>r;r++)e+=String.fromCharCode(t[r]);return e},n.prototype.binarySlice=n.prototype.asciiSlice,n.prototype.inspect=function(){for(var t=[],e=this.length,n=0;e>n;n++)if(t[n]=i(this[n]),n==r.INSPECT_MAX_BYTES){t[n+1]="...";break}return"<SlowBuffer "+t.join(" ")+">"},n.prototype.hexSlice=function(t,e){var r=this.length;(!t||0>t)&&(t=0),(!e||0>e||e>r)&&(e=r);for(var n="",o=t;e>o;o++)n+=i(this[o]);return n},n.prototype.toString=function(t,e,r){if(t=((t||"utf8")+"").toLowerCase(),e=+e||0,r===void 0&&(r=this.length),+r==e)return"";switch(t){case"hex":return this.hexSlice(e,r);case"utf8":case"utf-8":return this.utf8Slice(e,r);case"ascii":return this.asciiSlice(e,r);case"binary":return this.binarySlice(e,r);case"base64":return this.base64Slice(e,r);case"ucs2":case"ucs-2":return this.ucs2Slice(e,r);default:throw Error("Unknown encoding")}},n.prototype.hexWrite=function(t,e,r){e=+e||0;var i=this.length-e;r?(r=+r,r>i&&(r=i)):r=i;var o=t.length;if(o%2)throw Error("Invalid hex string");r>o/2&&(r=o/2);for(var s=0;r>s;s++){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))throw Error("Invalid hex string");this[e+s]=a}return n._charsWritten=2*s,s},n.prototype.write=function(t,e,r,n){if(isFinite(e))isFinite(r)||(n=r,r=void 0);else{var i=n;n=e,e=r,r=i}e=+e||0;var o=this.length-e;switch(r?(r=+r,r>o&&(r=o)):r=o,n=((n||"utf8")+"").toLowerCase()){case"hex":return this.hexWrite(t,e,r);case"utf8":case"utf-8":return this.utf8Write(t,e,r);case"ascii":return this.asciiWrite(t,e,r);case"binary":return this.binaryWrite(t,e,r);case"base64":return this.base64Write(t,e,r);case"ucs2":case"ucs-2":return this.ucs2Write(t,e,r);default:throw Error("Unknown encoding")}},n.prototype.slice=function(t,e){if(void 0===e&&(e=this.length),e>this.length)throw Error("oob");if(t>e)throw Error("oob");return new l(this,e-t,+t)},n.prototype.copy=function(t,e,r,n){for(var i=[],o=r;n>o;o++)j.ok(this[o]!==void 0,"copying undefined buffer bytes!"),i.push(this[o]);for(var o=e;e+i.length>o;o++)t[o]=i[o-e]},n.prototype.fill=function(t,e,r){if(r>this.length)throw Error("oob");if(e>r)throw Error("oob");for(var n=e;r>n;n++)this[n]=t},r.SlowBuffer=n,r.Buffer=l,l.poolSize=8192;var A;l.isBuffer=function(t){return t instanceof l||t instanceof n},l.concat=function(t,e){if(!Array.isArray(t))throw Error("Usage: Buffer.concat(list, [totalLength])\n list should be an Array.");if(0===t.length)return new l(0);if(1===t.length)return t[0];if("number"!=typeof e){e=0;for(var r=0;t.length>r;r++){var n=t[r];e+=n.length}}for(var i=new l(e),o=0,r=0;t.length>r;r++){var n=t[r];n.copy(i,o),o+=n.length}return i},l.prototype.inspect=function(){for(var t=[],e=this.length,n=0;e>n;n++)if(t[n]=i(this.parent[n+this.offset]),n==r.INSPECT_MAX_BYTES){t[n+1]="...";break}return"<Buffer "+t.join(" ")+">"},l.prototype.get=function(t){if(0>t||t>=this.length)throw Error("oob");return this.parent[this.offset+t]},l.prototype.set=function(t,e){if(0>t||t>=this.length)throw Error("oob");return this.parent[this.offset+t]=e},l.prototype.write=function(t,e,r,i){if(isFinite(e))isFinite(r)||(i=r,r=void 0);else{var o=i;i=e,e=r,r=o}e=+e||0;var s=this.length-e;r?(r=+r,r>s&&(r=s)):r=s,i=((i||"utf8")+"").toLowerCase();var a;switch(i){case"hex":a=this.parent.hexWrite(t,this.offset+e,r);break;case"utf8":case"utf-8":a=this.parent.utf8Write(t,this.offset+e,r);break;case"ascii":a=this.parent.asciiWrite(t,this.offset+e,r);break;case"binary":a=this.parent.binaryWrite(t,this.offset+e,r);break;case"base64":a=this.parent.base64Write(t,this.offset+e,r);break;case"ucs2":case"ucs-2":a=this.parent.ucs2Write(t,this.offset+e,r);break;default:throw Error("Unknown encoding")}return l._charsWritten=n._charsWritten,a},l.prototype.toString=function(t,e,r){switch(t=((t||"utf8")+"").toLowerCase(),e===void 0||0>e?e=0:e>this.length&&(e=this.length),r===void 0||r>this.length?r=this.length:0>r&&(r=0),e+=this.offset,r+=this.offset,t){case"hex":return this.parent.hexSlice(e,r);case"utf8":case"utf-8":return this.parent.utf8Slice(e,r);case"ascii":return this.parent.asciiSlice(e,r);case"binary":return this.parent.binarySlice(e,r);case"base64":return this.parent.base64Slice(e,r);case"ucs2":case"ucs-2":return this.parent.ucs2Slice(e,r);default:throw Error("Unknown encoding")}},l.byteLength=n.byteLength,l.prototype.fill=function(t,e,r){if(t||(t=0),e||(e=0),r||(r=this.length),"string"==typeof t&&(t=t.charCodeAt(0)),"number"!=typeof t||isNaN(t))throw Error("value is not a number");if(e>r)throw Error("end < start");if(r===e)return 0;if(0==this.length)return 0;if(0>e||e>=this.length)throw Error("start out of bounds");if(0>r||r>this.length)throw Error("end out of bounds");return this.parent.fill(t,e+this.offset,r+this.offset)},l.prototype.copy=function(t,e,r,n){var i=this;if(r||(r=0),n||(n=this.length),e||(e=0),r>n)throw Error("sourceEnd < sourceStart");if(n===r)return 0;if(0==t.length||0==i.length)return 0;if(0>e||e>=t.length)throw Error("targetStart out of bounds");if(0>r||r>=i.length)throw Error("sourceStart out of bounds");if(0>n||n>i.length)throw Error("sourceEnd out of bounds");return n>this.length&&(n=this.length),n-r>t.length-e&&(n=t.length-e+r),this.parent.copy(t.parent,e+t.offset,r+this.offset,n+this.offset)},l.prototype.slice=function(t,e){if(void 0===e&&(e=this.length),e>this.length)throw Error("oob");if(t>e)throw Error("oob");return new l(this.parent,e-t,+t+this.offset)},l.prototype.utf8Slice=function(t,e){return this.toString("utf8",t,e)},l.prototype.binarySlice=function(t,e){return this.toString("binary",t,e)},l.prototype.asciiSlice=function(t,e){return this.toString("ascii",t,e)},l.prototype.utf8Write=function(t,e){return this.write(t,e,"utf8")},l.prototype.binaryWrite=function(t,e){return this.write(t,e,"binary")},l.prototype.asciiWrite=function(t,e){return this.write(t,e,"ascii")},l.prototype.readUInt8=function(t,e){var r=this;return e||(j.ok(void 0!==t&&null!==t,"missing offset"),j.ok(r.length>t,"Trying to read beyond buffer length")),t>=r.length?void 0:r.parent[r.offset+t]},l.prototype.readUInt16LE=function(t,e){return d(this,t,!1,e)},l.prototype.readUInt16BE=function(t,e){return d(this,t,!0,e)},l.prototype.readUInt32LE=function(t,e){return g(this,t,!1,e)},l.prototype.readUInt32BE=function(t,e){return g(this,t,!0,e)},l.prototype.readInt8=function(t,e){var r,n=this;return e||(j.ok(void 0!==t&&null!==t,"missing offset"),j.ok(n.length>t,"Trying to read beyond buffer length")),t>=n.length?void 0:(r=128&n.parent[n.offset+t],r?-1*(255-n.parent[n.offset+t]+1):n.parent[n.offset+t])},l.prototype.readInt16LE=function(t,e){return y(this,t,!1,e)},l.prototype.readInt16BE=function(t,e){return y(this,t,!0,e)},l.prototype.readInt32LE=function(t,e){return v(this,t,!1,e)},l.prototype.readInt32BE=function(t,e){return v(this,t,!0,e)},l.prototype.readFloatLE=function(t,e){return b(this,t,!1,e)},l.prototype.readFloatBE=function(t,e){return b(this,t,!0,e)},l.prototype.readDoubleLE=function(t,e){return w(this,t,!1,e)},l.prototype.readDoubleBE=function(t,e){return w(this,t,!0,e)},l.prototype.writeUInt8=function(t,e,r){var n=this;r||(j.ok(void 0!==t&&null!==t,"missing value"),j.ok(void 0!==e&&null!==e,"missing offset"),j.ok(n.length>e,"trying to write beyond buffer length"),m(t,255)),n.length>e&&(n.parent[n.offset+e]=t)},l.prototype.writeUInt16LE=function(t,e,r){E(this,t,e,!1,r)},l.prototype.writeUInt16BE=function(t,e,r){E(this,t,e,!0,r)},l.prototype.writeUInt32LE=function(t,e,r){_(this,t,e,!1,r)},l.prototype.writeUInt32BE=function(t,e,r){_(this,t,e,!0,r)},l.prototype.writeInt8=function(t,e,r){var n=this;r||(j.ok(void 0!==t&&null!==t,"missing value"),j.ok(void 0!==e&&null!==e,"missing offset"),j.ok(n.length>e,"Trying to write beyond buffer length"),k(t,127,-128)),t>=0?n.writeUInt8(t,e,r):n.writeUInt8(255+t+1,e,r)},l.prototype.writeInt16LE=function(t,e,r){I(this,t,e,!1,r)},l.prototype.writeInt16BE=function(t,e,r){I(this,t,e,!0,r)},l.prototype.writeInt32LE=function(t,e,r){L(this,t,e,!1,r)},l.prototype.writeInt32BE=function(t,e,r){L(this,t,e,!0,r)},l.prototype.writeFloatLE=function(t,e,r){x(this,t,e,!1,r)},l.prototype.writeFloatBE=function(t,e,r){x(this,t,e,!0,r)},l.prototype.writeDoubleLE=function(t,e,r){B(this,t,e,!1,r)},l.prototype.writeDoubleBE=function(t,e,r){B(this,t,e,!0,r)},n.prototype.readUInt8=l.prototype.readUInt8,n.prototype.readUInt16LE=l.prototype.readUInt16LE,n.prototype.readUInt16BE=l.prototype.readUInt16BE,n.prototype.readUInt32LE=l.prototype.readUInt32LE,n.prototype.readUInt32BE=l.prototype.readUInt32BE,n.prototype.readInt8=l.prototype.readInt8,n.prototype.readInt16LE=l.prototype.readInt16LE,n.prototype.readInt16BE=l.prototype.readInt16BE,n.prototype.readInt32LE=l.prototype.readInt32LE,n.prototype.readInt32BE=l.prototype.readInt32BE,n.prototype.readFloatLE=l.prototype.readFloatLE,n.prototype.readFloatBE=l.prototype.readFloatBE,n.prototype.readDoubleLE=l.prototype.readDoubleLE,n.prototype.readDoubleBE=l.prototype.readDoubleBE,n.prototype.writeUInt8=l.prototype.writeUInt8,n.prototype.writeUInt16LE=l.prototype.writeUInt16LE,n.prototype.writeUInt16BE=l.prototype.writeUInt16BE,n.prototype.writeUInt32LE=l.prototype.writeUInt32LE,n.prototype.writeUInt32BE=l.prototype.writeUInt32BE,n.prototype.writeInt8=l.prototype.writeInt8,n.prototype.writeInt16LE=l.prototype.writeInt16LE,n.prototype.writeInt16BE=l.prototype.writeInt16BE,n.prototype.writeInt32LE=l.prototype.writeInt32LE,n.prototype.writeInt32BE=l.prototype.writeInt32BE,n.prototype.writeFloatLE=l.prototype.writeFloatLE,n.prototype.writeFloatBE=l.prototype.writeFloatBE,n.prototype.writeDoubleLE=l.prototype.writeDoubleLE,n.prototype.writeDoubleBE=l.prototype.writeDoubleBE},{assert:1,"./buffer_ieee754":5,"base64-js":7}],7:[function(t,e){(function(){"use strict";function t(t){var e,r,i,o,s,a;if(t.length%4>0)throw"Invalid string. Length must be a multiple of 4";for(s=t.indexOf("="),s=s>0?t.length-s:0,a=[],i=s>0?t.length-4:t.length,e=0,r=0;i>e;e+=4,r+=3)o=n.indexOf(t[e])<<18|n.indexOf(t[e+1])<<12|n.indexOf(t[e+2])<<6|n.indexOf(t[e+3]),a.push((16711680&o)>>16),a.push((65280&o)>>8),a.push(255&o);return 2===s?(o=n.indexOf(t[e])<<2|n.indexOf(t[e+1])>>4,a.push(255&o)):1===s&&(o=n.indexOf(t[e])<<10|n.indexOf(t[e+1])<<4|n.indexOf(t[e+2])>>2,a.push(255&o>>8),a.push(255&o)),a}function r(t){function e(t){return n[63&t>>18]+n[63&t>>12]+n[63&t>>6]+n[63&t]}var r,i,o,s=t.length%3,a="";for(r=0,o=t.length-s;o>r;r+=3)i=(t[r]<<16)+(t[r+1]<<8)+t[r+2],a+=e(i);switch(s){case 1:i=t[t.length-1],a+=n[i>>2],a+=n[63&i<<4],a+="==";break;case 2:i=(t[t.length-2]<<8)+t[t.length-1],a+=n[i>>10],a+=n[63&i>>4],a+=n[63&i<<2],a+="="}return a}var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";e.exports.toByteArray=t,e.exports.fromByteArray=r})()},{}],8:[function(t,e,r){r.readIEEE754=function(t,e,r,n,i){var o,s,a=8*i-n-1,u=(1<<a)-1,f=u>>1,h=-7,l=r?0:i-1,c=r?1:-1,p=t[e+l];for(l+=c,o=p&(1<<-h)-1,p>>=-h,h+=a;h>0;o=256*o+t[e+l],l+=c,h-=8);for(s=o&(1<<-h)-1,o>>=-h,h+=n;h>0;s=256*s+t[e+l],l+=c,h-=8);if(0===o)o=1-f;else{if(o===u)return s?0/0:1/0*(p?-1:1);s+=Math.pow(2,n),o-=f}return(p?-1:1)*s*Math.pow(2,o-n)},r.writeIEEE754=function(t,e,r,n,i,o){var s,a,u,f=8*o-i-1,h=(1<<f)-1,l=h>>1,c=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?o-1:0,d=n?-1:1,g=0>e||0===e&&0>1/e?1:0;for(e=Math.abs(e),isNaN(e)||1/0===e?(a=isNaN(e)?1:0,s=h):(s=Math.floor(Math.log(e)/Math.LN2),1>e*(u=Math.pow(2,-s))&&(s--,u*=2),e+=s+l>=1?c/u:c*Math.pow(2,1-l),e*u>=2&&(s++,u/=2),s+l>=h?(a=0,s=h):s+l>=1?(a=(e*u-1)*Math.pow(2,i),s+=l):(a=e*Math.pow(2,l-1)*Math.pow(2,i),s=0));i>=8;t[r+p]=255&a,p+=d,a/=256,i-=8);for(s=s<<i|a,f+=i;f>0;t[r+p]=255&s,p+=d,s/=256,f-=8);t[r+p-d]|=128*g}},{}],3:[function(t,e,r){function n(t){this.length=t}function i(t){return 16>t?"0"+t.toString(16):t.toString(16)}function o(t){for(var e=[],r=0;t.length>r;r++)if(127>=t.charCodeAt(r))e.push(t.charCodeAt(r));else for(var n=encodeURIComponent(t.charAt(r)).substr(1).split("%"),i=0;n.length>i;i++)e.push(parseInt(n[i],16));return e}function s(t){for(var e=[],r=0;t.length>r;r++)e.push(255&t.charCodeAt(r));return e}function a(e){return t("base64-js").toByteArray(e)}function u(t,e,r,n){for(var i=0;n>i&&!(i+r>=e.length||i>=t.length);)e[i+r]=t[i],i++;return i}function f(t){try{return decodeURIComponent(t)}catch(e){return String.fromCharCode(65533)}}function h(t){return t=~~Math.ceil(+t),0>t?0:t}function l(t,e,r){if(!(this instanceof l))return new l(t,e,r);var i;if("number"==typeof r)this.length=h(e),this.parent=t,this.offset=r;else{switch(i=typeof t){case"number":this.length=h(t);break;case"string":this.length=l.byteLength(t,e);break;case"object":this.length=h(t.length);break;default:throw Error("First argument needs to be a number, array or string.")}if(this.length>l.poolSize?(this.parent=new n(this.length),this.offset=0):((!A||A.length-A.used<this.length)&&p(),this.parent=A,this.offset=A.used,A.used+=this.length),c(t))for(var o=0;this.length>o;o++)this.parent[o+this.offset]=t[o];else"string"==i&&(this.length=this.write(t,0,e))}}function c(t){return Array.isArray(t)||l.isBuffer(t)||t&&"object"==typeof t&&"number"==typeof t.length}function p(){A=new n(l.poolSize),A.used=0}function d(t,e,r,n){var i=0;return n||(j.ok("boolean"==typeof r,"missing or invalid endian"),j.ok(void 0!==e&&null!==e,"missing offset"),j.ok(t.length>e+1,"Trying to read beyond buffer length")),r?(i=t.parent[t.offset+e]<<8,i|=t.parent[t.offset+e+1]):(i=t.parent[t.offset+e],i|=t.parent[t.offset+e+1]<<8),i}function g(t,e,r,n){var i=0;return n||(j.ok("boolean"==typeof r,"missing or invalid endian"),j.ok(void 0!==e&&null!==e,"missing offset"),j.ok(t.length>e+3,"Trying to read beyond buffer length")),r?(i=t.parent[t.offset+e+1]<<16,i|=t.parent[t.offset+e+2]<<8,i|=t.parent[t.offset+e+3],i+=t.parent[t.offset+e]<<24>>>0):(i=t.parent[t.offset+e+2]<<16,i|=t.parent[t.offset+e+1]<<8,i|=t.parent[t.offset+e],i+=t.parent[t.offset+e+3]<<24>>>0),i}function y(t,e,r,n){var i,o;return n||(j.ok("boolean"==typeof r,"missing or invalid endian"),j.ok(void 0!==e&&null!==e,"missing offset"),j.ok(t.length>e+1,"Trying to read beyond buffer length")),o=d(t,e,r,n),i=32768&o,i?-1*(65535-o+1):o}function v(t,e,r,n){var i,o;return n||(j.ok("boolean"==typeof r,"missing or invalid endian"),j.ok(void 0!==e&&null!==e,"missing offset"),j.ok(t.length>e+3,"Trying to read beyond buffer length")),o=g(t,e,r,n),i=2147483648&o,i?-1*(4294967295-o+1):o}function b(e,r,n,i){return i||(j.ok("boolean"==typeof n,"missing or invalid endian"),j.ok(e.length>r+3,"Trying to read beyond buffer length")),t("./buffer_ieee754").readIEEE754(e,r,n,23,4)}function w(e,r,n,i){return i||(j.ok("boolean"==typeof n,"missing or invalid endian"),j.ok(e.length>r+7,"Trying to read beyond buffer length")),t("./buffer_ieee754").readIEEE754(e,r,n,52,8)}function m(t,e){j.ok("number"==typeof t,"cannot write a non-number as a number"),j.ok(t>=0,"specified a negative value for writing an unsigned value"),j.ok(e>=t,"value is larger than maximum value for type"),j.ok(Math.floor(t)===t,"value has a fractional component")}function E(t,e,r,n,i){i||(j.ok(void 0!==e&&null!==e,"missing value"),j.ok("boolean"==typeof n,"missing or invalid endian"),j.ok(void 0!==r&&null!==r,"missing offset"),j.ok(t.length>r+1,"trying to write beyond buffer length"),m(e,65535)),n?(t.parent[t.offset+r]=(65280&e)>>>8,t.parent[t.offset+r+1]=255&e):(t.parent[t.offset+r+1]=(65280&e)>>>8,t.parent[t.offset+r]=255&e)}function _(t,e,r,n,i){i||(j.ok(void 0!==e&&null!==e,"missing value"),j.ok("boolean"==typeof n,"missing or invalid endian"),j.ok(void 0!==r&&null!==r,"missing offset"),j.ok(t.length>r+3,"trying to write beyond buffer length"),m(e,4294967295)),n?(t.parent[t.offset+r]=255&e>>>24,t.parent[t.offset+r+1]=255&e>>>16,t.parent[t.offset+r+2]=255&e>>>8,t.parent[t.offset+r+3]=255&e):(t.parent[t.offset+r+3]=255&e>>>24,t.parent[t.offset+r+2]=255&e>>>16,t.parent[t.offset+r+1]=255&e>>>8,t.parent[t.offset+r]=255&e)}function k(t,e,r){j.ok("number"==typeof t,"cannot write a non-number as a number"),j.ok(e>=t,"value larger than maximum allowed value"),j.ok(t>=r,"value smaller than minimum allowed value"),j.ok(Math.floor(t)===t,"value has a fractional component")}function S(t,e,r){j.ok("number"==typeof t,"cannot write a non-number as a number"),j.ok(e>=t,"value larger than maximum allowed value"),j.ok(t>=r,"value smaller than minimum allowed value")}function I(t,e,r,n,i){i||(j.ok(void 0!==e&&null!==e,"missing value"),j.ok("boolean"==typeof n,"missing or invalid endian"),j.ok(void 0!==r&&null!==r,"missing offset"),j.ok(t.length>r+1,"Trying to write beyond buffer length"),k(e,32767,-32768)),e>=0?E(t,e,r,n,i):E(t,65535+e+1,r,n,i)}function L(t,e,r,n,i){i||(j.ok(void 0!==e&&null!==e,"missing value"),j.ok("boolean"==typeof n,"missing or invalid endian"),j.ok(void 0!==r&&null!==r,"missing offset"),j.ok(t.length>r+3,"Trying to write beyond buffer length"),k(e,2147483647,-2147483648)),e>=0?_(t,e,r,n,i):_(t,4294967295+e+1,r,n,i)}function x(e,r,n,i,o){o||(j.ok(void 0!==r&&null!==r,"missing value"),j.ok("boolean"==typeof i,"missing or invalid endian"),j.ok(void 0!==n&&null!==n,"missing offset"),j.ok(e.length>n+3,"Trying to write beyond buffer length"),S(r,3.4028234663852886e38,-3.4028234663852886e38)),t("./buffer_ieee754").writeIEEE754(e,r,n,i,23,4)}function B(e,r,n,i,o){o||(j.ok(void 0!==r&&null!==r,"missing value"),j.ok("boolean"==typeof i,"missing or invalid endian"),j.ok(void 0!==n&&null!==n,"missing offset"),j.ok(e.length>n+7,"Trying to write beyond buffer length"),S(r,1.7976931348623157e308,-1.7976931348623157e308)),t("./buffer_ieee754").writeIEEE754(e,r,n,i,52,8)}var j=t("assert");r.INSPECT_MAX_BYTES=50,n.byteLength=function(t,e){switch(e||"utf8"){case"hex":return t.length/2;case"utf8":case"utf-8":return o(t).length;case"ascii":return t.length;case"base64":return a(t).length;default:throw Error("Unknown encoding")}},n.prototype.utf8Write=function(t,e,r){return n._charsWritten=u(o(t),this,e,r)},n.prototype.asciiWrite=function(t,e,r){return n._charsWritten=u(s(t),this,e,r)},n.prototype.base64Write=function(t,e,r){return n._charsWritten=u(a(t),this,e,r)},n.prototype.base64Slice=function(){var e=Array.prototype.slice.apply(this,arguments);return t("base64-js").fromByteArray(e)},n.prototype.utf8Slice=function(){for(var t=Array.prototype.slice.apply(this,arguments),e="",r="",n=0;t.length>n;)127>=t[n]?(e+=f(r)+String.fromCharCode(t[n]),r=""):r+="%"+t[n].toString(16),n++;return e+f(r)},n.prototype.asciiSlice=function(){for(var t=Array.prototype.slice.apply(this,arguments),e="",r=0;t.length>r;r++)e+=String.fromCharCode(t[r]);return e},n.prototype.inspect=function(){for(var t=[],e=this.length,n=0;e>n;n++)if(t[n]=i(this[n]),n==r.INSPECT_MAX_BYTES){t[n+1]="...";break}return"<SlowBuffer "+t.join(" ")+">"},n.prototype.hexSlice=function(t,e){var r=this.length;(!t||0>t)&&(t=0),(!e||0>e||e>r)&&(e=r);for(var n="",o=t;e>o;o++)n+=i(this[o]);return n},n.prototype.toString=function(t,e,r){if(t=((t||"utf8")+"").toLowerCase(),e=+e||0,r===void 0&&(r=this.length),+r==e)return"";switch(t){case"hex":return this.hexSlice(e,r);case"utf8":case"utf-8":return this.utf8Slice(e,r);case"ascii":return this.asciiSlice(e,r);case"binary":return this.binarySlice(e,r);case"base64":return this.base64Slice(e,r);case"ucs2":case"ucs-2":return this.ucs2Slice(e,r);default:throw Error("Unknown encoding")}},n.prototype.hexWrite=function(t,e,r){e=+e||0;var i=this.length-e;r?(r=+r,r>i&&(r=i)):r=i;var o=t.length;if(o%2)throw Error("Invalid hex string");r>o/2&&(r=o/2);for(var s=0;r>s;s++){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))throw Error("Invalid hex string");this[e+s]=a}return n._charsWritten=2*s,s},n.prototype.write=function(t,e,r,n){if(isFinite(e))isFinite(r)||(n=r,r=void 0);else{var i=n;n=e,e=r,r=i}e=+e||0;var o=this.length-e;switch(r?(r=+r,r>o&&(r=o)):r=o,n=((n||"utf8")+"").toLowerCase()){case"hex":return this.hexWrite(t,e,r);case"utf8":case"utf-8":return this.utf8Write(t,e,r);case"ascii":return this.asciiWrite(t,e,r);case"binary":return this.binaryWrite(t,e,r);case"base64":return this.base64Write(t,e,r);case"ucs2":case"ucs-2":return this.ucs2Write(t,e,r);default:throw Error("Unknown encoding")}},n.prototype.slice=function(t,e){if(void 0===e&&(e=this.length),e>this.length)throw Error("oob");if(t>e)throw Error("oob");return new l(this,e-t,+t)},n.prototype.copy=function(t,e,r,n){for(var i=[],o=r;n>o;o++)j.ok(this[o]!==void 0,"copying undefined buffer bytes!"),i.push(this[o]);for(var o=e;e+i.length>o;o++)t[o]=i[o-e]},r.SlowBuffer=n,r.Buffer=l,l.poolSize=8192;var A;l.isBuffer=function(t){return t instanceof l||t instanceof n},l.concat=function(t,e){if(!Array.isArray(t))throw Error("Usage: Buffer.concat(list, [totalLength])\n list should be an Array.");if(0===t.length)return new l(0);if(1===t.length)return t[0];if("number"!=typeof e){e=0;for(var r=0;t.length>r;r++){var n=t[r];e+=n.length}}for(var i=new l(e),o=0,r=0;t.length>r;r++){var n=t[r];n.copy(i,o),o+=n.length}return i},l.prototype.inspect=function(){for(var t=[],e=this.length,n=0;e>n;n++)if(t[n]=i(this.parent[n+this.offset]),n==r.INSPECT_MAX_BYTES){t[n+1]="...";break}return"<Buffer "+t.join(" ")+">"},l.prototype.get=function(t){if(0>t||t>=this.length)throw Error("oob");return this.parent[this.offset+t]},l.prototype.set=function(t,e){if(0>t||t>=this.length)throw Error("oob");return this.parent[this.offset+t]=e},l.prototype.write=function(t,e,r,i){if(isFinite(e))isFinite(r)||(i=r,r=void 0);else{var o=i;i=e,e=r,r=o}e=+e||0;var s=this.length-e;r?(r=+r,r>s&&(r=s)):r=s,i=((i||"utf8")+"").toLowerCase();var a;switch(i){case"hex":a=this.parent.hexWrite(t,this.offset+e,r);break;case"utf8":case"utf-8":a=this.parent.utf8Write(t,this.offset+e,r);break;case"ascii":a=this.parent.asciiWrite(t,this.offset+e,r);break;case"binary":a=this.parent.binaryWrite(t,this.offset+e,r);break;case"base64":a=this.parent.base64Write(t,this.offset+e,r);break;case"ucs2":case"ucs-2":a=this.parent.ucs2Write(t,this.offset+e,r);break;default:throw Error("Unknown encoding")}return l._charsWritten=n._charsWritten,a},l.prototype.toString=function(t,e,r){switch(t=((t||"utf8")+"").toLowerCase(),e===void 0||0>e?e=0:e>this.length&&(e=this.length),r===void 0||r>this.length?r=this.length:0>r&&(r=0),e+=this.offset,r+=this.offset,t){case"hex":return this.parent.hexSlice(e,r);case"utf8":case"utf-8":return this.parent.utf8Slice(e,r);case"ascii":return this.parent.asciiSlice(e,r);case"binary":return this.parent.binarySlice(e,r);case"base64":return this.parent.base64Slice(e,r);case"ucs2":case"ucs-2":return this.parent.ucs2Slice(e,r);default:throw Error("Unknown encoding")}},l.byteLength=n.byteLength,l.prototype.fill=function(t,e,r){if(t||(t=0),e||(e=0),r||(r=this.length),"string"==typeof t&&(t=t.charCodeAt(0)),"number"!=typeof t||isNaN(t))throw Error("value is not a number");if(e>r)throw Error("end < start");if(r===e)return 0;if(0==this.length)return 0;if(0>e||e>=this.length)throw Error("start out of bounds");if(0>r||r>this.length)throw Error("end out of bounds");return this.parent.fill(t,e+this.offset,r+this.offset)},l.prototype.copy=function(t,e,r,n){var i=this;if(r||(r=0),n||(n=this.length),e||(e=0),r>n)throw Error("sourceEnd < sourceStart");if(n===r)return 0;if(0==t.length||0==i.length)return 0;if(0>e||e>=t.length)throw Error("targetStart out of bounds");if(0>r||r>=i.length)throw Error("sourceStart out of bounds");if(0>n||n>i.length)throw Error("sourceEnd out of bounds");return n>this.length&&(n=this.length),n-r>t.length-e&&(n=t.length-e+r),this.parent.copy(t.parent,e+t.offset,r+this.offset,n+this.offset)},l.prototype.slice=function(t,e){if(void 0===e&&(e=this.length),e>this.length)throw Error("oob");if(t>e)throw Error("oob");return new l(this.parent,e-t,+t+this.offset)},l.prototype.utf8Slice=function(t,e){return this.toString("utf8",t,e)},l.prototype.binarySlice=function(t,e){return this.toString("binary",t,e)},l.prototype.asciiSlice=function(t,e){return this.toString("ascii",t,e)
},l.prototype.utf8Write=function(t,e){return this.write(t,e,"utf8")},l.prototype.binaryWrite=function(t,e){return this.write(t,e,"binary")},l.prototype.asciiWrite=function(t,e){return this.write(t,e,"ascii")},l.prototype.readUInt8=function(t,e){var r=this;return e||(j.ok(void 0!==t&&null!==t,"missing offset"),j.ok(r.length>t,"Trying to read beyond buffer length")),r.parent[r.offset+t]},l.prototype.readUInt16LE=function(t,e){return d(this,t,!1,e)},l.prototype.readUInt16BE=function(t,e){return d(this,t,!0,e)},l.prototype.readUInt32LE=function(t,e){return g(this,t,!1,e)},l.prototype.readUInt32BE=function(t,e){return g(this,t,!0,e)},l.prototype.readInt8=function(t,e){var r,n=this;return e||(j.ok(void 0!==t&&null!==t,"missing offset"),j.ok(n.length>t,"Trying to read beyond buffer length")),r=128&n.parent[n.offset+t],r?-1*(255-n.parent[n.offset+t]+1):n.parent[n.offset+t]},l.prototype.readInt16LE=function(t,e){return y(this,t,!1,e)},l.prototype.readInt16BE=function(t,e){return y(this,t,!0,e)},l.prototype.readInt32LE=function(t,e){return v(this,t,!1,e)},l.prototype.readInt32BE=function(t,e){return v(this,t,!0,e)},l.prototype.readFloatLE=function(t,e){return b(this,t,!1,e)},l.prototype.readFloatBE=function(t,e){return b(this,t,!0,e)},l.prototype.readDoubleLE=function(t,e){return w(this,t,!1,e)},l.prototype.readDoubleBE=function(t,e){return w(this,t,!0,e)},l.prototype.writeUInt8=function(t,e,r){var n=this;r||(j.ok(void 0!==t&&null!==t,"missing value"),j.ok(void 0!==e&&null!==e,"missing offset"),j.ok(n.length>e,"trying to write beyond buffer length"),m(t,255)),n.parent[n.offset+e]=t},l.prototype.writeUInt16LE=function(t,e,r){E(this,t,e,!1,r)},l.prototype.writeUInt16BE=function(t,e,r){E(this,t,e,!0,r)},l.prototype.writeUInt32LE=function(t,e,r){_(this,t,e,!1,r)},l.prototype.writeUInt32BE=function(t,e,r){_(this,t,e,!0,r)},l.prototype.writeInt8=function(t,e,r){var n=this;r||(j.ok(void 0!==t&&null!==t,"missing value"),j.ok(void 0!==e&&null!==e,"missing offset"),j.ok(n.length>e,"Trying to write beyond buffer length"),k(t,127,-128)),t>=0?n.writeUInt8(t,e,r):n.writeUInt8(255+t+1,e,r)},l.prototype.writeInt16LE=function(t,e,r){I(this,t,e,!1,r)},l.prototype.writeInt16BE=function(t,e,r){I(this,t,e,!0,r)},l.prototype.writeInt32LE=function(t,e,r){L(this,t,e,!1,r)},l.prototype.writeInt32BE=function(t,e,r){L(this,t,e,!0,r)},l.prototype.writeFloatLE=function(t,e,r){x(this,t,e,!1,r)},l.prototype.writeFloatBE=function(t,e,r){x(this,t,e,!0,r)},l.prototype.writeDoubleLE=function(t,e,r){B(this,t,e,!1,r)},l.prototype.writeDoubleBE=function(t,e,r){B(this,t,e,!0,r)},n.prototype.readUInt8=l.prototype.readUInt8,n.prototype.readUInt16LE=l.prototype.readUInt16LE,n.prototype.readUInt16BE=l.prototype.readUInt16BE,n.prototype.readUInt32LE=l.prototype.readUInt32LE,n.prototype.readUInt32BE=l.prototype.readUInt32BE,n.prototype.readInt8=l.prototype.readInt8,n.prototype.readInt16LE=l.prototype.readInt16LE,n.prototype.readInt16BE=l.prototype.readInt16BE,n.prototype.readInt32LE=l.prototype.readInt32LE,n.prototype.readInt32BE=l.prototype.readInt32BE,n.prototype.readFloatLE=l.prototype.readFloatLE,n.prototype.readFloatBE=l.prototype.readFloatBE,n.prototype.readDoubleLE=l.prototype.readDoubleLE,n.prototype.readDoubleBE=l.prototype.readDoubleBE,n.prototype.writeUInt8=l.prototype.writeUInt8,n.prototype.writeUInt16LE=l.prototype.writeUInt16LE,n.prototype.writeUInt16BE=l.prototype.writeUInt16BE,n.prototype.writeUInt32LE=l.prototype.writeUInt32LE,n.prototype.writeUInt32BE=l.prototype.writeUInt32BE,n.prototype.writeInt8=l.prototype.writeInt8,n.prototype.writeInt16LE=l.prototype.writeInt16LE,n.prototype.writeInt16BE=l.prototype.writeInt16BE,n.prototype.writeInt32LE=l.prototype.writeInt32LE,n.prototype.writeInt32BE=l.prototype.writeInt32BE,n.prototype.writeFloatLE=l.prototype.writeFloatLE,n.prototype.writeFloatBE=l.prototype.writeFloatBE,n.prototype.writeDoubleLE=l.prototype.writeDoubleLE,n.prototype.writeDoubleBE=l.prototype.writeDoubleBE},{assert:1,"./buffer_ieee754":8,"base64-js":9}],9:[function(t,e){(function(){"use strict";function t(t){var e,r,i,o,s,a;if(t.length%4>0)throw"Invalid string. Length must be a multiple of 4";for(s=t.indexOf("="),s=s>0?t.length-s:0,a=[],i=s>0?t.length-4:t.length,e=0,r=0;i>e;e+=4,r+=3)o=n.indexOf(t[e])<<18|n.indexOf(t[e+1])<<12|n.indexOf(t[e+2])<<6|n.indexOf(t[e+3]),a.push((16711680&o)>>16),a.push((65280&o)>>8),a.push(255&o);return 2===s?(o=n.indexOf(t[e])<<2|n.indexOf(t[e+1])>>4,a.push(255&o)):1===s&&(o=n.indexOf(t[e])<<10|n.indexOf(t[e+1])<<4|n.indexOf(t[e+2])>>2,a.push(255&o>>8),a.push(255&o)),a}function r(t){function e(t){return n[63&t>>18]+n[63&t>>12]+n[63&t>>6]+n[63&t]}var r,i,o,s=t.length%3,a="";for(r=0,o=t.length-s;o>r;r+=3)i=(t[r]<<16)+(t[r+1]<<8)+t[r+2],a+=e(i);switch(s){case 1:i=t[t.length-1],a+=n[i>>2],a+=n[63&i<<4],a+="==";break;case 2:i=(t[t.length-2]<<8)+t[t.length-1],a+=n[i>>10],a+=n[63&i>>4],a+=n[63&i<<2],a+="="}return a}var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";e.exports.toByteArray=t,e.exports.fromByteArray=r})()},{}]},{},[]),e.exports=t("buffer-browserify")},{}],1:[function(t,e){(function(r,n){function i(e){e=e||{};var r=e.highWaterMark;this.highWaterMark=r||0===r?r: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=!!e.objectMode,this.defaultEncoding=e.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(k||(k=t("string_decoder").StringDecoder),this.decoder=new k(e.encoding),this.encoding=e.encoding)}function o(t){return this instanceof o?(this._readableState=new i(t,this),this.readable=!0,S.call(this),void 0):new o(t)}function s(t,e,r,n,i){var o=h(e,r);if(o)t.emit("error",o);else if(null===r||void 0===r)e.reading=!1,e.ended||l(t,e);else if(e.objectMode||r&&r.length>0)if(e.ended&&!i){var s=Error("stream.push() after EOF");t.emit("error",s)}else if(e.endEmitted&&i){var s=Error("stream.unshift() after end event");t.emit("error",s)}else!e.decoder||i||n||(r=e.decoder.write(r)),e.length+=e.objectMode?1:r.length,i?e.buffer.unshift(r):(e.reading=!1,e.buffer.push(r)),e.needReadable&&c(t),d(t,e);else i||(e.reading=!1);return a(e)}function a(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}function u(t){if(t>=L)t=L;else{t--;for(var e=1;32>e;e<<=1)t|=t>>e;t++}return t}function f(t,e){return 0===e.length&&e.ended?0:e.objectMode?0===t?0:1:isNaN(t)||null===t?e.flowing&&e.buffer.length?e.buffer[0].length:e.length:0>=t?0:(t>e.highWaterMark&&(e.highWaterMark=u(t)),t>e.length?e.ended?e.length:(e.needReadable=!0,0):t)}function h(t,e){var r=null;return n.isBuffer(e)||"string"==typeof e||null===e||void 0===e||t.objectMode||r||(r=new TypeError("Invalid non-string/buffer chunk")),r}function l(t,e){if(e.decoder&&!e.ended){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.length>0?c(t):E(t)}function c(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,e.sync?r.nextTick(function(){p(t)}):p(t))}function p(t){t.emit("readable")}function d(t,e){e.readingMore||(e.readingMore=!0,r.nextTick(function(){g(t,e)}))}function g(t,e){for(var r=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(t.read(0),r!==e.length);)r=e.length;e.readingMore=!1}function y(t){return function(){var e=t._readableState;e.awaitDrain--,0===e.awaitDrain&&v(t)}}function v(t){function e(t){var e=t.write(r);!1===e&&n.awaitDrain++}var r,n=t._readableState;for(n.awaitDrain=0;n.pipesCount&&null!==(r=t.read());)if(1===n.pipesCount?e(n.pipes,0,null):n.pipes.forEach(e),t.emit("data",r),n.awaitDrain>0)return;return 0===n.pipesCount?(n.flowing=!1,_.listenerCount(t,"data")>0&&w(t),void 0):(n.ranOut=!0,void 0)}function b(){this._readableState.ranOut&&(this._readableState.ranOut=!1,v(this))}function w(t,e){var n=t._readableState;if(n.flowing)throw Error("Cannot switch to old mode now.");var i=e||!1,o=!1;t.readable=!0,t.pipe=S.prototype.pipe,t.on=t.addListener=S.prototype.on,t.on("readable",function(){o=!0;for(var e;!i&&null!==(e=t.read());)t.emit("data",e);null===e&&(o=!1,t._readableState.needReadable=!0)}),t.pause=function(){i=!0,this.emit("pause")},t.resume=function(){i=!1,o?r.nextTick(function(){t.emit("readable")}):this.read(0),this.emit("resume")},t.emit("readable")}function m(t,e){var r,i=e.buffer,o=e.length,s=!!e.decoder,a=!!e.objectMode;if(0===i.length)return null;if(0===o)r=null;else if(a)r=i.shift();else if(!t||t>=o)r=s?i.join(""):n.concat(i,o),i.length=0;else if(i[0].length>t){var u=i[0];r=u.slice(0,t),i[0]=u.slice(t)}else if(t===i[0].length)r=i.shift();else{r=s?"":new n(t);for(var f=0,h=0,l=i.length;l>h&&t>f;h++){var u=i[0],c=Math.min(t-f,u.length);s?r+=u.slice(0,c):u.copy(r,f,0,c),u.length>c?i[0]=u.slice(c):i.shift(),f+=c}}return r}function E(t){var e=t._readableState;if(e.length>0)throw Error("endReadable called on non-empty stream");!e.endEmitted&&e.calledRead&&(e.ended=!0,r.nextTick(function(){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}))}e.exports=o,o.ReadableState=i;var _=t("events").EventEmitter;_.listenerCount||(_.listenerCount=function(t,e){return t.listeners(e).length});var k,S=t("stream"),I=t("util");I.inherits(o,S),o.prototype.push=function(t,e){var r=this._readableState;return"string"!=typeof t||r.objectMode||(e=e||r.defaultEncoding,e!==r.encoding&&(t=new n(t,e),e="")),s(this,r,t,e,!1)},o.prototype.unshift=function(t){var e=this._readableState;return s(this,e,t,"",!0)},o.prototype.setEncoding=function(e){k||(k=t("string_decoder").StringDecoder),this._readableState.decoder=new k(e),this._readableState.encoding=e};var L=8388608;o.prototype.read=function(t){var e=this._readableState;e.calledRead=!0;var r=t;if(("number"!=typeof t||t>0)&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return c(this),null;if(t=f(t,e),0===t&&e.ended)return 0===e.length&&E(this),null;var n=e.needReadable;e.length-t<=e.highWaterMark&&(n=!0),(e.ended||e.reading)&&(n=!1),n&&(e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1),n&&!e.reading&&(t=f(r,e));var i;return i=t>0?m(t,e):null,null===i&&(e.needReadable=!0,t=0),e.length-=t,0!==e.length||e.ended||(e.needReadable=!0),e.ended&&!e.endEmitted&&0===e.length&&E(this),i},o.prototype._read=function(){this.emit("error",Error("not implemented"))},o.prototype.pipe=function(t,e){function n(t){t===h&&o()}function i(){t.end()}function o(){t.removeListener("close",a),t.removeListener("finish",u),t.removeListener("drain",d),t.removeListener("error",s),t.removeListener("unpipe",n),h.removeListener("end",i),h.removeListener("end",o),(!t._writableState||t._writableState.needDrain)&&d()}function s(e){f(),0===_.listenerCount(t,"error")&&t.emit("error",e)}function a(){t.removeListener("finish",u),f()}function u(){t.removeListener("close",a),f()}function f(){h.unpipe(t)}var h=this,l=this._readableState;switch(l.pipesCount){case 0:l.pipes=t;break;case 1:l.pipes=[l.pipes,t];break;default:l.pipes.push(t)}l.pipesCount+=1;var c=(!e||e.end!==!1)&&t!==r.stdout&&t!==r.stderr,p=c?i:o;l.endEmitted?r.nextTick(p):h.once("end",p),t.on("unpipe",n);var d=y(h);return t.on("drain",d),t.once("error",s),t.once("close",a),t.once("finish",u),t.emit("pipe",h),l.flowing||(this.on("readable",b),l.flowing=!0,r.nextTick(function(){v(h)})),t},o.prototype.unpipe=function(t){var e=this._readableState;if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,this.removeListener("readable",b),e.flowing=!1,t&&t.emit("unpipe",this),this);if(!t){var r=e.pipes,n=e.pipesCount;e.pipes=null,e.pipesCount=0,this.removeListener("readable",b),e.flowing=!1;for(var i=0;n>i;i++)r[i].emit("unpipe",this);return this}var i=e.pipes.indexOf(t);return-1===i?this:(e.pipes.splice(i,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this),this)},o.prototype.on=function(t,e){var r=S.prototype.on.call(this,t,e);if("data"!==t||this._readableState.flowing||w(this),"readable"===t&&this.readable){var n=this._readableState;n.readableListening||(n.readableListening=!0,n.emittedReadable=!1,n.needReadable=!0,n.reading?n.length&&c(this,n):this.read(0))}return r},o.prototype.addListener=o.prototype.on,o.prototype.resume=function(){w(this),this.read(0),this.emit("resume")},o.prototype.pause=function(){w(this,!0),this.emit("pause")},o.prototype.wrap=function(t){var e=this._readableState,r=!1,n=this;t.on("end",function(){if(e.decoder&&!e.ended){var t=e.decoder.end();t&&t.length&&n.push(t)}n.push(null)}),t.on("data",function(i){if(e.decoder&&(i=e.decoder.write(i)),i&&(e.objectMode||i.length)){var o=n.push(i);o||(r=!0,t.pause())}});for(var i in t)"function"==typeof t[i]&&this[i]===void 0&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));var o=["error","close","destroy","pause","resume"];return o.forEach(function(e){t.on(e,n.emit.bind(n,e))}),n._read=function(){r&&(r=!1,t.resume())},n},o._fromList=m})(t("__browserify_process"),t("__browserify_Buffer").Buffer)},{events:8,stream:9,util:10,string_decoder:11,__browserify_process:6,__browserify_Buffer:7}],2:[function(t,e){(function(r,n){function i(t,e,r){this.chunk=t,this.encoding=e,this.callback=r}function o(t,e){t=t||{};var r=t.highWaterMark;this.highWaterMark=r||0===r?r:16384,this.objectMode=!!t.objectMode,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var n=t.decodeStrings===!1;this.decodeStrings=!n,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){d(e,t)},this.writecb=null,this.writelen=0,this.buffer=[]}function s(e){return this instanceof s||this instanceof t("./_stream_duplex")?(this._writableState=new o(e,this),this.writable=!0,_.call(this),void 0):new s(e)}function a(t,e,n){var i=Error("write after end");t.emit("error",i),r.nextTick(function(){n(i)})}function u(t,e,i,o){var s=!0;if(!n.isBuffer(i)&&"string"!=typeof i&&null!==i&&void 0!==i&&!e.objectMode){var a=new TypeError("Invalid non-string/buffer chunk");t.emit("error",a),r.nextTick(function(){o(a)}),s=!1}return s}function f(t,e,r){return t.objectMode||t.decodeStrings===!1||"string"!=typeof e||(e=new n(e,r)),e}function h(t,e,r,n,o){r=f(e,r,n);var s=e.objectMode?1:r.length;e.length+=s;var a=e.length<e.highWaterMark;return e.needDrain=!a,e.writing?e.buffer.push(new i(r,n,o)):l(t,e,s,r,n,o),a}function l(t,e,r,n,i,o){e.writelen=r,e.writecb=o,e.writing=!0,e.sync=!0,t._write(n,i,e.onwrite),e.sync=!1}function c(t,e,n,i,o){n?r.nextTick(function(){o(i)}):o(i),t.emit("error",i)}function p(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function d(t,e){var n=t._writableState,i=n.sync,o=n.writecb;if(p(n),e)c(t,n,i,e,o);else{var s=b(t,n);s||n.bufferProcessing||!n.buffer.length||v(t,n),i?r.nextTick(function(){g(t,n,s,o)}):g(t,n,s,o)}}function g(t,e,r,n){r||y(t,e),n(),r&&w(t,e)}function y(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function v(t,e){e.bufferProcessing=!0;for(var r=0;e.buffer.length>r;r++){var n=e.buffer[r],i=n.chunk,o=n.encoding,s=n.callback,a=e.objectMode?1:i.length;if(l(t,e,a,i,o,s),e.writing){r++;break}}e.bufferProcessing=!1,e.buffer.length>r?e.buffer=e.buffer.slice(r):e.buffer.length=0}function b(t,e){return e.ending&&0===e.length&&!e.finished&&!e.writing}function w(t,e){var r=b(t,e);return r&&(e.finished=!0,t.emit("finish")),r}function m(t,e,n){e.ending=!0,w(t,e),n&&(e.finished?r.nextTick(n):t.once("finish",n)),e.ended=!0}e.exports=s,s.WritableState=o;var E=t("util");t("assert");var _=t("stream");E.inherits(s,_),s.prototype.pipe=function(){this.emit("error",Error("Cannot pipe. Not readable."))},s.prototype.write=function(t,e,r){var i=this._writableState,o=!1;return"function"==typeof e&&(r=e,e=null),n.isBuffer(t)?e="buffer":e||(e=i.defaultEncoding),"function"!=typeof r&&(r=function(){}),i.ended?a(this,i,r):u(this,i,t,r)&&(o=h(this,i,t,e,r)),o},s.prototype._write=function(t,e,r){r(Error("not implemented"))},s.prototype.end=function(t,e,r){var n=this._writableState;"function"==typeof t?(r=t,t=null,e=null):"function"==typeof e&&(r=e,e=null),t!==void 0&&null!==t&&this.write(t,e),n.ending||n.finished||m(this,n,r)}})(t("__browserify_process"),t("__browserify_Buffer").Buffer)},{util:10,assert:12,stream:9,"./_stream_duplex":3,__browserify_process:6,__browserify_Buffer:7}],3:[function(t,e){(function(r){function n(t){return this instanceof n?(s.call(this,t),a.call(this,t),t&&t.readable===!1&&(this.readable=!1),t&&t.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,t&&t.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",i),void 0):new n(t)}function i(){this.allowHalfOpen||this._writableState.ended||r.nextTick(this.end.bind(this))}e.exports=n;var o=t("util"),s=t("./_stream_readable"),a=t("./_stream_writable");o.inherits(n,s),Object.keys(a.prototype).forEach(function(t){n.prototype[t]||(n.prototype[t]=a.prototype[t])})})(t("__browserify_process"))},{util:10,"./_stream_readable":1,"./_stream_writable":2,__browserify_process:6}],4:[function(t,e){function r(t,e){this.afterTransform=function(t,r){return n(e,t,r)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null}function n(t,e,r){var n=t._transformState;n.transforming=!1;var i=n.writecb;if(!i)return t.emit("error",Error("no writecb in Transform class"));n.writechunk=null,n.writecb=null,null!==r&&void 0!==r&&t.push(r),i&&i(e);var o=t._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&t._read(o.highWaterMark)}function i(t){if(!(this instanceof i))return new i(t);s.call(this,t),this._transformState=new r(t,this);var e=this;this._readableState.needReadable=!0,this._readableState.sync=!1,this.once("finish",function(){"function"==typeof this._flush?this._flush(function(t){o(e,t)}):o(e)})}function o(t,e){if(e)return t.emit("error",e);var r=t._writableState;t._readableState;var n=t._transformState;if(r.length)throw Error("calling transform done when ws.length != 0");if(n.transforming)throw Error("calling transform done when still transforming");return t.push(null)}e.exports=i;var s=t("./_stream_duplex"),a=t("util");a.inherits(i,s),i.prototype.push=function(t,e){return this._transformState.needTransform=!1,s.prototype.push.call(this,t,e)},i.prototype._transform=function(){throw Error("not implemented")},i.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},i.prototype._read=function(){var t=this._transformState;t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0}},{util:10,"./_stream_duplex":3}],5:[function(t,e){function r(t){return this instanceof r?(n.call(this,t),void 0):new r(t)}e.exports=r;var n=t("./_stream_transform"),i=t("util");i.inherits(r,n),r.prototype._transform=function(t,e,r){r(null,t)}},{util:10,"./_stream_transform":4}],8:[function(t,e,r){(function(t){function e(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0;t.length>r;r++)if(e===t[r])return r;return-1}t.EventEmitter||(t.EventEmitter=function(){});var n=r.EventEmitter=t.EventEmitter,i="function"==typeof Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},o=10;n.prototype.setMaxListeners=function(t){this._events||(this._events={}),this._events.maxListeners=t},n.prototype.emit=function(t){if("error"===t&&(!this._events||!this._events.error||i(this._events.error)&&!this._events.error.length))throw arguments[1]instanceof Error?arguments[1]:Error("Uncaught, unspecified 'error' event.");if(!this._events)return!1;var e=this._events[t];if(!e)return!1;if("function"==typeof e){switch(arguments.length){case 1:e.call(this);break;case 2:e.call(this,arguments[1]);break;case 3:e.call(this,arguments[1],arguments[2]);break;default:var r=Array.prototype.slice.call(arguments,1);e.apply(this,r)}return!0}if(i(e)){for(var r=Array.prototype.slice.call(arguments,1),n=e.slice(),o=0,s=n.length;s>o;o++)n[o].apply(this,r);return!0}return!1},n.prototype.addListener=function(t,e){if("function"!=typeof e)throw Error("addListener only takes instances of Function");if(this._events||(this._events={}),this.emit("newListener",t,e),this._events[t])if(i(this._events[t])){if(!this._events[t].warned){var r;r=void 0!==this._events.maxListeners?this._events.maxListeners:o,r&&r>0&&this._events[t].length>r&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),console.trace())}this._events[t].push(e)}else this._events[t]=[this._events[t],e];else this._events[t]=e;return this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(t,e){var r=this;return r.on(t,function n(){r.removeListener(t,n),e.apply(this,arguments)}),this},n.prototype.removeListener=function(t,r){if("function"!=typeof r)throw Error("removeListener only takes instances of Function");if(!this._events||!this._events[t])return this;var n=this._events[t];if(i(n)){var o=e(n,r);if(0>o)return this;n.splice(o,1),0==n.length&&delete this._events[t]}else this._events[t]===r&&delete this._events[t];return this},n.prototype.removeAllListeners=function(t){return 0===arguments.length?(this._events={},this):(t&&this._events&&this._events[t]&&(this._events[t]=null),this)},n.prototype.listeners=function(t){return this._events||(this._events={}),this._events[t]||(this._events[t]=[]),i(this._events[t])||(this._events[t]=[this._events[t]]),this._events[t]}})(t("__browserify_process"))},{__browserify_process:6}],11:[function(t,e,r){(function(t){function e(t){return t.toString(this.encoding)}function n(t){var e=this.charReceived=t.length%2;return this.charLength=e?2:0,e}function i(t){var e=this.charReceived=t.length%3;return this.charLength=e?3:0,e}var o=r.StringDecoder=function(r){switch(this.encoding=(r||"utf8").toLowerCase().replace(/[-_]/,""),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=n;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=i;break;default:return this.write=e,void 0}this.charBuffer=new t(6),this.charReceived=0,this.charLength=0};o.prototype.write=function(t){for(var e="",r=0;this.charLength;){var n=t.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:t.length;if(t.copy(this.charBuffer,this.charReceived,r,n),this.charReceived+=n-r,r=n,this.charReceived<this.charLength)return"";e=this.charBuffer.slice(0,this.charLength).toString(this.encoding);var i=e.charCodeAt(e.length-1);if(!(i>=55296&&56319>=i)){if(this.charReceived=this.charLength=0,n==t.length)return e;t=t.slice(n,t.length);break}this.charLength+=this.surrogateSize,e=""}var o=this.detectIncompleteChar(t),s=t.length;this.charLength&&(t.copy(this.charBuffer,0,t.length-o,s),this.charReceived=o,s-=o),e+=t.toString(this.encoding,0,s);var s=e.length-1,i=e.charCodeAt(s);if(i>=55296&&56319>=i){var a=this.surrogateSize;return this.charLength+=a,this.charReceived+=a,this.charBuffer.copy(this.charBuffer,a,0,a),this.charBuffer.write(e.charAt(e.length-1),this.encoding),e.substring(0,s)}return e},o.prototype.detectIncompleteChar=function(t){for(var e=t.length>=3?3:t.length;e>0;e--){var r=t[t.length-e];if(1==e&&6==r>>5){this.charLength=2;break}if(2>=e&&14==r>>4){this.charLength=3;break}if(3>=e&&30==r>>3){this.charLength=4;break}}return e},o.prototype.end=function(t){var e="";if(t&&t.length&&(e=this.write(t)),this.charReceived){var r=this.charReceived,n=this.charBuffer,i=this.encoding;e+=n.slice(0,r).toString(i)}return e}})(t("__browserify_Buffer").Buffer)},{__browserify_Buffer:7}],9:[function(t,e){function r(){n.EventEmitter.call(this)}var n=t("events"),i=t("util");i.inherits(r,n.EventEmitter),e.exports=r,r.Stream=r,r.prototype.pipe=function(t,e){function r(e){t.writable&&!1===t.write(e)&&u.pause&&u.pause()}function n(){u.readable&&u.resume&&u.resume()}function i(){f||(f=!0,t._pipeCount--,a(),t._pipeCount>0||t.end())}function o(){f||(f=!0,t._pipeCount--,a(),t._pipeCount>0||t.destroy())}function s(t){if(a(),0===this.listeners("error").length)throw t}function a(){u.removeListener("data",r),t.removeListener("drain",n),u.removeListener("end",i),u.removeListener("close",o),u.removeListener("error",s),t.removeListener("error",s),u.removeListener("end",a),u.removeListener("close",a),t.removeListener("end",a),t.removeListener("close",a)}var u=this;u.on("data",r),t.on("drain",n),t._isStdio||e&&e.end===!1||(t._pipeCount=t._pipeCount||0,t._pipeCount++,u.on("end",i),u.on("close",o));var f=!1;return u.on("error",s),t.on("error",s),u.on("end",a),u.on("close",a),t.on("end",a),t.on("close",a),t.emit("pipe",u),t}},{events:8,util:10}],10:[function(t,e,r){function n(t){return t instanceof Array||Array.isArray(t)||t&&t!==Object.prototype&&n(t.__proto__)}function i(t){return t instanceof RegExp||"object"==typeof t&&"[object RegExp]"===Object.prototype.toString.call(t)}function o(t){if(t instanceof Date)return!0;if("object"!=typeof t)return!1;var e=Date.prototype&&a(Date.prototype),r=t.__proto__&&a(t.__proto__);return JSON.stringify(r)===JSON.stringify(e)}t("events"),r.isArray=n,r.isDate=function(t){return"[object Date]"===Object.prototype.toString.call(t)},r.isRegExp=function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},r.print=function(){},r.puts=function(){},r.debug=function(){},r.inspect=function(t,e,u,f){function h(t,u){if(t&&"function"==typeof t.inspect&&t!==r&&(!t.constructor||t.constructor.prototype!==t))return t.inspect(u);switch(typeof t){case"undefined":return c("undefined","undefined");case"string":var f="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return c(f,"string");case"number":return c(""+t,"number");case"boolean":return c(""+t,"boolean")}if(null===t)return c("null","null");var p=s(t),d=e?a(t):p;if("function"==typeof t&&0===d.length){if(i(t))return c(""+t,"regexp");var g=t.name?": "+t.name:"";return c("[Function"+g+"]","special")}if(o(t)&&0===d.length)return c(t.toUTCString(),"date");var y,v,b;if(n(t)?(v="Array",b=["[","]"]):(v="Object",b=["{","}"]),"function"==typeof t){var w=t.name?": "+t.name:"";y=i(t)?" "+t:" [Function"+w+"]"}else y="";if(o(t)&&(y=" "+t.toUTCString()),0===d.length)return b[0]+y+b[1];if(0>u)return i(t)?c(""+t,"regexp"):c("[Object]","special");l.push(t);var m=d.map(function(e){var r,i;if(t.__lookupGetter__&&(t.__lookupGetter__(e)?i=t.__lookupSetter__(e)?c("[Getter/Setter]","special"):c("[Getter]","special"):t.__lookupSetter__(e)&&(i=c("[Setter]","special"))),0>p.indexOf(e)&&(r="["+e+"]"),i||(0>l.indexOf(t[e])?(i=null===u?h(t[e]):h(t[e],u-1),i.indexOf("\n")>-1&&(i=n(t)?i.split("\n").map(function(t){return" "+t}).join("\n").substr(2):"\n"+i.split("\n").map(function(t){return" "+t}).join("\n"))):i=c("[Circular]","special")),r===void 0){if("Array"===v&&e.match(/^\d+$/))return i;r=JSON.stringify(""+e),r.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(r=r.substr(1,r.length-2),r=c(r,"name")):(r=r.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),r=c(r,"string"))}return r+": "+i});l.pop();var E=0,_=m.reduce(function(t,e){return E++,e.indexOf("\n")>=0&&E++,t+e.length+1},0);return m=_>50?b[0]+(""===y?"":y+"\n ")+" "+m.join(",\n ")+" "+b[1]:b[0]+y+" "+m.join(", ")+" "+b[1]}var l=[],c=function(t,e){var r={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]},n={special:"cyan",number:"blue","boolean":"yellow",undefined:"grey","null":"bold",string:"green",date:"magenta",regexp:"red"}[e];return n?"["+r[n][0]+"m"+t+"["+r[n][1]+"m":t};return f||(c=function(t){return t}),h(t,u===void 0?2:u)},r.log=function(){},r.pump=null;var s=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e},a=Object.getOwnPropertyNames||function(t){var e=[];for(var r in t)Object.hasOwnProperty.call(t,r)&&e.push(r);return e},u=Object.create||function(t,e){var r;if(null===t)r={__proto__:null};else{if("object"!=typeof t)throw new TypeError("typeof prototype["+typeof t+"] != 'object'");var n=function(){};n.prototype=t,r=new n,r.__proto__=t}return e!==void 0&&Object.defineProperties&&Object.defineProperties(r,e),r};r.inherits=function(t,e){t.super_=e,t.prototype=u(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})};var f=/%[sdj%]/g;r.format=function(t){if("string"!=typeof t){for(var e=[],n=0;arguments.length>n;n++)e.push(r.inspect(arguments[n]));return e.join(" ")}for(var n=1,i=arguments,o=i.length,s=(t+"").replace(f,function(t){if("%%"===t)return"%";if(n>=o)return t;switch(t){case"%s":return i[n++]+"";case"%d":return Number(i[n++]);case"%j":return JSON.stringify(i[n++]);default:return t}}),a=i[n];o>n;a=i[++n])s+=null===a||"object"!=typeof a?" "+a:" "+r.inspect(a);return s}},{events:8}],12:[function(t,e){(function(){function r(t){if(Object.keys)return Object.keys(t);var e=[];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.push(r);return e}function n(t,e){return void 0===e?""+e:"number"!=typeof e||!isNaN(e)&&isFinite(e)?"function"==typeof e||e instanceof RegExp?""+e:e:""+e}function i(t,e){return"string"==typeof t?e>t.length?t:t.slice(0,e):t}function o(t,e,r,n,i){throw new y.AssertionError({message:r,actual:t,expected:e,operator:n,stackStartFunction:i})}function s(t,e){t||o(t,!0,e,"==",y.ok)}function a(t,e){if(t===e)return!0;if(d.isBuffer(t)&&d.isBuffer(e)){if(t.length!=e.length)return!1;for(var r=0;t.length>r;r++)if(t[r]!==e[r])return!1;return!0}return t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():"object"!=typeof t&&"object"!=typeof e?t==e:h(t,e)}function u(t){return null===t||void 0===t}function f(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function h(t,e){if(u(t)||u(e))return!1;if(t.prototype!==e.prototype)return!1;if(f(t))return f(e)?(t=g.call(t),e=g.call(e),a(t,e)):!1;try{var n,i,o=r(t),s=r(e)}catch(h){return!1}if(o.length!=s.length)return!1;for(o.sort(),s.sort(),i=o.length-1;i>=0;i--)if(o[i]!=s[i])return!1;for(i=o.length-1;i>=0;i--)if(n=o[i],!a(t[n],e[n]))return!1;return!0}function l(t,e){return t&&e?e instanceof RegExp?e.test(t):t instanceof e?!0:e.call({},t)===!0?!0:!1:!1}function c(t,e,r,n){var i;"string"==typeof r&&(n=r,r=null);try{e()}catch(s){i=s}if(n=(r&&r.name?" ("+r.name+").":".")+(n?" "+n:"."),t&&!i&&o("Missing expected exception"+n),!t&&l(i,r)&&o("Got unwanted exception"+n),t&&i&&r&&!l(i,r)||!t&&i)throw i}var p=t("util"),d=t("buffer").Buffer,g=Array.prototype.slice,y=e.exports=s;y.AssertionError=function(t){this.name="AssertionError",this.message=t.message,this.actual=t.actual,this.expected=t.expected,this.operator=t.operator;var e=t.stackStartFunction||o;Error.captureStackTrace&&Error.captureStackTrace(this,e)},p.inherits(y.AssertionError,Error),y.AssertionError.prototype.toString=function(){return this.message?[this.name+":",this.message].join(" "):[this.name+":",i(JSON.stringify(this.actual,n),128),this.operator,i(JSON.stringify(this.expected,n),128)].join(" ")},y.AssertionError.__proto__=Error.prototype,y.fail=o,y.ok=s,y.equal=function(t,e,r){t!=e&&o(t,e,r,"==",y.equal)},y.notEqual=function(t,e,r){t==e&&o(t,e,r,"!=",y.notEqual)},y.deepEqual=function(t,e,r){a(t,e)||o(t,e,r,"deepEqual",y.deepEqual)},y.notDeepEqual=function(t,e,r){a(t,e)&&o(t,e,r,"notDeepEqual",y.notDeepEqual)},y.strictEqual=function(t,e,r){t!==e&&o(t,e,r,"===",y.strictEqual)},y.notStrictEqual=function(t,e,r){t===e&&o(t,e,r,"!==",y.notStrictEqual)},y.throws=function(){c.apply(this,[!0].concat(g.call(arguments)))
},y.doesNotThrow=function(){c.apply(this,[!1].concat(g.call(arguments)))},y.ifError=function(t){if(t)throw t}})()},{util:10,buffer:13}],14:[function(t,e,r){r.readIEEE754=function(t,e,r,n,i){var o,s,a=8*i-n-1,u=(1<<a)-1,f=u>>1,h=-7,l=r?0:i-1,c=r?1:-1,p=t[e+l];for(l+=c,o=p&(1<<-h)-1,p>>=-h,h+=a;h>0;o=256*o+t[e+l],l+=c,h-=8);for(s=o&(1<<-h)-1,o>>=-h,h+=n;h>0;s=256*s+t[e+l],l+=c,h-=8);if(0===o)o=1-f;else{if(o===u)return s?0/0:1/0*(p?-1:1);s+=Math.pow(2,n),o-=f}return(p?-1:1)*s*Math.pow(2,o-n)},r.writeIEEE754=function(t,e,r,n,i,o){var s,a,u,f=8*o-i-1,h=(1<<f)-1,l=h>>1,c=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?o-1:0,d=n?-1:1,g=0>e||0===e&&0>1/e?1:0;for(e=Math.abs(e),isNaN(e)||1/0===e?(a=isNaN(e)?1:0,s=h):(s=Math.floor(Math.log(e)/Math.LN2),1>e*(u=Math.pow(2,-s))&&(s--,u*=2),e+=s+l>=1?c/u:c*Math.pow(2,1-l),e*u>=2&&(s++,u/=2),s+l>=h?(a=0,s=h):s+l>=1?(a=(e*u-1)*Math.pow(2,i),s+=l):(a=e*Math.pow(2,l-1)*Math.pow(2,i),s=0));i>=8;t[r+p]=255&a,p+=d,a/=256,i-=8);for(s=s<<i|a,f+=i;f>0;t[r+p]=255&s,p+=d,s/=256,f-=8);t[r+p-d]|=128*g}},{}],13:[function(t,e,r){(function(){function e(t,r,i){if(!(this instanceof e))return new e(t,r,i);this.parent=this,this.offset=0;var s;if("number"==typeof i)this.length=n(r),this.offset=i;else{switch(s=typeof t){case"number":this.length=n(t);break;case"string":this.length=e.byteLength(t,r);break;case"object":this.length=n(t.length);break;default:throw Error("First argument needs to be a number, array or string.")}if(o(t))for(var a=0;this.length>a;a++)this[a]=t instanceof e?t.readUInt8(a):t[a];else if("string"==s)this.length=this.write(t,0,r);else if("number"===s)for(var a=0;this.length>a;a++)this[a]=0}}function n(t){return t=~~Math.ceil(+t),0>t?0:t}function i(t){return(Array.isArray||function(t){return"[object Array]"=={}.toString.apply(t)})(t)}function o(t){return i(t)||e.isBuffer(t)||t&&"object"==typeof t&&"number"==typeof t.length}function s(t){return 16>t?"0"+t.toString(16):t.toString(16)}function a(t){for(var e=[],r=0;t.length>r;r++)if(127>=t.charCodeAt(r))e.push(t.charCodeAt(r));else for(var n=encodeURIComponent(t.charAt(r)).substr(1).split("%"),i=0;n.length>i;i++)e.push(parseInt(n[i],16));return e}function u(t){for(var e=[],r=0;t.length>r;r++)e.push(255&t.charCodeAt(r));return e}function f(e){return t("base64-js").toByteArray(e)}function h(t,e,r,n){for(var i=0;n>i&&!(i+r>=e.length||i>=t.length);)e[i+r]=t[i],i++;return i}function l(t){try{return decodeURIComponent(t)}catch(e){return String.fromCharCode(65533)}}function c(t,e,r,n){var i=0;return n||(x.ok("boolean"==typeof r,"missing or invalid endian"),x.ok(void 0!==e&&null!==e,"missing offset"),x.ok(t.length>e+1,"Trying to read beyond buffer length")),e>=t.length?0:(r?(i=t[e]<<8,t.length>e+1&&(i|=t[e+1])):(i=t[e],t.length>e+1&&(i|=t[e+1]<<8)),i)}function p(t,e,r,n){var i=0;return n||(x.ok("boolean"==typeof r,"missing or invalid endian"),x.ok(void 0!==e&&null!==e,"missing offset"),x.ok(t.length>e+3,"Trying to read beyond buffer length")),e>=t.length?0:(r?(t.length>e+1&&(i=t[e+1]<<16),t.length>e+2&&(i|=t[e+2]<<8),t.length>e+3&&(i|=t[e+3]),i+=t[e]<<24>>>0):(t.length>e+2&&(i=t[e+2]<<16),t.length>e+1&&(i|=t[e+1]<<8),i|=t[e],t.length>e+3&&(i+=t[e+3]<<24>>>0)),i)}function d(t,e,r,n){var i,o;return n||(x.ok("boolean"==typeof r,"missing or invalid endian"),x.ok(void 0!==e&&null!==e,"missing offset"),x.ok(t.length>e+1,"Trying to read beyond buffer length")),o=c(t,e,r,n),i=32768&o,i?-1*(65535-o+1):o}function g(t,e,r,n){var i,o;return n||(x.ok("boolean"==typeof r,"missing or invalid endian"),x.ok(void 0!==e&&null!==e,"missing offset"),x.ok(t.length>e+3,"Trying to read beyond buffer length")),o=p(t,e,r,n),i=2147483648&o,i?-1*(4294967295-o+1):o}function y(e,r,n,i){return i||(x.ok("boolean"==typeof n,"missing or invalid endian"),x.ok(e.length>r+3,"Trying to read beyond buffer length")),t("./buffer_ieee754").readIEEE754(e,r,n,23,4)}function v(e,r,n,i){return i||(x.ok("boolean"==typeof n,"missing or invalid endian"),x.ok(e.length>r+7,"Trying to read beyond buffer length")),t("./buffer_ieee754").readIEEE754(e,r,n,52,8)}function b(t,e){x.ok("number"==typeof t,"cannot write a non-number as a number"),x.ok(t>=0,"specified a negative value for writing an unsigned value"),x.ok(e>=t,"value is larger than maximum value for type"),x.ok(Math.floor(t)===t,"value has a fractional component")}function w(t,e,r,n,i){i||(x.ok(void 0!==e&&null!==e,"missing value"),x.ok("boolean"==typeof n,"missing or invalid endian"),x.ok(void 0!==r&&null!==r,"missing offset"),x.ok(t.length>r+1,"trying to write beyond buffer length"),b(e,65535));for(var o=0;Math.min(t.length-r,2)>o;o++)t[r+o]=(e&255<<8*(n?1-o:o))>>>8*(n?1-o:o)}function m(t,e,r,n,i){i||(x.ok(void 0!==e&&null!==e,"missing value"),x.ok("boolean"==typeof n,"missing or invalid endian"),x.ok(void 0!==r&&null!==r,"missing offset"),x.ok(t.length>r+3,"trying to write beyond buffer length"),b(e,4294967295));for(var o=0;Math.min(t.length-r,4)>o;o++)t[r+o]=255&e>>>8*(n?3-o:o)}function E(t,e,r){x.ok("number"==typeof t,"cannot write a non-number as a number"),x.ok(e>=t,"value larger than maximum allowed value"),x.ok(t>=r,"value smaller than minimum allowed value"),x.ok(Math.floor(t)===t,"value has a fractional component")}function _(t,e,r){x.ok("number"==typeof t,"cannot write a non-number as a number"),x.ok(e>=t,"value larger than maximum allowed value"),x.ok(t>=r,"value smaller than minimum allowed value")}function k(t,e,r,n,i){i||(x.ok(void 0!==e&&null!==e,"missing value"),x.ok("boolean"==typeof n,"missing or invalid endian"),x.ok(void 0!==r&&null!==r,"missing offset"),x.ok(t.length>r+1,"Trying to write beyond buffer length"),E(e,32767,-32768)),e>=0?w(t,e,r,n,i):w(t,65535+e+1,r,n,i)}function S(t,e,r,n,i){i||(x.ok(void 0!==e&&null!==e,"missing value"),x.ok("boolean"==typeof n,"missing or invalid endian"),x.ok(void 0!==r&&null!==r,"missing offset"),x.ok(t.length>r+3,"Trying to write beyond buffer length"),E(e,2147483647,-2147483648)),e>=0?m(t,e,r,n,i):m(t,4294967295+e+1,r,n,i)}function I(e,r,n,i,o){o||(x.ok(void 0!==r&&null!==r,"missing value"),x.ok("boolean"==typeof i,"missing or invalid endian"),x.ok(void 0!==n&&null!==n,"missing offset"),x.ok(e.length>n+3,"Trying to write beyond buffer length"),_(r,3.4028234663852886e38,-3.4028234663852886e38)),t("./buffer_ieee754").writeIEEE754(e,r,n,i,23,4)}function L(e,r,n,i,o){o||(x.ok(void 0!==r&&null!==r,"missing value"),x.ok("boolean"==typeof i,"missing or invalid endian"),x.ok(void 0!==n&&null!==n,"missing offset"),x.ok(e.length>n+7,"Trying to write beyond buffer length"),_(r,1.7976931348623157e308,-1.7976931348623157e308)),t("./buffer_ieee754").writeIEEE754(e,r,n,i,52,8)}var x=t("assert");r.Buffer=e,r.SlowBuffer=e,e.poolSize=8192,r.INSPECT_MAX_BYTES=50,e.prototype.get=function(t){if(0>t||t>=this.length)throw Error("oob");return this[t]},e.prototype.set=function(t,e){if(0>t||t>=this.length)throw Error("oob");return this[t]=e},e.byteLength=function(t,e){switch(e||"utf8"){case"hex":return t.length/2;case"utf8":case"utf-8":return a(t).length;case"ascii":case"binary":return t.length;case"base64":return f(t).length;default:throw Error("Unknown encoding")}},e.prototype.utf8Write=function(t,r,n){return e._charsWritten=h(a(t),this,r,n)},e.prototype.asciiWrite=function(t,r,n){return e._charsWritten=h(u(t),this,r,n)},e.prototype.binaryWrite=e.prototype.asciiWrite,e.prototype.base64Write=function(t,r,n){return e._charsWritten=h(f(t),this,r,n)},e.prototype.base64Slice=function(){var e=Array.prototype.slice.apply(this,arguments);return t("base64-js").fromByteArray(e)},e.prototype.utf8Slice=function(){for(var t=Array.prototype.slice.apply(this,arguments),e="",r="",n=0;t.length>n;)127>=t[n]?(e+=l(r)+String.fromCharCode(t[n]),r=""):r+="%"+t[n].toString(16),n++;return e+l(r)},e.prototype.asciiSlice=function(){for(var t=Array.prototype.slice.apply(this,arguments),e="",r=0;t.length>r;r++)e+=String.fromCharCode(t[r]);return e},e.prototype.binarySlice=e.prototype.asciiSlice,e.prototype.inspect=function(){for(var t=[],e=this.length,n=0;e>n;n++)if(t[n]=s(this[n]),n==r.INSPECT_MAX_BYTES){t[n+1]="...";break}return"<Buffer "+t.join(" ")+">"},e.prototype.hexSlice=function(t,e){var r=this.length;(!t||0>t)&&(t=0),(!e||0>e||e>r)&&(e=r);for(var n="",i=t;e>i;i++)n+=s(this[i]);return n},e.prototype.toString=function(t,e,r){if(t=((t||"utf8")+"").toLowerCase(),e=+e||0,r===void 0&&(r=this.length),+r==e)return"";switch(t){case"hex":return this.hexSlice(e,r);case"utf8":case"utf-8":return this.utf8Slice(e,r);case"ascii":return this.asciiSlice(e,r);case"binary":return this.binarySlice(e,r);case"base64":return this.base64Slice(e,r);case"ucs2":case"ucs-2":return this.ucs2Slice(e,r);default:throw Error("Unknown encoding")}},e.prototype.hexWrite=function(t,r,n){r=+r||0;var i=this.length-r;n?(n=+n,n>i&&(n=i)):n=i;var o=t.length;if(o%2)throw Error("Invalid hex string");n>o/2&&(n=o/2);for(var s=0;n>s;s++){var a=parseInt(t.substr(2*s,2),16);if(isNaN(a))throw Error("Invalid hex string");this[r+s]=a}return e._charsWritten=2*s,s},e.prototype.write=function(t,e,r,n){if(isFinite(e))isFinite(r)||(n=r,r=void 0);else{var i=n;n=e,e=r,r=i}e=+e||0;var o=this.length-e;switch(r?(r=+r,r>o&&(r=o)):r=o,n=((n||"utf8")+"").toLowerCase()){case"hex":return this.hexWrite(t,e,r);case"utf8":case"utf-8":return this.utf8Write(t,e,r);case"ascii":return this.asciiWrite(t,e,r);case"binary":return this.binaryWrite(t,e,r);case"base64":return this.base64Write(t,e,r);case"ucs2":case"ucs-2":return this.ucs2Write(t,e,r);default:throw Error("Unknown encoding")}},e.prototype.slice=function(t,r){if(void 0===r&&(r=this.length),r>this.length)throw Error("oob");if(t>r)throw Error("oob");return new e(this,r-t,+t)},e.prototype.copy=function(t,e,r,n){var i=this;if(r||(r=0),(void 0===n||isNaN(n))&&(n=this.length),e||(e=0),r>n)throw Error("sourceEnd < sourceStart");if(n===r)return 0;if(0==t.length||0==i.length)return 0;if(0>e||e>=t.length)throw Error("targetStart out of bounds");if(0>r||r>=i.length)throw Error("sourceStart out of bounds");if(0>n||n>i.length)throw Error("sourceEnd out of bounds");n>this.length&&(n=this.length),n-r>t.length-e&&(n=t.length-e+r);for(var o=[],s=r;n>s;s++)x.ok(this[s]!==void 0,"copying undefined buffer bytes!"),o.push(this[s]);for(var s=e;e+o.length>s;s++)t[s]=o[s-e]},e.prototype.fill=function(t,e,r){if(t||(t=0),e||(e=0),r||(r=this.length),"string"==typeof t&&(t=t.charCodeAt(0)),"number"!=typeof t||isNaN(t))throw Error("value is not a number");if(e>r)throw Error("end < start");if(r===e)return 0;if(0==this.length)return 0;if(0>e||e>=this.length)throw Error("start out of bounds");if(0>r||r>this.length)throw Error("end out of bounds");for(var n=e;r>n;n++)this[n]=t},e.isBuffer=function(t){return t instanceof e||t instanceof e},e.concat=function(t,r){if(!i(t))throw Error("Usage: Buffer.concat(list, [totalLength])\n list should be an Array.");if(0===t.length)return new e(0);if(1===t.length)return t[0];if("number"!=typeof r){r=0;for(var n=0;t.length>n;n++){var o=t[n];r+=o.length}}for(var s=new e(r),a=0,n=0;t.length>n;n++){var o=t[n];o.copy(s,a),a+=o.length}return s},e.prototype.readUInt8=function(t,e){var r=this;return e||(x.ok(void 0!==t&&null!==t,"missing offset"),x.ok(r.length>t,"Trying to read beyond buffer length")),t>=r.length?void 0:r[t]},e.prototype.readUInt16LE=function(t,e){return c(this,t,!1,e)},e.prototype.readUInt16BE=function(t,e){return c(this,t,!0,e)},e.prototype.readUInt32LE=function(t,e){return p(this,t,!1,e)},e.prototype.readUInt32BE=function(t,e){return p(this,t,!0,e)},e.prototype.readInt8=function(t,e){var r,n=this;return e||(x.ok(void 0!==t&&null!==t,"missing offset"),x.ok(n.length>t,"Trying to read beyond buffer length")),t>=n.length?void 0:(r=128&n[t],r?-1*(255-n[t]+1):n[t])},e.prototype.readInt16LE=function(t,e){return d(this,t,!1,e)},e.prototype.readInt16BE=function(t,e){return d(this,t,!0,e)},e.prototype.readInt32LE=function(t,e){return g(this,t,!1,e)},e.prototype.readInt32BE=function(t,e){return g(this,t,!0,e)},e.prototype.readFloatLE=function(t,e){return y(this,t,!1,e)},e.prototype.readFloatBE=function(t,e){return y(this,t,!0,e)},e.prototype.readDoubleLE=function(t,e){return v(this,t,!1,e)},e.prototype.readDoubleBE=function(t,e){return v(this,t,!0,e)},e.prototype.writeUInt8=function(t,e,r){var n=this;r||(x.ok(void 0!==t&&null!==t,"missing value"),x.ok(void 0!==e&&null!==e,"missing offset"),x.ok(n.length>e,"trying to write beyond buffer length"),b(t,255)),n.length>e&&(n[e]=t)},e.prototype.writeUInt16LE=function(t,e,r){w(this,t,e,!1,r)},e.prototype.writeUInt16BE=function(t,e,r){w(this,t,e,!0,r)},e.prototype.writeUInt32LE=function(t,e,r){m(this,t,e,!1,r)},e.prototype.writeUInt32BE=function(t,e,r){m(this,t,e,!0,r)},e.prototype.writeInt8=function(t,e,r){var n=this;r||(x.ok(void 0!==t&&null!==t,"missing value"),x.ok(void 0!==e&&null!==e,"missing offset"),x.ok(n.length>e,"Trying to write beyond buffer length"),E(t,127,-128)),t>=0?n.writeUInt8(t,e,r):n.writeUInt8(255+t+1,e,r)},e.prototype.writeInt16LE=function(t,e,r){k(this,t,e,!1,r)},e.prototype.writeInt16BE=function(t,e,r){k(this,t,e,!0,r)},e.prototype.writeInt32LE=function(t,e,r){S(this,t,e,!1,r)},e.prototype.writeInt32BE=function(t,e,r){S(this,t,e,!0,r)},e.prototype.writeFloatLE=function(t,e,r){I(this,t,e,!1,r)},e.prototype.writeFloatBE=function(t,e,r){I(this,t,e,!0,r)},e.prototype.writeDoubleLE=function(t,e,r){L(this,t,e,!1,r)},e.prototype.writeDoubleBE=function(t,e,r){L(this,t,e,!0,r)}})()},{assert:12,"./buffer_ieee754":14,"base64-js":15}],15:[function(t,e){(function(){"use strict";function t(t){var e,r,i,o,s,a;if(t.length%4>0)throw"Invalid string. Length must be a multiple of 4";for(s=t.indexOf("="),s=s>0?t.length-s:0,a=[],i=s>0?t.length-4:t.length,e=0,r=0;i>e;e+=4,r+=3)o=n.indexOf(t[e])<<18|n.indexOf(t[e+1])<<12|n.indexOf(t[e+2])<<6|n.indexOf(t[e+3]),a.push((16711680&o)>>16),a.push((65280&o)>>8),a.push(255&o);return 2===s?(o=n.indexOf(t[e])<<2|n.indexOf(t[e+1])>>4,a.push(255&o)):1===s&&(o=n.indexOf(t[e])<<10|n.indexOf(t[e+1])<<4|n.indexOf(t[e+2])>>2,a.push(255&o>>8),a.push(255&o)),a}function r(t){function e(t){return n[63&t>>18]+n[63&t>>12]+n[63&t>>6]+n[63&t]}var r,i,o,s=t.length%3,a="";for(r=0,o=t.length-s;o>r;r+=3)i=(t[r]<<16)+(t[r+1]<<8)+t[r+2],a+=e(i);switch(s){case 1:i=t[t.length-1],a+=n[i>>2],a+=n[63&i<<4],a+="==";break;case 2:i=(t[t.length-2]<<8)+t[t.length-1],a+=n[i>>10],a+=n[63&i>>4],a+=n[63&i<<2],a+="="}return a}var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";e.exports.toByteArray=t,e.exports.fromByteArray=r})()},{}]},{},[]);var Writable=require("readable-stream/writable"),Readable=require("readable-stream/readable"),QueryStream=require("querystream"),sampleData=[{x:10,y:200},{x:20,y:190},{x:30,y:180},{x:40,y:170},{x:50,y:160},{x:60,y:150},{x:70,y:140},{x:80,y:130},{x:90,y:120},{x:100,y:110}],inputStream=new Readable({objectMode:!0});inputStream._read=function(){sampleData.forEach(function(t){inputStream.push(t)}),inputStream.push(null)};var outputStream=new Writable({objectMode:!0});outputStream._write=function(t,e,r){console.log(t),r()};var greater50Stream=new QueryStream({x:{$gt:50}});inputStream.pipe(greater50Stream).pipe(outputStream);
<style type='text/css'>html, body { margin: 0; padding: 0; border: 0; }
body, html { height: 100%; width: 100%; }</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment