Socket
Socket
Sign inDemoInstall

source-map-support

Package Overview
Dependencies
Maintainers
1
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

source-map-support - npm Package Compare versions

Comparing version 0.2.5 to 0.2.6

198

amd-test/browser-source-map-support.js

@@ -5,116 +5,84 @@ /*

*/
(this.define||function(M,N){this.sourceMapSupport=N()})("browser-source-map-support",function(M){(function m(x,h,w){function B(b,k){if(!h[b]){if(!x[b]){var g="function"==typeof require&&require;if(!k&&g)return g(b,!0);if(D)return D(b,!0);throw Error("Cannot find module '"+b+"'");}g=h[b]={exports:{}};x[b][0].call(g.exports,function(f){var a=x[b][1][f];return B(a?a:f)},g,g.exports,m,x,h,w)}return h[b].exports}for(var D="function"==typeof require&&require,q=0;q<w.length;q++)B(w[q]);return B})({1:[function(m,
x,h){M=m("./source-map-support")},{"./source-map-support":18}],2:[function(m,x,h){function w(a){return"[object Array]"===g.call(a)}function B(a,e){var b;if(null===a)b={__proto__:null};else{if("object"!==typeof a)throw new TypeError("typeof prototype["+typeof a+"] != 'object'");b=function(){};b.prototype=a;b=new b;b.__proto__=a}"undefined"!==typeof e&&Object.defineProperties&&Object.defineProperties(b,e);return b}function D(a){return"object"!=typeof a&&"function"!=typeof a||null===a}function q(a){if(D(a))throw new TypeError("Object.keys called on a non-object");
var b=[],e;for(e in a)f.call(a,e)&&b.push(e);return b}function b(a){if(D(a))throw new TypeError("Object.getOwnPropertyNames called on a non-object");var b=q(a);h.isArray(a)&&-1===h.indexOf(a,"length")&&b.push("length");return b}function k(a,b){return{value:a[b]}}var g=Object.prototype.toString,f=Object.prototype.hasOwnProperty;h.isArray="function"===typeof Array.isArray?Array.isArray:w;h.indexOf=function(a,b){if(a.indexOf)return a.indexOf(b);for(var e=0;e<a.length;e++)if(b===a[e])return e;return-1};
h.filter=function(a,b){if(a.filter)return a.filter(b);for(var e=[],f=0;f<a.length;f++)b(a[f],f,a)&&e.push(a[f]);return e};h.forEach=function(a,b,e){if(a.forEach)return a.forEach(b,e);for(var f=0;f<a.length;f++)b.call(e,a[f],f,a)};h.map=function(a,b){if(a.map)return a.map(b);for(var e=Array(a.length),f=0;f<a.length;f++)e[f]=b(a[f],f,a);return e};h.reduce=function(a,b,e){if(a.reduce)return a.reduce(b,e);var f,t=!1;2<arguments.length&&(f=e,t=!0);for(var d=0,c=a.length;c>d;++d)a.hasOwnProperty(d)&&(t?
f=b(f,a[d],d,a):(f=a[d],t=!0));return f};"b"!=="ab".substr(-1)?h.substr=function(a,b,e){0>b&&(b=a.length+b);return a.substr(b,e)}:h.substr=function(a,b,e){return a.substr(b,e)};h.trim=function(a){return a.trim?a.trim():a.replace(/^\s+|\s+$/g,"")};h.bind=function(){var a=Array.prototype.slice.call(arguments),b=a.shift();if(b.bind)return b.bind.apply(b,a);var e=a.shift();return function(){b.apply(e,a.concat([Array.prototype.slice.call(arguments)]))}};h.create="function"===typeof Object.create?Object.create:
B;var a="function"===typeof Object.keys?Object.keys:q,e="function"===typeof Object.getOwnPropertyNames?Object.getOwnPropertyNames:b;if(Error().hasOwnProperty("description")){var p=function(a,b){"[object Error]"===g.call(a)&&(b=h.filter(b,function(a){return"description"!==a&&"number"!==a&&"message"!==a}));return b};h.keys=function(b){return p(b,a(b))};h.getOwnPropertyNames=function(a){return p(a,e(a))}}else h.keys=a,h.getOwnPropertyNames=e;if("function"===typeof Object.getOwnPropertyDescriptor)try{Object.getOwnPropertyDescriptor({a:1},
"a"),h.getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor}catch(n){h.getOwnPropertyDescriptor=function(a,b){try{return Object.getOwnPropertyDescriptor(a,b)}catch(e){return k(a,b)}}}else h.getOwnPropertyDescriptor=k},{}],3:[function(m,x,h){},{}],4:[function(m,x,h){function w(b,g){for(var f=0,a=b.length-1;0<=a;a--){var e=b[a];"."===e?b.splice(a,1):".."===e?(b.splice(a,1),f++):f&&(b.splice(a,1),f--)}if(g)for(;f--;f)b.unshift("..");return b}var B=m("__browserify_process"),D=m("util"),q=m("_shims"),
b=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;h.resolve=function(){for(var b="",g=!1,f=arguments.length-1;-1<=f&&!g;f--){var a=0<=f?arguments[f]:B.cwd();if(!D.isString(a))throw new TypeError("Arguments to path.resolve must be strings");a&&(b=a+"/"+b,g="/"===a.charAt(0))}b=w(q.filter(b.split("/"),function(a){return!!a}),!g).join("/");return(g?"/":"")+b||"."};h.normalize=function(b){var g=h.isAbsolute(b),f="/"===q.substr(b,-1);(b=w(q.filter(b.split("/"),function(a){return!!a}),!g).join("/"))||
g||(b=".");b&&f&&(b+="/");return(g?"/":"")+b};h.isAbsolute=function(b){return"/"===b.charAt(0)};h.join=function(){var b=Array.prototype.slice.call(arguments,0);return h.normalize(q.filter(b,function(b,f){if(!D.isString(b))throw new TypeError("Arguments to path.join must be strings");return b}).join("/"))};h.relative=function(b,g){function f(a){for(var b=0;b<a.length&&""===a[b];b++);for(var e=a.length-1;0<=e&&""===a[e];e--);return b>e?[]:a.slice(b,e-b+1)}b=h.resolve(b).substr(1);g=h.resolve(g).substr(1);
for(var a=f(b.split("/")),e=f(g.split("/")),p=Math.min(a.length,e.length),n=p,v=0;v<p;v++)if(a[v]!==e[v]){n=v;break}p=[];for(v=n;v<a.length;v++)p.push("..");p=p.concat(e.slice(n));return p.join("/")};h.sep="/";h.delimiter=":";h.dirname=function(k){var g=b.exec(k).slice(1);k=g[0];g=g[1];if(!k&&!g)return".";g&&(g=g.substr(0,g.length-1));return k+g};h.basename=function(k,g){var f=b.exec(k).slice(1)[2];g&&f.substr(-1*g.length)===g&&(f=f.substr(0,f.length-g.length));return f};h.extname=function(k){return b.exec(k).slice(1)[3]}},
{__browserify_process:7,_shims:2,util:5}],5:[function(m,x,h){function w(c,a){var d={seen:[],stylize:D};3<=arguments.length&&(d.depth=arguments[2]);4<=arguments.length&&(d.colors=arguments[3]);p(a)?d.showHidden=a:a&&h._extend(d,a);s(d.showHidden)&&(d.showHidden=!1);s(d.depth)&&(d.depth=2);s(d.colors)&&(d.colors=!1);s(d.customInspect)&&(d.customInspect=!0);d.colors&&(d.stylize=B);return b(d,c,d.depth)}function B(c,a){var d=w.styles[a];return d?"\u001b["+w.colors[d][0]+"m"+c+"\u001b["+w.colors[d][1]+
"m":c}function D(c,a){return c}function q(c){var a={};F.forEach(c,function(c,z){a[c]=!0});return a}function b(u,n,p){if(u.customInspect&&n&&c(n.inspect)&&n.inspect!==h.inspect&&(!n.constructor||n.constructor.prototype!==n)){var z=n.inspect(p);v(z)||(z=b(u,z,p));return z}if(z=k(u,n))return z;var l=F.keys(n),C=q(l);u.showHidden&&(l=F.getOwnPropertyNames(n));if(0===l.length){if(c(n))return u.stylize("[Function"+(n.name?": "+n.name:"")+"]","special");if(A(n))return u.stylize(RegExp.prototype.toString.call(n),
"regexp");if(t(n))return u.stylize(Date.prototype.toString.call(n),"date");if(d(n))return"["+Error.prototype.toString.call(n)+"]"}var z="",K=!1,L=["{","}"];e(n)&&(K=!0,L=["[","]"]);c(n)&&(z=" [Function"+(n.name?": "+n.name:"")+"]");A(n)&&(z=" "+RegExp.prototype.toString.call(n));t(n)&&(z=" "+Date.prototype.toUTCString.call(n));d(n)&&(z=" "+("["+Error.prototype.toString.call(n)+"]"));if(0===l.length&&(!K||0==n.length))return L[0]+z+L[1];if(0>p)return A(n)?u.stylize(RegExp.prototype.toString.call(n),
"regexp"):u.stylize("[Object]","special");u.seen.push(n);l=K?g(u,n,p,C,l):l.map(function(l){return f(u,n,p,C,l,K)});u.seen.pop();return a(l,z,L)}function k(c,a){if(s(a))return c.stylize("undefined","undefined");if(v(a)){var d="'"+JSON.stringify(a).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return c.stylize(d,"string")}if(n(a))return c.stylize(""+a,"number");if(p(a))return c.stylize(""+a,"boolean");if(null===a)return c.stylize("null","null")}function g(c,a,d,z,l){for(var C=[],
b=0,e=a.length;b<e;++b)Object.prototype.hasOwnProperty.call(a,String(b))?C.push(f(c,a,d,z,String(b),!0)):C.push("");F.forEach(l,function(l){l.match(/^\d+$/)||C.push(f(c,a,d,z,l,!0))});return C}function f(a,c,d,z,l,C){var e,f;c=F.getOwnPropertyDescriptor(c,l)||{value:c[l]};c.get?f=c.set?a.stylize("[Getter/Setter]","special"):a.stylize("[Getter]","special"):c.set&&(f=a.stylize("[Setter]","special"));Object.prototype.hasOwnProperty.call(z,l)||(e="["+l+"]");f||(0>F.indexOf(a.seen,c.value)?(f=null===d?
b(a,c.value,null):b(a,c.value,d-1),-1<f.indexOf("\n")&&(f=C?f.split("\n").map(function(l){return" "+l}).join("\n").substr(2):"\n"+f.split("\n").map(function(l){return" "+l}).join("\n"))):f=a.stylize("[Circular]","special"));if(s(e)){if(C&&l.match(/^\d+$/))return f;e=JSON.stringify(""+l);e.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(e=e.substr(1,e.length-2),e=a.stylize(e,"name")):(e=e.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),e=a.stylize(e,"string"))}return e+": "+f}function a(a,
c,d){var z=0;return 60<F.reduce(a,function(l,a){z++;0<=a.indexOf("\n")&&z++;return l+a.replace(/\u001b\[\d\d?m/g,"").length+1},0)?d[0]+(""===c?"":c+"\n ")+" "+a.join(",\n ")+" "+d[1]:d[0]+c+" "+a.join(", ")+" "+d[1]}function e(a){return F.isArray(a)}function p(a){return"boolean"===typeof a}function n(a){return"number"===typeof a}function v(a){return"string"===typeof a}function s(a){return void 0===a}function A(a){return y(a)&&"[object RegExp]"===Object.prototype.toString.call(a)}function y(a){return"object"===
typeof a&&a}function t(a){return y(a)&&"[object Date]"===Object.prototype.toString.call(a)}function d(a){return y(a)&&"[object Error]"===Object.prototype.toString.call(a)}function c(a){return"function"===typeof a}function u(a){return 10>a?"0"+a.toString(10):a.toString(10)}function G(){var a=new Date,c=[u(a.getHours()),u(a.getMinutes()),u(a.getSeconds())].join(":");return[a.getDate(),H[a.getMonth()],c].join(" ")}var F=m("_shims"),I=/%[sdj%]/g;h.format=function(a){if(!v(a)){for(var c=[],d=0;d<arguments.length;d++)c.push(w(arguments[d]));
return c.join(" ")}for(var d=1,z=arguments,l=z.length,c=String(a).replace(I,function(a){if("%%"===a)return"%";if(d>=l)return a;switch(a){case "%s":return String(z[d++]);case "%d":return Number(z[d++]);case "%j":try{return JSON.stringify(z[d++])}catch(c){return"[Circular]"}default:return a}}),C=z[d];d<l;C=z[++d])c=null!==C&&y(C)?c+(" "+w(C)):c+(" "+C);return c};h.inspect=w;w.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,
39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};w.styles={special:"cyan",number:"yellow","boolean":"yellow",undefined:"grey","null":"bold",string:"green",date:"magenta",regexp:"red"};h.isArray=e;h.isBoolean=p;h.isNull=function(a){return null===a};h.isNullOrUndefined=function(a){return null==a};h.isNumber=n;h.isString=v;h.isSymbol=function(a){return"symbol"===typeof a};h.isUndefined=s;h.isRegExp=A;h.isObject=y;h.isDate=t;h.isError=d;h.isFunction=c;h.isPrimitive=function(a){return null===
a||"boolean"===typeof a||"number"===typeof a||"string"===typeof a||"symbol"===typeof a||"undefined"===typeof a};h.isBuffer=function(a){return a&&"object"===typeof a&&"function"===typeof a.copy&&"function"===typeof a.fill&&"function"===typeof a.binarySlice};var H="Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" ");h.log=function(){console.log("%s - %s",G(),h.format.apply(h,arguments))};h.inherits=function(a,c){a.super_=c;a.prototype=F.create(c.prototype,{constructor:{value:a,enumerable:!1,
writable:!0,configurable:!0}})};h._extend=function(a,c){if(!c||!y(c))return a;for(var d=F.keys(c),z=d.length;z--;)a[d[z]]=c[d[z]];return a}},{_shims:2}],6:[function(m,x,h){m=function B(h,q,b){function k(a,e){if(!q[a]){if(!h[a]){var f="function"==typeof m&&m;if(!e&&f)return f(a,!0);if(g)return g(a,!0);throw Error("Cannot find module '"+a+"'");}f=q[a]={exports:{}};h[a][0].call(f.exports,function(b){var e=h[a][1][b];return k(e?e:b)},f,f.exports,B,h,q,b)}return q[a].exports}for(var g="function"==typeof m&&
m,f=0;f<b.length;f++)k(b[f]);return k}({1:[function(h,m,q){q.readIEEE754=function(b,k,g,f,a){var e;e=8*a-f-1;var p=(1<<e)-1,n=p>>1,v=-7;a=g?0:a-1;var s=g?1:-1,h=b[k+a];a+=s;g=h&(1<<-v)-1;h>>=-v;for(v+=e;0<v;g=256*g+b[k+a],a+=s,v-=8);e=g&(1<<-v)-1;g>>=-v;for(v+=f;0<v;e=256*e+b[k+a],a+=s,v-=8);if(0===g)g=1-n;else{if(g===p)return e?NaN:Infinity*(h?-1:1);e+=Math.pow(2,f);g-=n}return(h?-1:1)*e*Math.pow(2,g-f)};q.writeIEEE754=function(b,k,g,f,a,e){var p,n=8*e-a-1,v=(1<<n)-1,s=v>>1,h=23===a?Math.pow(2,-24)-
Math.pow(2,-77):0;e=f?e-1:0;var y=f?-1:1,t=0>k||0===k&&0>1/k?1:0;k=Math.abs(k);isNaN(k)||Infinity===k?(k=isNaN(k)?1:0,f=v):(f=Math.floor(Math.log(k)/Math.LN2),1>k*(p=Math.pow(2,-f))&&(f--,p*=2),k=1<=f+s?k+h/p:k+h*Math.pow(2,1-s),2<=k*p&&(f++,p/=2),f+s>=v?(k=0,f=v):1<=f+s?(k=(k*p-1)*Math.pow(2,a),f+=s):(k=k*Math.pow(2,s-1)*Math.pow(2,a),f=0));for(;8<=a;b[g+e]=k&255,e+=y,k/=256,a-=8);f=f<<a|k;for(n+=a;0<n;b[g+e]=f&255,e+=y,f/=256,n-=8);b[g+e-y]|=128*t}},{}],q9TxCC:[function(h,m,q){function b(a,l,c){r||
(r=h("assert"));if(!(this instanceof b))return new b(a,l,c);this.parent=this;this.offset=0;if("base64"==l&&"string"==typeof a)for(a=a.trim?a.trim():a.replace(/^\s+|\s+$/g,"");0!=a.length%4;)a+="=";if("number"===typeof c)for(this.length=g(l),l=0;l<this.length;l++)this[l]=a.get(l+c);else{switch(c=typeof a){case "number":this.length=g(a);break;case "string":this.length=b.byteLength(a,l);break;case "object":this.length=g(a.length);break;default:throw Error("First argument needs to be a number, array or string.");
}if(f(a)||b.isBuffer(a)||a&&"object"===typeof a&&"number"===typeof a.length)for(l=0;l<this.length;l++)this[l]=a instanceof b?a.readUInt8(l):a[l];else if("string"==c)this.length=this.write(a,0,l);else if("number"===c)for(l=0;l<this.length;l++)this[l]=0}}function k(a,l,c){if("number"!==typeof a)return c;a=~~a;if(a>=l)return l;if(0<=a)return a;a+=l;return 0<=a?a:0}function g(a){a=~~Math.ceil(+a);return 0>a?0:a}function f(a){return(Array.isArray||function(a){return"[object Array]"=={}.toString.apply(a)})(a)}
function a(a){for(var l=[],c=0;c<a.length;c++)if(127>=a.charCodeAt(c))l.push(a.charCodeAt(c));else for(var d=encodeURIComponent(a.charAt(c)).substr(1).split("%"),b=0;b<d.length;b++)l.push(parseInt(d[b],16));return l}function e(a,l,c,d){for(var b=0;b<d&&!(b+c>=l.length||b>=a.length);)l[b+c]=a[b],b++;return b}function p(a){try{return decodeURIComponent(a)}catch(l){return String.fromCharCode(65533)}}function n(a,l,c,d){var b=0;d||(r.ok("boolean"===typeof c,"missing or invalid endian"),r.ok(void 0!==
l&&null!==l,"missing offset"),r.ok(l+1<a.length,"Trying to read beyond buffer length"));if(l>=a.length)return 0;c?(b=a[l]<<8,l+1<a.length&&(b|=a[l+1])):(b=a[l],l+1<a.length&&(b|=a[l+1]<<8));return b}function v(a,l,c,d){var b=0;d||(r.ok("boolean"===typeof c,"missing or invalid endian"),r.ok(void 0!==l&&null!==l,"missing offset"),r.ok(l+3<a.length,"Trying to read beyond buffer length"));if(l>=a.length)return 0;c?(l+1<a.length&&(b=a[l+1]<<16),l+2<a.length&&(b|=a[l+2]<<8),l+3<a.length&&(b|=a[l+3]),b+=
a[l]<<24>>>0):(l+2<a.length&&(b=a[l+2]<<16),l+1<a.length&&(b|=a[l+1]<<8),b|=a[l],l+3<a.length&&(b+=a[l+3]<<24>>>0));return b}function s(a,l,c,d){d||(r.ok("boolean"===typeof c,"missing or invalid endian"),r.ok(void 0!==l&&null!==l,"missing offset"),r.ok(l+1<a.length,"Trying to read beyond buffer length"));a=n(a,l,c,d);return a&32768?-1*(65535-a+1):a}function A(a,l,c,d){d||(r.ok("boolean"===typeof c,"missing or invalid endian"),r.ok(void 0!==l&&null!==l,"missing offset"),r.ok(l+3<a.length,"Trying to read beyond buffer length"));
a=v(a,l,c,d);return a&2147483648?-1*(4294967295-a+1):a}function y(a,l,c,d){d||(r.ok("boolean"===typeof c,"missing or invalid endian"),r.ok(l+3<a.length,"Trying to read beyond buffer length"));return h("./buffer_ieee754").readIEEE754(a,l,c,23,4)}function t(a,l,c,d){d||(r.ok("boolean"===typeof c,"missing or invalid endian"),r.ok(l+7<a.length,"Trying to read beyond buffer length"));return h("./buffer_ieee754").readIEEE754(a,l,c,52,8)}function d(a,l){r.ok("number"==typeof a,"cannot write a non-number as a number");
r.ok(0<=a,"specified a negative value for writing an unsigned value");r.ok(a<=l,"value is larger than maximum value for type");r.ok(Math.floor(a)===a,"value has a fractional component")}function c(a,l,c,b,e){e||(r.ok(void 0!==l&&null!==l,"missing value"),r.ok("boolean"===typeof b,"missing or invalid endian"),r.ok(void 0!==c&&null!==c,"missing offset"),r.ok(c+1<a.length,"trying to write beyond buffer length"),d(l,65535));for(e=0;e<Math.min(a.length-c,2);e++)a[c+e]=(l&255<<8*(b?1-e:e))>>>8*(b?1-e:e)}
function u(a,l,c,b,e){e||(r.ok(void 0!==l&&null!==l,"missing value"),r.ok("boolean"===typeof b,"missing or invalid endian"),r.ok(void 0!==c&&null!==c,"missing offset"),r.ok(c+3<a.length,"trying to write beyond buffer length"),d(l,4294967295));for(e=0;e<Math.min(a.length-c,4);e++)a[c+e]=l>>>8*(b?3-e:e)&255}function G(a,l,c){r.ok("number"==typeof a,"cannot write a non-number as a number");r.ok(a<=l,"value larger than maximum allowed value");r.ok(a>=c,"value smaller than minimum allowed value");r.ok(Math.floor(a)===
a,"value has a fractional component")}function F(a,l,c){r.ok("number"==typeof a,"cannot write a non-number as a number");r.ok(a<=l,"value larger than maximum allowed value");r.ok(a>=c,"value smaller than minimum allowed value")}function x(a,l,d,b,e){e||(r.ok(void 0!==l&&null!==l,"missing value"),r.ok("boolean"===typeof b,"missing or invalid endian"),r.ok(void 0!==d&&null!==d,"missing offset"),r.ok(d+1<a.length,"Trying to write beyond buffer length"),G(l,32767,-32768));0<=l?c(a,l,d,b,e):c(a,65535+
l+1,d,b,e)}function H(a,c,d,b,e){e||(r.ok(void 0!==c&&null!==c,"missing value"),r.ok("boolean"===typeof b,"missing or invalid endian"),r.ok(void 0!==d&&null!==d,"missing offset"),r.ok(d+3<a.length,"Trying to write beyond buffer length"),G(c,2147483647,-2147483648));0<=c?u(a,c,d,b,e):u(a,4294967295+c+1,d,b,e)}function J(a,c,d,b,e){e||(r.ok(void 0!==c&&null!==c,"missing value"),r.ok("boolean"===typeof b,"missing or invalid endian"),r.ok(void 0!==d&&null!==d,"missing offset"),r.ok(d+3<a.length,"Trying to write beyond buffer length"),
F(c,3.4028234663852886E38,-3.4028234663852886E38));h("./buffer_ieee754").writeIEEE754(a,c,d,b,23,4)}function E(a,c,d,b,e){e||(r.ok(void 0!==c&&null!==c,"missing value"),r.ok("boolean"===typeof b,"missing or invalid endian"),r.ok(void 0!==d&&null!==d,"missing offset"),r.ok(d+7<a.length,"Trying to write beyond buffer length"),F(c,1.7976931348623157E308,-1.7976931348623157E308));h("./buffer_ieee754").writeIEEE754(a,c,d,b,52,8)}var r;q.Buffer=b;q.SlowBuffer=b;b.poolSize=8192;q.INSPECT_MAX_BYTES=50;b.prototype.get=
function(a){if(0>a||a>=this.length)throw Error("oob");return this[a]};b.prototype.set=function(a,c){if(0>a||a>=this.length)throw Error("oob");return this[a]=c};b.byteLength=function(c,l){switch(l||"utf8"){case "hex":return c.length/2;case "utf8":case "utf-8":return a(c).length;case "ascii":case "binary":return c.length;case "base64":return h("base64-js").toByteArray(c).length;default:throw Error("Unknown encoding");}};b.prototype.utf8Write=function(c,l,d){return b._charsWritten=e(a(c),this,l,d)};
b.prototype.asciiWrite=function(a,c,d){for(var f=b,t=[],n=0;n<a.length;n++)t.push(a.charCodeAt(n)&255);return f._charsWritten=e(t,this,c,d)};b.prototype.binaryWrite=b.prototype.asciiWrite;b.prototype.base64Write=function(a,c,d){return b._charsWritten=e(h("base64-js").toByteArray(a),this,c,d)};b.prototype.base64Slice=function(a,c){var d=Array.prototype.slice.apply(this,arguments);return h("base64-js").fromByteArray(d)};b.prototype.utf8Slice=function(){for(var a=Array.prototype.slice.apply(this,arguments),
c="",d="",b=0;b<a.length;)127>=a[b]?(c+=p(d)+String.fromCharCode(a[b]),d=""):d+="%"+a[b].toString(16),b++;return c+p(d)};b.prototype.asciiSlice=function(){for(var a=Array.prototype.slice.apply(this,arguments),c="",d=0;d<a.length;d++)c+=String.fromCharCode(a[d]);return c};b.prototype.binarySlice=b.prototype.asciiSlice;b.prototype.inspect=function(){for(var a=[],c=this.length,d=0;d<c;d++)if(a[d]=16>this[d]?"0"+this[d].toString(16):this[d].toString(16),d==q.INSPECT_MAX_BYTES){a[d+1]="...";break}return"<Buffer "+
a.join(" ")+">"};b.prototype.hexSlice=function(a,c){var d=this.length;if(!a||0>a)a=0;if(!c||0>c||c>d)c=d;for(var d="",b=a;b<c;b++)d+=16>this[b]?"0"+this[b].toString(16):this[b].toString(16);return d};b.prototype.toString=function(a,c,d){a=String(a||"utf8").toLowerCase();c=+c||0;"undefined"==typeof d&&(d=this.length);if(+d==c)return"";switch(a){case "hex":return this.hexSlice(c,d);case "utf8":case "utf-8":return this.utf8Slice(c,d);case "ascii":return this.asciiSlice(c,d);case "binary":return this.binarySlice(c,
d);case "base64":return this.base64Slice(c,d);case "ucs2":case "ucs-2":return this.ucs2Slice(c,d);default:throw Error("Unknown encoding");}};b.prototype.hexWrite=function(a,c,d){c=+c||0;var e=this.length-c;d?(d=+d,d>e&&(d=e)):d=e;e=a.length;if(e%2)throw Error("Invalid hex string");d>e/2&&(d=e/2);for(e=0;e<d;e++){var f=parseInt(a.substr(2*e,2),16);if(isNaN(f))throw Error("Invalid hex string");this[c+e]=f}b._charsWritten=2*e;return e};b.prototype.write=function(a,c,d,b){if(isFinite(c))isFinite(d)||
(b=d,d=void 0);else{var e=b;b=c;c=d;d=e}c=+c||0;e=this.length-c;d?(d=+d,d>e&&(d=e)):d=e;b=String(b||"utf8").toLowerCase();switch(b){case "hex":return this.hexWrite(a,c,d);case "utf8":case "utf-8":return this.utf8Write(a,c,d);case "ascii":return this.asciiWrite(a,c,d);case "binary":return this.binaryWrite(a,c,d);case "base64":return this.base64Write(a,c,d);case "ucs2":case "ucs-2":return this.ucs2Write(a,c,d);default:throw Error("Unknown encoding");}};b.prototype.slice=function(a,c){var d=this.length;
a=k(a,d,0);c=k(c,d,d);return new b(this,c-a,+a)};b.prototype.copy=function(a,c,d,b){d||(d=0);if(void 0===b||isNaN(b))b=this.length;c||(c=0);if(b<d)throw Error("sourceEnd < sourceStart");if(b===d||0==a.length||0==this.length)return 0;if(0>c||c>=a.length)throw Error("targetStart out of bounds");if(0>d||d>=this.length)throw Error("sourceStart out of bounds");if(0>b||b>this.length)throw Error("sourceEnd out of bounds");b>this.length&&(b=this.length);a.length-c<b-d&&(b=a.length-c+d);for(var e=[];d<b;d++)r.ok("undefined"!==
typeof this[d],"copying undefined buffer bytes!"),e.push(this[d]);for(d=c;d<c+e.length;d++)a[d]=e[d-c]};b.prototype.fill=function(a,c,d){a||(a=0);c||(c=0);d||(d=this.length);"string"===typeof a&&(a=a.charCodeAt(0));if("number"!==typeof a||isNaN(a))throw Error("value is not a number");if(d<c)throw Error("end < start");if(d===c||0==this.length)return 0;if(0>c||c>=this.length)throw Error("start out of bounds");if(0>d||d>this.length)throw Error("end out of bounds");for(;c<d;c++)this[c]=a};b.isBuffer=
function(a){return a instanceof b||a instanceof b};b.concat=function(a,c){if(!f(a))throw Error("Usage: Buffer.concat(list, [totalLength])\n list should be an Array.");if(0===a.length)return new b(0);if(1===a.length)return a[0];if("number"!==typeof c)for(var d=c=0;d<a.length;d++){var e=a[d];c+=e.length}for(var t=new b(c),n=0,d=0;d<a.length;d++)e=a[d],e.copy(t,n),n+=e.length;return t};b.isEncoding=function(a){switch((a+"").toLowerCase()){case "hex":case "utf8":case "utf-8":case "ascii":case "binary":case "base64":case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":case "raw":return!0;
default:return!1}};b.prototype.readUInt8=function(a,c){c||(r.ok(void 0!==a&&null!==a,"missing offset"),r.ok(a<this.length,"Trying to read beyond buffer length"));if(!(a>=this.length))return this[a]};b.prototype.readUInt16LE=function(a,c){return n(this,a,!1,c)};b.prototype.readUInt16BE=function(a,c){return n(this,a,!0,c)};b.prototype.readUInt32LE=function(a,c){return v(this,a,!1,c)};b.prototype.readUInt32BE=function(a,c){return v(this,a,!0,c)};b.prototype.readInt8=function(a,c){var d;c||(r.ok(void 0!==
a&&null!==a,"missing offset"),r.ok(a<this.length,"Trying to read beyond buffer length"));if(!(a>=this.length))return(d=this[a]&128)?-1*(255-this[a]+1):this[a]};b.prototype.readInt16LE=function(a,c){return s(this,a,!1,c)};b.prototype.readInt16BE=function(a,c){return s(this,a,!0,c)};b.prototype.readInt32LE=function(a,c){return A(this,a,!1,c)};b.prototype.readInt32BE=function(a,c){return A(this,a,!0,c)};b.prototype.readFloatLE=function(a,c){return y(this,a,!1,c)};b.prototype.readFloatBE=function(a,c){return y(this,
a,!0,c)};b.prototype.readDoubleLE=function(a,c){return t(this,a,!1,c)};b.prototype.readDoubleBE=function(a,c){return t(this,a,!0,c)};b.prototype.writeUInt8=function(a,c,b){b||(r.ok(void 0!==a&&null!==a,"missing value"),r.ok(void 0!==c&&null!==c,"missing offset"),r.ok(c<this.length,"trying to write beyond buffer length"),d(a,255));c<this.length&&(this[c]=a)};b.prototype.writeUInt16LE=function(a,d,b){c(this,a,d,!1,b)};b.prototype.writeUInt16BE=function(a,d,b){c(this,a,d,!0,b)};b.prototype.writeUInt32LE=
function(a,c,d){u(this,a,c,!1,d)};b.prototype.writeUInt32BE=function(a,c,d){u(this,a,c,!0,d)};b.prototype.writeInt8=function(a,c,d){d||(r.ok(void 0!==a&&null!==a,"missing value"),r.ok(void 0!==c&&null!==c,"missing offset"),r.ok(c<this.length,"Trying to write beyond buffer length"),G(a,127,-128));0<=a?this.writeUInt8(a,c,d):this.writeUInt8(255+a+1,c,d)};b.prototype.writeInt16LE=function(a,c,d){x(this,a,c,!1,d)};b.prototype.writeInt16BE=function(a,c,d){x(this,a,c,!0,d)};b.prototype.writeInt32LE=function(a,
c,d){H(this,a,c,!1,d)};b.prototype.writeInt32BE=function(a,c,d){H(this,a,c,!0,d)};b.prototype.writeFloatLE=function(a,c,d){J(this,a,c,!1,d)};b.prototype.writeFloatBE=function(a,c,d){J(this,a,c,!0,d)};b.prototype.writeDoubleLE=function(a,c,d){E(this,a,c,!1,d)};b.prototype.writeDoubleBE=function(a,c,d){E(this,a,c,!0,d)}},{"./buffer_ieee754":1,assert:6,"base64-js":4}],"buffer-browserify":[function(h,m,q){m.exports=h("q9TxCC")},{}],4:[function(h,m,q){(function(b){m.exports.toByteArray=function(b){var g,
f,a,e,p;if(0<b.length%4)throw"Invalid string. Length must be a multiple of 4";e=b.indexOf("=");e=0<e?b.length-e:0;p=[];f=0<e?b.length-4:b.length;for(g=0;g<f;g+=4)a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(b[g])<<18|"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(b[g+1])<<12|"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(b[g+2])<<6|"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(b[g+
3]),p.push((a&16711680)>>16),p.push((a&65280)>>8),p.push(a&255);2===e?(a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(b[g])<<2|"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(b[g+1])>>4,p.push(a&255)):1===e&&(a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(b[g])<<10|"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(b[g+1])<<4|"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(b[g+
2])>>2,p.push(a>>8&255),p.push(a&255));return p};m.exports.fromByteArray=function(b){var g,f=b.length%3,a="",e,p;g=0;for(p=b.length-f;g<p;g+=3)e=(b[g]<<16)+(b[g+1]<<8)+b[g+2],a+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[e>>18&63]+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[e>>12&63]+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[e>>6&63]+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[e&63];switch(f){case 1:e=b[b.length-
1];a+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[e>>2];a+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[e<<4&63];a+="==";break;case 2:e=(b[b.length-2]<<8)+b[b.length-1],a+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[e>>10],a+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[e>>4&63],a+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[e<<2&63],a+="="}return a}})()},{}],5:[function(h,m,q){function b(a){return"[object Array]"===
p.call(a)}function k(a,d){var c;if(null===a)c={__proto__:null};else{if("object"!==typeof a)throw new TypeError("typeof prototype["+typeof a+"] != 'object'");c=function(){};c.prototype=a;c=new c;c.__proto__=a}"undefined"!==typeof d&&Object.defineProperties&&Object.defineProperties(c,d);return c}function g(a){return"object"!=typeof a&&"function"!=typeof a||null===a}function f(a){if(g(a))throw new TypeError("Object.keys called on a non-object");var d=[],c;for(c in a)n.call(a,c)&&d.push(c);return d}function a(a){if(g(a))throw new TypeError("Object.getOwnPropertyNames called on a non-object");
var d=f(a);q.isArray(a)&&-1===q.indexOf(a,"length")&&d.push("length");return d}function e(a,d){return{value:a[d]}}var p=Object.prototype.toString,n=Object.prototype.hasOwnProperty;q.isArray="function"===typeof Array.isArray?Array.isArray:b;q.indexOf=function(a,d){if(a.indexOf)return a.indexOf(d);for(var c=0;c<a.length;c++)if(d===a[c])return c;return-1};q.filter=function(a,d){if(a.filter)return a.filter(d);for(var c=[],b=0;b<a.length;b++)d(a[b],b,a)&&c.push(a[b]);return c};q.forEach=function(a,d,c){if(a.forEach)return a.forEach(d,
c);for(var b=0;b<a.length;b++)d.call(c,a[b],b,a)};q.map=function(a,d){if(a.map)return a.map(d);for(var c=Array(a.length),b=0;b<a.length;b++)c[b]=d(a[b],b,a);return c};q.reduce=function(a,d,c){if(a.reduce)return a.reduce(d,c);var b,e=!1;2<arguments.length&&(b=c,e=!0);for(var f=0,n=a.length;n>f;++f)a.hasOwnProperty(f)&&(e?b=d(b,a[f],f,a):(b=a[f],e=!0));return b};"b"!=="ab".substr(-1)?q.substr=function(a,d,c){0>d&&(d=a.length+d);return a.substr(d,c)}:q.substr=function(a,d,c){return a.substr(d,c)};q.trim=
function(a){return a.trim?a.trim():a.replace(/^\s+|\s+$/g,"")};q.bind=function(){var a=Array.prototype.slice.call(arguments),d=a.shift();if(d.bind)return d.bind.apply(d,a);var c=a.shift();return function(){d.apply(c,a.concat([Array.prototype.slice.call(arguments)]))}};q.create="function"===typeof Object.create?Object.create:k;var v="function"===typeof Object.keys?Object.keys:f,s="function"===typeof Object.getOwnPropertyNames?Object.getOwnPropertyNames:a;if(Error().hasOwnProperty("description")){var A=
function(a,d){"[object Error]"===p.call(a)&&(d=q.filter(d,function(a){return"description"!==a&&"number"!==a&&"message"!==a}));return d};q.keys=function(a){return A(a,v(a))};q.getOwnPropertyNames=function(a){return A(a,s(a))}}else q.keys=v,q.getOwnPropertyNames=s;if("function"===typeof Object.getOwnPropertyDescriptor)try{Object.getOwnPropertyDescriptor({a:1},"a"),q.getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor}catch(y){q.getOwnPropertyDescriptor=function(a,d){try{return Object.getOwnPropertyDescriptor(a,
d)}catch(c){return e(a,d)}}}else q.getOwnPropertyDescriptor=e},{}],6:[function(h,m,q){function b(a,c){return s.isUndefined(c)?""+c:s.isNumber(c)&&(isNaN(c)||!isFinite(c))||s.isFunction(c)||s.isRegExp(c)?c.toString():c}function k(a,c){return s.isString(a)?a.length<c?a:a.slice(0,c):a}function g(a,c,b,e,f){throw new t.AssertionError({message:b,actual:a,expected:c,operator:e,stackStartFunction:f});}function f(a,c){a||g(a,!0,c,"==",t.ok)}function a(a,c){if(a===c)return!0;if(s.isBuffer(a)&&s.isBuffer(c)){if(a.length!=
c.length)return!1;for(var b=0;b<a.length;b++)if(a[b]!==c[b])return!1;return!0}return s.isDate(a)&&s.isDate(c)?a.getTime()===c.getTime():s.isRegExp(a)&&s.isRegExp(c)?a.source===c.source&&a.global===c.global&&a.multiline===c.multiline&&a.lastIndex===c.lastIndex&&a.ignoreCase===c.ignoreCase:s.isObject(a)||s.isObject(c)?p(a,c):a==c}function e(a){return"[object Arguments]"==Object.prototype.toString.call(a)}function p(d,c){if(s.isNullOrUndefined(d)||s.isNullOrUndefined(c)||d.prototype!==c.prototype)return!1;
if(e(d)){if(!e(c))return!1;d=y.call(d);c=y.call(c);return a(d,c)}try{var b=A.keys(d),f=A.keys(c),n}catch(g){return!1}if(b.length!=f.length)return!1;b.sort();f.sort();for(n=b.length-1;0<=n;n--)if(b[n]!=f[n])return!1;for(n=b.length-1;0<=n;n--)if(f=b[n],!a(d[f],c[f]))return!1;return!0}function n(a,c){return a&&c?"[object RegExp]"==Object.prototype.toString.call(c)?c.test(a):a instanceof c||!0===c.call({},a)?!0:!1:!1}function v(a,c,b,e){var f;s.isString(b)&&(e=b,b=null);try{c()}catch(p){f=p}e=(b&&b.name?
" ("+b.name+").":".")+(e?" "+e:".");a&&!f&&g(f,b,"Missing expected exception"+e);!a&&n(f,b)&&g(f,b,"Got unwanted exception"+e);if(a&&f&&b&&!n(f,b)||!a&&f)throw f;}var s=h("util"),A=h("_shims"),y=Array.prototype.slice,t=m.exports=f;t.AssertionError=function(a){this.name="AssertionError";this.actual=a.actual;this.expected=a.expected;this.operator=a.operator;this.message=a.message||k(JSON.stringify(this.actual,b),128)+" "+this.operator+" "+k(JSON.stringify(this.expected,b),128)};s.inherits(t.AssertionError,
Error);t.fail=g;t.ok=f;t.equal=function(a,c,b){a!=c&&g(a,c,b,"==",t.equal)};t.notEqual=function(a,c,b){a==c&&g(a,c,b,"!=",t.notEqual)};t.deepEqual=function(b,c,e){a(b,c)||g(b,c,e,"deepEqual",t.deepEqual)};t.notDeepEqual=function(b,c,e){a(b,c)&&g(b,c,e,"notDeepEqual",t.notDeepEqual)};t.strictEqual=function(a,c,b){a!==c&&g(a,c,b,"===",t.strictEqual)};t.notStrictEqual=function(a,c,b){a===c&&g(a,c,b,"!==",t.notStrictEqual)};t["throws"]=function(a,c,b){v.apply(this,[!0].concat(y.call(arguments)))};t.doesNotThrow=
function(a,c){v.apply(this,[!1].concat(y.call(arguments)))};t.ifError=function(a){if(a)throw a;}},{_shims:5,util:7}],7:[function(h,m,q){function b(c,b){var e={seen:[],stylize:g};3<=arguments.length&&(e.depth=arguments[2]);4<=arguments.length&&(e.colors=arguments[3]);A(b)?e.showHidden=b:b&&q._extend(e,b);d(e.showHidden)&&(e.showHidden=!1);d(e.depth)&&(e.depth=2);d(e.colors)&&(e.colors=!1);d(e.customInspect)&&(e.customInspect=!0);e.colors&&(e.stylize=k);return a(e,c,e.depth)}function k(a,c){var d=b.styles[c];
return d?"\u001b["+b.colors[d][0]+"m"+a+"\u001b["+b.colors[d][1]+"m":a}function g(a,c){return a}function f(a){var c={};E.forEach(a,function(a,b){c[a]=!0});return c}function a(b,d,g){if(b.customInspect&&d&&I(d.inspect)&&d.inspect!==q.inspect&&(!d.constructor||d.constructor.prototype!==d)){var k=d.inspect(g);t(k)||(k=a(b,k,g));return k}if(k=e(b,d))return k;var y=E.keys(d),h=f(y);b.showHidden&&(y=E.getOwnPropertyNames(d));if(0===y.length){if(I(d))return b.stylize("[Function"+(d.name?": "+d.name:"")+
"]","special");if(c(d))return b.stylize(RegExp.prototype.toString.call(d),"regexp");if(G(d))return b.stylize(Date.prototype.toString.call(d),"date");if(x(d))return"["+Error.prototype.toString.call(d)+"]"}var k="",u=!1,m=["{","}"];s(d)&&(u=!0,m=["[","]"]);I(d)&&(k=" [Function"+(d.name?": "+d.name:"")+"]");c(d)&&(k=" "+RegExp.prototype.toString.call(d));G(d)&&(k=" "+Date.prototype.toUTCString.call(d));x(d)&&(k=" "+("["+Error.prototype.toString.call(d)+"]"));if(0===y.length&&(!u||0==d.length))return m[0]+
k+m[1];if(0>g)return c(d)?b.stylize(RegExp.prototype.toString.call(d),"regexp"):b.stylize("[Object]","special");b.seen.push(d);y=u?p(b,d,g,h,y):y.map(function(a){return n(b,d,g,h,a,u)});b.seen.pop();return v(y,k,m)}function e(a,c){if(d(c))return a.stylize("undefined","undefined");if(t(c)){var b="'"+JSON.stringify(c).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return a.stylize(b,"string")}if(y(c))return a.stylize(""+c,"number");if(A(c))return a.stylize(""+c,"boolean");if(null===
c)return a.stylize("null","null")}function p(a,c,b,d,e){for(var f=[],g=0,p=c.length;g<p;++g)Object.prototype.hasOwnProperty.call(c,String(g))?f.push(n(a,c,b,d,String(g),!0)):f.push("");E.forEach(e,function(e){e.match(/^\d+$/)||f.push(n(a,c,b,d,e,!0))});return f}function n(c,b,e,f,n,g){var p,k;b=E.getOwnPropertyDescriptor(b,n)||{value:b[n]};b.get?k=b.set?c.stylize("[Getter/Setter]","special"):c.stylize("[Getter]","special"):b.set&&(k=c.stylize("[Setter]","special"));Object.prototype.hasOwnProperty.call(f,
n)||(p="["+n+"]");k||(0>E.indexOf(c.seen,b.value)?(k=null===e?a(c,b.value,null):a(c,b.value,e-1),-1<k.indexOf("\n")&&(k=g?k.split("\n").map(function(a){return" "+a}).join("\n").substr(2):"\n"+k.split("\n").map(function(a){return" "+a}).join("\n"))):k=c.stylize("[Circular]","special"));if(d(p)){if(g&&n.match(/^\d+$/))return k;p=JSON.stringify(""+n);p.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(p=p.substr(1,p.length-2),p=c.stylize(p,"name")):(p=p.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,
"'"),p=c.stylize(p,"string"))}return p+": "+k}function v(a,c,b){var d=0;return 60<E.reduce(a,function(a,c){d++;0<=c.indexOf("\n")&&d++;return a+c.replace(/\u001b\[\d\d?m/g,"").length+1},0)?b[0]+(""===c?"":c+"\n ")+" "+a.join(",\n ")+" "+b[1]:b[0]+c+" "+a.join(", ")+" "+b[1]}function s(a){return E.isArray(a)}function A(a){return"boolean"===typeof a}function y(a){return"number"===typeof a}function t(a){return"string"===typeof a}function d(a){return void 0===a}function c(a){return u(a)&&"[object RegExp]"===
Object.prototype.toString.call(a)}function u(a){return"object"===typeof a&&a}function G(a){return u(a)&&"[object Date]"===Object.prototype.toString.call(a)}function x(a){return u(a)&&"[object Error]"===Object.prototype.toString.call(a)}function I(a){return"function"===typeof a}function H(a){return 10>a?"0"+a.toString(10):a.toString(10)}function J(){var a=new Date,c=[H(a.getHours()),H(a.getMinutes()),H(a.getSeconds())].join(":");return[a.getDate(),z[a.getMonth()],c].join(" ")}var E=h("_shims"),r=/%[sdj%]/g;
q.format=function(a){if(!t(a)){for(var c=[],d=0;d<arguments.length;d++)c.push(b(arguments[d]));return c.join(" ")}for(var d=1,e=arguments,f=e.length,c=String(a).replace(r,function(a){if("%%"===a)return"%";if(d>=f)return a;switch(a){case "%s":return String(e[d++]);case "%d":return Number(e[d++]);case "%j":try{return JSON.stringify(e[d++])}catch(c){return"[Circular]"}default:return a}}),n=e[d];d<f;n=e[++d])c=null!==n&&u(n)?c+(" "+b(n)):c+(" "+n);return c};q.inspect=b;b.colors={bold:[1,22],italic:[3,
23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};b.styles={special:"cyan",number:"yellow","boolean":"yellow",undefined:"grey","null":"bold",string:"green",date:"magenta",regexp:"red"};q.isArray=s;q.isBoolean=A;q.isNull=function(a){return null===a};q.isNullOrUndefined=function(a){return null==a};q.isNumber=y;q.isString=t;q.isSymbol=function(a){return"symbol"===typeof a};q.isUndefined=d;q.isRegExp=
c;q.isObject=u;q.isDate=G;q.isError=x;q.isFunction=I;q.isPrimitive=function(a){return null===a||"boolean"===typeof a||"number"===typeof a||"string"===typeof a||"symbol"===typeof a||"undefined"===typeof a};q.isBuffer=function(a){return a instanceof Buffer};var z="Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" ");q.log=function(){console.log("%s - %s",J(),q.format.apply(q,arguments))};q.inherits=function(a,c){a.super_=c;a.prototype=E.create(c.prototype,{constructor:{value:a,enumerable:!1,
writable:!0,configurable:!0}})};q._extend=function(a,c){if(!c||!u(c))return a;for(var b=E.keys(c),d=b.length;d--;)a[b[d]]=c[b[d]];return a}},{_shims:5}]},{},[]);x.exports=m("buffer-browserify")},{}],7:[function(m,x,h){m=x.exports={};m.nextTick=function(){if("undefined"!==typeof window&&window.setImmediate)return function(h){return window.setImmediate(h)};if("undefined"!==typeof window&&window.postMessage&&window.addEventListener){var h=[];window.addEventListener("message",function(m){m.source===window&&
"process-tick"===m.data&&(m.stopPropagation(),0<h.length&&h.shift()())},!0);return function(m){h.push(m);window.postMessage("process-tick","*")}}return function(h){setTimeout(h,0)}}();m.title="browser";m.browser=!0;m.env={};m.argv=[];m.binding=function(h){throw Error("process.binding is not supported");};m.cwd=function(){return"/"};m.chdir=function(h){throw Error("process.chdir is not supported");}},{}],8:[function(m,x,h){h.SourceMapGenerator=m("./source-map/source-map-generator").SourceMapGenerator;
h.SourceMapConsumer=m("./source-map/source-map-consumer").SourceMapConsumer;h.SourceNode=m("./source-map/source-node").SourceNode},{"./source-map/source-map-consumer":13,"./source-map/source-map-generator":14,"./source-map/source-node":15}],9:[function(m,x,h){if("function"!==typeof w)var w=m("amdefine")(x,m);w(function(h,m,q){function b(){this._array=[];this._set={}}var k=h("./util");b.fromArray=function(g,f){for(var a=new b,e=0,p=g.length;e<p;e++)a.add(g[e],f);return a};b.prototype.add=function(b,
f){var a=this.has(b),e=this._array.length;a&&!f||this._array.push(b);a||(this._set[k.toSetString(b)]=e)};b.prototype.has=function(b){return Object.prototype.hasOwnProperty.call(this._set,k.toSetString(b))};b.prototype.indexOf=function(b){if(this.has(b))return this._set[k.toSetString(b)];throw Error('"'+b+'" is not in the set.');};b.prototype.at=function(b){if(0<=b&&b<this._array.length)return this._array[b];throw Error("No element indexed by "+b);};b.prototype.toArray=function(){return this._array.slice()};
m.ArraySet=b})},{"./util":16,amdefine:17}],10:[function(m,x,h){if("function"!==typeof w)var w=m("amdefine")(x,m);w(function(h,m,q){var b=h("./base64");m.encode=function(k){var g="",f=0>k?(-k<<1)+1:(k<<1)+0;do k=f&31,f>>>=5,0<f&&(k|=32),g+=b.encode(k);while(0<f);return g};m.decode=function(k){var g=0,f=k.length,a=0,e=0,p,n;do{if(g>=f)throw Error("Expected more digits in base 64 VLQ value.");n=b.decode(k.charAt(g++));p=!!(n&32);n&=31;a+=n<<e;e+=5}while(p);f=a>>1;return{value:1===(a&1)?-f:f,rest:k.slice(g)}}})},
{"./base64":11,amdefine:17}],11:[function(m,x,h){if("function"!==typeof w)var w=m("amdefine")(x,m);w(function(h,m,q){var b={},k={};"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("").forEach(function(g,f){b[g]=f;k[f]=g});m.encode=function(b){if(b in k)return k[b];throw new TypeError("Must be between 0 and 63: "+b);};m.decode=function(g){if(g in b)return b[g];throw new TypeError("Not a valid base 64 digit: "+g);}})},{amdefine:17}],12:[function(m,x,h){if("function"!==typeof w)var w=
m("amdefine")(x,m);w(function(h,m,q){function b(k,g,f,a,e){var p=Math.floor((g-k)/2)+k,n=e(f,a[p]);return 0===n?a[p]:0<n?1<g-p?b(p,g,f,a,e):a[p]:1<p-k?b(k,p,f,a,e):0>k?null:a[k]}m.search=function(k,g,f){return 0<g.length?b(-1,g.length,k,g,f):null}})},{amdefine:17}],13:[function(m,x,h){if("function"!==typeof w)var w=m("amdefine")(x,m);w(function(h,m,q){function b(a){var b=a;"string"===typeof a&&(b=JSON.parse(a.replace(/^\)\]\}'/,"")));a=k.getArg(b,"version");var n=k.getArg(b,"sources"),g=k.getArg(b,
"names"),h=k.getArg(b,"sourceRoot",null),m=k.getArg(b,"sourcesContent",null),y=k.getArg(b,"mappings"),b=k.getArg(b,"file",null);if(a!==this._version)throw Error("Unsupported version: "+a);this._names=f.fromArray(g,!0);this._sources=f.fromArray(n,!0);this.sourceRoot=h;this.sourcesContent=m;this.file=b;this._generatedMappings=[];this._originalMappings=[];this._parseMappings(y,h)}var k=h("./util"),g=h("./binary-search"),f=h("./array-set").ArraySet,a=h("./base64-vlq");b.prototype._version=3;Object.defineProperty(b.prototype,
"sources",{get:function(){return this._sources.toArray().map(function(a){return this.sourceRoot?k.join(this.sourceRoot,a):a},this)}});b.prototype._parseMappings=function(b,f){for(var n=1,g=0,k=0,h=0,y=0,t=0,d=/^[,;]/,c=b,u;0<c.length;)if(";"===c.charAt(0))n++,c=c.slice(1),g=0;else if(","===c.charAt(0))c=c.slice(1);else{u={};u.generatedLine=n;c=a.decode(c);u.generatedColumn=g+c.value;g=u.generatedColumn;c=c.rest;if(0<c.length&&!d.test(c.charAt(0))){c=a.decode(c);u.source=this._sources.at(y+c.value);
y+=c.value;c=c.rest;if(0===c.length||d.test(c.charAt(0)))throw Error("Found a source, but no line and column");c=a.decode(c);u.originalLine=k+c.value;k=u.originalLine;u.originalLine+=1;c=c.rest;if(0===c.length||d.test(c.charAt(0)))throw Error("Found a source and line, but no column");c=a.decode(c);u.originalColumn=h+c.value;h=u.originalColumn;c=c.rest;0<c.length&&!d.test(c.charAt(0))&&(c=a.decode(c),u.name=this._names.at(t+c.value),t+=c.value,c=c.rest)}this._generatedMappings.push(u);"number"===typeof u.originalLine&&
this._originalMappings.push(u)}this._originalMappings.sort(this._compareOriginalPositions)};b.prototype._compareOriginalPositions=function(a,b){if(a.source>b.source)return 1;if(a.source<b.source)return-1;var f=a.originalLine-b.originalLine;return 0===f?a.originalColumn-b.originalColumn:f};b.prototype._compareGeneratedPositions=function(a,b){var f=a.generatedLine-b.generatedLine;return 0===f?a.generatedColumn-b.generatedColumn:f};b.prototype._findMapping=function(a,b,f,k,h){if(0>=a[f])throw new TypeError("Line must be greater than or equal to 1, got "+
a[f]);if(0>a[k])throw new TypeError("Column must be greater than or equal to 0, got "+a[k]);return g.search(a,b,h)};b.prototype.originalPositionFor=function(a){a={generatedLine:k.getArg(a,"line"),generatedColumn:k.getArg(a,"column")};if(a=this._findMapping(a,this._generatedMappings,"generatedLine","generatedColumn",this._compareGeneratedPositions)){var b=k.getArg(a,"source",null);b&&this.sourceRoot&&(b=k.join(this.sourceRoot,b));return{source:b,line:k.getArg(a,"originalLine",null),column:k.getArg(a,
"originalColumn",null),name:k.getArg(a,"name",null)}}return{source:null,line:null,column:null,name:null}};b.prototype.sourceContentFor=function(a){if(!this.sourcesContent)return null;this.sourceRoot&&(a=k.relative(this.sourceRoot,a));if(this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];var b;if(this.sourceRoot&&(b=k.urlParse(this.sourceRoot))){var f=a.replace(/^file:\/\//,"");if("file"==b.scheme&&this._sources.has(f))return this.sourcesContent[this._sources.indexOf(f)];if((!b.path||
"/"==b.path)&&this._sources.has("/"+a))return this.sourcesContent[this._sources.indexOf("/"+a)]}throw Error('"'+a+'" is not in the SourceMap.');};b.prototype.generatedPositionFor=function(a){a={source:k.getArg(a,"source"),originalLine:k.getArg(a,"line"),originalColumn:k.getArg(a,"column")};this.sourceRoot&&(a.source=k.relative(this.sourceRoot,a.source));return(a=this._findMapping(a,this._originalMappings,"originalLine","originalColumn",this._compareOriginalPositions))?{line:k.getArg(a,"generatedLine",
null),column:k.getArg(a,"generatedColumn",null)}:{line:null,column:null}};b.GENERATED_ORDER=1;b.ORIGINAL_ORDER=2;b.prototype.eachMapping=function(a,f,n){f=f||null;switch(n||b.GENERATED_ORDER){case b.GENERATED_ORDER:n=this._generatedMappings;break;case b.ORIGINAL_ORDER:n=this._originalMappings;break;default:throw Error("Unknown order of iteration.");}var g=this.sourceRoot;n.map(function(a){var b=a.source;b&&g&&(b=k.join(g,b));return{source:b,generatedLine:a.generatedLine,generatedColumn:a.generatedColumn,
originalLine:a.originalLine,originalColumn:a.originalColumn,name:a.name}}).forEach(a,f)};m.SourceMapConsumer=b})},{"./array-set":9,"./base64-vlq":10,"./binary-search":12,"./util":16,amdefine:17}],14:[function(m,x,h){if("function"!==typeof w)var w=m("amdefine")(x,m);w(function(h,m,q){function b(a){this._file=e.getArg(a,"file");this._sourceRoot=e.getArg(a,"sourceRoot",null);this._sources=new p;this._names=new p;this._mappings=[];this._sourcesContents=null}function k(a,b){var e=(a&&a.line)-(b&&b.line);
return e?e:(a&&a.column)-(b&&b.column)}function g(a,b){a=a||"";b=b||"";return(a>b)-(a<b)}function f(a,b){return k(a.generated,b.generated)||k(a.original,b.original)||g(a.source,b.source)||g(a.name,b.name)}var a=h("./base64-vlq"),e=h("./util"),p=h("./array-set").ArraySet;b.prototype._version=3;b.fromSourceMap=function(a){var f=a.sourceRoot,g=new b({file:a.file,sourceRoot:f});a.eachMapping(function(a){var b={generated:{line:a.generatedLine,column:a.generatedColumn}};a.source&&(b.source=a.source,f&&
(b.source=e.relative(f,b.source)),b.original={line:a.originalLine,column:a.originalColumn},a.name&&(b.name=a.name));g.addMapping(b)});a.sources.forEach(function(b){var e=a.sourceContentFor(b);e&&g.setSourceContent(b,e)});return g};b.prototype.addMapping=function(a){var b=e.getArg(a,"generated"),f=e.getArg(a,"original",null),g=e.getArg(a,"source",null);a=e.getArg(a,"name",null);this._validateMapping(b,f,g,a);g&&!this._sources.has(g)&&this._sources.add(g);a&&!this._names.has(a)&&this._names.add(a);
this._mappings.push({generated:b,original:f,source:g,name:a})};b.prototype.setSourceContent=function(a,b){var f=a;this._sourceRoot&&(f=e.relative(this._sourceRoot,f));null!==b?(this._sourcesContents||(this._sourcesContents={}),this._sourcesContents[e.toSetString(f)]=b):(delete this._sourcesContents[e.toSetString(f)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))};b.prototype.applySourceMap=function(a,b){b||(b=a.file);var f=this._sourceRoot;f&&(b=e.relative(f,b));var g=
new p,k=new p;this._mappings.forEach(function(h){if(h.source===b&&h.original){var d=a.originalPositionFor({line:h.original.line,column:h.original.column});null!==d.source&&(h.source=f?e.relative(f,d.source):d.source,h.original.line=d.line,h.original.column=d.column,null!==d.name&&null!==h.name&&(h.name=d.name))}(d=h.source)&&!g.has(d)&&g.add(d);(h=h.name)&&!k.has(h)&&k.add(h)},this);this._sources=g;this._names=k;a.sources.forEach(function(b){var d=a.sourceContentFor(b);d&&(f&&(b=e.relative(f,b)),
this.setSourceContent(b,d))},this)};b.prototype._validateMapping=function(a,b,e,f){if(!(a&&"line"in a&&"column"in a&&0<a.line&&0<=a.column&&!b&&!e&&!f||a&&"line"in a&&"column"in a&&b&&"line"in b&&"column"in b&&0<a.line&&0<=a.column&&0<b.line&&0<=b.column&&e))throw Error("Invalid mapping.");};b.prototype._serializeMappings=function(){var b=0,e=1,g=0,h=0,k=0,p=0,d="",c;this._mappings.sort(f);for(var u=0,m=this._mappings.length;u<m;u++){c=this._mappings[u];if(c.generated.line!==e)for(b=0;c.generated.line!==
e;)d+=";",e++;else if(0<u){if(!f(c,this._mappings[u-1]))continue;d+=","}d+=a.encode(c.generated.column-b);b=c.generated.column;c.source&&c.original&&(d+=a.encode(this._sources.indexOf(c.source)-p),p=this._sources.indexOf(c.source),d+=a.encode(c.original.line-1-h),h=c.original.line-1,d+=a.encode(c.original.column-g),g=c.original.column,c.name&&(d+=a.encode(this._names.indexOf(c.name)-k),k=this._names.indexOf(c.name)))}return d};b.prototype.toJSON=function(){var a={version:this._version,file:this._file,
sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};this._sourceRoot&&(a.sourceRoot=this._sourceRoot);this._sourcesContents&&(a.sourcesContent=a.sources.map(function(b){a.sourceRoot&&(b=e.relative(a.sourceRoot,b));return Object.prototype.hasOwnProperty.call(this._sourcesContents,e.toSetString(b))?this._sourcesContents[e.toSetString(b)]:null},this));return a};b.prototype.toString=function(){return JSON.stringify(this)};m.SourceMapGenerator=b})},{"./array-set":9,
"./base64-vlq":10,"./util":16,amdefine:17}],15:[function(m,x,h){if("function"!==typeof w)var w=m("amdefine")(x,m);w(function(h,m,q){function b(b,a,e,g,h){this.children=[];this.sourceContents={};this.line=void 0===b?null:b;this.column=void 0===a?null:a;this.source=void 0===e?null:e;this.name=void 0===h?null:h;null!=g&&this.add(g)}var k=h("./source-map-generator").SourceMapGenerator,g=h("./util");b.fromStringWithSourceMap=function(f,a){function e(a,e){null===a||void 0===a.source?g.add(e):g.add(new b(a.originalLine,
a.originalColumn,a.source,e,a.name))}var g=new b,h=f.split("\n"),k=1,m=0,q=null;a.eachMapping(function(a){if(null===q){for(;k<a.generatedLine;)g.add(h.shift()+"\n"),k++;if(m<a.generatedColumn){var b=h[0];g.add(b.substr(0,a.generatedColumn));h[0]=b.substr(a.generatedColumn);m=a.generatedColumn}}else{if(k<a.generatedLine){var d="";do d+=h.shift()+"\n",k++,m=0;while(k<a.generatedLine);m<a.generatedColumn&&(b=h[0],d+=b.substr(0,a.generatedColumn),h[0]=b.substr(a.generatedColumn),m=a.generatedColumn)}else b=
h[0],d=b.substr(0,a.generatedColumn-m),h[0]=b.substr(a.generatedColumn-m),m=a.generatedColumn;e(q,d)}q=a},this);e(q,h.join("\n"));a.sources.forEach(function(b){var e=a.sourceContentFor(b);e&&g.setSourceContent(b,e)});return g};b.prototype.add=function(f){if(Array.isArray(f))f.forEach(function(a){this.add(a)},this);else if(f instanceof b||"string"===typeof f)f&&this.children.push(f);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+f);return this};
b.prototype.prepend=function(f){if(Array.isArray(f))for(var a=f.length-1;0<=a;a--)this.prepend(f[a]);else if(f instanceof b||"string"===typeof f)this.children.unshift(f);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+f);return this};b.prototype.walk=function(f){this.children.forEach(function(a){a instanceof b?a.walk(f):""!==a&&f(a,{source:this.source,line:this.line,column:this.column,name:this.name})},this)};b.prototype.join=function(b){var a,
e,g=this.children.length;if(0<g){a=[];for(e=0;e<g-1;e++)a.push(this.children[e]),a.push(b);a.push(this.children[e]);this.children=a}return this};b.prototype.replaceRight=function(f,a){var e=this.children[this.children.length-1];e instanceof b?e.replaceRight(f,a):"string"===typeof e?this.children[this.children.length-1]=e.replace(f,a):this.children.push("".replace(f,a));return this};b.prototype.setSourceContent=function(b,a){this.sourceContents[g.toSetString(b)]=a};b.prototype.walkSourceContents=function(f){this.children.forEach(function(a){a instanceof
b&&a.walkSourceContents(f)},this);Object.keys(this.sourceContents).forEach(function(a){f(g.fromSetString(a),this.sourceContents[a])},this)};b.prototype.toString=function(){var b="";this.walk(function(a){b+=a});return b};b.prototype.toStringWithSourceMap=function(b){var a="",e=1,g=0,h=new k(b),m=!1,q=null,w=null,y=null,t=null;this.walk(function(b,c){a+=b;null!==c.source&&null!==c.line&&null!==c.column?(q===c.source&&w===c.line&&y===c.column&&t===c.name||h.addMapping({source:c.source,original:{line:c.line,
column:c.column},generated:{line:e,column:g},name:c.name}),q=c.source,w=c.line,y=c.column,t=c.name,m=!0):m&&(h.addMapping({generated:{line:e,column:g}}),q=null,m=!1);b.split("").forEach(function(a){"\n"===a?(e++,g=0):g++})});this.walkSourceContents(function(a,b){h.setSourceContent(a,b)});return{code:a,map:h}};m.SourceNode=b})},{"./source-map-generator":14,"./util":16,amdefine:17}],16:[function(m,x,h){if("function"!==typeof w)var w=m("amdefine")(x,m);w(function(h,m,q){function b(b){return(b=b.match(g))?
{scheme:b[1],auth:b[3],host:b[4],port:b[6],path:b[7]}:null}function k(b){var a=b.scheme+"://";b.auth&&(a+=b.auth+"@");b.host&&(a+=b.host);b.port&&(a+=":"+b.port);b.path&&(a+=b.path);return a}m.getArg=function(b,a,e){if(a in b)return b[a];if(3===arguments.length)return e;throw Error('"'+a+'" is a required argument.');};var g=/([\w+\-.]+):\/\/((\w+:\w+)@)?([\w.]+)?(:(\d+))?(\S+)?/;m.urlParse=b;m.urlGenerate=k;m.join=function(f,a){var e;return a.match(g)?a:"/"===a.charAt(0)&&(e=b(f))?(e.path=a,k(e)):
f.replace(/\/$/,"")+"/"+a};m.toSetString=function(b){return"$"+b};m.fromSetString=function(b){return b.substr(1)};m.relative=function(f,a){f=f.replace(/\/$/,"");var e=b(f);return"/"==a.charAt(0)&&e&&"/"==e.path?a.slice(1):0===a.indexOf(f+"/")?a.substr(f.length+1):a}})},{amdefine:17}],17:[function(m,x,h){var w=m("__browserify_process"),B="/node_modules/source-map/node_modules/amdefine/amdefine.js";"use strict";x.exports=function(h,q){function b(a,b){var d;if(a&&"."===a.charAt(0)&&b){d=b.split("/");
d=d.slice(0,d.length-1);var c=d=d.concat(a.split("/")),e,f;for(e=0;c[e];e+=1)if(f=c[e],"."===f)c.splice(e,1),e-=1;else if(".."===f)if(1!==e||".."!==c[2]&&".."!==c[0])0<e&&(c.splice(e-1,2),e-=2);else break;a=d.join("/")}return a}function k(a){return function(e){return b(e,a)}}function g(a){function b(d){p[a]=d}b.fromText=function(a,b){throw Error("amdefine does not implement load.fromText");};return b}function f(a,b,d){var c,e,f;if(a)e=p[a]={},f={id:a,uri:B,exports:e},c=s(q,e,f,a);else{if(n)throw Error("amdefine with no module ID cannot be called more than once per file.");
n=!0;e=h.exports;f=h;c=s(q,e,f,h.id)}b&&(b=b.map(function(a){return c(a)}));b="function"===typeof d?d.apply(f.exports,b):d;void 0!==b&&(f.exports=b,a&&(p[a]=f.exports))}function a(a,b,d){Array.isArray(a)?(d=b,b=a,a=void 0):"string"!==typeof a&&(d=a,a=b=void 0);b&&!Array.isArray(b)&&(d=b,b=void 0);b||(b=["require","exports","module"]);a?e[a]=[a,b,d]:f(a,b,d)}var e={},p={},n=!1,v=m("path"),s,x;s=function(a,e,d,c){function f(b,g){if("string"===typeof b)return x(a,e,d,b,c);b=b.map(function(b){return x(a,
e,d,b,c)});w.nextTick(function(){g.apply(null,b)})}f.toUrl=function(a){return 0===a.indexOf(".")?b(a,v.dirname(d.filename)):a};return f};q=q||function(){return h.require.apply(h,arguments)};x=function(a,h,d,c,m){var n=c.indexOf("!"),q=c;if(-1===n){c=b(c,m);if("require"===c)return s(a,h,d,m);if("exports"===c)return h;if("module"===c)return d;if(p.hasOwnProperty(c))return p[c];if(e[c])return f.apply(null,e[c]),p[c];if(a)return a(q);throw Error("No module with ID: "+c);}q=c.substring(0,n);c=c.substring(n+
1,c.length);n=x(a,h,d,q,m);c=n.normalize?n.normalize(c,k(m)):b(c,m);p[c]||n.load(c,s(a,h,d,m),g(c),{});return p[c]};a.require=function(a){if(p[a])return p[a];if(e[a])return f.apply(null,e[a]),p[a]};a.amd={};return a}},{__browserify_process:7,path:4}],18:[function(m,x,h){function w(a){if(a in s)return s[a];try{if("undefined"!==typeof window){var b=new XMLHttpRequest;b.open("GET",a,!1);b.send(null);var e=4===b.readyState?b.responseText:null}else e=p.readFileSync(a,"utf8")}catch(f){e=null}return s[a]=
e}function B(a,b){var f=/^\w+:\/\/[^\/]*/.exec(a),f=f?f[0]:"";return f+e.resolve(a.slice(f.length),b)}function D(a){var b=/^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(a);return b?(a=t({source:b[2],line:b[3],column:b[4]}),"eval at "+b[1]+" ("+a.source+":"+a.line+":"+a.column+")"):(b=/^eval at ([^(]+) \((.+)\)$/.exec(a))?"eval at "+b[1]+" ("+D(b[2])+")":a}function q(a){var b=a.getFileName()||a.getScriptNameOrSourceURL();if(b){var e=t({source:b,line:a.getLineNumber(),column:a.getColumnNumber()});return{__proto__:a,
getFileName:function(){return e.source},getLineNumber:function(){return e.line},getColumnNumber:function(){return e.column},getScriptNameOrSourceURL:function(){return e.source}}}var f=a.isEval()&&a.getEvalOrigin();return f?(f=D(f),{__proto__:a,getEvalOrigin:function(){return f}}):a}function b(a,b){v&&(s={},A={});return a+b.map(function(a){return"\n at "+q(a)}).join("")}function k(a){a&&a.stack||(console.log("Uncaught exception:",a),g.exit());var b=/\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(a.stack);
if(b&&(b=t({source:b[1],line:b[2],column:b[3]}),p.existsSync(b.source))){var e=p.readFileSync(b.source,"utf8").split(/(?:\r\n|\r|\n)/)[b.line-1];e&&(console.log("\n"+b.source+":"+b.line),console.log(e),console.log(Array(+b.column).join(" ")+"^"))}console.log(a.stack);g.exit()}var g=m("__browserify_process"),f=m("__browserify_Buffer").Buffer,a=m("source-map").SourceMapConsumer,e=m("path"),p=m("fs"),n=!1,v=!1,s={},A={},y=function(a){var b=w(a),b=/\/\/[#@]\s*sourceMappingURL=(.*)\s*$/m.exec(b);if(!b)return null;
b=b[1];"data:application/json;base64,"==b.slice(0,29).toLowerCase()?a=(new f(b.slice(29),"base64")).toString():(a=e.dirname(a),b=B(a,b),a=w(b,"utf8"));return a?{url:b,map:a}:null},t=h.mapSourcePosition=function(b){var c=A[b.source];if(!c){var f=y(b.source);f&&(c=A[b.source]={url:f.url,map:new a(f.map)})}return c&&(f=c.map.originalPositionFor(b),null!==f.source)?(c.url&&(f.source=B(e.dirname(c.url),f.source)),f):b};h.install=function(a){if(!n){n=!0;Error.prepareStackTrace=b;a=a||{};var c="handleUncaughtExceptions"in
a?a.handleUncaughtExceptions:!0;v="emptyCacheBetweenOperations"in a?a.emptyCacheBetweenOperations:!1;a.retrieveSourceMap&&(y=a.retrieveSourceMap);if(c&&"undefined"===typeof window)g.on("uncaughtException",k)}}},{__browserify_Buffer:6,__browserify_process:7,fs:3,path:4,"source-map":8}]},{},[1]);return M});
(this.define||function(H,N){this.sourceMapSupport=N()})("browser-source-map-support",function(H){(function k(s,p,e){function r(h,c){if(!p[h]){if(!s[h]){var g="function"==typeof require&&require;if(!c&&g)return g(h,!0);if(u)return u(h,!0);throw Error("Cannot find module '"+h+"'");}g=p[h]={exports:{}};s[h][0].call(g.exports,function(c){var a=s[h][1][c];return r(a?a:c)},g,g.exports,k,s,p,e)}return p[h].exports}for(var u="function"==typeof require&&require,A=0;A<e.length;A++)r(e[A]);return r})({1:[function(k,
s,p){H=k("./source-map-support")},{"./source-map-support":18}],2:[function(k,s,p){},{}],3:[function(k,s,p){function e(f,n,K){if(!(this instanceof e))return new e(f,n,K);var b=typeof f;if("base64"===n&&"string"===b)for(f=f.trim?f.trim():f.replace(/^\s+|\s+$/g,"");0!==f.length%4;)f+="=";var a;if("number"===b)a=v(f);else if("string"===b)a=e.byteLength(f,n);else if("object"===b)a=v(f.length);else throw Error("First argument needs to be a number, array or string.");var d;e._useTypedArrays?d=e._augment(new Uint8Array(a)):
(d=this,d.length=a,d._isBuffer=!0);if(e._useTypedArrays&&"number"===typeof f.byteLength)d._set(f);else{var l=f;if(x(l)||e.isBuffer(l)||l&&"object"===typeof l&&"number"===typeof l.length)for(n=0;n<a;n++)e.isBuffer(f)?d[n]=f.readUInt8(n):d[n]=f[n];else if("string"===b)d.write(f,0,n);else if("number"===b&&!e._useTypedArrays&&!K)for(n=0;n<a;n++)d[n]=0}return d}function r(f,n,b){var a="";for(b=Math.min(f.length,b);n<b;n++)a+=String.fromCharCode(f[n]);return a}function u(f,n,b,a){a||(q("boolean"===typeof b,
"missing or invalid endian"),q(void 0!==n&&null!==n,"missing offset"),q(n+1<f.length,"Trying to read beyond buffer length"));a=f.length;if(!(n>=a))return b?(b=f[n],n+1<a&&(b|=f[n+1]<<8)):(b=f[n]<<8,n+1<a&&(b|=f[n+1])),b}function A(f,n,b,a){a||(q("boolean"===typeof b,"missing or invalid endian"),q(void 0!==n&&null!==n,"missing offset"),q(n+3<f.length,"Trying to read beyond buffer length"));a=f.length;if(!(n>=a)){var d;b?(n+2<a&&(d=f[n+2]<<16),n+1<a&&(d|=f[n+1]<<8),d|=f[n],n+3<a&&(d+=f[n+3]<<24>>>0)):
(n+1<a&&(d=f[n+1]<<16),n+2<a&&(d|=f[n+2]<<8),n+3<a&&(d|=f[n+3]),d+=f[n]<<24>>>0);return d}}function h(f,n,b,a){a||(q("boolean"===typeof b,"missing or invalid endian"),q(void 0!==n&&null!==n,"missing offset"),q(n+1<f.length,"Trying to read beyond buffer length"));if(!(n>=f.length))return f=u(f,n,b,!0),f&32768?-1*(65535-f+1):f}function c(f,n,b,a){a||(q("boolean"===typeof b,"missing or invalid endian"),q(void 0!==n&&null!==n,"missing offset"),q(n+3<f.length,"Trying to read beyond buffer length"));if(!(n>=
f.length))return f=A(f,n,b,!0),f&2147483648?-1*(4294967295-f+1):f}function g(f,n,b,a){a||(q("boolean"===typeof b,"missing or invalid endian"),q(n+3<f.length,"Trying to read beyond buffer length"));return F.read(f,n,b,23,4)}function m(f,n,b,a){a||(q("boolean"===typeof b,"missing or invalid endian"),q(n+7<f.length,"Trying to read beyond buffer length"));return F.read(f,n,b,52,8)}function a(f,n,b,a,d){d||(q(void 0!==n&&null!==n,"missing value"),q("boolean"===typeof a,"missing or invalid endian"),q(void 0!==
b&&null!==b,"missing offset"),q(b+1<f.length,"trying to write beyond buffer length"),I(n,65535));var l=f.length;if(!(b>=l))for(d=0,l=Math.min(l-b,2);d<l;d++)f[b+d]=(n&255<<8*(a?d:1-d))>>>8*(a?d:1-d)}function b(f,n,b,a,d){d||(q(void 0!==n&&null!==n,"missing value"),q("boolean"===typeof a,"missing or invalid endian"),q(void 0!==b&&null!==b,"missing offset"),q(b+3<f.length,"trying to write beyond buffer length"),I(n,4294967295));var l=f.length;if(!(b>=l))for(d=0,l=Math.min(l-b,4);d<l;d++)f[b+d]=n>>>
8*(a?d:3-d)&255}function d(f,n,b,d,l){l||(q(void 0!==n&&null!==n,"missing value"),q("boolean"===typeof d,"missing or invalid endian"),q(void 0!==b&&null!==b,"missing offset"),q(b+1<f.length,"Trying to write beyond buffer length"),J(n,32767,-32768));b>=f.length||(0<=n?a(f,n,b,d,l):a(f,65535+n+1,b,d,l))}function y(f,n,a,d,l){l||(q(void 0!==n&&null!==n,"missing value"),q("boolean"===typeof d,"missing or invalid endian"),q(void 0!==a&&null!==a,"missing offset"),q(a+3<f.length,"Trying to write beyond buffer length"),
J(n,2147483647,-2147483648));a>=f.length||(0<=n?b(f,n,a,d,l):b(f,4294967295+n+1,a,d,l))}function C(f,b,a,d,l){l||(q(void 0!==b&&null!==b,"missing value"),q("boolean"===typeof d,"missing or invalid endian"),q(void 0!==a&&null!==a,"missing offset"),q(a+3<f.length,"Trying to write beyond buffer length"),L(b,3.4028234663852886E38,-3.4028234663852886E38));a>=f.length||F.write(f,b,a,d,23,4)}function z(f,b,a,d,l){l||(q(void 0!==b&&null!==b,"missing value"),q("boolean"===typeof d,"missing or invalid endian"),
q(void 0!==a&&null!==a,"missing offset"),q(a+7<f.length,"Trying to write beyond buffer length"),L(b,1.7976931348623157E308,-1.7976931348623157E308));a>=f.length||F.write(f,b,a,d,52,8)}function B(f,b,a){if("number"!==typeof f)return a;f=~~f;if(f>=b)return b;if(0<=f)return f;f+=b;return 0<=f?f:0}function v(f){f=~~Math.ceil(+f);return 0>f?0:f}function x(f){return(Array.isArray||function(f){return"[object Array]"===Object.prototype.toString.call(f)})(f)}function D(f){return 16>f?"0"+f.toString(16):f.toString(16)}
function l(f){for(var b=[],a=0;a<f.length;a++){var d=f.charCodeAt(a);if(127>=d)b.push(f.charCodeAt(a));else{var l=a;55296<=d&&57343>=d&&a++;d=encodeURIComponent(f.slice(l,a+1)).substr(1).split("%");for(l=0;l<d.length;l++)b.push(parseInt(d[l],16))}}return b}function w(f){for(var b=[],a=0;a<f.length;a++)b.push(f.charCodeAt(a)&255);return b}function E(f,b,a,d){for(var l=0;l<d&&!(l+a>=b.length||l>=f.length);l++)b[l+a]=f[l];return l}function M(f){try{return decodeURIComponent(f)}catch(b){return String.fromCharCode(65533)}}
function I(f,b){q("number"===typeof f,"cannot write a non-number as a number");q(0<=f,"specified a negative value for writing an unsigned value");q(f<=b,"value is larger than maximum value for type");q(Math.floor(f)===f,"value has a fractional component")}function J(f,b,a){q("number"===typeof f,"cannot write a non-number as a number");q(f<=b,"value larger than maximum allowed value");q(f>=a,"value smaller than minimum allowed value");q(Math.floor(f)===f,"value has a fractional component")}function L(f,
b,a){q("number"===typeof f,"cannot write a non-number as a number");q(f<=b,"value larger than maximum allowed value");q(f>=a,"value smaller than minimum allowed value")}function q(f,b){if(!f)throw Error(b||"Failed assertion");}var G=k("base64-js"),F=k("ieee754");p.Buffer=e;p.SlowBuffer=e;p.INSPECT_MAX_BYTES=50;e.poolSize=8192;e._useTypedArrays=function(){try{var f=new ArrayBuffer(0),b=new Uint8Array(f);b.foo=function(){return 42};return 42===b.foo()&&"function"===typeof b.subarray}catch(a){return!1}}();
e.isEncoding=function(f){switch(String(f).toLowerCase()){case "hex":case "utf8":case "utf-8":case "ascii":case "binary":case "base64":case "raw":case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":return!0;default:return!1}};e.isBuffer=function(f){return!(null===f||void 0===f||!f._isBuffer)};e.byteLength=function(f,b){var a;f+="";switch(b||"utf8"){case "hex":a=f.length/2;break;case "utf8":case "utf-8":a=l(f).length;break;case "ascii":case "binary":case "raw":a=f.length;break;case "base64":a=G.toByteArray(f).length;
break;case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":a=2*f.length;break;default:throw Error("Unknown encoding");}return a};e.concat=function(f,b){q(x(f),"Usage: Buffer.concat(list, [totalLength])\nlist should be an Array.");if(0===f.length)return new e(0);if(1===f.length)return f[0];var a;if("number"!==typeof b)for(a=b=0;a<f.length;a++)b+=f[a].length;var d=new e(b),l=0;for(a=0;a<f.length;a++){var c=f[a];c.copy(d,l);l+=c.length}return d};e.prototype.write=function(f,b,a,d){if(isFinite(b))isFinite(a)||
(d=a,a=void 0);else{var c=d;d=b;b=a;a=c}b=Number(b)||0;c=this.length-b;a?(a=Number(a),a>c&&(a=c)):a=c;d=String(d||"utf8").toLowerCase();switch(d){case "hex":b=Number(b)||0;d=this.length-b;a?(a=Number(a),a>d&&(a=d)):a=d;d=f.length;q(0===d%2,"Invalid hex string");a>d/2&&(a=d/2);for(d=0;d<a;d++)c=parseInt(f.substr(2*d,2),16),q(!isNaN(c),"Invalid hex string"),this[b+d]=c;e._charsWritten=2*d;f=d;break;case "utf8":case "utf-8":f=e._charsWritten=E(l(f),this,b,a);break;case "ascii":f=e._charsWritten=E(w(f),
this,b,a);break;case "binary":f=e._charsWritten=E(w(f),this,b,a);break;case "base64":f=e._charsWritten=E(G.toByteArray(f),this,b,a);break;case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":d=e;for(var g,m=[],h=0;h<f.length;h++)g=f.charCodeAt(h),c=g>>8,g%=256,m.push(g),m.push(c);f=d._charsWritten=E(m,this,b,a);break;default:throw Error("Unknown encoding");}return f};e.prototype.toString=function(f,b,a){f=String(f||"utf8").toLowerCase();b=Number(b)||0;a=void 0!==a?Number(a):a=this.length;if(a===
b)return"";switch(f){case "hex":f=b;b=this.length;if(!f||0>f)f=0;if(!a||0>a||a>b)a=b;for(b="";f<a;f++)b+=D(this[f]);a=b;break;case "utf8":case "utf-8":var d=b;b=f="";for(a=Math.min(this.length,a);d<a;d++)127>=this[d]?(f+=M(b)+String.fromCharCode(this[d]),b=""):b+="%"+this[d].toString(16);a=f+M(b);break;case "ascii":a=r(this,b,a);break;case "binary":a=r(this,b,a);break;case "base64":f=b;a=0===f&&a===this.length?G.fromByteArray(this):G.fromByteArray(this.slice(f,a));break;case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":a=
this.slice(b,a);f="";for(b=0;b<a.length;b+=2)f+=String.fromCharCode(a[b]+256*a[b+1]);a=f;break;default:throw Error("Unknown encoding");}return a};e.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};e.prototype.copy=function(a,b,d,l){d||(d=0);l||0===l||(l=this.length);b||(b=0);if(l!==d&&0!==a.length&&0!==this.length)if(q(l>=d,"sourceEnd < sourceStart"),q(0<=b&&b<a.length,"targetStart out of bounds"),q(0<=d&&d<this.length,"sourceStart out of bounds"),
q(0<=l&&l<=this.length,"sourceEnd out of bounds"),l>this.length&&(l=this.length),a.length-b<l-d&&(l=a.length-b+d),l-=d,100>l||!e._useTypedArrays)for(var c=0;c<l;c++)a[c+b]=this[c+d];else a._set(this.subarray(d,d+l),b)};e.prototype.slice=function(b,a){var d=this.length;b=B(b,d,0);a=B(a,d,d);if(e._useTypedArrays)return e._augment(this.subarray(b,a));for(var d=a-b,l=new e(d,void 0,!0),c=0;c<d;c++)l[c]=this[c+b];return l};e.prototype.get=function(b){console.log(".get() is deprecated. Access using array indexes instead.");
return this.readUInt8(b)};e.prototype.set=function(b,a){console.log(".set() is deprecated. Access using array indexes instead.");return this.writeUInt8(b,a)};e.prototype.readUInt8=function(b,a){a||(q(void 0!==b&&null!==b,"missing offset"),q(b<this.length,"Trying to read beyond buffer length"));if(!(b>=this.length))return this[b]};e.prototype.readUInt16LE=function(b,a){return u(this,b,!0,a)};e.prototype.readUInt16BE=function(b,a){return u(this,b,!1,a)};e.prototype.readUInt32LE=function(b,a){return A(this,
b,!0,a)};e.prototype.readUInt32BE=function(b,a){return A(this,b,!1,a)};e.prototype.readInt8=function(b,a){a||(q(void 0!==b&&null!==b,"missing offset"),q(b<this.length,"Trying to read beyond buffer length"));if(!(b>=this.length))return this[b]&128?-1*(255-this[b]+1):this[b]};e.prototype.readInt16LE=function(b,a){return h(this,b,!0,a)};e.prototype.readInt16BE=function(b,a){return h(this,b,!1,a)};e.prototype.readInt32LE=function(b,a){return c(this,b,!0,a)};e.prototype.readInt32BE=function(b,a){return c(this,
b,!1,a)};e.prototype.readFloatLE=function(b,a){return g(this,b,!0,a)};e.prototype.readFloatBE=function(b,a){return g(this,b,!1,a)};e.prototype.readDoubleLE=function(b,a){return m(this,b,!0,a)};e.prototype.readDoubleBE=function(b,a){return m(this,b,!1,a)};e.prototype.writeUInt8=function(b,a,d){d||(q(void 0!==b&&null!==b,"missing value"),q(void 0!==a&&null!==a,"missing offset"),q(a<this.length,"trying to write beyond buffer length"),I(b,255));a>=this.length||(this[a]=b)};e.prototype.writeUInt16LE=function(b,
d,l){a(this,b,d,!0,l)};e.prototype.writeUInt16BE=function(b,d,l){a(this,b,d,!1,l)};e.prototype.writeUInt32LE=function(a,d,l){b(this,a,d,!0,l)};e.prototype.writeUInt32BE=function(a,d,l){b(this,a,d,!1,l)};e.prototype.writeInt8=function(b,a,d){d||(q(void 0!==b&&null!==b,"missing value"),q(void 0!==a&&null!==a,"missing offset"),q(a<this.length,"Trying to write beyond buffer length"),J(b,127,-128));a>=this.length||(0<=b?this.writeUInt8(b,a,d):this.writeUInt8(255+b+1,a,d))};e.prototype.writeInt16LE=function(b,
a,l){d(this,b,a,!0,l)};e.prototype.writeInt16BE=function(b,a,l){d(this,b,a,!1,l)};e.prototype.writeInt32LE=function(b,a,d){y(this,b,a,!0,d)};e.prototype.writeInt32BE=function(b,a,d){y(this,b,a,!1,d)};e.prototype.writeFloatLE=function(b,a,d){C(this,b,a,!0,d)};e.prototype.writeFloatBE=function(b,a,d){C(this,b,a,!1,d)};e.prototype.writeDoubleLE=function(b,a,d){z(this,b,a,!0,d)};e.prototype.writeDoubleBE=function(b,a,d){z(this,b,a,!1,d)};e.prototype.fill=function(b,a,d){b||(b=0);a||(a=0);d||(d=this.length);
"string"===typeof b&&(b=b.charCodeAt(0));q("number"===typeof b&&!isNaN(b),"value is not a number");q(d>=a,"end < start");if(d!==a&&0!==this.length)for(q(0<=a&&a<this.length,"start out of bounds"),q(0<=d&&d<=this.length,"end out of bounds");a<d;a++)this[a]=b};e.prototype.inspect=function(){for(var b=[],a=this.length,d=0;d<a;d++)if(b[d]=D(this[d]),d===p.INSPECT_MAX_BYTES){b[d+1]="...";break}return"<Buffer "+b.join(" ")+">"};e.prototype.toArrayBuffer=function(){if("undefined"!==typeof Uint8Array){if(e._useTypedArrays)return(new e(this)).buffer;
for(var b=new Uint8Array(this.length),a=0,d=b.length;a<d;a+=1)b[a]=this[a];return b.buffer}throw Error("Buffer.toArrayBuffer not supported in this browser");};var t=e.prototype;e._augment=function(b){b._isBuffer=!0;b._get=b.get;b._set=b.set;b.get=t.get;b.set=t.set;b.write=t.write;b.toString=t.toString;b.toLocaleString=t.toString;b.toJSON=t.toJSON;b.copy=t.copy;b.slice=t.slice;b.readUInt8=t.readUInt8;b.readUInt16LE=t.readUInt16LE;b.readUInt16BE=t.readUInt16BE;b.readUInt32LE=t.readUInt32LE;b.readUInt32BE=
t.readUInt32BE;b.readInt8=t.readInt8;b.readInt16LE=t.readInt16LE;b.readInt16BE=t.readInt16BE;b.readInt32LE=t.readInt32LE;b.readInt32BE=t.readInt32BE;b.readFloatLE=t.readFloatLE;b.readFloatBE=t.readFloatBE;b.readDoubleLE=t.readDoubleLE;b.readDoubleBE=t.readDoubleBE;b.writeUInt8=t.writeUInt8;b.writeUInt16LE=t.writeUInt16LE;b.writeUInt16BE=t.writeUInt16BE;b.writeUInt32LE=t.writeUInt32LE;b.writeUInt32BE=t.writeUInt32BE;b.writeInt8=t.writeInt8;b.writeInt16LE=t.writeInt16LE;b.writeInt16BE=t.writeInt16BE;
b.writeInt32LE=t.writeInt32LE;b.writeInt32BE=t.writeInt32BE;b.writeFloatLE=t.writeFloatLE;b.writeFloatBE=t.writeFloatBE;b.writeDoubleLE=t.writeDoubleLE;b.writeDoubleBE=t.writeDoubleBE;b.fill=t.fill;b.inspect=t.inspect;b.toArrayBuffer=t.toArrayBuffer;return b}},{"base64-js":4,ieee754:5}],4:[function(k,s,p){(function(e){function r(a){a=a.charCodeAt(0);if(a===k)return 62;if(a===h)return 63;if(a<c)return-1;if(a<c+10)return a-c+52;if(a<m+26)return a-m;if(a<g+26)return a-g+26}var u="undefined"!==typeof Uint8Array?
Uint8Array:Array,k=43,h=47,c=48,g=97,m=65;s.exports.toByteArray=function(a){function b(b){h[e++]=b}var d,c,g,m,h;if(0<a.length%4)throw Error("Invalid string. Length must be a multiple of 4");d=a.length;m="="===a.charAt(d-2)?2:"="===a.charAt(d-1)?1:0;h=new u(3*a.length/4-m);c=0<m?a.length-4:a.length;var e=0;for(d=0;d<c;d+=4)g=r(a.charAt(d))<<18|r(a.charAt(d+1))<<12|r(a.charAt(d+2))<<6|r(a.charAt(d+3)),b((g&16711680)>>16),b((g&65280)>>8),b(g&255);2===m?(g=r(a.charAt(d))<<2|r(a.charAt(d+1))>>4,b(g&255)):
1===m&&(g=r(a.charAt(d))<<10|r(a.charAt(d+1))<<4|r(a.charAt(d+2))>>2,b(g>>8&255),b(g&255));return h};s.exports.fromByteArray=function(a){var b,d=a.length%3,c="",g,m;b=0;for(m=a.length-d;b<m;b+=3)g=(a[b]<<16)+(a[b+1]<<8)+a[b+2],g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(g>>18&63)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(g>>12&63)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(g>>6&63)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(g&
63),c+=g;switch(d){case 1:g=a[a.length-1];c+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(g>>2);c+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(g<<4&63);c+="==";break;case 2:g=(a[a.length-2]<<8)+a[a.length-1],c+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(g>>10),c+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(g>>4&63),c+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(g<<
2&63),c+="="}return c}})()},{}],5:[function(k,s,p){p.read=function(e,r,u,k,h){var c;c=8*h-k-1;var g=(1<<c)-1,m=g>>1,a=-7;h=u?h-1:0;var b=u?-1:1,d=e[r+h];h+=b;u=d&(1<<-a)-1;d>>=-a;for(a+=c;0<a;u=256*u+e[r+h],h+=b,a-=8);c=u&(1<<-a)-1;u>>=-a;for(a+=k;0<a;c=256*c+e[r+h],h+=b,a-=8);if(0===u)u=1-m;else{if(u===g)return c?NaN:Infinity*(d?-1:1);c+=Math.pow(2,k);u-=m}return(d?-1:1)*c*Math.pow(2,u-k)};p.write=function(e,r,u,k,h,c){var g,m=8*c-h-1,a=(1<<m)-1,b=a>>1,d=23===h?Math.pow(2,-24)-Math.pow(2,-77):0;
c=k?0:c-1;var y=k?1:-1,C=0>r||0===r&&0>1/r?1:0;r=Math.abs(r);isNaN(r)||Infinity===r?(r=isNaN(r)?1:0,k=a):(k=Math.floor(Math.log(r)/Math.LN2),1>r*(g=Math.pow(2,-k))&&(k--,g*=2),r=1<=k+b?r+d/g:r+d*Math.pow(2,1-b),2<=r*g&&(k++,g/=2),k+b>=a?(r=0,k=a):1<=k+b?(r=(r*g-1)*Math.pow(2,h),k+=b):(r=r*Math.pow(2,b-1)*Math.pow(2,h),k=0));for(;8<=h;e[u+c]=r&255,c+=y,r/=256,h-=8);k=k<<h|r;for(m+=h;0<m;e[u+c]=k&255,c+=y,k/=256,m-=8);e[u+c-y]|=128*C}},{}],6:[function(k,s,p){function e(){}k=s.exports={};k.nextTick=
function(){if("undefined"!==typeof window&&window.setImmediate)return function(e){return window.setImmediate(e)};if("undefined"!==typeof window&&window.postMessage&&window.addEventListener){var e=[];window.addEventListener("message",function(k){var p=k.source;p!==window&&null!==p||"process-tick"!==k.data||(k.stopPropagation(),0<e.length&&e.shift()())},!0);return function(k){e.push(k);window.postMessage("process-tick","*")}}return function(e){setTimeout(e,0)}}();k.title="browser";k.browser=!0;k.env=
{};k.argv=[];k.on=e;k.once=e;k.off=e;k.emit=e;k.binding=function(e){throw Error("process.binding is not supported");};k.cwd=function(){return"/"};k.chdir=function(e){throw Error("process.chdir is not supported");}},{}],7:[function(k,s,p){(function(e){function k(c,g){for(var m=0,a=c.length-1;0<=a;a--){var b=c[a];"."===b?c.splice(a,1):".."===b?(c.splice(a,1),m++):m&&(c.splice(a,1),m--)}if(g)for(;m--;m)c.unshift("..");return c}function u(c,g){if(c.filter)return c.filter(g);for(var m=[],a=0;a<c.length;a++)g(c[a],
a,c)&&m.push(c[a]);return m}var s=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;p.resolve=function(){for(var c="",g=!1,m=arguments.length-1;-1<=m&&!g;m--){var a=0<=m?arguments[m]:e.cwd();if("string"!==typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(c=a+"/"+c,g="/"===a.charAt(0))}c=k(u(c.split("/"),function(b){return!!b}),!g).join("/");return(g?"/":"")+c||"."};p.normalize=function(c){var g=p.isAbsolute(c),m="/"===h(c,-1);(c=k(u(c.split("/"),function(a){return!!a}),
!g).join("/"))||g||(c=".");c&&m&&(c+="/");return(g?"/":"")+c};p.isAbsolute=function(c){return"/"===c.charAt(0)};p.join=function(){var c=Array.prototype.slice.call(arguments,0);return p.normalize(u(c,function(c,m){if("string"!==typeof c)throw new TypeError("Arguments to path.join must be strings");return c}).join("/"))};p.relative=function(c,g){function m(b){for(var a=0;a<b.length&&""===b[a];a++);for(var d=b.length-1;0<=d&&""===b[d];d--);return a>d?[]:b.slice(a,d-a+1)}c=p.resolve(c).substr(1);g=p.resolve(g).substr(1);
for(var a=m(c.split("/")),b=m(g.split("/")),d=Math.min(a.length,b.length),e=d,h=0;h<d;h++)if(a[h]!==b[h]){e=h;break}d=[];for(h=e;h<a.length;h++)d.push("..");d=d.concat(b.slice(e));return d.join("/")};p.sep="/";p.delimiter=":";p.dirname=function(c){var g=s.exec(c).slice(1);c=g[0];g=g[1];if(!c&&!g)return".";g&&(g=g.substr(0,g.length-1));return c+g};p.basename=function(c,g){var m=s.exec(c).slice(1)[2];g&&m.substr(-1*g.length)===g&&(m=m.substr(0,m.length-g.length));return m};p.extname=function(c){return s.exec(c).slice(1)[3]};
var h="b"==="ab".substr(-1)?function(c,g,m){return c.substr(g,m)}:function(c,g,m){0>g&&(g=c.length+g);return c.substr(g,m)}}).call(this,k("node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js"))},{"node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":6}],8:[function(k,s,p){p.SourceMapGenerator=k("./source-map/source-map-generator").SourceMapGenerator;p.SourceMapConsumer=k("./source-map/source-map-consumer").SourceMapConsumer;
p.SourceNode=k("./source-map/source-node").SourceNode},{"./source-map/source-map-consumer":13,"./source-map/source-map-generator":14,"./source-map/source-node":15}],9:[function(k,s,p){if("function"!==typeof e)var e=k("amdefine")(s,k);e(function(e,k,p){function h(){this._array=[];this._set={}}var c=e("./util");h.fromArray=function(c,m){for(var a=new h,b=0,d=c.length;b<d;b++)a.add(c[b],m);return a};h.prototype.add=function(g,m){var a=this.has(g),b=this._array.length;a&&!m||this._array.push(g);a||(this._set[c.toSetString(g)]=
b)};h.prototype.has=function(g){return Object.prototype.hasOwnProperty.call(this._set,c.toSetString(g))};h.prototype.indexOf=function(g){if(this.has(g))return this._set[c.toSetString(g)];throw Error('"'+g+'" is not in the set.');};h.prototype.at=function(c){if(0<=c&&c<this._array.length)return this._array[c];throw Error("No element indexed by "+c);};h.prototype.toArray=function(){return this._array.slice()};k.ArraySet=h})},{"./util":16,amdefine:17}],10:[function(k,s,p){if("function"!==typeof e)var e=
k("amdefine")(s,k);e(function(e,k,p){var h=e("./base64");k.encode=function(c){var g="",m=0>c?(-c<<1)+1:(c<<1)+0;do c=m&31,m>>>=5,0<m&&(c|=32),g+=h.encode(c);while(0<m);return g};k.decode=function(c){var g=0,m=c.length,a=0,b=0,d,e;do{if(g>=m)throw Error("Expected more digits in base 64 VLQ value.");e=h.decode(c.charAt(g++));d=!!(e&32);e&=31;a+=e<<b;b+=5}while(d);m=a>>1;return{value:1===(a&1)?-m:m,rest:c.slice(g)}}})},{"./base64":11,amdefine:17}],11:[function(k,s,p){if("function"!==typeof e)var e=k("amdefine")(s,
k);e(function(e,k,p){var h={},c={};"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("").forEach(function(g,e){h[g]=e;c[e]=g});k.encode=function(g){if(g in c)return c[g];throw new TypeError("Must be between 0 and 63: "+g);};k.decode=function(c){if(c in h)return h[c];throw new TypeError("Not a valid base 64 digit: "+c);}})},{amdefine:17}],12:[function(k,s,p){if("function"!==typeof e)var e=k("amdefine")(s,k);e(function(e,k,p){function h(c,g,e,a,b){var d=Math.floor((g-c)/2)+c,
k=b(e,a[d],!0);return 0===k?a[d]:0<k?1<g-d?h(d,g,e,a,b):a[d]:1<d-c?h(c,d,e,a,b):0>c?null:a[c]}k.search=function(c,g,e){return 0<g.length?h(-1,g.length,c,g,e):null}})},{amdefine:17}],13:[function(k,s,p){if("function"!==typeof e)var e=k("amdefine")(s,k);e(function(e,k,p){function h(b){var a=b;"string"===typeof b&&(a=JSON.parse(b.replace(/^\)\]\}'/,"")));b=c.getArg(a,"version");var e=c.getArg(a,"sources"),g=c.getArg(a,"names",[]),h=c.getArg(a,"sourceRoot",null),k=c.getArg(a,"sourcesContent",null),v=
c.getArg(a,"mappings"),a=c.getArg(a,"file",null);if(b!=this._version)throw Error("Unsupported version: "+b);this._names=m.fromArray(g,!0);this._sources=m.fromArray(e,!0);this.sourceRoot=h;this.sourcesContent=k;this._mappings=v;this.file=a}var c=e("./util"),g=e("./binary-search"),m=e("./array-set").ArraySet,a=e("./base64-vlq");h.fromSourceMap=function(b){var a=Object.create(h.prototype);a._names=m.fromArray(b._names.toArray(),!0);a._sources=m.fromArray(b._sources.toArray(),!0);a.sourceRoot=b._sourceRoot;
a.sourcesContent=b._generateSourcesContent(a._sources.toArray(),a.sourceRoot);a.file=b._file;a.__generatedMappings=b._mappings.slice().sort(c.compareByGeneratedPositions);a.__originalMappings=b._mappings.slice().sort(c.compareByOriginalPositions);return a};h.prototype._version=3;Object.defineProperty(h.prototype,"sources",{get:function(){return this._sources.toArray().map(function(b){return this.sourceRoot?c.join(this.sourceRoot,b):b},this)}});h.prototype.__generatedMappings=null;Object.defineProperty(h.prototype,
"_generatedMappings",{get:function(){this.__generatedMappings||(this.__generatedMappings=[],this.__originalMappings=[],this._parseMappings(this._mappings,this.sourceRoot));return this.__generatedMappings}});h.prototype.__originalMappings=null;Object.defineProperty(h.prototype,"_originalMappings",{get:function(){this.__originalMappings||(this.__generatedMappings=[],this.__originalMappings=[],this._parseMappings(this._mappings,this.sourceRoot));return this.__originalMappings}});h.prototype._parseMappings=
function(b,d){for(var e=1,g=0,h=0,m=0,k=0,x=0,p=/^[,;]/,l=b,w;0<l.length;)if(";"===l.charAt(0))e++,l=l.slice(1),g=0;else if(","===l.charAt(0))l=l.slice(1);else{w={};w.generatedLine=e;l=a.decode(l);w.generatedColumn=g+l.value;g=w.generatedColumn;l=l.rest;if(0<l.length&&!p.test(l.charAt(0))){l=a.decode(l);w.source=this._sources.at(k+l.value);k+=l.value;l=l.rest;if(0===l.length||p.test(l.charAt(0)))throw Error("Found a source, but no line and column");l=a.decode(l);w.originalLine=h+l.value;h=w.originalLine;
w.originalLine+=1;l=l.rest;if(0===l.length||p.test(l.charAt(0)))throw Error("Found a source and line, but no column");l=a.decode(l);w.originalColumn=m+l.value;m=w.originalColumn;l=l.rest;0<l.length&&!p.test(l.charAt(0))&&(l=a.decode(l),w.name=this._names.at(x+l.value),x+=l.value,l=l.rest)}this.__generatedMappings.push(w);"number"===typeof w.originalLine&&this.__originalMappings.push(w)}this.__generatedMappings.sort(c.compareByGeneratedPositions);this.__originalMappings.sort(c.compareByOriginalPositions)};
h.prototype._findMapping=function(b,a,c,e,h){if(0>=b[c])throw new TypeError("Line must be greater than or equal to 1, got "+b[c]);if(0>b[e])throw new TypeError("Column must be greater than or equal to 0, got "+b[e]);return g.search(b,a,h)};h.prototype.originalPositionFor=function(b){b={generatedLine:c.getArg(b,"line"),generatedColumn:c.getArg(b,"column")};if(b=this._findMapping(b,this._generatedMappings,"generatedLine","generatedColumn",c.compareByGeneratedPositions)){var a=c.getArg(b,"source",null);
a&&this.sourceRoot&&(a=c.join(this.sourceRoot,a));return{source:a,line:c.getArg(b,"originalLine",null),column:c.getArg(b,"originalColumn",null),name:c.getArg(b,"name",null)}}return{source:null,line:null,column:null,name:null}};h.prototype.sourceContentFor=function(b){if(!this.sourcesContent)return null;this.sourceRoot&&(b=c.relative(this.sourceRoot,b));if(this._sources.has(b))return this.sourcesContent[this._sources.indexOf(b)];var a;if(this.sourceRoot&&(a=c.urlParse(this.sourceRoot))){var e=b.replace(/^file:\/\//,
"");if("file"==a.scheme&&this._sources.has(e))return this.sourcesContent[this._sources.indexOf(e)];if((!a.path||"/"==a.path)&&this._sources.has("/"+b))return this.sourcesContent[this._sources.indexOf("/"+b)]}throw Error('"'+b+'" is not in the SourceMap.');};h.prototype.generatedPositionFor=function(b){b={source:c.getArg(b,"source"),originalLine:c.getArg(b,"line"),originalColumn:c.getArg(b,"column")};this.sourceRoot&&(b.source=c.relative(this.sourceRoot,b.source));return(b=this._findMapping(b,this._originalMappings,
"originalLine","originalColumn",c.compareByOriginalPositions))?{line:c.getArg(b,"generatedLine",null),column:c.getArg(b,"generatedColumn",null)}:{line:null,column:null}};h.GENERATED_ORDER=1;h.ORIGINAL_ORDER=2;h.prototype.eachMapping=function(b,a,e){a=a||null;switch(e||h.GENERATED_ORDER){case h.GENERATED_ORDER:e=this._generatedMappings;break;case h.ORIGINAL_ORDER:e=this._originalMappings;break;default:throw Error("Unknown order of iteration.");}var g=this.sourceRoot;e.map(function(b){var a=b.source;
a&&g&&(a=c.join(g,a));return{source:a,generatedLine:b.generatedLine,generatedColumn:b.generatedColumn,originalLine:b.originalLine,originalColumn:b.originalColumn,name:b.name}}).forEach(b,a)};k.SourceMapConsumer=h})},{"./array-set":9,"./base64-vlq":10,"./binary-search":12,"./util":16,amdefine:17}],14:[function(k,s,p){if("function"!==typeof e)var e=k("amdefine")(s,k);e(function(e,k,p){function h(a){this._file=g.getArg(a,"file");this._sourceRoot=g.getArg(a,"sourceRoot",null);this._sources=new m;this._names=
new m;this._mappings=[];this._sourcesContents=null}var c=e("./base64-vlq"),g=e("./util"),m=e("./array-set").ArraySet;h.prototype._version=3;h.fromSourceMap=function(a){var b=a.sourceRoot,d=new h({file:a.file,sourceRoot:b});a.eachMapping(function(a){var c={generated:{line:a.generatedLine,column:a.generatedColumn}};a.source&&(c.source=a.source,b&&(c.source=g.relative(b,c.source)),c.original={line:a.originalLine,column:a.originalColumn},a.name&&(c.name=a.name));d.addMapping(c)});a.sources.forEach(function(b){var c=
a.sourceContentFor(b);c&&d.setSourceContent(b,c)});return d};h.prototype.addMapping=function(a){var b=g.getArg(a,"generated"),d=g.getArg(a,"original",null),c=g.getArg(a,"source",null);a=g.getArg(a,"name",null);this._validateMapping(b,d,c,a);c&&!this._sources.has(c)&&this._sources.add(c);a&&!this._names.has(a)&&this._names.add(a);this._mappings.push({generatedLine:b.line,generatedColumn:b.column,originalLine:null!=d&&d.line,originalColumn:null!=d&&d.column,source:c,name:a})};h.prototype.setSourceContent=
function(a,b){var d=a;this._sourceRoot&&(d=g.relative(this._sourceRoot,d));null!==b?(this._sourcesContents||(this._sourcesContents={}),this._sourcesContents[g.toSetString(d)]=b):(delete this._sourcesContents[g.toSetString(d)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))};h.prototype.applySourceMap=function(a,b){b||(b=a.file);var d=this._sourceRoot;d&&(b=g.relative(d,b));var c=new m,e=new m;this._mappings.forEach(function(h){if(h.source===b&&h.originalLine){var m=a.originalPositionFor({line:h.originalLine,
column:h.originalColumn});null!==m.source&&(h.source=d?g.relative(d,m.source):m.source,h.originalLine=m.line,h.originalColumn=m.column,null!==m.name&&null!==h.name&&(h.name=m.name))}(m=h.source)&&!c.has(m)&&c.add(m);(h=h.name)&&!e.has(h)&&e.add(h)},this);this._sources=c;this._names=e;a.sources.forEach(function(b){var c=a.sourceContentFor(b);c&&(d&&(b=g.relative(d,b)),this.setSourceContent(b,c))},this)};h.prototype._validateMapping=function(a,b,d,c){if(!(a&&"line"in a&&"column"in a&&0<a.line&&0<=a.column&&
!b&&!d&&!c||a&&"line"in a&&"column"in a&&b&&"line"in b&&"column"in b&&0<a.line&&0<=a.column&&0<b.line&&0<=b.column&&d))throw Error("Invalid mapping: "+JSON.stringify({generated:a,source:d,original:b,name:c}));};h.prototype._serializeMappings=function(){var a=0,b=1,d=0,e=0,h=0,m=0,k="",v;this._mappings.sort(g.compareByGeneratedPositions);for(var x=0,p=this._mappings.length;x<p;x++){v=this._mappings[x];if(v.generatedLine!==b)for(a=0;v.generatedLine!==b;)k+=";",b++;else if(0<x){if(!g.compareByGeneratedPositions(v,
this._mappings[x-1]))continue;k+=","}k+=c.encode(v.generatedColumn-a);a=v.generatedColumn;v.source&&(k+=c.encode(this._sources.indexOf(v.source)-m),m=this._sources.indexOf(v.source),k+=c.encode(v.originalLine-1-e),e=v.originalLine-1,k+=c.encode(v.originalColumn-d),d=v.originalColumn,v.name&&(k+=c.encode(this._names.indexOf(v.name)-h),h=this._names.indexOf(v.name)))}return k};h.prototype._generateSourcesContent=function(a,b){return a.map(function(a){if(!this._sourcesContents)return null;b&&(a=g.relative(b,
a));a=g.toSetString(a);return Object.prototype.hasOwnProperty.call(this._sourcesContents,a)?this._sourcesContents[a]:null},this)};h.prototype.toJSON=function(){var a={version:this._version,file:this._file,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};this._sourceRoot&&(a.sourceRoot=this._sourceRoot);this._sourcesContents&&(a.sourcesContent=this._generateSourcesContent(a.sources,a.sourceRoot));return a};h.prototype.toString=function(){return JSON.stringify(this)};
k.SourceMapGenerator=h})},{"./array-set":9,"./base64-vlq":10,"./util":16,amdefine:17}],15:[function(k,s,p){if("function"!==typeof e)var e=k("amdefine")(s,k);e(function(e,k,p){function h(c,a,b,d,e){this.children=[];this.sourceContents={};this.line=void 0===c?null:c;this.column=void 0===a?null:a;this.source=void 0===b?null:b;this.name=void 0===e?null:e;null!=d&&this.add(d)}var c=e("./source-map-generator").SourceMapGenerator,g=e("./util");h.fromStringWithSourceMap=function(c,a){function b(b,a){null===
b||void 0===b.source?d.add(a):d.add(new h(b.originalLine,b.originalColumn,b.source,a,b.name))}var d=new h,e=c.split("\n"),g=1,k=0,p=null;a.eachMapping(function(a){if(null===p){for(;g<a.generatedLine;)d.add(e.shift()+"\n"),g++;if(k<a.generatedColumn){var c=e[0];d.add(c.substr(0,a.generatedColumn));e[0]=c.substr(a.generatedColumn);k=a.generatedColumn}}else{if(g<a.generatedLine){var h="";do h+=e.shift()+"\n",g++,k=0;while(g<a.generatedLine);k<a.generatedColumn&&(c=e[0],h+=c.substr(0,a.generatedColumn),
e[0]=c.substr(a.generatedColumn),k=a.generatedColumn)}else c=e[0],h=c.substr(0,a.generatedColumn-k),e[0]=c.substr(a.generatedColumn-k),k=a.generatedColumn;b(p,h)}p=a},this);b(p,e.join("\n"));a.sources.forEach(function(b){var c=a.sourceContentFor(b);c&&d.setSourceContent(b,c)});return d};h.prototype.add=function(c){if(Array.isArray(c))c.forEach(function(a){this.add(a)},this);else if(c instanceof h||"string"===typeof c)c&&this.children.push(c);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+
c);return this};h.prototype.prepend=function(c){if(Array.isArray(c))for(var a=c.length-1;0<=a;a--)this.prepend(c[a]);else if(c instanceof h||"string"===typeof c)this.children.unshift(c);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+c);return this};h.prototype.walk=function(c){for(var a,b=0,d=this.children.length;b<d;b++)a=this.children[b],a instanceof h?a.walk(c):""!==a&&c(a,{source:this.source,line:this.line,column:this.column,name:this.name})};
h.prototype.join=function(c){var a,b,d=this.children.length;if(0<d){a=[];for(b=0;b<d-1;b++)a.push(this.children[b]),a.push(c);a.push(this.children[b]);this.children=a}return this};h.prototype.replaceRight=function(c,a){var b=this.children[this.children.length-1];b instanceof h?b.replaceRight(c,a):"string"===typeof b?this.children[this.children.length-1]=b.replace(c,a):this.children.push("".replace(c,a));return this};h.prototype.setSourceContent=function(c,a){this.sourceContents[g.toSetString(c)]=
a};h.prototype.walkSourceContents=function(c){for(var a=0,b=this.children.length;a<b;a++)this.children[a]instanceof h&&this.children[a].walkSourceContents(c);for(var d=Object.keys(this.sourceContents),a=0,b=d.length;a<b;a++)c(g.fromSetString(d[a]),this.sourceContents[d[a]])};h.prototype.toString=function(){var c="";this.walk(function(a){c+=a});return c};h.prototype.toStringWithSourceMap=function(e){var a="",b=1,d=0,g=new c(e),h=!1,k=null,p=null,v=null,x=null;this.walk(function(c,l){a+=c;null!==l.source&&
null!==l.line&&null!==l.column?(k===l.source&&p===l.line&&v===l.column&&x===l.name||g.addMapping({source:l.source,original:{line:l.line,column:l.column},generated:{line:b,column:d},name:l.name}),k=l.source,p=l.line,v=l.column,x=l.name,h=!0):h&&(g.addMapping({generated:{line:b,column:d}}),k=null,h=!1);c.split("").forEach(function(a){"\n"===a?(b++,d=0):d++})});this.walkSourceContents(function(b,a){g.setSourceContent(b,a)});return{code:a,map:g}};k.SourceNode=h})},{"./source-map-generator":14,"./util":16,
amdefine:17}],16:[function(k,s,p){if("function"!==typeof e)var e=k("amdefine")(s,k);e(function(e,k,p){function h(b){return(b=b.match(m))?{scheme:b[1],auth:b[3],host:b[4],port:b[6],path:b[7]}:null}function c(b){var a=b.scheme+"://";b.auth&&(a+=b.auth+"@");b.host&&(a+=b.host);b.port&&(a+=":"+b.port);b.path&&(a+=b.path);return a}function g(a,d){var c=a||"",e=d||"";return(c>e)-(c<e)}k.getArg=function(a,d,c){if(d in a)return a[d];if(3===arguments.length)return c;throw Error('"'+d+'" is a required argument.');
};var m=/([\w+\-.]+):\/\/((\w+:\w+)@)?([\w.]+)?(:(\d+))?(\S+)?/,a=/^data:.+\,.+/;k.urlParse=h;k.urlGenerate=c;k.join=function(b,d){var e;return d.match(m)||d.match(a)?d:"/"===d.charAt(0)&&(e=h(b))?(e.path=d,c(e)):b.replace(/\/$/,"")+"/"+d};k.toSetString=function(a){return"$"+a};k.fromSetString=function(a){return a.substr(1)};k.relative=function(a,d){a=a.replace(/\/$/,"");var c=h(a);return"/"==d.charAt(0)&&c&&"/"==c.path?d.slice(1):0===d.indexOf(a+"/")?d.substr(a.length+1):d};k.compareByOriginalPositions=
function(a,d,c){var e;return(e=g(a.source,d.source))||(e=a.originalLine-d.originalLine)||(e=a.originalColumn-d.originalColumn)||c||(e=g(a.name,d.name))?e:(e=a.generatedLine-d.generatedLine)?e:a.generatedColumn-d.generatedColumn};k.compareByGeneratedPositions=function(a,d,c){var e;return(e=a.generatedLine-d.generatedLine)||(e=a.generatedColumn-d.generatedColumn)||c||(e=g(a.source,d.source))||(e=a.originalLine-d.originalLine)?e:(e=a.originalColumn-d.originalColumn)?e:g(a.name,d.name)}})},{amdefine:17}],
17:[function(k,s,p){(function(e,p){s.exports=function(u,s){function h(a,b){var d;if(a&&"."===a.charAt(0)&&b){d=b.split("/");d=d.slice(0,d.length-1);var c=d=d.concat(a.split("/")),e,g;for(e=0;c[e];e+=1)if(g=c[e],"."===g)c.splice(e,1),e-=1;else if(".."===g)if(1!==e||".."!==c[2]&&".."!==c[0])0<e&&(c.splice(e-1,2),e-=2);else break;a=d.join("/")}return a}function c(a){return function(b){return h(b,a)}}function g(a){function b(c){d[a]=c}b.fromText=function(a,b){throw Error("amdefine does not implement load.fromText");
};return b}function m(a,b,c){var e,g,h;if(a)g=d[a]={},h={id:a,uri:p,exports:g},e=z(s,g,h,a);else{if(y)throw Error("amdefine with no module ID cannot be called more than once per file.");y=!0;g=u.exports;h=u;e=z(s,g,h,u.id)}b&&(b=b.map(function(a){return e(a)}));b="function"===typeof c?c.apply(h.exports,b):c;void 0!==b&&(h.exports=b,a&&(d[a]=h.exports))}function a(a,c,d){Array.isArray(a)?(d=c,c=a,a=void 0):"string"!==typeof a&&(d=a,a=c=void 0);c&&!Array.isArray(c)&&(d=c,c=void 0);c||(c=["require",
"exports","module"]);a?b[a]=[a,c,d]:m(a,c,d)}var b={},d={},y=!1,C=k("path"),z,B;z=function(a,b,c,d){function g(h,k){if("string"===typeof h)return B(a,b,c,h,d);h=h.map(function(e){return B(a,b,c,e,d)});e.nextTick(function(){k.apply(null,h)})}g.toUrl=function(a){return 0===a.indexOf(".")?h(a,C.dirname(c.filename)):a};return g};s=s||function(){return u.require.apply(u,arguments)};B=function(a,e,k,l,w){var p=l.indexOf("!"),r=l;if(-1===p){l=h(l,w);if("require"===l)return z(a,e,k,w);if("exports"===l)return e;
if("module"===l)return k;if(d.hasOwnProperty(l))return d[l];if(b[l])return m.apply(null,b[l]),d[l];if(a)return a(r);throw Error("No module with ID: "+l);}r=l.substring(0,p);l=l.substring(p+1,l.length);p=B(a,e,k,r,w);l=p.normalize?p.normalize(l,c(w)):h(l,w);d[l]||p.load(l,z(a,e,k,w),g(l),{});return d[l]};a.require=function(a){if(d[a])return d[a];if(b[a])return m.apply(null,b[a]),d[a]};a.amd={};return a}}).call(this,k("node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js"),
"/node_modules/source-map/node_modules/amdefine/amdefine.js")},{"node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":6,path:7}],18:[function(k,s,p){(function(e,r){function s(a){if(a in x)return x[a];try{if("undefined"!==typeof window){var b=new XMLHttpRequest;b.open("GET",a,!1);b.send(null);var c=4===b.readyState?b.responseText:null}else c=z.readFileSync(a,"utf8")}catch(d){c=null}return x[a]=c}function A(a,b){if(!a)return b;var c=C.dirname(a),d=/^\w+:\/\/[^\/]*/.exec(c),
d=d?d[0]:"";return d+C.resolve(c.slice(d.length),b)}function h(a){var b=s(a),b=/\/\/[#@]\s*sourceMappingURL=(.*)\s*$/m.exec(b);if(!b)return null;b=b[1];"data:application/json;base64,"==b.slice(0,29).toLowerCase()?(a=(new r(b.slice(29),"base64")).toString(),b=null):(b=A(a,b),a=s(b,"utf8"));return a?{url:b,map:a}:null}function c(a){var b=D[a.source];if(!b){var c=h(a.source);c&&(b=D[a.source]={url:c.url,map:new y(c.map)},b.map.sourcesContent&&b.map.sources.forEach(function(a,c){var d=b.map.sourcesContent[c];
if(d){var e=A(b.url,a);x[e]=d}}))}return b&&(c=b.map.originalPositionFor(a),null!==c.source)?(c.source=A(b.url,c.source),c):a}function g(a){var b=/^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(a);return b?(a=c({source:b[2],line:b[3],column:b[4]-1}),"eval at "+b[1]+" ("+a.source+":"+a.line+":"+(a.column+1)+")"):(b=/^eval at ([^(]+) \((.+)\)$/.exec(a))?"eval at "+b[1]+" ("+g(b[2])+")":a}function m(a){var b=a.getFileName()||a.getScriptNameOrSourceURL();if(b){var d=c({source:b,line:a.getLineNumber(),column:a.getColumnNumber()-
1});return{__proto__:a,getFileName:function(){return d.source},getLineNumber:function(){return d.line},getColumnNumber:function(){return d.column+1},getScriptNameOrSourceURL:function(){return d.source}}}var e=a.isEval()&&a.getEvalOrigin();return e?(e=g(e),{__proto__:a,getEvalOrigin:function(){return e}}):a}function a(a,b){v&&(x={},D={});return a+b.map(function(a){return"\n at "+m(a)}).join("")}function b(a){var b=/\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(a.stack);if(b){a=b[1];var c=+b[2],b=+b[3],
d=x[a];!d&&z.existsSync(a)&&(d=z.readFileSync(a,"utf8"));if(d&&(d=d.split(/(?:\r\n|\r|\n)/)[c-1]))return"\n"+a+":"+c+"\n"+d+"\n"+Array(b).join(" ")+"^"}return null}function d(a){if(a&&a.stack){var c=b(a);null!==c&&console.log(c);console.log(a.stack)}else console.log("Uncaught exception:",a);e.exit(1)}var y=k("source-map").SourceMapConsumer,C=k("path"),z=k("fs"),B=!1,v=!1,x={},D={};p.wrapCallSite=m;p.getErrorSource=b;p.mapSourcePosition=c;p.retrieveSourceMap=h;p.install=function(b){if(!B){B=!0;Error.prepareStackTrace=
a;b=b||{};var c="handleUncaughtExceptions"in b?b.handleUncaughtExceptions:!0;v="emptyCacheBetweenOperations"in b?b.emptyCacheBetweenOperations:!1;b.retrieveFile&&(s=b.retrieveFile);b.retrieveSourceMap&&(h=b.retrieveSourceMap);if(c&&"undefined"===typeof window)e.on("uncaughtException",d)}}}).call(this,k("node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js"),k("buffer").Buffer)},{"node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":6,
buffer:3,fs:2,path:7,"source-map":8}]},{},[1]);return H});

@@ -1,2 +0,2 @@

// Generated by CoffeeScript 1.6.3
// Generated by CoffeeScript 1.7.1
(function() {

@@ -24,4 +24,2 @@ define(['browser-source-map-support'], function(sourceMapSupport) {

/*
//@ sourceMappingURL=script.map
*/
//# sourceMappingURL=script.map

@@ -5,116 +5,84 @@ /*

*/
(this.define||function(M,N){this.sourceMapSupport=N()})("browser-source-map-support",function(M){(function m(x,h,w){function B(b,k){if(!h[b]){if(!x[b]){var g="function"==typeof require&&require;if(!k&&g)return g(b,!0);if(D)return D(b,!0);throw Error("Cannot find module '"+b+"'");}g=h[b]={exports:{}};x[b][0].call(g.exports,function(f){var a=x[b][1][f];return B(a?a:f)},g,g.exports,m,x,h,w)}return h[b].exports}for(var D="function"==typeof require&&require,q=0;q<w.length;q++)B(w[q]);return B})({1:[function(m,
x,h){M=m("./source-map-support")},{"./source-map-support":18}],2:[function(m,x,h){function w(a){return"[object Array]"===g.call(a)}function B(a,e){var b;if(null===a)b={__proto__:null};else{if("object"!==typeof a)throw new TypeError("typeof prototype["+typeof a+"] != 'object'");b=function(){};b.prototype=a;b=new b;b.__proto__=a}"undefined"!==typeof e&&Object.defineProperties&&Object.defineProperties(b,e);return b}function D(a){return"object"!=typeof a&&"function"!=typeof a||null===a}function q(a){if(D(a))throw new TypeError("Object.keys called on a non-object");
var b=[],e;for(e in a)f.call(a,e)&&b.push(e);return b}function b(a){if(D(a))throw new TypeError("Object.getOwnPropertyNames called on a non-object");var b=q(a);h.isArray(a)&&-1===h.indexOf(a,"length")&&b.push("length");return b}function k(a,b){return{value:a[b]}}var g=Object.prototype.toString,f=Object.prototype.hasOwnProperty;h.isArray="function"===typeof Array.isArray?Array.isArray:w;h.indexOf=function(a,b){if(a.indexOf)return a.indexOf(b);for(var e=0;e<a.length;e++)if(b===a[e])return e;return-1};
h.filter=function(a,b){if(a.filter)return a.filter(b);for(var e=[],f=0;f<a.length;f++)b(a[f],f,a)&&e.push(a[f]);return e};h.forEach=function(a,b,e){if(a.forEach)return a.forEach(b,e);for(var f=0;f<a.length;f++)b.call(e,a[f],f,a)};h.map=function(a,b){if(a.map)return a.map(b);for(var e=Array(a.length),f=0;f<a.length;f++)e[f]=b(a[f],f,a);return e};h.reduce=function(a,b,e){if(a.reduce)return a.reduce(b,e);var f,t=!1;2<arguments.length&&(f=e,t=!0);for(var d=0,c=a.length;c>d;++d)a.hasOwnProperty(d)&&(t?
f=b(f,a[d],d,a):(f=a[d],t=!0));return f};"b"!=="ab".substr(-1)?h.substr=function(a,b,e){0>b&&(b=a.length+b);return a.substr(b,e)}:h.substr=function(a,b,e){return a.substr(b,e)};h.trim=function(a){return a.trim?a.trim():a.replace(/^\s+|\s+$/g,"")};h.bind=function(){var a=Array.prototype.slice.call(arguments),b=a.shift();if(b.bind)return b.bind.apply(b,a);var e=a.shift();return function(){b.apply(e,a.concat([Array.prototype.slice.call(arguments)]))}};h.create="function"===typeof Object.create?Object.create:
B;var a="function"===typeof Object.keys?Object.keys:q,e="function"===typeof Object.getOwnPropertyNames?Object.getOwnPropertyNames:b;if(Error().hasOwnProperty("description")){var p=function(a,b){"[object Error]"===g.call(a)&&(b=h.filter(b,function(a){return"description"!==a&&"number"!==a&&"message"!==a}));return b};h.keys=function(b){return p(b,a(b))};h.getOwnPropertyNames=function(a){return p(a,e(a))}}else h.keys=a,h.getOwnPropertyNames=e;if("function"===typeof Object.getOwnPropertyDescriptor)try{Object.getOwnPropertyDescriptor({a:1},
"a"),h.getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor}catch(n){h.getOwnPropertyDescriptor=function(a,b){try{return Object.getOwnPropertyDescriptor(a,b)}catch(e){return k(a,b)}}}else h.getOwnPropertyDescriptor=k},{}],3:[function(m,x,h){},{}],4:[function(m,x,h){function w(b,g){for(var f=0,a=b.length-1;0<=a;a--){var e=b[a];"."===e?b.splice(a,1):".."===e?(b.splice(a,1),f++):f&&(b.splice(a,1),f--)}if(g)for(;f--;f)b.unshift("..");return b}var B=m("__browserify_process"),D=m("util"),q=m("_shims"),
b=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;h.resolve=function(){for(var b="",g=!1,f=arguments.length-1;-1<=f&&!g;f--){var a=0<=f?arguments[f]:B.cwd();if(!D.isString(a))throw new TypeError("Arguments to path.resolve must be strings");a&&(b=a+"/"+b,g="/"===a.charAt(0))}b=w(q.filter(b.split("/"),function(a){return!!a}),!g).join("/");return(g?"/":"")+b||"."};h.normalize=function(b){var g=h.isAbsolute(b),f="/"===q.substr(b,-1);(b=w(q.filter(b.split("/"),function(a){return!!a}),!g).join("/"))||
g||(b=".");b&&f&&(b+="/");return(g?"/":"")+b};h.isAbsolute=function(b){return"/"===b.charAt(0)};h.join=function(){var b=Array.prototype.slice.call(arguments,0);return h.normalize(q.filter(b,function(b,f){if(!D.isString(b))throw new TypeError("Arguments to path.join must be strings");return b}).join("/"))};h.relative=function(b,g){function f(a){for(var b=0;b<a.length&&""===a[b];b++);for(var e=a.length-1;0<=e&&""===a[e];e--);return b>e?[]:a.slice(b,e-b+1)}b=h.resolve(b).substr(1);g=h.resolve(g).substr(1);
for(var a=f(b.split("/")),e=f(g.split("/")),p=Math.min(a.length,e.length),n=p,v=0;v<p;v++)if(a[v]!==e[v]){n=v;break}p=[];for(v=n;v<a.length;v++)p.push("..");p=p.concat(e.slice(n));return p.join("/")};h.sep="/";h.delimiter=":";h.dirname=function(k){var g=b.exec(k).slice(1);k=g[0];g=g[1];if(!k&&!g)return".";g&&(g=g.substr(0,g.length-1));return k+g};h.basename=function(k,g){var f=b.exec(k).slice(1)[2];g&&f.substr(-1*g.length)===g&&(f=f.substr(0,f.length-g.length));return f};h.extname=function(k){return b.exec(k).slice(1)[3]}},
{__browserify_process:7,_shims:2,util:5}],5:[function(m,x,h){function w(c,a){var d={seen:[],stylize:D};3<=arguments.length&&(d.depth=arguments[2]);4<=arguments.length&&(d.colors=arguments[3]);p(a)?d.showHidden=a:a&&h._extend(d,a);s(d.showHidden)&&(d.showHidden=!1);s(d.depth)&&(d.depth=2);s(d.colors)&&(d.colors=!1);s(d.customInspect)&&(d.customInspect=!0);d.colors&&(d.stylize=B);return b(d,c,d.depth)}function B(c,a){var d=w.styles[a];return d?"\u001b["+w.colors[d][0]+"m"+c+"\u001b["+w.colors[d][1]+
"m":c}function D(c,a){return c}function q(c){var a={};F.forEach(c,function(c,z){a[c]=!0});return a}function b(u,n,p){if(u.customInspect&&n&&c(n.inspect)&&n.inspect!==h.inspect&&(!n.constructor||n.constructor.prototype!==n)){var z=n.inspect(p);v(z)||(z=b(u,z,p));return z}if(z=k(u,n))return z;var l=F.keys(n),C=q(l);u.showHidden&&(l=F.getOwnPropertyNames(n));if(0===l.length){if(c(n))return u.stylize("[Function"+(n.name?": "+n.name:"")+"]","special");if(A(n))return u.stylize(RegExp.prototype.toString.call(n),
"regexp");if(t(n))return u.stylize(Date.prototype.toString.call(n),"date");if(d(n))return"["+Error.prototype.toString.call(n)+"]"}var z="",K=!1,L=["{","}"];e(n)&&(K=!0,L=["[","]"]);c(n)&&(z=" [Function"+(n.name?": "+n.name:"")+"]");A(n)&&(z=" "+RegExp.prototype.toString.call(n));t(n)&&(z=" "+Date.prototype.toUTCString.call(n));d(n)&&(z=" "+("["+Error.prototype.toString.call(n)+"]"));if(0===l.length&&(!K||0==n.length))return L[0]+z+L[1];if(0>p)return A(n)?u.stylize(RegExp.prototype.toString.call(n),
"regexp"):u.stylize("[Object]","special");u.seen.push(n);l=K?g(u,n,p,C,l):l.map(function(l){return f(u,n,p,C,l,K)});u.seen.pop();return a(l,z,L)}function k(c,a){if(s(a))return c.stylize("undefined","undefined");if(v(a)){var d="'"+JSON.stringify(a).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return c.stylize(d,"string")}if(n(a))return c.stylize(""+a,"number");if(p(a))return c.stylize(""+a,"boolean");if(null===a)return c.stylize("null","null")}function g(c,a,d,z,l){for(var C=[],
b=0,e=a.length;b<e;++b)Object.prototype.hasOwnProperty.call(a,String(b))?C.push(f(c,a,d,z,String(b),!0)):C.push("");F.forEach(l,function(l){l.match(/^\d+$/)||C.push(f(c,a,d,z,l,!0))});return C}function f(a,c,d,z,l,C){var e,f;c=F.getOwnPropertyDescriptor(c,l)||{value:c[l]};c.get?f=c.set?a.stylize("[Getter/Setter]","special"):a.stylize("[Getter]","special"):c.set&&(f=a.stylize("[Setter]","special"));Object.prototype.hasOwnProperty.call(z,l)||(e="["+l+"]");f||(0>F.indexOf(a.seen,c.value)?(f=null===d?
b(a,c.value,null):b(a,c.value,d-1),-1<f.indexOf("\n")&&(f=C?f.split("\n").map(function(l){return" "+l}).join("\n").substr(2):"\n"+f.split("\n").map(function(l){return" "+l}).join("\n"))):f=a.stylize("[Circular]","special"));if(s(e)){if(C&&l.match(/^\d+$/))return f;e=JSON.stringify(""+l);e.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(e=e.substr(1,e.length-2),e=a.stylize(e,"name")):(e=e.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),e=a.stylize(e,"string"))}return e+": "+f}function a(a,
c,d){var z=0;return 60<F.reduce(a,function(l,a){z++;0<=a.indexOf("\n")&&z++;return l+a.replace(/\u001b\[\d\d?m/g,"").length+1},0)?d[0]+(""===c?"":c+"\n ")+" "+a.join(",\n ")+" "+d[1]:d[0]+c+" "+a.join(", ")+" "+d[1]}function e(a){return F.isArray(a)}function p(a){return"boolean"===typeof a}function n(a){return"number"===typeof a}function v(a){return"string"===typeof a}function s(a){return void 0===a}function A(a){return y(a)&&"[object RegExp]"===Object.prototype.toString.call(a)}function y(a){return"object"===
typeof a&&a}function t(a){return y(a)&&"[object Date]"===Object.prototype.toString.call(a)}function d(a){return y(a)&&"[object Error]"===Object.prototype.toString.call(a)}function c(a){return"function"===typeof a}function u(a){return 10>a?"0"+a.toString(10):a.toString(10)}function G(){var a=new Date,c=[u(a.getHours()),u(a.getMinutes()),u(a.getSeconds())].join(":");return[a.getDate(),H[a.getMonth()],c].join(" ")}var F=m("_shims"),I=/%[sdj%]/g;h.format=function(a){if(!v(a)){for(var c=[],d=0;d<arguments.length;d++)c.push(w(arguments[d]));
return c.join(" ")}for(var d=1,z=arguments,l=z.length,c=String(a).replace(I,function(a){if("%%"===a)return"%";if(d>=l)return a;switch(a){case "%s":return String(z[d++]);case "%d":return Number(z[d++]);case "%j":try{return JSON.stringify(z[d++])}catch(c){return"[Circular]"}default:return a}}),C=z[d];d<l;C=z[++d])c=null!==C&&y(C)?c+(" "+w(C)):c+(" "+C);return c};h.inspect=w;w.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,
39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};w.styles={special:"cyan",number:"yellow","boolean":"yellow",undefined:"grey","null":"bold",string:"green",date:"magenta",regexp:"red"};h.isArray=e;h.isBoolean=p;h.isNull=function(a){return null===a};h.isNullOrUndefined=function(a){return null==a};h.isNumber=n;h.isString=v;h.isSymbol=function(a){return"symbol"===typeof a};h.isUndefined=s;h.isRegExp=A;h.isObject=y;h.isDate=t;h.isError=d;h.isFunction=c;h.isPrimitive=function(a){return null===
a||"boolean"===typeof a||"number"===typeof a||"string"===typeof a||"symbol"===typeof a||"undefined"===typeof a};h.isBuffer=function(a){return a&&"object"===typeof a&&"function"===typeof a.copy&&"function"===typeof a.fill&&"function"===typeof a.binarySlice};var H="Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" ");h.log=function(){console.log("%s - %s",G(),h.format.apply(h,arguments))};h.inherits=function(a,c){a.super_=c;a.prototype=F.create(c.prototype,{constructor:{value:a,enumerable:!1,
writable:!0,configurable:!0}})};h._extend=function(a,c){if(!c||!y(c))return a;for(var d=F.keys(c),z=d.length;z--;)a[d[z]]=c[d[z]];return a}},{_shims:2}],6:[function(m,x,h){m=function B(h,q,b){function k(a,e){if(!q[a]){if(!h[a]){var f="function"==typeof m&&m;if(!e&&f)return f(a,!0);if(g)return g(a,!0);throw Error("Cannot find module '"+a+"'");}f=q[a]={exports:{}};h[a][0].call(f.exports,function(b){var e=h[a][1][b];return k(e?e:b)},f,f.exports,B,h,q,b)}return q[a].exports}for(var g="function"==typeof m&&
m,f=0;f<b.length;f++)k(b[f]);return k}({1:[function(h,m,q){q.readIEEE754=function(b,k,g,f,a){var e;e=8*a-f-1;var p=(1<<e)-1,n=p>>1,v=-7;a=g?0:a-1;var s=g?1:-1,h=b[k+a];a+=s;g=h&(1<<-v)-1;h>>=-v;for(v+=e;0<v;g=256*g+b[k+a],a+=s,v-=8);e=g&(1<<-v)-1;g>>=-v;for(v+=f;0<v;e=256*e+b[k+a],a+=s,v-=8);if(0===g)g=1-n;else{if(g===p)return e?NaN:Infinity*(h?-1:1);e+=Math.pow(2,f);g-=n}return(h?-1:1)*e*Math.pow(2,g-f)};q.writeIEEE754=function(b,k,g,f,a,e){var p,n=8*e-a-1,v=(1<<n)-1,s=v>>1,h=23===a?Math.pow(2,-24)-
Math.pow(2,-77):0;e=f?e-1:0;var y=f?-1:1,t=0>k||0===k&&0>1/k?1:0;k=Math.abs(k);isNaN(k)||Infinity===k?(k=isNaN(k)?1:0,f=v):(f=Math.floor(Math.log(k)/Math.LN2),1>k*(p=Math.pow(2,-f))&&(f--,p*=2),k=1<=f+s?k+h/p:k+h*Math.pow(2,1-s),2<=k*p&&(f++,p/=2),f+s>=v?(k=0,f=v):1<=f+s?(k=(k*p-1)*Math.pow(2,a),f+=s):(k=k*Math.pow(2,s-1)*Math.pow(2,a),f=0));for(;8<=a;b[g+e]=k&255,e+=y,k/=256,a-=8);f=f<<a|k;for(n+=a;0<n;b[g+e]=f&255,e+=y,f/=256,n-=8);b[g+e-y]|=128*t}},{}],q9TxCC:[function(h,m,q){function b(a,l,c){r||
(r=h("assert"));if(!(this instanceof b))return new b(a,l,c);this.parent=this;this.offset=0;if("base64"==l&&"string"==typeof a)for(a=a.trim?a.trim():a.replace(/^\s+|\s+$/g,"");0!=a.length%4;)a+="=";if("number"===typeof c)for(this.length=g(l),l=0;l<this.length;l++)this[l]=a.get(l+c);else{switch(c=typeof a){case "number":this.length=g(a);break;case "string":this.length=b.byteLength(a,l);break;case "object":this.length=g(a.length);break;default:throw Error("First argument needs to be a number, array or string.");
}if(f(a)||b.isBuffer(a)||a&&"object"===typeof a&&"number"===typeof a.length)for(l=0;l<this.length;l++)this[l]=a instanceof b?a.readUInt8(l):a[l];else if("string"==c)this.length=this.write(a,0,l);else if("number"===c)for(l=0;l<this.length;l++)this[l]=0}}function k(a,l,c){if("number"!==typeof a)return c;a=~~a;if(a>=l)return l;if(0<=a)return a;a+=l;return 0<=a?a:0}function g(a){a=~~Math.ceil(+a);return 0>a?0:a}function f(a){return(Array.isArray||function(a){return"[object Array]"=={}.toString.apply(a)})(a)}
function a(a){for(var l=[],c=0;c<a.length;c++)if(127>=a.charCodeAt(c))l.push(a.charCodeAt(c));else for(var d=encodeURIComponent(a.charAt(c)).substr(1).split("%"),b=0;b<d.length;b++)l.push(parseInt(d[b],16));return l}function e(a,l,c,d){for(var b=0;b<d&&!(b+c>=l.length||b>=a.length);)l[b+c]=a[b],b++;return b}function p(a){try{return decodeURIComponent(a)}catch(l){return String.fromCharCode(65533)}}function n(a,l,c,d){var b=0;d||(r.ok("boolean"===typeof c,"missing or invalid endian"),r.ok(void 0!==
l&&null!==l,"missing offset"),r.ok(l+1<a.length,"Trying to read beyond buffer length"));if(l>=a.length)return 0;c?(b=a[l]<<8,l+1<a.length&&(b|=a[l+1])):(b=a[l],l+1<a.length&&(b|=a[l+1]<<8));return b}function v(a,l,c,d){var b=0;d||(r.ok("boolean"===typeof c,"missing or invalid endian"),r.ok(void 0!==l&&null!==l,"missing offset"),r.ok(l+3<a.length,"Trying to read beyond buffer length"));if(l>=a.length)return 0;c?(l+1<a.length&&(b=a[l+1]<<16),l+2<a.length&&(b|=a[l+2]<<8),l+3<a.length&&(b|=a[l+3]),b+=
a[l]<<24>>>0):(l+2<a.length&&(b=a[l+2]<<16),l+1<a.length&&(b|=a[l+1]<<8),b|=a[l],l+3<a.length&&(b+=a[l+3]<<24>>>0));return b}function s(a,l,c,d){d||(r.ok("boolean"===typeof c,"missing or invalid endian"),r.ok(void 0!==l&&null!==l,"missing offset"),r.ok(l+1<a.length,"Trying to read beyond buffer length"));a=n(a,l,c,d);return a&32768?-1*(65535-a+1):a}function A(a,l,c,d){d||(r.ok("boolean"===typeof c,"missing or invalid endian"),r.ok(void 0!==l&&null!==l,"missing offset"),r.ok(l+3<a.length,"Trying to read beyond buffer length"));
a=v(a,l,c,d);return a&2147483648?-1*(4294967295-a+1):a}function y(a,l,c,d){d||(r.ok("boolean"===typeof c,"missing or invalid endian"),r.ok(l+3<a.length,"Trying to read beyond buffer length"));return h("./buffer_ieee754").readIEEE754(a,l,c,23,4)}function t(a,l,c,d){d||(r.ok("boolean"===typeof c,"missing or invalid endian"),r.ok(l+7<a.length,"Trying to read beyond buffer length"));return h("./buffer_ieee754").readIEEE754(a,l,c,52,8)}function d(a,l){r.ok("number"==typeof a,"cannot write a non-number as a number");
r.ok(0<=a,"specified a negative value for writing an unsigned value");r.ok(a<=l,"value is larger than maximum value for type");r.ok(Math.floor(a)===a,"value has a fractional component")}function c(a,l,c,b,e){e||(r.ok(void 0!==l&&null!==l,"missing value"),r.ok("boolean"===typeof b,"missing or invalid endian"),r.ok(void 0!==c&&null!==c,"missing offset"),r.ok(c+1<a.length,"trying to write beyond buffer length"),d(l,65535));for(e=0;e<Math.min(a.length-c,2);e++)a[c+e]=(l&255<<8*(b?1-e:e))>>>8*(b?1-e:e)}
function u(a,l,c,b,e){e||(r.ok(void 0!==l&&null!==l,"missing value"),r.ok("boolean"===typeof b,"missing or invalid endian"),r.ok(void 0!==c&&null!==c,"missing offset"),r.ok(c+3<a.length,"trying to write beyond buffer length"),d(l,4294967295));for(e=0;e<Math.min(a.length-c,4);e++)a[c+e]=l>>>8*(b?3-e:e)&255}function G(a,l,c){r.ok("number"==typeof a,"cannot write a non-number as a number");r.ok(a<=l,"value larger than maximum allowed value");r.ok(a>=c,"value smaller than minimum allowed value");r.ok(Math.floor(a)===
a,"value has a fractional component")}function F(a,l,c){r.ok("number"==typeof a,"cannot write a non-number as a number");r.ok(a<=l,"value larger than maximum allowed value");r.ok(a>=c,"value smaller than minimum allowed value")}function x(a,l,d,b,e){e||(r.ok(void 0!==l&&null!==l,"missing value"),r.ok("boolean"===typeof b,"missing or invalid endian"),r.ok(void 0!==d&&null!==d,"missing offset"),r.ok(d+1<a.length,"Trying to write beyond buffer length"),G(l,32767,-32768));0<=l?c(a,l,d,b,e):c(a,65535+
l+1,d,b,e)}function H(a,c,d,b,e){e||(r.ok(void 0!==c&&null!==c,"missing value"),r.ok("boolean"===typeof b,"missing or invalid endian"),r.ok(void 0!==d&&null!==d,"missing offset"),r.ok(d+3<a.length,"Trying to write beyond buffer length"),G(c,2147483647,-2147483648));0<=c?u(a,c,d,b,e):u(a,4294967295+c+1,d,b,e)}function J(a,c,d,b,e){e||(r.ok(void 0!==c&&null!==c,"missing value"),r.ok("boolean"===typeof b,"missing or invalid endian"),r.ok(void 0!==d&&null!==d,"missing offset"),r.ok(d+3<a.length,"Trying to write beyond buffer length"),
F(c,3.4028234663852886E38,-3.4028234663852886E38));h("./buffer_ieee754").writeIEEE754(a,c,d,b,23,4)}function E(a,c,d,b,e){e||(r.ok(void 0!==c&&null!==c,"missing value"),r.ok("boolean"===typeof b,"missing or invalid endian"),r.ok(void 0!==d&&null!==d,"missing offset"),r.ok(d+7<a.length,"Trying to write beyond buffer length"),F(c,1.7976931348623157E308,-1.7976931348623157E308));h("./buffer_ieee754").writeIEEE754(a,c,d,b,52,8)}var r;q.Buffer=b;q.SlowBuffer=b;b.poolSize=8192;q.INSPECT_MAX_BYTES=50;b.prototype.get=
function(a){if(0>a||a>=this.length)throw Error("oob");return this[a]};b.prototype.set=function(a,c){if(0>a||a>=this.length)throw Error("oob");return this[a]=c};b.byteLength=function(c,l){switch(l||"utf8"){case "hex":return c.length/2;case "utf8":case "utf-8":return a(c).length;case "ascii":case "binary":return c.length;case "base64":return h("base64-js").toByteArray(c).length;default:throw Error("Unknown encoding");}};b.prototype.utf8Write=function(c,l,d){return b._charsWritten=e(a(c),this,l,d)};
b.prototype.asciiWrite=function(a,c,d){for(var f=b,t=[],n=0;n<a.length;n++)t.push(a.charCodeAt(n)&255);return f._charsWritten=e(t,this,c,d)};b.prototype.binaryWrite=b.prototype.asciiWrite;b.prototype.base64Write=function(a,c,d){return b._charsWritten=e(h("base64-js").toByteArray(a),this,c,d)};b.prototype.base64Slice=function(a,c){var d=Array.prototype.slice.apply(this,arguments);return h("base64-js").fromByteArray(d)};b.prototype.utf8Slice=function(){for(var a=Array.prototype.slice.apply(this,arguments),
c="",d="",b=0;b<a.length;)127>=a[b]?(c+=p(d)+String.fromCharCode(a[b]),d=""):d+="%"+a[b].toString(16),b++;return c+p(d)};b.prototype.asciiSlice=function(){for(var a=Array.prototype.slice.apply(this,arguments),c="",d=0;d<a.length;d++)c+=String.fromCharCode(a[d]);return c};b.prototype.binarySlice=b.prototype.asciiSlice;b.prototype.inspect=function(){for(var a=[],c=this.length,d=0;d<c;d++)if(a[d]=16>this[d]?"0"+this[d].toString(16):this[d].toString(16),d==q.INSPECT_MAX_BYTES){a[d+1]="...";break}return"<Buffer "+
a.join(" ")+">"};b.prototype.hexSlice=function(a,c){var d=this.length;if(!a||0>a)a=0;if(!c||0>c||c>d)c=d;for(var d="",b=a;b<c;b++)d+=16>this[b]?"0"+this[b].toString(16):this[b].toString(16);return d};b.prototype.toString=function(a,c,d){a=String(a||"utf8").toLowerCase();c=+c||0;"undefined"==typeof d&&(d=this.length);if(+d==c)return"";switch(a){case "hex":return this.hexSlice(c,d);case "utf8":case "utf-8":return this.utf8Slice(c,d);case "ascii":return this.asciiSlice(c,d);case "binary":return this.binarySlice(c,
d);case "base64":return this.base64Slice(c,d);case "ucs2":case "ucs-2":return this.ucs2Slice(c,d);default:throw Error("Unknown encoding");}};b.prototype.hexWrite=function(a,c,d){c=+c||0;var e=this.length-c;d?(d=+d,d>e&&(d=e)):d=e;e=a.length;if(e%2)throw Error("Invalid hex string");d>e/2&&(d=e/2);for(e=0;e<d;e++){var f=parseInt(a.substr(2*e,2),16);if(isNaN(f))throw Error("Invalid hex string");this[c+e]=f}b._charsWritten=2*e;return e};b.prototype.write=function(a,c,d,b){if(isFinite(c))isFinite(d)||
(b=d,d=void 0);else{var e=b;b=c;c=d;d=e}c=+c||0;e=this.length-c;d?(d=+d,d>e&&(d=e)):d=e;b=String(b||"utf8").toLowerCase();switch(b){case "hex":return this.hexWrite(a,c,d);case "utf8":case "utf-8":return this.utf8Write(a,c,d);case "ascii":return this.asciiWrite(a,c,d);case "binary":return this.binaryWrite(a,c,d);case "base64":return this.base64Write(a,c,d);case "ucs2":case "ucs-2":return this.ucs2Write(a,c,d);default:throw Error("Unknown encoding");}};b.prototype.slice=function(a,c){var d=this.length;
a=k(a,d,0);c=k(c,d,d);return new b(this,c-a,+a)};b.prototype.copy=function(a,c,d,b){d||(d=0);if(void 0===b||isNaN(b))b=this.length;c||(c=0);if(b<d)throw Error("sourceEnd < sourceStart");if(b===d||0==a.length||0==this.length)return 0;if(0>c||c>=a.length)throw Error("targetStart out of bounds");if(0>d||d>=this.length)throw Error("sourceStart out of bounds");if(0>b||b>this.length)throw Error("sourceEnd out of bounds");b>this.length&&(b=this.length);a.length-c<b-d&&(b=a.length-c+d);for(var e=[];d<b;d++)r.ok("undefined"!==
typeof this[d],"copying undefined buffer bytes!"),e.push(this[d]);for(d=c;d<c+e.length;d++)a[d]=e[d-c]};b.prototype.fill=function(a,c,d){a||(a=0);c||(c=0);d||(d=this.length);"string"===typeof a&&(a=a.charCodeAt(0));if("number"!==typeof a||isNaN(a))throw Error("value is not a number");if(d<c)throw Error("end < start");if(d===c||0==this.length)return 0;if(0>c||c>=this.length)throw Error("start out of bounds");if(0>d||d>this.length)throw Error("end out of bounds");for(;c<d;c++)this[c]=a};b.isBuffer=
function(a){return a instanceof b||a instanceof b};b.concat=function(a,c){if(!f(a))throw Error("Usage: Buffer.concat(list, [totalLength])\n list should be an Array.");if(0===a.length)return new b(0);if(1===a.length)return a[0];if("number"!==typeof c)for(var d=c=0;d<a.length;d++){var e=a[d];c+=e.length}for(var t=new b(c),n=0,d=0;d<a.length;d++)e=a[d],e.copy(t,n),n+=e.length;return t};b.isEncoding=function(a){switch((a+"").toLowerCase()){case "hex":case "utf8":case "utf-8":case "ascii":case "binary":case "base64":case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":case "raw":return!0;
default:return!1}};b.prototype.readUInt8=function(a,c){c||(r.ok(void 0!==a&&null!==a,"missing offset"),r.ok(a<this.length,"Trying to read beyond buffer length"));if(!(a>=this.length))return this[a]};b.prototype.readUInt16LE=function(a,c){return n(this,a,!1,c)};b.prototype.readUInt16BE=function(a,c){return n(this,a,!0,c)};b.prototype.readUInt32LE=function(a,c){return v(this,a,!1,c)};b.prototype.readUInt32BE=function(a,c){return v(this,a,!0,c)};b.prototype.readInt8=function(a,c){var d;c||(r.ok(void 0!==
a&&null!==a,"missing offset"),r.ok(a<this.length,"Trying to read beyond buffer length"));if(!(a>=this.length))return(d=this[a]&128)?-1*(255-this[a]+1):this[a]};b.prototype.readInt16LE=function(a,c){return s(this,a,!1,c)};b.prototype.readInt16BE=function(a,c){return s(this,a,!0,c)};b.prototype.readInt32LE=function(a,c){return A(this,a,!1,c)};b.prototype.readInt32BE=function(a,c){return A(this,a,!0,c)};b.prototype.readFloatLE=function(a,c){return y(this,a,!1,c)};b.prototype.readFloatBE=function(a,c){return y(this,
a,!0,c)};b.prototype.readDoubleLE=function(a,c){return t(this,a,!1,c)};b.prototype.readDoubleBE=function(a,c){return t(this,a,!0,c)};b.prototype.writeUInt8=function(a,c,b){b||(r.ok(void 0!==a&&null!==a,"missing value"),r.ok(void 0!==c&&null!==c,"missing offset"),r.ok(c<this.length,"trying to write beyond buffer length"),d(a,255));c<this.length&&(this[c]=a)};b.prototype.writeUInt16LE=function(a,d,b){c(this,a,d,!1,b)};b.prototype.writeUInt16BE=function(a,d,b){c(this,a,d,!0,b)};b.prototype.writeUInt32LE=
function(a,c,d){u(this,a,c,!1,d)};b.prototype.writeUInt32BE=function(a,c,d){u(this,a,c,!0,d)};b.prototype.writeInt8=function(a,c,d){d||(r.ok(void 0!==a&&null!==a,"missing value"),r.ok(void 0!==c&&null!==c,"missing offset"),r.ok(c<this.length,"Trying to write beyond buffer length"),G(a,127,-128));0<=a?this.writeUInt8(a,c,d):this.writeUInt8(255+a+1,c,d)};b.prototype.writeInt16LE=function(a,c,d){x(this,a,c,!1,d)};b.prototype.writeInt16BE=function(a,c,d){x(this,a,c,!0,d)};b.prototype.writeInt32LE=function(a,
c,d){H(this,a,c,!1,d)};b.prototype.writeInt32BE=function(a,c,d){H(this,a,c,!0,d)};b.prototype.writeFloatLE=function(a,c,d){J(this,a,c,!1,d)};b.prototype.writeFloatBE=function(a,c,d){J(this,a,c,!0,d)};b.prototype.writeDoubleLE=function(a,c,d){E(this,a,c,!1,d)};b.prototype.writeDoubleBE=function(a,c,d){E(this,a,c,!0,d)}},{"./buffer_ieee754":1,assert:6,"base64-js":4}],"buffer-browserify":[function(h,m,q){m.exports=h("q9TxCC")},{}],4:[function(h,m,q){(function(b){m.exports.toByteArray=function(b){var g,
f,a,e,p;if(0<b.length%4)throw"Invalid string. Length must be a multiple of 4";e=b.indexOf("=");e=0<e?b.length-e:0;p=[];f=0<e?b.length-4:b.length;for(g=0;g<f;g+=4)a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(b[g])<<18|"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(b[g+1])<<12|"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(b[g+2])<<6|"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(b[g+
3]),p.push((a&16711680)>>16),p.push((a&65280)>>8),p.push(a&255);2===e?(a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(b[g])<<2|"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(b[g+1])>>4,p.push(a&255)):1===e&&(a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(b[g])<<10|"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(b[g+1])<<4|"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(b[g+
2])>>2,p.push(a>>8&255),p.push(a&255));return p};m.exports.fromByteArray=function(b){var g,f=b.length%3,a="",e,p;g=0;for(p=b.length-f;g<p;g+=3)e=(b[g]<<16)+(b[g+1]<<8)+b[g+2],a+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[e>>18&63]+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[e>>12&63]+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[e>>6&63]+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[e&63];switch(f){case 1:e=b[b.length-
1];a+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[e>>2];a+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[e<<4&63];a+="==";break;case 2:e=(b[b.length-2]<<8)+b[b.length-1],a+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[e>>10],a+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[e>>4&63],a+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[e<<2&63],a+="="}return a}})()},{}],5:[function(h,m,q){function b(a){return"[object Array]"===
p.call(a)}function k(a,d){var c;if(null===a)c={__proto__:null};else{if("object"!==typeof a)throw new TypeError("typeof prototype["+typeof a+"] != 'object'");c=function(){};c.prototype=a;c=new c;c.__proto__=a}"undefined"!==typeof d&&Object.defineProperties&&Object.defineProperties(c,d);return c}function g(a){return"object"!=typeof a&&"function"!=typeof a||null===a}function f(a){if(g(a))throw new TypeError("Object.keys called on a non-object");var d=[],c;for(c in a)n.call(a,c)&&d.push(c);return d}function a(a){if(g(a))throw new TypeError("Object.getOwnPropertyNames called on a non-object");
var d=f(a);q.isArray(a)&&-1===q.indexOf(a,"length")&&d.push("length");return d}function e(a,d){return{value:a[d]}}var p=Object.prototype.toString,n=Object.prototype.hasOwnProperty;q.isArray="function"===typeof Array.isArray?Array.isArray:b;q.indexOf=function(a,d){if(a.indexOf)return a.indexOf(d);for(var c=0;c<a.length;c++)if(d===a[c])return c;return-1};q.filter=function(a,d){if(a.filter)return a.filter(d);for(var c=[],b=0;b<a.length;b++)d(a[b],b,a)&&c.push(a[b]);return c};q.forEach=function(a,d,c){if(a.forEach)return a.forEach(d,
c);for(var b=0;b<a.length;b++)d.call(c,a[b],b,a)};q.map=function(a,d){if(a.map)return a.map(d);for(var c=Array(a.length),b=0;b<a.length;b++)c[b]=d(a[b],b,a);return c};q.reduce=function(a,d,c){if(a.reduce)return a.reduce(d,c);var b,e=!1;2<arguments.length&&(b=c,e=!0);for(var f=0,n=a.length;n>f;++f)a.hasOwnProperty(f)&&(e?b=d(b,a[f],f,a):(b=a[f],e=!0));return b};"b"!=="ab".substr(-1)?q.substr=function(a,d,c){0>d&&(d=a.length+d);return a.substr(d,c)}:q.substr=function(a,d,c){return a.substr(d,c)};q.trim=
function(a){return a.trim?a.trim():a.replace(/^\s+|\s+$/g,"")};q.bind=function(){var a=Array.prototype.slice.call(arguments),d=a.shift();if(d.bind)return d.bind.apply(d,a);var c=a.shift();return function(){d.apply(c,a.concat([Array.prototype.slice.call(arguments)]))}};q.create="function"===typeof Object.create?Object.create:k;var v="function"===typeof Object.keys?Object.keys:f,s="function"===typeof Object.getOwnPropertyNames?Object.getOwnPropertyNames:a;if(Error().hasOwnProperty("description")){var A=
function(a,d){"[object Error]"===p.call(a)&&(d=q.filter(d,function(a){return"description"!==a&&"number"!==a&&"message"!==a}));return d};q.keys=function(a){return A(a,v(a))};q.getOwnPropertyNames=function(a){return A(a,s(a))}}else q.keys=v,q.getOwnPropertyNames=s;if("function"===typeof Object.getOwnPropertyDescriptor)try{Object.getOwnPropertyDescriptor({a:1},"a"),q.getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor}catch(y){q.getOwnPropertyDescriptor=function(a,d){try{return Object.getOwnPropertyDescriptor(a,
d)}catch(c){return e(a,d)}}}else q.getOwnPropertyDescriptor=e},{}],6:[function(h,m,q){function b(a,c){return s.isUndefined(c)?""+c:s.isNumber(c)&&(isNaN(c)||!isFinite(c))||s.isFunction(c)||s.isRegExp(c)?c.toString():c}function k(a,c){return s.isString(a)?a.length<c?a:a.slice(0,c):a}function g(a,c,b,e,f){throw new t.AssertionError({message:b,actual:a,expected:c,operator:e,stackStartFunction:f});}function f(a,c){a||g(a,!0,c,"==",t.ok)}function a(a,c){if(a===c)return!0;if(s.isBuffer(a)&&s.isBuffer(c)){if(a.length!=
c.length)return!1;for(var b=0;b<a.length;b++)if(a[b]!==c[b])return!1;return!0}return s.isDate(a)&&s.isDate(c)?a.getTime()===c.getTime():s.isRegExp(a)&&s.isRegExp(c)?a.source===c.source&&a.global===c.global&&a.multiline===c.multiline&&a.lastIndex===c.lastIndex&&a.ignoreCase===c.ignoreCase:s.isObject(a)||s.isObject(c)?p(a,c):a==c}function e(a){return"[object Arguments]"==Object.prototype.toString.call(a)}function p(d,c){if(s.isNullOrUndefined(d)||s.isNullOrUndefined(c)||d.prototype!==c.prototype)return!1;
if(e(d)){if(!e(c))return!1;d=y.call(d);c=y.call(c);return a(d,c)}try{var b=A.keys(d),f=A.keys(c),n}catch(g){return!1}if(b.length!=f.length)return!1;b.sort();f.sort();for(n=b.length-1;0<=n;n--)if(b[n]!=f[n])return!1;for(n=b.length-1;0<=n;n--)if(f=b[n],!a(d[f],c[f]))return!1;return!0}function n(a,c){return a&&c?"[object RegExp]"==Object.prototype.toString.call(c)?c.test(a):a instanceof c||!0===c.call({},a)?!0:!1:!1}function v(a,c,b,e){var f;s.isString(b)&&(e=b,b=null);try{c()}catch(p){f=p}e=(b&&b.name?
" ("+b.name+").":".")+(e?" "+e:".");a&&!f&&g(f,b,"Missing expected exception"+e);!a&&n(f,b)&&g(f,b,"Got unwanted exception"+e);if(a&&f&&b&&!n(f,b)||!a&&f)throw f;}var s=h("util"),A=h("_shims"),y=Array.prototype.slice,t=m.exports=f;t.AssertionError=function(a){this.name="AssertionError";this.actual=a.actual;this.expected=a.expected;this.operator=a.operator;this.message=a.message||k(JSON.stringify(this.actual,b),128)+" "+this.operator+" "+k(JSON.stringify(this.expected,b),128)};s.inherits(t.AssertionError,
Error);t.fail=g;t.ok=f;t.equal=function(a,c,b){a!=c&&g(a,c,b,"==",t.equal)};t.notEqual=function(a,c,b){a==c&&g(a,c,b,"!=",t.notEqual)};t.deepEqual=function(b,c,e){a(b,c)||g(b,c,e,"deepEqual",t.deepEqual)};t.notDeepEqual=function(b,c,e){a(b,c)&&g(b,c,e,"notDeepEqual",t.notDeepEqual)};t.strictEqual=function(a,c,b){a!==c&&g(a,c,b,"===",t.strictEqual)};t.notStrictEqual=function(a,c,b){a===c&&g(a,c,b,"!==",t.notStrictEqual)};t["throws"]=function(a,c,b){v.apply(this,[!0].concat(y.call(arguments)))};t.doesNotThrow=
function(a,c){v.apply(this,[!1].concat(y.call(arguments)))};t.ifError=function(a){if(a)throw a;}},{_shims:5,util:7}],7:[function(h,m,q){function b(c,b){var e={seen:[],stylize:g};3<=arguments.length&&(e.depth=arguments[2]);4<=arguments.length&&(e.colors=arguments[3]);A(b)?e.showHidden=b:b&&q._extend(e,b);d(e.showHidden)&&(e.showHidden=!1);d(e.depth)&&(e.depth=2);d(e.colors)&&(e.colors=!1);d(e.customInspect)&&(e.customInspect=!0);e.colors&&(e.stylize=k);return a(e,c,e.depth)}function k(a,c){var d=b.styles[c];
return d?"\u001b["+b.colors[d][0]+"m"+a+"\u001b["+b.colors[d][1]+"m":a}function g(a,c){return a}function f(a){var c={};E.forEach(a,function(a,b){c[a]=!0});return c}function a(b,d,g){if(b.customInspect&&d&&I(d.inspect)&&d.inspect!==q.inspect&&(!d.constructor||d.constructor.prototype!==d)){var k=d.inspect(g);t(k)||(k=a(b,k,g));return k}if(k=e(b,d))return k;var y=E.keys(d),h=f(y);b.showHidden&&(y=E.getOwnPropertyNames(d));if(0===y.length){if(I(d))return b.stylize("[Function"+(d.name?": "+d.name:"")+
"]","special");if(c(d))return b.stylize(RegExp.prototype.toString.call(d),"regexp");if(G(d))return b.stylize(Date.prototype.toString.call(d),"date");if(x(d))return"["+Error.prototype.toString.call(d)+"]"}var k="",u=!1,m=["{","}"];s(d)&&(u=!0,m=["[","]"]);I(d)&&(k=" [Function"+(d.name?": "+d.name:"")+"]");c(d)&&(k=" "+RegExp.prototype.toString.call(d));G(d)&&(k=" "+Date.prototype.toUTCString.call(d));x(d)&&(k=" "+("["+Error.prototype.toString.call(d)+"]"));if(0===y.length&&(!u||0==d.length))return m[0]+
k+m[1];if(0>g)return c(d)?b.stylize(RegExp.prototype.toString.call(d),"regexp"):b.stylize("[Object]","special");b.seen.push(d);y=u?p(b,d,g,h,y):y.map(function(a){return n(b,d,g,h,a,u)});b.seen.pop();return v(y,k,m)}function e(a,c){if(d(c))return a.stylize("undefined","undefined");if(t(c)){var b="'"+JSON.stringify(c).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return a.stylize(b,"string")}if(y(c))return a.stylize(""+c,"number");if(A(c))return a.stylize(""+c,"boolean");if(null===
c)return a.stylize("null","null")}function p(a,c,b,d,e){for(var f=[],g=0,p=c.length;g<p;++g)Object.prototype.hasOwnProperty.call(c,String(g))?f.push(n(a,c,b,d,String(g),!0)):f.push("");E.forEach(e,function(e){e.match(/^\d+$/)||f.push(n(a,c,b,d,e,!0))});return f}function n(c,b,e,f,n,g){var p,k;b=E.getOwnPropertyDescriptor(b,n)||{value:b[n]};b.get?k=b.set?c.stylize("[Getter/Setter]","special"):c.stylize("[Getter]","special"):b.set&&(k=c.stylize("[Setter]","special"));Object.prototype.hasOwnProperty.call(f,
n)||(p="["+n+"]");k||(0>E.indexOf(c.seen,b.value)?(k=null===e?a(c,b.value,null):a(c,b.value,e-1),-1<k.indexOf("\n")&&(k=g?k.split("\n").map(function(a){return" "+a}).join("\n").substr(2):"\n"+k.split("\n").map(function(a){return" "+a}).join("\n"))):k=c.stylize("[Circular]","special"));if(d(p)){if(g&&n.match(/^\d+$/))return k;p=JSON.stringify(""+n);p.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(p=p.substr(1,p.length-2),p=c.stylize(p,"name")):(p=p.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,
"'"),p=c.stylize(p,"string"))}return p+": "+k}function v(a,c,b){var d=0;return 60<E.reduce(a,function(a,c){d++;0<=c.indexOf("\n")&&d++;return a+c.replace(/\u001b\[\d\d?m/g,"").length+1},0)?b[0]+(""===c?"":c+"\n ")+" "+a.join(",\n ")+" "+b[1]:b[0]+c+" "+a.join(", ")+" "+b[1]}function s(a){return E.isArray(a)}function A(a){return"boolean"===typeof a}function y(a){return"number"===typeof a}function t(a){return"string"===typeof a}function d(a){return void 0===a}function c(a){return u(a)&&"[object RegExp]"===
Object.prototype.toString.call(a)}function u(a){return"object"===typeof a&&a}function G(a){return u(a)&&"[object Date]"===Object.prototype.toString.call(a)}function x(a){return u(a)&&"[object Error]"===Object.prototype.toString.call(a)}function I(a){return"function"===typeof a}function H(a){return 10>a?"0"+a.toString(10):a.toString(10)}function J(){var a=new Date,c=[H(a.getHours()),H(a.getMinutes()),H(a.getSeconds())].join(":");return[a.getDate(),z[a.getMonth()],c].join(" ")}var E=h("_shims"),r=/%[sdj%]/g;
q.format=function(a){if(!t(a)){for(var c=[],d=0;d<arguments.length;d++)c.push(b(arguments[d]));return c.join(" ")}for(var d=1,e=arguments,f=e.length,c=String(a).replace(r,function(a){if("%%"===a)return"%";if(d>=f)return a;switch(a){case "%s":return String(e[d++]);case "%d":return Number(e[d++]);case "%j":try{return JSON.stringify(e[d++])}catch(c){return"[Circular]"}default:return a}}),n=e[d];d<f;n=e[++d])c=null!==n&&u(n)?c+(" "+b(n)):c+(" "+n);return c};q.inspect=b;b.colors={bold:[1,22],italic:[3,
23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};b.styles={special:"cyan",number:"yellow","boolean":"yellow",undefined:"grey","null":"bold",string:"green",date:"magenta",regexp:"red"};q.isArray=s;q.isBoolean=A;q.isNull=function(a){return null===a};q.isNullOrUndefined=function(a){return null==a};q.isNumber=y;q.isString=t;q.isSymbol=function(a){return"symbol"===typeof a};q.isUndefined=d;q.isRegExp=
c;q.isObject=u;q.isDate=G;q.isError=x;q.isFunction=I;q.isPrimitive=function(a){return null===a||"boolean"===typeof a||"number"===typeof a||"string"===typeof a||"symbol"===typeof a||"undefined"===typeof a};q.isBuffer=function(a){return a instanceof Buffer};var z="Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" ");q.log=function(){console.log("%s - %s",J(),q.format.apply(q,arguments))};q.inherits=function(a,c){a.super_=c;a.prototype=E.create(c.prototype,{constructor:{value:a,enumerable:!1,
writable:!0,configurable:!0}})};q._extend=function(a,c){if(!c||!u(c))return a;for(var b=E.keys(c),d=b.length;d--;)a[b[d]]=c[b[d]];return a}},{_shims:5}]},{},[]);x.exports=m("buffer-browserify")},{}],7:[function(m,x,h){m=x.exports={};m.nextTick=function(){if("undefined"!==typeof window&&window.setImmediate)return function(h){return window.setImmediate(h)};if("undefined"!==typeof window&&window.postMessage&&window.addEventListener){var h=[];window.addEventListener("message",function(m){m.source===window&&
"process-tick"===m.data&&(m.stopPropagation(),0<h.length&&h.shift()())},!0);return function(m){h.push(m);window.postMessage("process-tick","*")}}return function(h){setTimeout(h,0)}}();m.title="browser";m.browser=!0;m.env={};m.argv=[];m.binding=function(h){throw Error("process.binding is not supported");};m.cwd=function(){return"/"};m.chdir=function(h){throw Error("process.chdir is not supported");}},{}],8:[function(m,x,h){h.SourceMapGenerator=m("./source-map/source-map-generator").SourceMapGenerator;
h.SourceMapConsumer=m("./source-map/source-map-consumer").SourceMapConsumer;h.SourceNode=m("./source-map/source-node").SourceNode},{"./source-map/source-map-consumer":13,"./source-map/source-map-generator":14,"./source-map/source-node":15}],9:[function(m,x,h){if("function"!==typeof w)var w=m("amdefine")(x,m);w(function(h,m,q){function b(){this._array=[];this._set={}}var k=h("./util");b.fromArray=function(g,f){for(var a=new b,e=0,p=g.length;e<p;e++)a.add(g[e],f);return a};b.prototype.add=function(b,
f){var a=this.has(b),e=this._array.length;a&&!f||this._array.push(b);a||(this._set[k.toSetString(b)]=e)};b.prototype.has=function(b){return Object.prototype.hasOwnProperty.call(this._set,k.toSetString(b))};b.prototype.indexOf=function(b){if(this.has(b))return this._set[k.toSetString(b)];throw Error('"'+b+'" is not in the set.');};b.prototype.at=function(b){if(0<=b&&b<this._array.length)return this._array[b];throw Error("No element indexed by "+b);};b.prototype.toArray=function(){return this._array.slice()};
m.ArraySet=b})},{"./util":16,amdefine:17}],10:[function(m,x,h){if("function"!==typeof w)var w=m("amdefine")(x,m);w(function(h,m,q){var b=h("./base64");m.encode=function(k){var g="",f=0>k?(-k<<1)+1:(k<<1)+0;do k=f&31,f>>>=5,0<f&&(k|=32),g+=b.encode(k);while(0<f);return g};m.decode=function(k){var g=0,f=k.length,a=0,e=0,p,n;do{if(g>=f)throw Error("Expected more digits in base 64 VLQ value.");n=b.decode(k.charAt(g++));p=!!(n&32);n&=31;a+=n<<e;e+=5}while(p);f=a>>1;return{value:1===(a&1)?-f:f,rest:k.slice(g)}}})},
{"./base64":11,amdefine:17}],11:[function(m,x,h){if("function"!==typeof w)var w=m("amdefine")(x,m);w(function(h,m,q){var b={},k={};"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("").forEach(function(g,f){b[g]=f;k[f]=g});m.encode=function(b){if(b in k)return k[b];throw new TypeError("Must be between 0 and 63: "+b);};m.decode=function(g){if(g in b)return b[g];throw new TypeError("Not a valid base 64 digit: "+g);}})},{amdefine:17}],12:[function(m,x,h){if("function"!==typeof w)var w=
m("amdefine")(x,m);w(function(h,m,q){function b(k,g,f,a,e){var p=Math.floor((g-k)/2)+k,n=e(f,a[p]);return 0===n?a[p]:0<n?1<g-p?b(p,g,f,a,e):a[p]:1<p-k?b(k,p,f,a,e):0>k?null:a[k]}m.search=function(k,g,f){return 0<g.length?b(-1,g.length,k,g,f):null}})},{amdefine:17}],13:[function(m,x,h){if("function"!==typeof w)var w=m("amdefine")(x,m);w(function(h,m,q){function b(a){var b=a;"string"===typeof a&&(b=JSON.parse(a.replace(/^\)\]\}'/,"")));a=k.getArg(b,"version");var n=k.getArg(b,"sources"),g=k.getArg(b,
"names"),h=k.getArg(b,"sourceRoot",null),m=k.getArg(b,"sourcesContent",null),y=k.getArg(b,"mappings"),b=k.getArg(b,"file",null);if(a!==this._version)throw Error("Unsupported version: "+a);this._names=f.fromArray(g,!0);this._sources=f.fromArray(n,!0);this.sourceRoot=h;this.sourcesContent=m;this.file=b;this._generatedMappings=[];this._originalMappings=[];this._parseMappings(y,h)}var k=h("./util"),g=h("./binary-search"),f=h("./array-set").ArraySet,a=h("./base64-vlq");b.prototype._version=3;Object.defineProperty(b.prototype,
"sources",{get:function(){return this._sources.toArray().map(function(a){return this.sourceRoot?k.join(this.sourceRoot,a):a},this)}});b.prototype._parseMappings=function(b,f){for(var n=1,g=0,k=0,h=0,y=0,t=0,d=/^[,;]/,c=b,u;0<c.length;)if(";"===c.charAt(0))n++,c=c.slice(1),g=0;else if(","===c.charAt(0))c=c.slice(1);else{u={};u.generatedLine=n;c=a.decode(c);u.generatedColumn=g+c.value;g=u.generatedColumn;c=c.rest;if(0<c.length&&!d.test(c.charAt(0))){c=a.decode(c);u.source=this._sources.at(y+c.value);
y+=c.value;c=c.rest;if(0===c.length||d.test(c.charAt(0)))throw Error("Found a source, but no line and column");c=a.decode(c);u.originalLine=k+c.value;k=u.originalLine;u.originalLine+=1;c=c.rest;if(0===c.length||d.test(c.charAt(0)))throw Error("Found a source and line, but no column");c=a.decode(c);u.originalColumn=h+c.value;h=u.originalColumn;c=c.rest;0<c.length&&!d.test(c.charAt(0))&&(c=a.decode(c),u.name=this._names.at(t+c.value),t+=c.value,c=c.rest)}this._generatedMappings.push(u);"number"===typeof u.originalLine&&
this._originalMappings.push(u)}this._originalMappings.sort(this._compareOriginalPositions)};b.prototype._compareOriginalPositions=function(a,b){if(a.source>b.source)return 1;if(a.source<b.source)return-1;var f=a.originalLine-b.originalLine;return 0===f?a.originalColumn-b.originalColumn:f};b.prototype._compareGeneratedPositions=function(a,b){var f=a.generatedLine-b.generatedLine;return 0===f?a.generatedColumn-b.generatedColumn:f};b.prototype._findMapping=function(a,b,f,k,h){if(0>=a[f])throw new TypeError("Line must be greater than or equal to 1, got "+
a[f]);if(0>a[k])throw new TypeError("Column must be greater than or equal to 0, got "+a[k]);return g.search(a,b,h)};b.prototype.originalPositionFor=function(a){a={generatedLine:k.getArg(a,"line"),generatedColumn:k.getArg(a,"column")};if(a=this._findMapping(a,this._generatedMappings,"generatedLine","generatedColumn",this._compareGeneratedPositions)){var b=k.getArg(a,"source",null);b&&this.sourceRoot&&(b=k.join(this.sourceRoot,b));return{source:b,line:k.getArg(a,"originalLine",null),column:k.getArg(a,
"originalColumn",null),name:k.getArg(a,"name",null)}}return{source:null,line:null,column:null,name:null}};b.prototype.sourceContentFor=function(a){if(!this.sourcesContent)return null;this.sourceRoot&&(a=k.relative(this.sourceRoot,a));if(this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];var b;if(this.sourceRoot&&(b=k.urlParse(this.sourceRoot))){var f=a.replace(/^file:\/\//,"");if("file"==b.scheme&&this._sources.has(f))return this.sourcesContent[this._sources.indexOf(f)];if((!b.path||
"/"==b.path)&&this._sources.has("/"+a))return this.sourcesContent[this._sources.indexOf("/"+a)]}throw Error('"'+a+'" is not in the SourceMap.');};b.prototype.generatedPositionFor=function(a){a={source:k.getArg(a,"source"),originalLine:k.getArg(a,"line"),originalColumn:k.getArg(a,"column")};this.sourceRoot&&(a.source=k.relative(this.sourceRoot,a.source));return(a=this._findMapping(a,this._originalMappings,"originalLine","originalColumn",this._compareOriginalPositions))?{line:k.getArg(a,"generatedLine",
null),column:k.getArg(a,"generatedColumn",null)}:{line:null,column:null}};b.GENERATED_ORDER=1;b.ORIGINAL_ORDER=2;b.prototype.eachMapping=function(a,f,n){f=f||null;switch(n||b.GENERATED_ORDER){case b.GENERATED_ORDER:n=this._generatedMappings;break;case b.ORIGINAL_ORDER:n=this._originalMappings;break;default:throw Error("Unknown order of iteration.");}var g=this.sourceRoot;n.map(function(a){var b=a.source;b&&g&&(b=k.join(g,b));return{source:b,generatedLine:a.generatedLine,generatedColumn:a.generatedColumn,
originalLine:a.originalLine,originalColumn:a.originalColumn,name:a.name}}).forEach(a,f)};m.SourceMapConsumer=b})},{"./array-set":9,"./base64-vlq":10,"./binary-search":12,"./util":16,amdefine:17}],14:[function(m,x,h){if("function"!==typeof w)var w=m("amdefine")(x,m);w(function(h,m,q){function b(a){this._file=e.getArg(a,"file");this._sourceRoot=e.getArg(a,"sourceRoot",null);this._sources=new p;this._names=new p;this._mappings=[];this._sourcesContents=null}function k(a,b){var e=(a&&a.line)-(b&&b.line);
return e?e:(a&&a.column)-(b&&b.column)}function g(a,b){a=a||"";b=b||"";return(a>b)-(a<b)}function f(a,b){return k(a.generated,b.generated)||k(a.original,b.original)||g(a.source,b.source)||g(a.name,b.name)}var a=h("./base64-vlq"),e=h("./util"),p=h("./array-set").ArraySet;b.prototype._version=3;b.fromSourceMap=function(a){var f=a.sourceRoot,g=new b({file:a.file,sourceRoot:f});a.eachMapping(function(a){var b={generated:{line:a.generatedLine,column:a.generatedColumn}};a.source&&(b.source=a.source,f&&
(b.source=e.relative(f,b.source)),b.original={line:a.originalLine,column:a.originalColumn},a.name&&(b.name=a.name));g.addMapping(b)});a.sources.forEach(function(b){var e=a.sourceContentFor(b);e&&g.setSourceContent(b,e)});return g};b.prototype.addMapping=function(a){var b=e.getArg(a,"generated"),f=e.getArg(a,"original",null),g=e.getArg(a,"source",null);a=e.getArg(a,"name",null);this._validateMapping(b,f,g,a);g&&!this._sources.has(g)&&this._sources.add(g);a&&!this._names.has(a)&&this._names.add(a);
this._mappings.push({generated:b,original:f,source:g,name:a})};b.prototype.setSourceContent=function(a,b){var f=a;this._sourceRoot&&(f=e.relative(this._sourceRoot,f));null!==b?(this._sourcesContents||(this._sourcesContents={}),this._sourcesContents[e.toSetString(f)]=b):(delete this._sourcesContents[e.toSetString(f)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))};b.prototype.applySourceMap=function(a,b){b||(b=a.file);var f=this._sourceRoot;f&&(b=e.relative(f,b));var g=
new p,k=new p;this._mappings.forEach(function(h){if(h.source===b&&h.original){var d=a.originalPositionFor({line:h.original.line,column:h.original.column});null!==d.source&&(h.source=f?e.relative(f,d.source):d.source,h.original.line=d.line,h.original.column=d.column,null!==d.name&&null!==h.name&&(h.name=d.name))}(d=h.source)&&!g.has(d)&&g.add(d);(h=h.name)&&!k.has(h)&&k.add(h)},this);this._sources=g;this._names=k;a.sources.forEach(function(b){var d=a.sourceContentFor(b);d&&(f&&(b=e.relative(f,b)),
this.setSourceContent(b,d))},this)};b.prototype._validateMapping=function(a,b,e,f){if(!(a&&"line"in a&&"column"in a&&0<a.line&&0<=a.column&&!b&&!e&&!f||a&&"line"in a&&"column"in a&&b&&"line"in b&&"column"in b&&0<a.line&&0<=a.column&&0<b.line&&0<=b.column&&e))throw Error("Invalid mapping.");};b.prototype._serializeMappings=function(){var b=0,e=1,g=0,h=0,k=0,p=0,d="",c;this._mappings.sort(f);for(var u=0,m=this._mappings.length;u<m;u++){c=this._mappings[u];if(c.generated.line!==e)for(b=0;c.generated.line!==
e;)d+=";",e++;else if(0<u){if(!f(c,this._mappings[u-1]))continue;d+=","}d+=a.encode(c.generated.column-b);b=c.generated.column;c.source&&c.original&&(d+=a.encode(this._sources.indexOf(c.source)-p),p=this._sources.indexOf(c.source),d+=a.encode(c.original.line-1-h),h=c.original.line-1,d+=a.encode(c.original.column-g),g=c.original.column,c.name&&(d+=a.encode(this._names.indexOf(c.name)-k),k=this._names.indexOf(c.name)))}return d};b.prototype.toJSON=function(){var a={version:this._version,file:this._file,
sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};this._sourceRoot&&(a.sourceRoot=this._sourceRoot);this._sourcesContents&&(a.sourcesContent=a.sources.map(function(b){a.sourceRoot&&(b=e.relative(a.sourceRoot,b));return Object.prototype.hasOwnProperty.call(this._sourcesContents,e.toSetString(b))?this._sourcesContents[e.toSetString(b)]:null},this));return a};b.prototype.toString=function(){return JSON.stringify(this)};m.SourceMapGenerator=b})},{"./array-set":9,
"./base64-vlq":10,"./util":16,amdefine:17}],15:[function(m,x,h){if("function"!==typeof w)var w=m("amdefine")(x,m);w(function(h,m,q){function b(b,a,e,g,h){this.children=[];this.sourceContents={};this.line=void 0===b?null:b;this.column=void 0===a?null:a;this.source=void 0===e?null:e;this.name=void 0===h?null:h;null!=g&&this.add(g)}var k=h("./source-map-generator").SourceMapGenerator,g=h("./util");b.fromStringWithSourceMap=function(f,a){function e(a,e){null===a||void 0===a.source?g.add(e):g.add(new b(a.originalLine,
a.originalColumn,a.source,e,a.name))}var g=new b,h=f.split("\n"),k=1,m=0,q=null;a.eachMapping(function(a){if(null===q){for(;k<a.generatedLine;)g.add(h.shift()+"\n"),k++;if(m<a.generatedColumn){var b=h[0];g.add(b.substr(0,a.generatedColumn));h[0]=b.substr(a.generatedColumn);m=a.generatedColumn}}else{if(k<a.generatedLine){var d="";do d+=h.shift()+"\n",k++,m=0;while(k<a.generatedLine);m<a.generatedColumn&&(b=h[0],d+=b.substr(0,a.generatedColumn),h[0]=b.substr(a.generatedColumn),m=a.generatedColumn)}else b=
h[0],d=b.substr(0,a.generatedColumn-m),h[0]=b.substr(a.generatedColumn-m),m=a.generatedColumn;e(q,d)}q=a},this);e(q,h.join("\n"));a.sources.forEach(function(b){var e=a.sourceContentFor(b);e&&g.setSourceContent(b,e)});return g};b.prototype.add=function(f){if(Array.isArray(f))f.forEach(function(a){this.add(a)},this);else if(f instanceof b||"string"===typeof f)f&&this.children.push(f);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+f);return this};
b.prototype.prepend=function(f){if(Array.isArray(f))for(var a=f.length-1;0<=a;a--)this.prepend(f[a]);else if(f instanceof b||"string"===typeof f)this.children.unshift(f);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+f);return this};b.prototype.walk=function(f){this.children.forEach(function(a){a instanceof b?a.walk(f):""!==a&&f(a,{source:this.source,line:this.line,column:this.column,name:this.name})},this)};b.prototype.join=function(b){var a,
e,g=this.children.length;if(0<g){a=[];for(e=0;e<g-1;e++)a.push(this.children[e]),a.push(b);a.push(this.children[e]);this.children=a}return this};b.prototype.replaceRight=function(f,a){var e=this.children[this.children.length-1];e instanceof b?e.replaceRight(f,a):"string"===typeof e?this.children[this.children.length-1]=e.replace(f,a):this.children.push("".replace(f,a));return this};b.prototype.setSourceContent=function(b,a){this.sourceContents[g.toSetString(b)]=a};b.prototype.walkSourceContents=function(f){this.children.forEach(function(a){a instanceof
b&&a.walkSourceContents(f)},this);Object.keys(this.sourceContents).forEach(function(a){f(g.fromSetString(a),this.sourceContents[a])},this)};b.prototype.toString=function(){var b="";this.walk(function(a){b+=a});return b};b.prototype.toStringWithSourceMap=function(b){var a="",e=1,g=0,h=new k(b),m=!1,q=null,w=null,y=null,t=null;this.walk(function(b,c){a+=b;null!==c.source&&null!==c.line&&null!==c.column?(q===c.source&&w===c.line&&y===c.column&&t===c.name||h.addMapping({source:c.source,original:{line:c.line,
column:c.column},generated:{line:e,column:g},name:c.name}),q=c.source,w=c.line,y=c.column,t=c.name,m=!0):m&&(h.addMapping({generated:{line:e,column:g}}),q=null,m=!1);b.split("").forEach(function(a){"\n"===a?(e++,g=0):g++})});this.walkSourceContents(function(a,b){h.setSourceContent(a,b)});return{code:a,map:h}};m.SourceNode=b})},{"./source-map-generator":14,"./util":16,amdefine:17}],16:[function(m,x,h){if("function"!==typeof w)var w=m("amdefine")(x,m);w(function(h,m,q){function b(b){return(b=b.match(g))?
{scheme:b[1],auth:b[3],host:b[4],port:b[6],path:b[7]}:null}function k(b){var a=b.scheme+"://";b.auth&&(a+=b.auth+"@");b.host&&(a+=b.host);b.port&&(a+=":"+b.port);b.path&&(a+=b.path);return a}m.getArg=function(b,a,e){if(a in b)return b[a];if(3===arguments.length)return e;throw Error('"'+a+'" is a required argument.');};var g=/([\w+\-.]+):\/\/((\w+:\w+)@)?([\w.]+)?(:(\d+))?(\S+)?/;m.urlParse=b;m.urlGenerate=k;m.join=function(f,a){var e;return a.match(g)?a:"/"===a.charAt(0)&&(e=b(f))?(e.path=a,k(e)):
f.replace(/\/$/,"")+"/"+a};m.toSetString=function(b){return"$"+b};m.fromSetString=function(b){return b.substr(1)};m.relative=function(f,a){f=f.replace(/\/$/,"");var e=b(f);return"/"==a.charAt(0)&&e&&"/"==e.path?a.slice(1):0===a.indexOf(f+"/")?a.substr(f.length+1):a}})},{amdefine:17}],17:[function(m,x,h){var w=m("__browserify_process"),B="/node_modules/source-map/node_modules/amdefine/amdefine.js";"use strict";x.exports=function(h,q){function b(a,b){var d;if(a&&"."===a.charAt(0)&&b){d=b.split("/");
d=d.slice(0,d.length-1);var c=d=d.concat(a.split("/")),e,f;for(e=0;c[e];e+=1)if(f=c[e],"."===f)c.splice(e,1),e-=1;else if(".."===f)if(1!==e||".."!==c[2]&&".."!==c[0])0<e&&(c.splice(e-1,2),e-=2);else break;a=d.join("/")}return a}function k(a){return function(e){return b(e,a)}}function g(a){function b(d){p[a]=d}b.fromText=function(a,b){throw Error("amdefine does not implement load.fromText");};return b}function f(a,b,d){var c,e,f;if(a)e=p[a]={},f={id:a,uri:B,exports:e},c=s(q,e,f,a);else{if(n)throw Error("amdefine with no module ID cannot be called more than once per file.");
n=!0;e=h.exports;f=h;c=s(q,e,f,h.id)}b&&(b=b.map(function(a){return c(a)}));b="function"===typeof d?d.apply(f.exports,b):d;void 0!==b&&(f.exports=b,a&&(p[a]=f.exports))}function a(a,b,d){Array.isArray(a)?(d=b,b=a,a=void 0):"string"!==typeof a&&(d=a,a=b=void 0);b&&!Array.isArray(b)&&(d=b,b=void 0);b||(b=["require","exports","module"]);a?e[a]=[a,b,d]:f(a,b,d)}var e={},p={},n=!1,v=m("path"),s,x;s=function(a,e,d,c){function f(b,g){if("string"===typeof b)return x(a,e,d,b,c);b=b.map(function(b){return x(a,
e,d,b,c)});w.nextTick(function(){g.apply(null,b)})}f.toUrl=function(a){return 0===a.indexOf(".")?b(a,v.dirname(d.filename)):a};return f};q=q||function(){return h.require.apply(h,arguments)};x=function(a,h,d,c,m){var n=c.indexOf("!"),q=c;if(-1===n){c=b(c,m);if("require"===c)return s(a,h,d,m);if("exports"===c)return h;if("module"===c)return d;if(p.hasOwnProperty(c))return p[c];if(e[c])return f.apply(null,e[c]),p[c];if(a)return a(q);throw Error("No module with ID: "+c);}q=c.substring(0,n);c=c.substring(n+
1,c.length);n=x(a,h,d,q,m);c=n.normalize?n.normalize(c,k(m)):b(c,m);p[c]||n.load(c,s(a,h,d,m),g(c),{});return p[c]};a.require=function(a){if(p[a])return p[a];if(e[a])return f.apply(null,e[a]),p[a]};a.amd={};return a}},{__browserify_process:7,path:4}],18:[function(m,x,h){function w(a){if(a in s)return s[a];try{if("undefined"!==typeof window){var b=new XMLHttpRequest;b.open("GET",a,!1);b.send(null);var e=4===b.readyState?b.responseText:null}else e=p.readFileSync(a,"utf8")}catch(f){e=null}return s[a]=
e}function B(a,b){var f=/^\w+:\/\/[^\/]*/.exec(a),f=f?f[0]:"";return f+e.resolve(a.slice(f.length),b)}function D(a){var b=/^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(a);return b?(a=t({source:b[2],line:b[3],column:b[4]}),"eval at "+b[1]+" ("+a.source+":"+a.line+":"+a.column+")"):(b=/^eval at ([^(]+) \((.+)\)$/.exec(a))?"eval at "+b[1]+" ("+D(b[2])+")":a}function q(a){var b=a.getFileName()||a.getScriptNameOrSourceURL();if(b){var e=t({source:b,line:a.getLineNumber(),column:a.getColumnNumber()});return{__proto__:a,
getFileName:function(){return e.source},getLineNumber:function(){return e.line},getColumnNumber:function(){return e.column},getScriptNameOrSourceURL:function(){return e.source}}}var f=a.isEval()&&a.getEvalOrigin();return f?(f=D(f),{__proto__:a,getEvalOrigin:function(){return f}}):a}function b(a,b){v&&(s={},A={});return a+b.map(function(a){return"\n at "+q(a)}).join("")}function k(a){a&&a.stack||(console.log("Uncaught exception:",a),g.exit());var b=/\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(a.stack);
if(b&&(b=t({source:b[1],line:b[2],column:b[3]}),p.existsSync(b.source))){var e=p.readFileSync(b.source,"utf8").split(/(?:\r\n|\r|\n)/)[b.line-1];e&&(console.log("\n"+b.source+":"+b.line),console.log(e),console.log(Array(+b.column).join(" ")+"^"))}console.log(a.stack);g.exit()}var g=m("__browserify_process"),f=m("__browserify_Buffer").Buffer,a=m("source-map").SourceMapConsumer,e=m("path"),p=m("fs"),n=!1,v=!1,s={},A={},y=function(a){var b=w(a),b=/\/\/[#@]\s*sourceMappingURL=(.*)\s*$/m.exec(b);if(!b)return null;
b=b[1];"data:application/json;base64,"==b.slice(0,29).toLowerCase()?a=(new f(b.slice(29),"base64")).toString():(a=e.dirname(a),b=B(a,b),a=w(b,"utf8"));return a?{url:b,map:a}:null},t=h.mapSourcePosition=function(b){var c=A[b.source];if(!c){var f=y(b.source);f&&(c=A[b.source]={url:f.url,map:new a(f.map)})}return c&&(f=c.map.originalPositionFor(b),null!==f.source)?(c.url&&(f.source=B(e.dirname(c.url),f.source)),f):b};h.install=function(a){if(!n){n=!0;Error.prepareStackTrace=b;a=a||{};var c="handleUncaughtExceptions"in
a?a.handleUncaughtExceptions:!0;v="emptyCacheBetweenOperations"in a?a.emptyCacheBetweenOperations:!1;a.retrieveSourceMap&&(y=a.retrieveSourceMap);if(c&&"undefined"===typeof window)g.on("uncaughtException",k)}}},{__browserify_Buffer:6,__browserify_process:7,fs:3,path:4,"source-map":8}]},{},[1]);return M});
(this.define||function(H,N){this.sourceMapSupport=N()})("browser-source-map-support",function(H){(function k(s,p,e){function r(h,c){if(!p[h]){if(!s[h]){var g="function"==typeof require&&require;if(!c&&g)return g(h,!0);if(u)return u(h,!0);throw Error("Cannot find module '"+h+"'");}g=p[h]={exports:{}};s[h][0].call(g.exports,function(c){var a=s[h][1][c];return r(a?a:c)},g,g.exports,k,s,p,e)}return p[h].exports}for(var u="function"==typeof require&&require,A=0;A<e.length;A++)r(e[A]);return r})({1:[function(k,
s,p){H=k("./source-map-support")},{"./source-map-support":18}],2:[function(k,s,p){},{}],3:[function(k,s,p){function e(f,n,K){if(!(this instanceof e))return new e(f,n,K);var b=typeof f;if("base64"===n&&"string"===b)for(f=f.trim?f.trim():f.replace(/^\s+|\s+$/g,"");0!==f.length%4;)f+="=";var a;if("number"===b)a=v(f);else if("string"===b)a=e.byteLength(f,n);else if("object"===b)a=v(f.length);else throw Error("First argument needs to be a number, array or string.");var d;e._useTypedArrays?d=e._augment(new Uint8Array(a)):
(d=this,d.length=a,d._isBuffer=!0);if(e._useTypedArrays&&"number"===typeof f.byteLength)d._set(f);else{var l=f;if(x(l)||e.isBuffer(l)||l&&"object"===typeof l&&"number"===typeof l.length)for(n=0;n<a;n++)e.isBuffer(f)?d[n]=f.readUInt8(n):d[n]=f[n];else if("string"===b)d.write(f,0,n);else if("number"===b&&!e._useTypedArrays&&!K)for(n=0;n<a;n++)d[n]=0}return d}function r(f,n,b){var a="";for(b=Math.min(f.length,b);n<b;n++)a+=String.fromCharCode(f[n]);return a}function u(f,n,b,a){a||(q("boolean"===typeof b,
"missing or invalid endian"),q(void 0!==n&&null!==n,"missing offset"),q(n+1<f.length,"Trying to read beyond buffer length"));a=f.length;if(!(n>=a))return b?(b=f[n],n+1<a&&(b|=f[n+1]<<8)):(b=f[n]<<8,n+1<a&&(b|=f[n+1])),b}function A(f,n,b,a){a||(q("boolean"===typeof b,"missing or invalid endian"),q(void 0!==n&&null!==n,"missing offset"),q(n+3<f.length,"Trying to read beyond buffer length"));a=f.length;if(!(n>=a)){var d;b?(n+2<a&&(d=f[n+2]<<16),n+1<a&&(d|=f[n+1]<<8),d|=f[n],n+3<a&&(d+=f[n+3]<<24>>>0)):
(n+1<a&&(d=f[n+1]<<16),n+2<a&&(d|=f[n+2]<<8),n+3<a&&(d|=f[n+3]),d+=f[n]<<24>>>0);return d}}function h(f,n,b,a){a||(q("boolean"===typeof b,"missing or invalid endian"),q(void 0!==n&&null!==n,"missing offset"),q(n+1<f.length,"Trying to read beyond buffer length"));if(!(n>=f.length))return f=u(f,n,b,!0),f&32768?-1*(65535-f+1):f}function c(f,n,b,a){a||(q("boolean"===typeof b,"missing or invalid endian"),q(void 0!==n&&null!==n,"missing offset"),q(n+3<f.length,"Trying to read beyond buffer length"));if(!(n>=
f.length))return f=A(f,n,b,!0),f&2147483648?-1*(4294967295-f+1):f}function g(f,n,b,a){a||(q("boolean"===typeof b,"missing or invalid endian"),q(n+3<f.length,"Trying to read beyond buffer length"));return F.read(f,n,b,23,4)}function m(f,n,b,a){a||(q("boolean"===typeof b,"missing or invalid endian"),q(n+7<f.length,"Trying to read beyond buffer length"));return F.read(f,n,b,52,8)}function a(f,n,b,a,d){d||(q(void 0!==n&&null!==n,"missing value"),q("boolean"===typeof a,"missing or invalid endian"),q(void 0!==
b&&null!==b,"missing offset"),q(b+1<f.length,"trying to write beyond buffer length"),I(n,65535));var l=f.length;if(!(b>=l))for(d=0,l=Math.min(l-b,2);d<l;d++)f[b+d]=(n&255<<8*(a?d:1-d))>>>8*(a?d:1-d)}function b(f,n,b,a,d){d||(q(void 0!==n&&null!==n,"missing value"),q("boolean"===typeof a,"missing or invalid endian"),q(void 0!==b&&null!==b,"missing offset"),q(b+3<f.length,"trying to write beyond buffer length"),I(n,4294967295));var l=f.length;if(!(b>=l))for(d=0,l=Math.min(l-b,4);d<l;d++)f[b+d]=n>>>
8*(a?d:3-d)&255}function d(f,n,b,d,l){l||(q(void 0!==n&&null!==n,"missing value"),q("boolean"===typeof d,"missing or invalid endian"),q(void 0!==b&&null!==b,"missing offset"),q(b+1<f.length,"Trying to write beyond buffer length"),J(n,32767,-32768));b>=f.length||(0<=n?a(f,n,b,d,l):a(f,65535+n+1,b,d,l))}function y(f,n,a,d,l){l||(q(void 0!==n&&null!==n,"missing value"),q("boolean"===typeof d,"missing or invalid endian"),q(void 0!==a&&null!==a,"missing offset"),q(a+3<f.length,"Trying to write beyond buffer length"),
J(n,2147483647,-2147483648));a>=f.length||(0<=n?b(f,n,a,d,l):b(f,4294967295+n+1,a,d,l))}function C(f,b,a,d,l){l||(q(void 0!==b&&null!==b,"missing value"),q("boolean"===typeof d,"missing or invalid endian"),q(void 0!==a&&null!==a,"missing offset"),q(a+3<f.length,"Trying to write beyond buffer length"),L(b,3.4028234663852886E38,-3.4028234663852886E38));a>=f.length||F.write(f,b,a,d,23,4)}function z(f,b,a,d,l){l||(q(void 0!==b&&null!==b,"missing value"),q("boolean"===typeof d,"missing or invalid endian"),
q(void 0!==a&&null!==a,"missing offset"),q(a+7<f.length,"Trying to write beyond buffer length"),L(b,1.7976931348623157E308,-1.7976931348623157E308));a>=f.length||F.write(f,b,a,d,52,8)}function B(f,b,a){if("number"!==typeof f)return a;f=~~f;if(f>=b)return b;if(0<=f)return f;f+=b;return 0<=f?f:0}function v(f){f=~~Math.ceil(+f);return 0>f?0:f}function x(f){return(Array.isArray||function(f){return"[object Array]"===Object.prototype.toString.call(f)})(f)}function D(f){return 16>f?"0"+f.toString(16):f.toString(16)}
function l(f){for(var b=[],a=0;a<f.length;a++){var d=f.charCodeAt(a);if(127>=d)b.push(f.charCodeAt(a));else{var l=a;55296<=d&&57343>=d&&a++;d=encodeURIComponent(f.slice(l,a+1)).substr(1).split("%");for(l=0;l<d.length;l++)b.push(parseInt(d[l],16))}}return b}function w(f){for(var b=[],a=0;a<f.length;a++)b.push(f.charCodeAt(a)&255);return b}function E(f,b,a,d){for(var l=0;l<d&&!(l+a>=b.length||l>=f.length);l++)b[l+a]=f[l];return l}function M(f){try{return decodeURIComponent(f)}catch(b){return String.fromCharCode(65533)}}
function I(f,b){q("number"===typeof f,"cannot write a non-number as a number");q(0<=f,"specified a negative value for writing an unsigned value");q(f<=b,"value is larger than maximum value for type");q(Math.floor(f)===f,"value has a fractional component")}function J(f,b,a){q("number"===typeof f,"cannot write a non-number as a number");q(f<=b,"value larger than maximum allowed value");q(f>=a,"value smaller than minimum allowed value");q(Math.floor(f)===f,"value has a fractional component")}function L(f,
b,a){q("number"===typeof f,"cannot write a non-number as a number");q(f<=b,"value larger than maximum allowed value");q(f>=a,"value smaller than minimum allowed value")}function q(f,b){if(!f)throw Error(b||"Failed assertion");}var G=k("base64-js"),F=k("ieee754");p.Buffer=e;p.SlowBuffer=e;p.INSPECT_MAX_BYTES=50;e.poolSize=8192;e._useTypedArrays=function(){try{var f=new ArrayBuffer(0),b=new Uint8Array(f);b.foo=function(){return 42};return 42===b.foo()&&"function"===typeof b.subarray}catch(a){return!1}}();
e.isEncoding=function(f){switch(String(f).toLowerCase()){case "hex":case "utf8":case "utf-8":case "ascii":case "binary":case "base64":case "raw":case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":return!0;default:return!1}};e.isBuffer=function(f){return!(null===f||void 0===f||!f._isBuffer)};e.byteLength=function(f,b){var a;f+="";switch(b||"utf8"){case "hex":a=f.length/2;break;case "utf8":case "utf-8":a=l(f).length;break;case "ascii":case "binary":case "raw":a=f.length;break;case "base64":a=G.toByteArray(f).length;
break;case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":a=2*f.length;break;default:throw Error("Unknown encoding");}return a};e.concat=function(f,b){q(x(f),"Usage: Buffer.concat(list, [totalLength])\nlist should be an Array.");if(0===f.length)return new e(0);if(1===f.length)return f[0];var a;if("number"!==typeof b)for(a=b=0;a<f.length;a++)b+=f[a].length;var d=new e(b),l=0;for(a=0;a<f.length;a++){var c=f[a];c.copy(d,l);l+=c.length}return d};e.prototype.write=function(f,b,a,d){if(isFinite(b))isFinite(a)||
(d=a,a=void 0);else{var c=d;d=b;b=a;a=c}b=Number(b)||0;c=this.length-b;a?(a=Number(a),a>c&&(a=c)):a=c;d=String(d||"utf8").toLowerCase();switch(d){case "hex":b=Number(b)||0;d=this.length-b;a?(a=Number(a),a>d&&(a=d)):a=d;d=f.length;q(0===d%2,"Invalid hex string");a>d/2&&(a=d/2);for(d=0;d<a;d++)c=parseInt(f.substr(2*d,2),16),q(!isNaN(c),"Invalid hex string"),this[b+d]=c;e._charsWritten=2*d;f=d;break;case "utf8":case "utf-8":f=e._charsWritten=E(l(f),this,b,a);break;case "ascii":f=e._charsWritten=E(w(f),
this,b,a);break;case "binary":f=e._charsWritten=E(w(f),this,b,a);break;case "base64":f=e._charsWritten=E(G.toByteArray(f),this,b,a);break;case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":d=e;for(var g,m=[],h=0;h<f.length;h++)g=f.charCodeAt(h),c=g>>8,g%=256,m.push(g),m.push(c);f=d._charsWritten=E(m,this,b,a);break;default:throw Error("Unknown encoding");}return f};e.prototype.toString=function(f,b,a){f=String(f||"utf8").toLowerCase();b=Number(b)||0;a=void 0!==a?Number(a):a=this.length;if(a===
b)return"";switch(f){case "hex":f=b;b=this.length;if(!f||0>f)f=0;if(!a||0>a||a>b)a=b;for(b="";f<a;f++)b+=D(this[f]);a=b;break;case "utf8":case "utf-8":var d=b;b=f="";for(a=Math.min(this.length,a);d<a;d++)127>=this[d]?(f+=M(b)+String.fromCharCode(this[d]),b=""):b+="%"+this[d].toString(16);a=f+M(b);break;case "ascii":a=r(this,b,a);break;case "binary":a=r(this,b,a);break;case "base64":f=b;a=0===f&&a===this.length?G.fromByteArray(this):G.fromByteArray(this.slice(f,a));break;case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":a=
this.slice(b,a);f="";for(b=0;b<a.length;b+=2)f+=String.fromCharCode(a[b]+256*a[b+1]);a=f;break;default:throw Error("Unknown encoding");}return a};e.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};e.prototype.copy=function(a,b,d,l){d||(d=0);l||0===l||(l=this.length);b||(b=0);if(l!==d&&0!==a.length&&0!==this.length)if(q(l>=d,"sourceEnd < sourceStart"),q(0<=b&&b<a.length,"targetStart out of bounds"),q(0<=d&&d<this.length,"sourceStart out of bounds"),
q(0<=l&&l<=this.length,"sourceEnd out of bounds"),l>this.length&&(l=this.length),a.length-b<l-d&&(l=a.length-b+d),l-=d,100>l||!e._useTypedArrays)for(var c=0;c<l;c++)a[c+b]=this[c+d];else a._set(this.subarray(d,d+l),b)};e.prototype.slice=function(b,a){var d=this.length;b=B(b,d,0);a=B(a,d,d);if(e._useTypedArrays)return e._augment(this.subarray(b,a));for(var d=a-b,l=new e(d,void 0,!0),c=0;c<d;c++)l[c]=this[c+b];return l};e.prototype.get=function(b){console.log(".get() is deprecated. Access using array indexes instead.");
return this.readUInt8(b)};e.prototype.set=function(b,a){console.log(".set() is deprecated. Access using array indexes instead.");return this.writeUInt8(b,a)};e.prototype.readUInt8=function(b,a){a||(q(void 0!==b&&null!==b,"missing offset"),q(b<this.length,"Trying to read beyond buffer length"));if(!(b>=this.length))return this[b]};e.prototype.readUInt16LE=function(b,a){return u(this,b,!0,a)};e.prototype.readUInt16BE=function(b,a){return u(this,b,!1,a)};e.prototype.readUInt32LE=function(b,a){return A(this,
b,!0,a)};e.prototype.readUInt32BE=function(b,a){return A(this,b,!1,a)};e.prototype.readInt8=function(b,a){a||(q(void 0!==b&&null!==b,"missing offset"),q(b<this.length,"Trying to read beyond buffer length"));if(!(b>=this.length))return this[b]&128?-1*(255-this[b]+1):this[b]};e.prototype.readInt16LE=function(b,a){return h(this,b,!0,a)};e.prototype.readInt16BE=function(b,a){return h(this,b,!1,a)};e.prototype.readInt32LE=function(b,a){return c(this,b,!0,a)};e.prototype.readInt32BE=function(b,a){return c(this,
b,!1,a)};e.prototype.readFloatLE=function(b,a){return g(this,b,!0,a)};e.prototype.readFloatBE=function(b,a){return g(this,b,!1,a)};e.prototype.readDoubleLE=function(b,a){return m(this,b,!0,a)};e.prototype.readDoubleBE=function(b,a){return m(this,b,!1,a)};e.prototype.writeUInt8=function(b,a,d){d||(q(void 0!==b&&null!==b,"missing value"),q(void 0!==a&&null!==a,"missing offset"),q(a<this.length,"trying to write beyond buffer length"),I(b,255));a>=this.length||(this[a]=b)};e.prototype.writeUInt16LE=function(b,
d,l){a(this,b,d,!0,l)};e.prototype.writeUInt16BE=function(b,d,l){a(this,b,d,!1,l)};e.prototype.writeUInt32LE=function(a,d,l){b(this,a,d,!0,l)};e.prototype.writeUInt32BE=function(a,d,l){b(this,a,d,!1,l)};e.prototype.writeInt8=function(b,a,d){d||(q(void 0!==b&&null!==b,"missing value"),q(void 0!==a&&null!==a,"missing offset"),q(a<this.length,"Trying to write beyond buffer length"),J(b,127,-128));a>=this.length||(0<=b?this.writeUInt8(b,a,d):this.writeUInt8(255+b+1,a,d))};e.prototype.writeInt16LE=function(b,
a,l){d(this,b,a,!0,l)};e.prototype.writeInt16BE=function(b,a,l){d(this,b,a,!1,l)};e.prototype.writeInt32LE=function(b,a,d){y(this,b,a,!0,d)};e.prototype.writeInt32BE=function(b,a,d){y(this,b,a,!1,d)};e.prototype.writeFloatLE=function(b,a,d){C(this,b,a,!0,d)};e.prototype.writeFloatBE=function(b,a,d){C(this,b,a,!1,d)};e.prototype.writeDoubleLE=function(b,a,d){z(this,b,a,!0,d)};e.prototype.writeDoubleBE=function(b,a,d){z(this,b,a,!1,d)};e.prototype.fill=function(b,a,d){b||(b=0);a||(a=0);d||(d=this.length);
"string"===typeof b&&(b=b.charCodeAt(0));q("number"===typeof b&&!isNaN(b),"value is not a number");q(d>=a,"end < start");if(d!==a&&0!==this.length)for(q(0<=a&&a<this.length,"start out of bounds"),q(0<=d&&d<=this.length,"end out of bounds");a<d;a++)this[a]=b};e.prototype.inspect=function(){for(var b=[],a=this.length,d=0;d<a;d++)if(b[d]=D(this[d]),d===p.INSPECT_MAX_BYTES){b[d+1]="...";break}return"<Buffer "+b.join(" ")+">"};e.prototype.toArrayBuffer=function(){if("undefined"!==typeof Uint8Array){if(e._useTypedArrays)return(new e(this)).buffer;
for(var b=new Uint8Array(this.length),a=0,d=b.length;a<d;a+=1)b[a]=this[a];return b.buffer}throw Error("Buffer.toArrayBuffer not supported in this browser");};var t=e.prototype;e._augment=function(b){b._isBuffer=!0;b._get=b.get;b._set=b.set;b.get=t.get;b.set=t.set;b.write=t.write;b.toString=t.toString;b.toLocaleString=t.toString;b.toJSON=t.toJSON;b.copy=t.copy;b.slice=t.slice;b.readUInt8=t.readUInt8;b.readUInt16LE=t.readUInt16LE;b.readUInt16BE=t.readUInt16BE;b.readUInt32LE=t.readUInt32LE;b.readUInt32BE=
t.readUInt32BE;b.readInt8=t.readInt8;b.readInt16LE=t.readInt16LE;b.readInt16BE=t.readInt16BE;b.readInt32LE=t.readInt32LE;b.readInt32BE=t.readInt32BE;b.readFloatLE=t.readFloatLE;b.readFloatBE=t.readFloatBE;b.readDoubleLE=t.readDoubleLE;b.readDoubleBE=t.readDoubleBE;b.writeUInt8=t.writeUInt8;b.writeUInt16LE=t.writeUInt16LE;b.writeUInt16BE=t.writeUInt16BE;b.writeUInt32LE=t.writeUInt32LE;b.writeUInt32BE=t.writeUInt32BE;b.writeInt8=t.writeInt8;b.writeInt16LE=t.writeInt16LE;b.writeInt16BE=t.writeInt16BE;
b.writeInt32LE=t.writeInt32LE;b.writeInt32BE=t.writeInt32BE;b.writeFloatLE=t.writeFloatLE;b.writeFloatBE=t.writeFloatBE;b.writeDoubleLE=t.writeDoubleLE;b.writeDoubleBE=t.writeDoubleBE;b.fill=t.fill;b.inspect=t.inspect;b.toArrayBuffer=t.toArrayBuffer;return b}},{"base64-js":4,ieee754:5}],4:[function(k,s,p){(function(e){function r(a){a=a.charCodeAt(0);if(a===k)return 62;if(a===h)return 63;if(a<c)return-1;if(a<c+10)return a-c+52;if(a<m+26)return a-m;if(a<g+26)return a-g+26}var u="undefined"!==typeof Uint8Array?
Uint8Array:Array,k=43,h=47,c=48,g=97,m=65;s.exports.toByteArray=function(a){function b(b){h[e++]=b}var d,c,g,m,h;if(0<a.length%4)throw Error("Invalid string. Length must be a multiple of 4");d=a.length;m="="===a.charAt(d-2)?2:"="===a.charAt(d-1)?1:0;h=new u(3*a.length/4-m);c=0<m?a.length-4:a.length;var e=0;for(d=0;d<c;d+=4)g=r(a.charAt(d))<<18|r(a.charAt(d+1))<<12|r(a.charAt(d+2))<<6|r(a.charAt(d+3)),b((g&16711680)>>16),b((g&65280)>>8),b(g&255);2===m?(g=r(a.charAt(d))<<2|r(a.charAt(d+1))>>4,b(g&255)):
1===m&&(g=r(a.charAt(d))<<10|r(a.charAt(d+1))<<4|r(a.charAt(d+2))>>2,b(g>>8&255),b(g&255));return h};s.exports.fromByteArray=function(a){var b,d=a.length%3,c="",g,m;b=0;for(m=a.length-d;b<m;b+=3)g=(a[b]<<16)+(a[b+1]<<8)+a[b+2],g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(g>>18&63)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(g>>12&63)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(g>>6&63)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(g&
63),c+=g;switch(d){case 1:g=a[a.length-1];c+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(g>>2);c+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(g<<4&63);c+="==";break;case 2:g=(a[a.length-2]<<8)+a[a.length-1],c+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(g>>10),c+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(g>>4&63),c+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(g<<
2&63),c+="="}return c}})()},{}],5:[function(k,s,p){p.read=function(e,r,u,k,h){var c;c=8*h-k-1;var g=(1<<c)-1,m=g>>1,a=-7;h=u?h-1:0;var b=u?-1:1,d=e[r+h];h+=b;u=d&(1<<-a)-1;d>>=-a;for(a+=c;0<a;u=256*u+e[r+h],h+=b,a-=8);c=u&(1<<-a)-1;u>>=-a;for(a+=k;0<a;c=256*c+e[r+h],h+=b,a-=8);if(0===u)u=1-m;else{if(u===g)return c?NaN:Infinity*(d?-1:1);c+=Math.pow(2,k);u-=m}return(d?-1:1)*c*Math.pow(2,u-k)};p.write=function(e,r,u,k,h,c){var g,m=8*c-h-1,a=(1<<m)-1,b=a>>1,d=23===h?Math.pow(2,-24)-Math.pow(2,-77):0;
c=k?0:c-1;var y=k?1:-1,C=0>r||0===r&&0>1/r?1:0;r=Math.abs(r);isNaN(r)||Infinity===r?(r=isNaN(r)?1:0,k=a):(k=Math.floor(Math.log(r)/Math.LN2),1>r*(g=Math.pow(2,-k))&&(k--,g*=2),r=1<=k+b?r+d/g:r+d*Math.pow(2,1-b),2<=r*g&&(k++,g/=2),k+b>=a?(r=0,k=a):1<=k+b?(r=(r*g-1)*Math.pow(2,h),k+=b):(r=r*Math.pow(2,b-1)*Math.pow(2,h),k=0));for(;8<=h;e[u+c]=r&255,c+=y,r/=256,h-=8);k=k<<h|r;for(m+=h;0<m;e[u+c]=k&255,c+=y,k/=256,m-=8);e[u+c-y]|=128*C}},{}],6:[function(k,s,p){function e(){}k=s.exports={};k.nextTick=
function(){if("undefined"!==typeof window&&window.setImmediate)return function(e){return window.setImmediate(e)};if("undefined"!==typeof window&&window.postMessage&&window.addEventListener){var e=[];window.addEventListener("message",function(k){var p=k.source;p!==window&&null!==p||"process-tick"!==k.data||(k.stopPropagation(),0<e.length&&e.shift()())},!0);return function(k){e.push(k);window.postMessage("process-tick","*")}}return function(e){setTimeout(e,0)}}();k.title="browser";k.browser=!0;k.env=
{};k.argv=[];k.on=e;k.once=e;k.off=e;k.emit=e;k.binding=function(e){throw Error("process.binding is not supported");};k.cwd=function(){return"/"};k.chdir=function(e){throw Error("process.chdir is not supported");}},{}],7:[function(k,s,p){(function(e){function k(c,g){for(var m=0,a=c.length-1;0<=a;a--){var b=c[a];"."===b?c.splice(a,1):".."===b?(c.splice(a,1),m++):m&&(c.splice(a,1),m--)}if(g)for(;m--;m)c.unshift("..");return c}function u(c,g){if(c.filter)return c.filter(g);for(var m=[],a=0;a<c.length;a++)g(c[a],
a,c)&&m.push(c[a]);return m}var s=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;p.resolve=function(){for(var c="",g=!1,m=arguments.length-1;-1<=m&&!g;m--){var a=0<=m?arguments[m]:e.cwd();if("string"!==typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(c=a+"/"+c,g="/"===a.charAt(0))}c=k(u(c.split("/"),function(b){return!!b}),!g).join("/");return(g?"/":"")+c||"."};p.normalize=function(c){var g=p.isAbsolute(c),m="/"===h(c,-1);(c=k(u(c.split("/"),function(a){return!!a}),
!g).join("/"))||g||(c=".");c&&m&&(c+="/");return(g?"/":"")+c};p.isAbsolute=function(c){return"/"===c.charAt(0)};p.join=function(){var c=Array.prototype.slice.call(arguments,0);return p.normalize(u(c,function(c,m){if("string"!==typeof c)throw new TypeError("Arguments to path.join must be strings");return c}).join("/"))};p.relative=function(c,g){function m(b){for(var a=0;a<b.length&&""===b[a];a++);for(var d=b.length-1;0<=d&&""===b[d];d--);return a>d?[]:b.slice(a,d-a+1)}c=p.resolve(c).substr(1);g=p.resolve(g).substr(1);
for(var a=m(c.split("/")),b=m(g.split("/")),d=Math.min(a.length,b.length),e=d,h=0;h<d;h++)if(a[h]!==b[h]){e=h;break}d=[];for(h=e;h<a.length;h++)d.push("..");d=d.concat(b.slice(e));return d.join("/")};p.sep="/";p.delimiter=":";p.dirname=function(c){var g=s.exec(c).slice(1);c=g[0];g=g[1];if(!c&&!g)return".";g&&(g=g.substr(0,g.length-1));return c+g};p.basename=function(c,g){var m=s.exec(c).slice(1)[2];g&&m.substr(-1*g.length)===g&&(m=m.substr(0,m.length-g.length));return m};p.extname=function(c){return s.exec(c).slice(1)[3]};
var h="b"==="ab".substr(-1)?function(c,g,m){return c.substr(g,m)}:function(c,g,m){0>g&&(g=c.length+g);return c.substr(g,m)}}).call(this,k("node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js"))},{"node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":6}],8:[function(k,s,p){p.SourceMapGenerator=k("./source-map/source-map-generator").SourceMapGenerator;p.SourceMapConsumer=k("./source-map/source-map-consumer").SourceMapConsumer;
p.SourceNode=k("./source-map/source-node").SourceNode},{"./source-map/source-map-consumer":13,"./source-map/source-map-generator":14,"./source-map/source-node":15}],9:[function(k,s,p){if("function"!==typeof e)var e=k("amdefine")(s,k);e(function(e,k,p){function h(){this._array=[];this._set={}}var c=e("./util");h.fromArray=function(c,m){for(var a=new h,b=0,d=c.length;b<d;b++)a.add(c[b],m);return a};h.prototype.add=function(g,m){var a=this.has(g),b=this._array.length;a&&!m||this._array.push(g);a||(this._set[c.toSetString(g)]=
b)};h.prototype.has=function(g){return Object.prototype.hasOwnProperty.call(this._set,c.toSetString(g))};h.prototype.indexOf=function(g){if(this.has(g))return this._set[c.toSetString(g)];throw Error('"'+g+'" is not in the set.');};h.prototype.at=function(c){if(0<=c&&c<this._array.length)return this._array[c];throw Error("No element indexed by "+c);};h.prototype.toArray=function(){return this._array.slice()};k.ArraySet=h})},{"./util":16,amdefine:17}],10:[function(k,s,p){if("function"!==typeof e)var e=
k("amdefine")(s,k);e(function(e,k,p){var h=e("./base64");k.encode=function(c){var g="",m=0>c?(-c<<1)+1:(c<<1)+0;do c=m&31,m>>>=5,0<m&&(c|=32),g+=h.encode(c);while(0<m);return g};k.decode=function(c){var g=0,m=c.length,a=0,b=0,d,e;do{if(g>=m)throw Error("Expected more digits in base 64 VLQ value.");e=h.decode(c.charAt(g++));d=!!(e&32);e&=31;a+=e<<b;b+=5}while(d);m=a>>1;return{value:1===(a&1)?-m:m,rest:c.slice(g)}}})},{"./base64":11,amdefine:17}],11:[function(k,s,p){if("function"!==typeof e)var e=k("amdefine")(s,
k);e(function(e,k,p){var h={},c={};"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("").forEach(function(g,e){h[g]=e;c[e]=g});k.encode=function(g){if(g in c)return c[g];throw new TypeError("Must be between 0 and 63: "+g);};k.decode=function(c){if(c in h)return h[c];throw new TypeError("Not a valid base 64 digit: "+c);}})},{amdefine:17}],12:[function(k,s,p){if("function"!==typeof e)var e=k("amdefine")(s,k);e(function(e,k,p){function h(c,g,e,a,b){var d=Math.floor((g-c)/2)+c,
k=b(e,a[d],!0);return 0===k?a[d]:0<k?1<g-d?h(d,g,e,a,b):a[d]:1<d-c?h(c,d,e,a,b):0>c?null:a[c]}k.search=function(c,g,e){return 0<g.length?h(-1,g.length,c,g,e):null}})},{amdefine:17}],13:[function(k,s,p){if("function"!==typeof e)var e=k("amdefine")(s,k);e(function(e,k,p){function h(b){var a=b;"string"===typeof b&&(a=JSON.parse(b.replace(/^\)\]\}'/,"")));b=c.getArg(a,"version");var e=c.getArg(a,"sources"),g=c.getArg(a,"names",[]),h=c.getArg(a,"sourceRoot",null),k=c.getArg(a,"sourcesContent",null),v=
c.getArg(a,"mappings"),a=c.getArg(a,"file",null);if(b!=this._version)throw Error("Unsupported version: "+b);this._names=m.fromArray(g,!0);this._sources=m.fromArray(e,!0);this.sourceRoot=h;this.sourcesContent=k;this._mappings=v;this.file=a}var c=e("./util"),g=e("./binary-search"),m=e("./array-set").ArraySet,a=e("./base64-vlq");h.fromSourceMap=function(b){var a=Object.create(h.prototype);a._names=m.fromArray(b._names.toArray(),!0);a._sources=m.fromArray(b._sources.toArray(),!0);a.sourceRoot=b._sourceRoot;
a.sourcesContent=b._generateSourcesContent(a._sources.toArray(),a.sourceRoot);a.file=b._file;a.__generatedMappings=b._mappings.slice().sort(c.compareByGeneratedPositions);a.__originalMappings=b._mappings.slice().sort(c.compareByOriginalPositions);return a};h.prototype._version=3;Object.defineProperty(h.prototype,"sources",{get:function(){return this._sources.toArray().map(function(b){return this.sourceRoot?c.join(this.sourceRoot,b):b},this)}});h.prototype.__generatedMappings=null;Object.defineProperty(h.prototype,
"_generatedMappings",{get:function(){this.__generatedMappings||(this.__generatedMappings=[],this.__originalMappings=[],this._parseMappings(this._mappings,this.sourceRoot));return this.__generatedMappings}});h.prototype.__originalMappings=null;Object.defineProperty(h.prototype,"_originalMappings",{get:function(){this.__originalMappings||(this.__generatedMappings=[],this.__originalMappings=[],this._parseMappings(this._mappings,this.sourceRoot));return this.__originalMappings}});h.prototype._parseMappings=
function(b,d){for(var e=1,g=0,h=0,m=0,k=0,x=0,p=/^[,;]/,l=b,w;0<l.length;)if(";"===l.charAt(0))e++,l=l.slice(1),g=0;else if(","===l.charAt(0))l=l.slice(1);else{w={};w.generatedLine=e;l=a.decode(l);w.generatedColumn=g+l.value;g=w.generatedColumn;l=l.rest;if(0<l.length&&!p.test(l.charAt(0))){l=a.decode(l);w.source=this._sources.at(k+l.value);k+=l.value;l=l.rest;if(0===l.length||p.test(l.charAt(0)))throw Error("Found a source, but no line and column");l=a.decode(l);w.originalLine=h+l.value;h=w.originalLine;
w.originalLine+=1;l=l.rest;if(0===l.length||p.test(l.charAt(0)))throw Error("Found a source and line, but no column");l=a.decode(l);w.originalColumn=m+l.value;m=w.originalColumn;l=l.rest;0<l.length&&!p.test(l.charAt(0))&&(l=a.decode(l),w.name=this._names.at(x+l.value),x+=l.value,l=l.rest)}this.__generatedMappings.push(w);"number"===typeof w.originalLine&&this.__originalMappings.push(w)}this.__generatedMappings.sort(c.compareByGeneratedPositions);this.__originalMappings.sort(c.compareByOriginalPositions)};
h.prototype._findMapping=function(b,a,c,e,h){if(0>=b[c])throw new TypeError("Line must be greater than or equal to 1, got "+b[c]);if(0>b[e])throw new TypeError("Column must be greater than or equal to 0, got "+b[e]);return g.search(b,a,h)};h.prototype.originalPositionFor=function(b){b={generatedLine:c.getArg(b,"line"),generatedColumn:c.getArg(b,"column")};if(b=this._findMapping(b,this._generatedMappings,"generatedLine","generatedColumn",c.compareByGeneratedPositions)){var a=c.getArg(b,"source",null);
a&&this.sourceRoot&&(a=c.join(this.sourceRoot,a));return{source:a,line:c.getArg(b,"originalLine",null),column:c.getArg(b,"originalColumn",null),name:c.getArg(b,"name",null)}}return{source:null,line:null,column:null,name:null}};h.prototype.sourceContentFor=function(b){if(!this.sourcesContent)return null;this.sourceRoot&&(b=c.relative(this.sourceRoot,b));if(this._sources.has(b))return this.sourcesContent[this._sources.indexOf(b)];var a;if(this.sourceRoot&&(a=c.urlParse(this.sourceRoot))){var e=b.replace(/^file:\/\//,
"");if("file"==a.scheme&&this._sources.has(e))return this.sourcesContent[this._sources.indexOf(e)];if((!a.path||"/"==a.path)&&this._sources.has("/"+b))return this.sourcesContent[this._sources.indexOf("/"+b)]}throw Error('"'+b+'" is not in the SourceMap.');};h.prototype.generatedPositionFor=function(b){b={source:c.getArg(b,"source"),originalLine:c.getArg(b,"line"),originalColumn:c.getArg(b,"column")};this.sourceRoot&&(b.source=c.relative(this.sourceRoot,b.source));return(b=this._findMapping(b,this._originalMappings,
"originalLine","originalColumn",c.compareByOriginalPositions))?{line:c.getArg(b,"generatedLine",null),column:c.getArg(b,"generatedColumn",null)}:{line:null,column:null}};h.GENERATED_ORDER=1;h.ORIGINAL_ORDER=2;h.prototype.eachMapping=function(b,a,e){a=a||null;switch(e||h.GENERATED_ORDER){case h.GENERATED_ORDER:e=this._generatedMappings;break;case h.ORIGINAL_ORDER:e=this._originalMappings;break;default:throw Error("Unknown order of iteration.");}var g=this.sourceRoot;e.map(function(b){var a=b.source;
a&&g&&(a=c.join(g,a));return{source:a,generatedLine:b.generatedLine,generatedColumn:b.generatedColumn,originalLine:b.originalLine,originalColumn:b.originalColumn,name:b.name}}).forEach(b,a)};k.SourceMapConsumer=h})},{"./array-set":9,"./base64-vlq":10,"./binary-search":12,"./util":16,amdefine:17}],14:[function(k,s,p){if("function"!==typeof e)var e=k("amdefine")(s,k);e(function(e,k,p){function h(a){this._file=g.getArg(a,"file");this._sourceRoot=g.getArg(a,"sourceRoot",null);this._sources=new m;this._names=
new m;this._mappings=[];this._sourcesContents=null}var c=e("./base64-vlq"),g=e("./util"),m=e("./array-set").ArraySet;h.prototype._version=3;h.fromSourceMap=function(a){var b=a.sourceRoot,d=new h({file:a.file,sourceRoot:b});a.eachMapping(function(a){var c={generated:{line:a.generatedLine,column:a.generatedColumn}};a.source&&(c.source=a.source,b&&(c.source=g.relative(b,c.source)),c.original={line:a.originalLine,column:a.originalColumn},a.name&&(c.name=a.name));d.addMapping(c)});a.sources.forEach(function(b){var c=
a.sourceContentFor(b);c&&d.setSourceContent(b,c)});return d};h.prototype.addMapping=function(a){var b=g.getArg(a,"generated"),d=g.getArg(a,"original",null),c=g.getArg(a,"source",null);a=g.getArg(a,"name",null);this._validateMapping(b,d,c,a);c&&!this._sources.has(c)&&this._sources.add(c);a&&!this._names.has(a)&&this._names.add(a);this._mappings.push({generatedLine:b.line,generatedColumn:b.column,originalLine:null!=d&&d.line,originalColumn:null!=d&&d.column,source:c,name:a})};h.prototype.setSourceContent=
function(a,b){var d=a;this._sourceRoot&&(d=g.relative(this._sourceRoot,d));null!==b?(this._sourcesContents||(this._sourcesContents={}),this._sourcesContents[g.toSetString(d)]=b):(delete this._sourcesContents[g.toSetString(d)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))};h.prototype.applySourceMap=function(a,b){b||(b=a.file);var d=this._sourceRoot;d&&(b=g.relative(d,b));var c=new m,e=new m;this._mappings.forEach(function(h){if(h.source===b&&h.originalLine){var m=a.originalPositionFor({line:h.originalLine,
column:h.originalColumn});null!==m.source&&(h.source=d?g.relative(d,m.source):m.source,h.originalLine=m.line,h.originalColumn=m.column,null!==m.name&&null!==h.name&&(h.name=m.name))}(m=h.source)&&!c.has(m)&&c.add(m);(h=h.name)&&!e.has(h)&&e.add(h)},this);this._sources=c;this._names=e;a.sources.forEach(function(b){var c=a.sourceContentFor(b);c&&(d&&(b=g.relative(d,b)),this.setSourceContent(b,c))},this)};h.prototype._validateMapping=function(a,b,d,c){if(!(a&&"line"in a&&"column"in a&&0<a.line&&0<=a.column&&
!b&&!d&&!c||a&&"line"in a&&"column"in a&&b&&"line"in b&&"column"in b&&0<a.line&&0<=a.column&&0<b.line&&0<=b.column&&d))throw Error("Invalid mapping: "+JSON.stringify({generated:a,source:d,original:b,name:c}));};h.prototype._serializeMappings=function(){var a=0,b=1,d=0,e=0,h=0,m=0,k="",v;this._mappings.sort(g.compareByGeneratedPositions);for(var x=0,p=this._mappings.length;x<p;x++){v=this._mappings[x];if(v.generatedLine!==b)for(a=0;v.generatedLine!==b;)k+=";",b++;else if(0<x){if(!g.compareByGeneratedPositions(v,
this._mappings[x-1]))continue;k+=","}k+=c.encode(v.generatedColumn-a);a=v.generatedColumn;v.source&&(k+=c.encode(this._sources.indexOf(v.source)-m),m=this._sources.indexOf(v.source),k+=c.encode(v.originalLine-1-e),e=v.originalLine-1,k+=c.encode(v.originalColumn-d),d=v.originalColumn,v.name&&(k+=c.encode(this._names.indexOf(v.name)-h),h=this._names.indexOf(v.name)))}return k};h.prototype._generateSourcesContent=function(a,b){return a.map(function(a){if(!this._sourcesContents)return null;b&&(a=g.relative(b,
a));a=g.toSetString(a);return Object.prototype.hasOwnProperty.call(this._sourcesContents,a)?this._sourcesContents[a]:null},this)};h.prototype.toJSON=function(){var a={version:this._version,file:this._file,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};this._sourceRoot&&(a.sourceRoot=this._sourceRoot);this._sourcesContents&&(a.sourcesContent=this._generateSourcesContent(a.sources,a.sourceRoot));return a};h.prototype.toString=function(){return JSON.stringify(this)};
k.SourceMapGenerator=h})},{"./array-set":9,"./base64-vlq":10,"./util":16,amdefine:17}],15:[function(k,s,p){if("function"!==typeof e)var e=k("amdefine")(s,k);e(function(e,k,p){function h(c,a,b,d,e){this.children=[];this.sourceContents={};this.line=void 0===c?null:c;this.column=void 0===a?null:a;this.source=void 0===b?null:b;this.name=void 0===e?null:e;null!=d&&this.add(d)}var c=e("./source-map-generator").SourceMapGenerator,g=e("./util");h.fromStringWithSourceMap=function(c,a){function b(b,a){null===
b||void 0===b.source?d.add(a):d.add(new h(b.originalLine,b.originalColumn,b.source,a,b.name))}var d=new h,e=c.split("\n"),g=1,k=0,p=null;a.eachMapping(function(a){if(null===p){for(;g<a.generatedLine;)d.add(e.shift()+"\n"),g++;if(k<a.generatedColumn){var c=e[0];d.add(c.substr(0,a.generatedColumn));e[0]=c.substr(a.generatedColumn);k=a.generatedColumn}}else{if(g<a.generatedLine){var h="";do h+=e.shift()+"\n",g++,k=0;while(g<a.generatedLine);k<a.generatedColumn&&(c=e[0],h+=c.substr(0,a.generatedColumn),
e[0]=c.substr(a.generatedColumn),k=a.generatedColumn)}else c=e[0],h=c.substr(0,a.generatedColumn-k),e[0]=c.substr(a.generatedColumn-k),k=a.generatedColumn;b(p,h)}p=a},this);b(p,e.join("\n"));a.sources.forEach(function(b){var c=a.sourceContentFor(b);c&&d.setSourceContent(b,c)});return d};h.prototype.add=function(c){if(Array.isArray(c))c.forEach(function(a){this.add(a)},this);else if(c instanceof h||"string"===typeof c)c&&this.children.push(c);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+
c);return this};h.prototype.prepend=function(c){if(Array.isArray(c))for(var a=c.length-1;0<=a;a--)this.prepend(c[a]);else if(c instanceof h||"string"===typeof c)this.children.unshift(c);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+c);return this};h.prototype.walk=function(c){for(var a,b=0,d=this.children.length;b<d;b++)a=this.children[b],a instanceof h?a.walk(c):""!==a&&c(a,{source:this.source,line:this.line,column:this.column,name:this.name})};
h.prototype.join=function(c){var a,b,d=this.children.length;if(0<d){a=[];for(b=0;b<d-1;b++)a.push(this.children[b]),a.push(c);a.push(this.children[b]);this.children=a}return this};h.prototype.replaceRight=function(c,a){var b=this.children[this.children.length-1];b instanceof h?b.replaceRight(c,a):"string"===typeof b?this.children[this.children.length-1]=b.replace(c,a):this.children.push("".replace(c,a));return this};h.prototype.setSourceContent=function(c,a){this.sourceContents[g.toSetString(c)]=
a};h.prototype.walkSourceContents=function(c){for(var a=0,b=this.children.length;a<b;a++)this.children[a]instanceof h&&this.children[a].walkSourceContents(c);for(var d=Object.keys(this.sourceContents),a=0,b=d.length;a<b;a++)c(g.fromSetString(d[a]),this.sourceContents[d[a]])};h.prototype.toString=function(){var c="";this.walk(function(a){c+=a});return c};h.prototype.toStringWithSourceMap=function(e){var a="",b=1,d=0,g=new c(e),h=!1,k=null,p=null,v=null,x=null;this.walk(function(c,l){a+=c;null!==l.source&&
null!==l.line&&null!==l.column?(k===l.source&&p===l.line&&v===l.column&&x===l.name||g.addMapping({source:l.source,original:{line:l.line,column:l.column},generated:{line:b,column:d},name:l.name}),k=l.source,p=l.line,v=l.column,x=l.name,h=!0):h&&(g.addMapping({generated:{line:b,column:d}}),k=null,h=!1);c.split("").forEach(function(a){"\n"===a?(b++,d=0):d++})});this.walkSourceContents(function(b,a){g.setSourceContent(b,a)});return{code:a,map:g}};k.SourceNode=h})},{"./source-map-generator":14,"./util":16,
amdefine:17}],16:[function(k,s,p){if("function"!==typeof e)var e=k("amdefine")(s,k);e(function(e,k,p){function h(b){return(b=b.match(m))?{scheme:b[1],auth:b[3],host:b[4],port:b[6],path:b[7]}:null}function c(b){var a=b.scheme+"://";b.auth&&(a+=b.auth+"@");b.host&&(a+=b.host);b.port&&(a+=":"+b.port);b.path&&(a+=b.path);return a}function g(a,d){var c=a||"",e=d||"";return(c>e)-(c<e)}k.getArg=function(a,d,c){if(d in a)return a[d];if(3===arguments.length)return c;throw Error('"'+d+'" is a required argument.');
};var m=/([\w+\-.]+):\/\/((\w+:\w+)@)?([\w.]+)?(:(\d+))?(\S+)?/,a=/^data:.+\,.+/;k.urlParse=h;k.urlGenerate=c;k.join=function(b,d){var e;return d.match(m)||d.match(a)?d:"/"===d.charAt(0)&&(e=h(b))?(e.path=d,c(e)):b.replace(/\/$/,"")+"/"+d};k.toSetString=function(a){return"$"+a};k.fromSetString=function(a){return a.substr(1)};k.relative=function(a,d){a=a.replace(/\/$/,"");var c=h(a);return"/"==d.charAt(0)&&c&&"/"==c.path?d.slice(1):0===d.indexOf(a+"/")?d.substr(a.length+1):d};k.compareByOriginalPositions=
function(a,d,c){var e;return(e=g(a.source,d.source))||(e=a.originalLine-d.originalLine)||(e=a.originalColumn-d.originalColumn)||c||(e=g(a.name,d.name))?e:(e=a.generatedLine-d.generatedLine)?e:a.generatedColumn-d.generatedColumn};k.compareByGeneratedPositions=function(a,d,c){var e;return(e=a.generatedLine-d.generatedLine)||(e=a.generatedColumn-d.generatedColumn)||c||(e=g(a.source,d.source))||(e=a.originalLine-d.originalLine)?e:(e=a.originalColumn-d.originalColumn)?e:g(a.name,d.name)}})},{amdefine:17}],
17:[function(k,s,p){(function(e,p){s.exports=function(u,s){function h(a,b){var d;if(a&&"."===a.charAt(0)&&b){d=b.split("/");d=d.slice(0,d.length-1);var c=d=d.concat(a.split("/")),e,g;for(e=0;c[e];e+=1)if(g=c[e],"."===g)c.splice(e,1),e-=1;else if(".."===g)if(1!==e||".."!==c[2]&&".."!==c[0])0<e&&(c.splice(e-1,2),e-=2);else break;a=d.join("/")}return a}function c(a){return function(b){return h(b,a)}}function g(a){function b(c){d[a]=c}b.fromText=function(a,b){throw Error("amdefine does not implement load.fromText");
};return b}function m(a,b,c){var e,g,h;if(a)g=d[a]={},h={id:a,uri:p,exports:g},e=z(s,g,h,a);else{if(y)throw Error("amdefine with no module ID cannot be called more than once per file.");y=!0;g=u.exports;h=u;e=z(s,g,h,u.id)}b&&(b=b.map(function(a){return e(a)}));b="function"===typeof c?c.apply(h.exports,b):c;void 0!==b&&(h.exports=b,a&&(d[a]=h.exports))}function a(a,c,d){Array.isArray(a)?(d=c,c=a,a=void 0):"string"!==typeof a&&(d=a,a=c=void 0);c&&!Array.isArray(c)&&(d=c,c=void 0);c||(c=["require",
"exports","module"]);a?b[a]=[a,c,d]:m(a,c,d)}var b={},d={},y=!1,C=k("path"),z,B;z=function(a,b,c,d){function g(h,k){if("string"===typeof h)return B(a,b,c,h,d);h=h.map(function(e){return B(a,b,c,e,d)});e.nextTick(function(){k.apply(null,h)})}g.toUrl=function(a){return 0===a.indexOf(".")?h(a,C.dirname(c.filename)):a};return g};s=s||function(){return u.require.apply(u,arguments)};B=function(a,e,k,l,w){var p=l.indexOf("!"),r=l;if(-1===p){l=h(l,w);if("require"===l)return z(a,e,k,w);if("exports"===l)return e;
if("module"===l)return k;if(d.hasOwnProperty(l))return d[l];if(b[l])return m.apply(null,b[l]),d[l];if(a)return a(r);throw Error("No module with ID: "+l);}r=l.substring(0,p);l=l.substring(p+1,l.length);p=B(a,e,k,r,w);l=p.normalize?p.normalize(l,c(w)):h(l,w);d[l]||p.load(l,z(a,e,k,w),g(l),{});return d[l]};a.require=function(a){if(d[a])return d[a];if(b[a])return m.apply(null,b[a]),d[a]};a.amd={};return a}}).call(this,k("node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js"),
"/node_modules/source-map/node_modules/amdefine/amdefine.js")},{"node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":6,path:7}],18:[function(k,s,p){(function(e,r){function s(a){if(a in x)return x[a];try{if("undefined"!==typeof window){var b=new XMLHttpRequest;b.open("GET",a,!1);b.send(null);var c=4===b.readyState?b.responseText:null}else c=z.readFileSync(a,"utf8")}catch(d){c=null}return x[a]=c}function A(a,b){if(!a)return b;var c=C.dirname(a),d=/^\w+:\/\/[^\/]*/.exec(c),
d=d?d[0]:"";return d+C.resolve(c.slice(d.length),b)}function h(a){var b=s(a),b=/\/\/[#@]\s*sourceMappingURL=(.*)\s*$/m.exec(b);if(!b)return null;b=b[1];"data:application/json;base64,"==b.slice(0,29).toLowerCase()?(a=(new r(b.slice(29),"base64")).toString(),b=null):(b=A(a,b),a=s(b,"utf8"));return a?{url:b,map:a}:null}function c(a){var b=D[a.source];if(!b){var c=h(a.source);c&&(b=D[a.source]={url:c.url,map:new y(c.map)},b.map.sourcesContent&&b.map.sources.forEach(function(a,c){var d=b.map.sourcesContent[c];
if(d){var e=A(b.url,a);x[e]=d}}))}return b&&(c=b.map.originalPositionFor(a),null!==c.source)?(c.source=A(b.url,c.source),c):a}function g(a){var b=/^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(a);return b?(a=c({source:b[2],line:b[3],column:b[4]-1}),"eval at "+b[1]+" ("+a.source+":"+a.line+":"+(a.column+1)+")"):(b=/^eval at ([^(]+) \((.+)\)$/.exec(a))?"eval at "+b[1]+" ("+g(b[2])+")":a}function m(a){var b=a.getFileName()||a.getScriptNameOrSourceURL();if(b){var d=c({source:b,line:a.getLineNumber(),column:a.getColumnNumber()-
1});return{__proto__:a,getFileName:function(){return d.source},getLineNumber:function(){return d.line},getColumnNumber:function(){return d.column+1},getScriptNameOrSourceURL:function(){return d.source}}}var e=a.isEval()&&a.getEvalOrigin();return e?(e=g(e),{__proto__:a,getEvalOrigin:function(){return e}}):a}function a(a,b){v&&(x={},D={});return a+b.map(function(a){return"\n at "+m(a)}).join("")}function b(a){var b=/\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(a.stack);if(b){a=b[1];var c=+b[2],b=+b[3],
d=x[a];!d&&z.existsSync(a)&&(d=z.readFileSync(a,"utf8"));if(d&&(d=d.split(/(?:\r\n|\r|\n)/)[c-1]))return"\n"+a+":"+c+"\n"+d+"\n"+Array(b).join(" ")+"^"}return null}function d(a){if(a&&a.stack){var c=b(a);null!==c&&console.log(c);console.log(a.stack)}else console.log("Uncaught exception:",a);e.exit(1)}var y=k("source-map").SourceMapConsumer,C=k("path"),z=k("fs"),B=!1,v=!1,x={},D={};p.wrapCallSite=m;p.getErrorSource=b;p.mapSourcePosition=c;p.retrieveSourceMap=h;p.install=function(b){if(!B){B=!0;Error.prepareStackTrace=
a;b=b||{};var c="handleUncaughtExceptions"in b?b.handleUncaughtExceptions:!0;v="emptyCacheBetweenOperations"in b?b.emptyCacheBetweenOperations:!1;b.retrieveFile&&(s=b.retrieveFile);b.retrieveSourceMap&&(h=b.retrieveSourceMap);if(c&&"undefined"===typeof window)e.on("uncaughtException",d)}}}).call(this,k("node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js"),k("buffer").Buffer)},{"node_modules/browserify/node_modules/insert-module-globals/node_modules/process/browser.js":6,
buffer:3,fs:2,path:7,"source-map":8}]},{},[1]);return H});

@@ -1,2 +0,2 @@

// Generated by CoffeeScript 1.6.3
// Generated by CoffeeScript 1.7.1
(function() {

@@ -25,4 +25,2 @@ var e, foo;

/*
//@ sourceMappingURL=script.map
*/
//# sourceMappingURL=script.map

@@ -21,3 +21,3 @@ #!/usr/bin/env node

'(this["define"] || function(name, callback) { this["sourceMapSupport"] = callback(); })("browser-source-map-support", function(sourceMapSupport) {',
stdout.replace(/\bbyte\b/g, 'bite').replace(/@license/g, 'license'),
stdout.replace(/\bbyte\b/g, 'bite').replace(new RegExp(__dirname + '/', 'g'), '').replace(/@license/g, 'license'),
'return sourceMapSupport});',

@@ -24,0 +24,0 @@ ].join('\n');

{
"name": "source-map-support",
"description": "Fixes stack traces for files with source maps",
"version": "0.2.5",
"version": "0.2.6",
"main": "./source-map-support.js",

@@ -10,8 +10,8 @@ "scripts": {

"dependencies": {
"source-map": "0.1.29"
"source-map": "0.1.32"
},
"devDependencies": {
"coffee-script": "1.6.3",
"browserify": "2.35.2",
"mocha": "1.8.1"
"coffee-script": "1.7.1",
"browserify": "3.44.2",
"mocha": "1.18.2"
},

@@ -18,0 +18,0 @@ "repository": {

@@ -79,3 +79,3 @@ # Source Map Support

"names": [],
"mappings": ";;;AAAA,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC"
"mappings": ";;;AAAA,MAAM,IAAI"
}

@@ -88,12 +88,13 @@

original.js:1
throw new Error("test"); // This is the original code
throw new Error('test'); // This is the original code
^
Error: test
at Object.<anonymous> (original.js:1:7)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.runMain (module.js:492:10)
at process.startup.processNextTick.process._tickCallback (node.js:244:9)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:901:3

@@ -118,15 +119,16 @@ #### TypeScript Demo

demo.ts:6
demo.ts:5
bar() { throw new Error('this is a demo'); }
^
^
Error: this is a demo
at Foo.bar (demo.ts:6:16)
at new Foo (demo.ts:5:23)
at Object.<anonymous> (demo.ts:8)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Foo.bar (demo.ts:5:17)
at new Foo (demo.ts:4:24)
at Object.<anonymous> (demo.ts:7:1)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.runMain (module.js:492:10)
at process.startup.processNextTick.process._tickCallback (node.js:244:9)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:901:3

@@ -149,16 +151,16 @@ #### CoffeeScript Demo

demo.coffee:4
demo.coffee:3
bar = -> throw new Error 'this is a demo'
^
^
Error: this is a demo
at bar (demo.coffee:4:21)
at foo (demo.coffee:5:3)
at Object.<anonymous> (demo.coffee:6)
at Object.<anonymous> (demo.coffee:2)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at bar (demo.coffee:3:22)
at foo (demo.coffee:4:3)
at Object.<anonymous> (demo.coffee:5:1)
at Object.<anonymous> (demo.coffee:1:1)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.runMain (module.js:492:10)
at process.startup.processNextTick.process._tickCallback (node.js:244:9)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)

@@ -165,0 +167,0 @@ ## License

@@ -48,3 +48,5 @@ var SourceMapConsumer = require('source-map').SourceMapConsumer;

// in case we are in the browser (i.e. directories may start with "http://")
function supportRelativeURL(dir, url) {
function supportRelativeURL(file, url) {
if (!file) return url;
var dir = path.dirname(file);
var match = /^\w+:\/\/[^\/]*/.exec(dir);

@@ -60,3 +62,3 @@ var protocol = match ? match[0] : '';

// constructor).
var retrieveSourceMap = function (source) {
function retrieveSourceMap(source) {
// Get the URL of the source map

@@ -74,6 +76,6 @@ var fileData = retrieveFile(source);

sourceMapData = new Buffer(sourceMappingURL.slice(dataUrlPrefix.length), "base64").toString();
sourceMappingURL = null;
} else {
// Support source map URLs relative to the source URL
var dir = path.dirname(source);
sourceMappingURL = supportRelativeURL(dir, sourceMappingURL);
sourceMappingURL = supportRelativeURL(source, sourceMappingURL);
sourceMapData = retrieveFile(sourceMappingURL, 'utf8');

@@ -90,5 +92,5 @@ }

};
};
}
var mapSourcePosition = exports.mapSourcePosition = function(position) {
function mapSourcePosition(position) {
var sourceMap = sourceMapCache[position.source];

@@ -103,2 +105,14 @@ if (!sourceMap) {

};
// Load all sources stored inline with the source map into the file cache
// to pretend like they are already loaded. They may not exist on disk.
if (sourceMap.map.sourcesContent) {
sourceMap.map.sources.forEach(function(source, i) {
var contents = sourceMap.map.sourcesContent[i];
if (contents) {
var url = supportRelativeURL(sourceMap.url, source);
fileContentsCache[url] = contents;
}
});
}
}

@@ -117,6 +131,4 @@ }

if (originalPosition.source !== null) {
if (sourceMap.url) {
originalPosition.source = supportRelativeURL(
path.dirname(sourceMap.url), originalPosition.source);
}
originalPosition.source = supportRelativeURL(
sourceMap.url, originalPosition.source);
return originalPosition;

@@ -127,3 +139,3 @@ }

return position;
};
}

@@ -139,6 +151,6 @@ // Parses code generated by FormatEvalOrigin(), a function inside V8:

line: match[3],
column: match[4]
column: match[4] - 1
});
return 'eval at ' + match[1] + ' (' + position.source + ':' +
position.line + ':' + position.column + ')';
position.line + ':' + (position.column + 1) + ')';
}

@@ -165,3 +177,3 @@

line: frame.getLineNumber(),
column: frame.getColumnNumber()
column: frame.getColumnNumber() - 1
});

@@ -172,3 +184,3 @@ return {

getLineNumber: function() { return position.line; },
getColumnNumber: function() { return position.column; },
getColumnNumber: function() { return position.column + 1; },
getScriptNameOrSourceURL: function() { return position.source; }

@@ -204,29 +216,47 @@ };

// Mimic node's stack trace printing when an exception escapes the process
function handleUncaughtExceptions(error) {
if (!error || !error.stack) {
console.log('Uncaught exception:', error);
process.exit();
}
// Generate position and snippet of original source with pointer
function getErrorSource(error) {
var match = /\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(error.stack);
if (match) {
var position = mapSourcePosition({
source: match[1],
line: match[2],
column: match[3]
});
if (fs.existsSync(position.source)) {
var contents = fs.readFileSync(position.source, 'utf8');
var line = contents.split(/(?:\r\n|\r|\n)/)[position.line - 1];
if (line) {
console.log('\n' + position.source + ':' + position.line);
console.log(line);
console.log(new Array(+position.column).join(' ') + '^');
var source = match[1];
var line = +match[2];
var column = +match[3];
// Support the inline sourceContents inside the source map
var contents = fileContentsCache[source];
// Support files on disk
if (!contents && fs.existsSync(source)) {
contents = fs.readFileSync(source, 'utf8');
}
// Format the line from the original source code like node does
if (contents) {
var code = contents.split(/(?:\r\n|\r|\n)/)[line - 1];
if (code) {
return '\n' + source + ':' + line + '\n' + code + '\n' +
new Array(column).join(' ') + '^';
}
}
}
console.log(error.stack);
process.exit();
return null;
}
// Mimic node's stack trace printing when an exception escapes the process
function handleUncaughtExceptions(error) {
if (!error || !error.stack) {
console.log('Uncaught exception:', error);
} else {
var source = getErrorSource(error);
if (source !== null) console.log(source);
console.log(error.stack);
}
process.exit(1);
}
exports.wrapCallSite = wrapCallSite;
exports.getErrorSource = getErrorSource;
exports.mapSourcePosition = mapSourcePosition;
exports.retrieveSourceMap = retrieveSourceMap;
exports.install = function(options) {

@@ -244,2 +274,7 @@ if (!alreadyInstalled) {

// Allow sources to be found by methods other than reading the files
// directly from disk.
if (options.retrieveFile)
retrieveFile = options.retrieveFile;
// Allow source maps to be found by methods other than reading the files

@@ -246,0 +281,0 @@ // directly from disk.

@@ -32,4 +32,4 @@ require('./source-map-support').install({

sourceMap.addMapping({
generated: { line: 100, column: 1 },
original: { line: 100, column: 1 },
generated: { line: 100, column: 0 },
original: { line: 100, column: 0 },
source: '.original.js'

@@ -43,4 +43,4 @@ });

sourceMap.addMapping({
generated: { line: 1, column: 1 },
original: { line: 1, column: 1 },
generated: { line: 1, column: 0 },
original: { line: 1, column: 0 },
source: '.original.js'

@@ -55,4 +55,4 @@ });

sourceMap.addMapping({
generated: { line: i, column: 1 },
original: { line: 1000 + i, column: 100 + i },
generated: { line: i, column: 0 },
original: { line: 1000 + i, column: 99 + i },
source: 'line' + i + '.js'

@@ -64,2 +64,17 @@ });

function createMultiLineSourceMapWithSourcesContent() {
var sourceMap = createEmptySourceMap();
var original = new Array(1001).join('\n');
for (var i = 1; i <= 100; i++) {
sourceMap.addMapping({
generated: { line: i, column: 0 },
original: { line: 1000 + i, column: 4 },
source: 'original.js'
});
original += ' line ' + i + '\n';
}
sourceMap.setSourceContent('original.js', original);
return sourceMap;
}
function compareStackTrace(sourceMap, source, expected) {

@@ -233,2 +248,11 @@ // Check once with a separate source map

it('sourcesContent with data URL', function() {
compareStackTrace(createMultiLineSourceMapWithSourcesContent(), [
'throw new Error("test");'
], [
'Error: test',
/^ at Object\.exports\.test \(.*\/original.js:1001:5\)$/
]);
});
it('default options', function(done) {

@@ -309,1 +333,33 @@ compareStdout(done, createSingleLineSourceMap(), [

});
it('specifically requested error source', function(done) {
compareStdout(done, createSingleLineSourceMap(), [
'',
'function foo() { throw new Error("this is the error"); }',
'var sms = require("./source-map-support");',
'sms.install({ handleUncaughtExceptions: false });',
'process.on("uncaughtException", function (e) { console.log("SRC:" + sms.getErrorSource(e)); });',
'process.nextTick(foo);'
], [
'SRC:',
/\/.original.js:1$/,
'this is the original code',
'^'
]);
});
it('sourcesContent', function(done) {
compareStdout(done, createMultiLineSourceMapWithSourcesContent(), [
'',
'function foo() { throw new Error("this is the error"); }',
'require("./source-map-support").install();',
'process.nextTick(foo);',
'process.nextTick(function() { process.exit(1); });'
], [
/\/original\.js:1002$/,
' line 2',
' ^',
'Error: this is the error',
/^ at foo \(.*\/original\.js:1002:5\)$/
]);
});

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc