146 lines
71 KiB
JavaScript
146 lines
71 KiB
JavaScript
/*
|
|
* Support for source maps in V8 stack traces
|
|
* https://github.com/evanw/node-source-map-support
|
|
*/
|
|
(function(h,u,p){function f(e,a){if(!u[e]){if(!h[e]){var c="function"==typeof require&&require;if(!a&&c)return c(e,!0);if(D)return D(e,!0);throw Error("Cannot find module '"+e+"'");}c=u[e]={exports:{}};h[e][0].call(c.exports,function(a){var d=h[e][1][a];return f(d?d:a)},c,c.exports)}return u[e].exports}for(var D="function"==typeof require&&require,k=0;k<p.length;k++)f(p[k]);return f})({1:[function(h,u,p){h("./source-map-support").install()},{"./source-map-support":12}],2:[function(h,u,p){p.SourceMapGenerator=
|
|
h("./source-map/source-map-generator").SourceMapGenerator;p.SourceMapConsumer=h("./source-map/source-map-consumer").SourceMapConsumer;p.SourceNode=h("./source-map/source-node").SourceNode},{"./source-map/source-map-consumer":7,"./source-map/source-map-generator":8,"./source-map/source-node":9}],3:[function(h,u,p){if("function"!==typeof f)var f=h("amdefine")(u,h);f(function(f,k,e){function a(){this._array=[];this._set={}}var c=f("./util");a.fromArray=function(c){for(var d=new a,g=0,b=c.length;g<b;g++)d.add(c[g]);
|
|
return d};a.prototype.add=function(a){var d=this._array.length;this._array.push(a);this.has(a)||(this._set[c.toSetString(a)]=d)};a.prototype.has=function(a){return Object.prototype.hasOwnProperty.call(this._set,c.toSetString(a))};a.prototype.indexOf=function(a){if(this.has(a))return this._set[c.toSetString(a)];throw Error('"'+a+'" is not in the set.');};a.prototype.at=function(a){if(0<=a&&a<this._array.length)return this._array[a];throw Error("No element indexed by "+a);};a.prototype.toArray=function(){return this._array.slice()};
|
|
k.ArraySet=a})},{"./util":10,amdefine:11}],4:[function(h,u,p){if("function"!==typeof f)var f=h("amdefine")(u,h);f(function(f,k,e){var a=f("./base64");k.encode=function(c){var e="",d=0>c?(-c<<1)+1:(c<<1)+0;do c=d&31,d>>>=5,0<d&&(c|=32),e+=a.encode(c);while(0<d);return e};k.decode=function(c){var e=0,d=c.length,g=0,b=0,w,t;do{if(e>=d)throw Error("Expected more digits in base 64 VLQ value.");t=a.decode(c.charAt(e++));w=!!(t&32);t&=31;g+=t<<b;b+=5}while(w);d=g>>1;return{value:1===(g&1)?-d:d,rest:c.slice(e)}}})},
|
|
{"./base64":5,amdefine:11}],5:[function(h,u,p){if("function"!==typeof f)var f=h("amdefine")(u,h);f(function(f,k,e){var a={},c={};"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("").forEach(function(e,d){a[e]=d;c[d]=e});k.encode=function(a){if(a in c)return c[a];throw new TypeError("Must be between 0 and 63: "+a);};k.decode=function(c){if(c in a)return a[c];throw new TypeError("Not a valid base 64 digit: "+c);}})},{amdefine:11}],6:[function(h,u,p){if("function"!==typeof f)var f=
|
|
h("amdefine")(u,h);f(function(f,k,e){function a(c,e,d,g,b){var w=Math.floor((e-c)/2)+c,t=b(d,g[w]);return 0===t?g[w]:0<t?1<e-w?a(w,e,d,g,b):g[w]:1<w-c?a(c,w,d,g,b):0>c?null:g[c]}k.search=function(c,e,d){return 0<e.length?a(-1,e.length,c,e,d):null}})},{amdefine:11}],7:[function(h,u,p){if("function"!==typeof f)var f=h("amdefine")(u,h);f(function(f,k,e){function a(b){var a=b;"string"===typeof b&&(a=JSON.parse(b.replace(/^\)\]\}'/,"")));b=c.getArg(a,"version");var g=c.getArg(a,"sources"),e=c.getArg(a,
|
|
"names"),n=c.getArg(a,"sourceRoot",null),f=c.getArg(a,"sourcesContent",null),r=c.getArg(a,"mappings"),a=c.getArg(a,"file");if(b!==this._version)throw Error("Unsupported version: "+b);this._names=d.fromArray(e);this._sources=d.fromArray(g);this.sourceRoot=n;this.sourcesContent=f;this.file=a;this._generatedMappings=[];this._originalMappings=[];this._parseMappings(r,n)}var c=f("./util"),n=f("./binary-search"),d=f("./array-set").ArraySet,g=f("./base64-vlq");a.prototype._version=3;Object.defineProperty(a.prototype,
|
|
"sources",{get:function(){return this._sources.toArray().map(function(b){return this.sourceRoot?c.join(this.sourceRoot,b):b},this)}});a.prototype._parseMappings=function(b,a){for(var d=1,c=0,e=0,n=0,r=0,s=0,v=/^[,;]/,m=b,f;0<m.length;)if(";"===m.charAt(0))d++,m=m.slice(1),c=0;else if(","===m.charAt(0))m=m.slice(1);else{f={};f.generatedLine=d;m=g.decode(m);f.generatedColumn=c+m.value;c=f.generatedColumn;m=m.rest;if(0<m.length&&!v.test(m.charAt(0))){m=g.decode(m);f.source=this._sources.at(r+m.value);
|
|
r+=m.value;m=m.rest;if(0===m.length||v.test(m.charAt(0)))throw Error("Found a source, but no line and column");m=g.decode(m);f.originalLine=e+m.value;e=f.originalLine;f.originalLine+=1;m=m.rest;if(0===m.length||v.test(m.charAt(0)))throw Error("Found a source and line, but no column");m=g.decode(m);f.originalColumn=n+m.value;n=f.originalColumn;m=m.rest;0<m.length&&!v.test(m.charAt(0))&&(m=g.decode(m),f.name=this._names.at(s+m.value),s+=m.value,m=m.rest)}this._generatedMappings.push(f);"number"===typeof f.originalLine&&
|
|
this._originalMappings.push(f)}this._originalMappings.sort(this._compareOriginalPositions)};a.prototype._compareOriginalPositions=function(b,a){if(b.source>a.source)return 1;if(b.source<a.source)return-1;var d=b.originalLine-a.originalLine;return 0===d?b.originalColumn-a.originalColumn:d};a.prototype._compareGeneratedPositions=function(b,a){var d=b.generatedLine-a.generatedLine;return 0===d?b.generatedColumn-a.generatedColumn:d};a.prototype._findMapping=function(b,a,d,c,g){if(0>=b[d])throw new TypeError("Line must be greater than or equal to 1, got "+
|
|
b[d]);if(0>b[c])throw new TypeError("Column must be greater than or equal to 0, got "+b[c]);return n.search(b,a,g)};a.prototype.originalPositionFor=function(b){b={generatedLine:c.getArg(b,"line"),generatedColumn:c.getArg(b,"column")};if(b=this._findMapping(b,this._generatedMappings,"generatedLine","generatedColumn",this._compareGeneratedPositions)){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}};a.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 d=b.replace(/^file:\/\//,"");if("file"==a.scheme&&this._sources.has(d))return this.sourcesContent[this._sources.indexOf(d)];if((!a.path||
|
|
"/"==a.path)&&this._sources.has("/"+b))return this.sourcesContent[this._sources.indexOf("/"+b)]}throw Error('"'+b+'" is not in the SourceMap.');};a.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",this._compareOriginalPositions))?{line:c.getArg(b,"generatedLine",
|
|
null),column:c.getArg(b,"generatedColumn",null)}:{line:null,column:null}};a.GENERATED_ORDER=1;a.ORIGINAL_ORDER=2;a.prototype.eachMapping=function(b,d,g){d=d||null;switch(g||a.GENERATED_ORDER){case a.GENERATED_ORDER:g=this._generatedMappings;break;case a.ORIGINAL_ORDER:g=this._originalMappings;break;default:throw Error("Unknown order of iteration.");}var e=this.sourceRoot;g.map(function(b){var a=b.source;a&&e&&(a=c.join(e,a));return{source:a,generatedLine:b.generatedLine,generatedColumn:b.generatedColumn,
|
|
originalLine:b.originalLine,originalColumn:b.originalColumn,name:b.name}}).forEach(b,d)};k.SourceMapConsumer=a})},{"./array-set":3,"./base64-vlq":4,"./binary-search":6,"./util":10,amdefine:11}],8:[function(h,u,p){if("function"!==typeof f)var f=h("amdefine")(u,h);f(function(f,k,e){function a(a){this._file=b.getArg(a,"file");this._sourceRoot=b.getArg(a,"sourceRoot",null);this._sources=new w;this._names=new w;this._mappings=[];this._sourcesContents=null}function c(b,a){var d=(b&&b.line)-(a&&a.line);
|
|
return d?d:(b&&b.column)-(a&&a.column)}function n(b,a){b=b||"";a=a||"";return(b>a)-(b<a)}function d(b,a){return c(b.generated,a.generated)||c(b.original,a.original)||n(b.source,a.source)||n(b.name,a.name)}var g=f("./base64-vlq"),b=f("./util"),w=f("./array-set").ArraySet;a.prototype._version=3;a.fromSourceMap=function(d){var c=d.sourceRoot,g=new a({file:d.file,sourceRoot:c});d.eachMapping(function(a){var d={generated:{line:a.generatedLine,column:a.generatedColumn}};a.source&&(d.source=a.source,c&&
|
|
(d.source=b.relative(c,d.source)),d.original={line:a.originalLine,column:a.originalColumn},a.name&&(d.name=a.name));g.addMapping(d)});d.sources.forEach(function(b){var a=d.sourceContentFor(b);a&&g.setSourceContent(b,a)});return g};a.prototype.addMapping=function(a){var d=b.getArg(a,"generated"),c=b.getArg(a,"original",null),g=b.getArg(a,"source",null);a=b.getArg(a,"name",null);this._validateMapping(d,c,g,a);g&&!this._sources.has(g)&&this._sources.add(g);a&&!this._names.has(a)&&this._names.add(a);
|
|
this._mappings.push({generated:d,original:c,source:g,name:a})};a.prototype.setSourceContent=function(a,d){var c=a;this._sourceRoot&&(c=b.relative(this._sourceRoot,c));null!==d?(this._sourcesContents||(this._sourcesContents={}),this._sourcesContents[b.toSetString(c)]=d):(delete this._sourcesContents[b.toSetString(c)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))};a.prototype.applySourceMap=function(a,d){d||(d=a.file);var c=this._sourceRoot;c&&(d=b.relative(c,d));var g=
|
|
new w,e=new w;this._mappings.forEach(function(s){if(s.source===d&&s.original){var v=a.originalPositionFor({line:s.original.line,column:s.original.column});null!==v.source&&(s.source=c?b.relative(c,v.source):v.source,s.original.line=v.line,s.original.column=v.column,null!==v.name&&null!==s.name&&(s.name=v.name))}(v=s.source)&&!g.has(v)&&g.add(v);(s=s.name)&&!e.has(s)&&e.add(s)},this);this._sources=g;this._names=e;a.sources.forEach(function(d){var g=a.sourceContentFor(d);g&&(c&&(d=b.relative(c,d)),
|
|
this.setSourceContent(d,g))},this)};a.prototype._validateMapping=function(b,a,d,c){if(!(b&&"line"in b&&"column"in b&&0<b.line&&0<=b.column&&!a&&!d&&!c||b&&"line"in b&&"column"in b&&a&&"line"in a&&"column"in a&&0<b.line&&0<=b.column&&0<a.line&&0<=a.column&&d))throw Error("Invalid mapping.");};a.prototype._serializeMappings=function(){var b=0,a=1,c=0,e=0,n=0,s=0,v="",m;this._mappings.sort(d);for(var w=0,f=this._mappings.length;w<f;w++){m=this._mappings[w];if(m.generated.line!==a)for(b=0;m.generated.line!==
|
|
a;)v+=";",a++;else if(0<w){if(!d(m,this._mappings[w-1]))continue;v+=","}v+=g.encode(m.generated.column-b);b=m.generated.column;m.source&&m.original&&(v+=g.encode(this._sources.indexOf(m.source)-s),s=this._sources.indexOf(m.source),v+=g.encode(m.original.line-1-e),e=m.original.line-1,v+=g.encode(m.original.column-c),c=m.original.column,m.name&&(v+=g.encode(this._names.indexOf(m.name)-n),n=this._names.indexOf(m.name)))}return v};a.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(d){a.sourceRoot&&(d=b.relative(a.sourceRoot,d));return Object.prototype.hasOwnProperty.call(this._sourcesContents,b.toSetString(d))?this._sourcesContents[b.toSetString(d)]:null},this));return a};a.prototype.toString=function(){return JSON.stringify(this)};k.SourceMapGenerator=a})},{"./array-set":3,
|
|
"./base64-vlq":4,"./util":10,amdefine:11}],9:[function(h,u,p){if("function"!==typeof f)var f=h("amdefine")(u,h);f(function(f,k,e){function a(a,c,b,e,n){this.children=[];this.sourceContents={};this.line=void 0===a?null:a;this.column=void 0===c?null:c;this.source=void 0===b?null:b;this.name=void 0===n?null:n;null!=e&&this.add(e)}var c=f("./source-map-generator").SourceMapGenerator,n=f("./util");a.fromStringWithSourceMap=function(d,c){function b(b,d){null===b||void 0===b.source?e.add(d):e.add(new a(b.originalLine,
|
|
b.originalColumn,b.source,d,b.name))}var e=new a,n=d.split("\n"),f=1,k=0,h=null;c.eachMapping(function(a){if(null===h){for(;f<a.generatedLine;)e.add(n.shift()+"\n"),f++;if(k<a.generatedColumn){var d=n[0];e.add(d.substr(0,a.generatedColumn));n[0]=d.substr(a.generatedColumn);k=a.generatedColumn}}else{if(f<a.generatedLine){var c="";do c+=n.shift()+"\n",f++,k=0;while(f<a.generatedLine);k<a.generatedColumn&&(d=n[0],c+=d.substr(0,a.generatedColumn),n[0]=d.substr(a.generatedColumn),k=a.generatedColumn)}else d=
|
|
n[0],c=d.substr(0,a.generatedColumn-k),n[0]=d.substr(a.generatedColumn-k),k=a.generatedColumn;b(h,c)}h=a},this);b(h,n.join("\n"));c.sources.forEach(function(a){var b=c.sourceContentFor(a);b&&e.setSourceContent(a,b)});return e};a.prototype.add=function(d){if(Array.isArray(d))d.forEach(function(a){this.add(a)},this);else if(d instanceof a||"string"===typeof d)d&&this.children.push(d);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+d);return this};
|
|
a.prototype.prepend=function(d){if(Array.isArray(d))for(var c=d.length-1;0<=c;c--)this.prepend(d[c]);else if(d instanceof a||"string"===typeof d)this.children.unshift(d);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+d);return this};a.prototype.walk=function(d){this.children.forEach(function(c){c instanceof a?c.walk(d):""!==c&&d(c,{source:this.source,line:this.line,column:this.column,name:this.name})},this)};a.prototype.join=function(a){var c,
|
|
b,e=this.children.length;if(0<e){c=[];for(b=0;b<e-1;b++)c.push(this.children[b]),c.push(a);c.push(this.children[b]);this.children=c}return this};a.prototype.replaceRight=function(d,c){var b=this.children[this.children.length-1];b instanceof a?b.replaceRight(d,c):"string"===typeof b?this.children[this.children.length-1]=b.replace(d,c):this.children.push("".replace(d,c));return this};a.prototype.setSourceContent=function(a,c){this.sourceContents[n.toSetString(a)]=c};a.prototype.walkSourceContents=function(d){this.children.forEach(function(c){c instanceof
|
|
a&&c.walkSourceContents(d)},this);Object.keys(this.sourceContents).forEach(function(a){d(n.fromSetString(a),this.sourceContents[a])},this)};a.prototype.toString=function(){var a="";this.walk(function(c){a+=c});return a};a.prototype.toStringWithSourceMap=function(a){var e="",b=1,n=0,f=new c(a),k=!1;this.walk(function(a,d){e+=a;null!==d.source&&null!==d.line&&null!==d.column?(f.addMapping({source:d.source,original:{line:d.line,column:d.column},generated:{line:b,column:n},name:d.name}),k=!0):k&&(f.addMapping({generated:{line:b,
|
|
column:n}}),k=!1);a.split("").forEach(function(a){"\n"===a?(b++,n=0):n++})});this.walkSourceContents(function(a,b){f.setSourceContent(a,b)});return{code:e,map:f}};k.SourceNode=a})},{"./source-map-generator":8,"./util":10,amdefine:11}],10:[function(h,u,p){if("function"!==typeof f)var f=h("amdefine")(u,h);f(function(f,k,e){function a(a){return(a=a.match(n))?{scheme:a[1],auth:a[3],host:a[4],port:a[6],path:a[7]}:null}function c(a){var c=a.scheme+"://";a.auth&&(c+=a.auth+"@");a.host&&(c+=a.host);a.port&&
|
|
(c+=":"+a.port);a.path&&(c+=a.path);return c}k.getArg=function(a,c,b){if(c in a)return a[c];if(3===arguments.length)return b;throw Error('"'+c+'" is a required argument.');};var n=/([\w+\-.]+):\/\/((\w+:\w+)@)?([\w.]+)?(:(\d+))?(\S+)?/;k.urlParse=a;k.urlGenerate=c;k.join=function(d,e){var b;return e.match(n)?e:"/"===e.charAt(0)&&(b=a(d))?(b.path=e,c(b)):d.replace(/\/$/,"")+"/"+e};k.toSetString=function(a){return"$"+a};k.fromSetString=function(a){return a.substr(1)};k.relative=function(c,e){c=c.replace(/\/$/,
|
|
"");var b=a(c);return"/"==e.charAt(0)&&b&&"/"==b.path?e.slice(1):0===e.indexOf(c+"/")?e.substr(c.length+1):e}})},{amdefine:11}],11:[function(h,u,p){(function(f,D){var k=h("path");u.exports=function(e,a){function c(a,b){var c;if(a&&"."===a.charAt(0)&&b){c=b.split("/");c=c.slice(0,c.length-1);var d=c=c.concat(a.split("/")),e,g;for(e=0;d[e];e+=1)if(g=d[e],"."===g)d.splice(e,1),e-=1;else if(".."===g)if(1!==e||".."!==d[2]&&".."!==d[0])0<e&&(d.splice(e-1,2),e-=2);else break;a=c.join("/")}return a}function n(a){return function(b){return c(b,
|
|
a)}}function d(a){function b(c){t[a]=c}b.fromText=function(a,b){throw Error("amdefine does not implement load.fromText");};return b}function g(b,c,d){var g,n,f;if(b)n=t[b]={},f={id:b,uri:D,exports:n},g=h(a,n,f,b);else{if(q)throw Error("amdefine with no module ID cannot be called more than once per file.");q=!0;n=e.exports;f=e;g=h(a,n,f,e.id)}c&&(c=c.map(function(a){return g(a)}));c="function"===typeof d?d.apply(e.exports,c):d;void 0!==c&&(f.exports=c,b&&(t[b]=f.exports))}function b(a,b,c){Array.isArray(a)?
|
|
(c=b,b=a,a=void 0):"string"!==typeof a&&(c=a,a=b=void 0);b&&!Array.isArray(b)&&(c=b,b=void 0);b||(b=["require","exports","module"]);a?w[a]=[a,b,c]:g(a,b,c)}var w={},t={},q=!1,h,z;h=function(a,b,d,e){function g(c,n){if("string"===typeof c)return z(a,b,d,c,e);c=c.map(function(c){return z(a,b,d,c,e)});f.nextTick(function(){n.apply(null,c)})}g.toUrl=function(a){return 0===a.indexOf(".")?c(a,k.dirname(d.filename)):a};return g};a=a||function(){return e.require.apply(e,arguments)};z=function(a,b,e,m,f){var k=
|
|
m.indexOf("!"),q=m;if(-1===k){m=c(m,f);if("require"===m)return h(a,b,e,f);if("exports"===m)return b;if("module"===m)return e;if(t.hasOwnProperty(m))return t[m];if(w[m])return g.apply(null,w[m]),t[m];if(a)return a(q);throw Error("No module with ID: "+m);}q=m.substring(0,k);m=m.substring(k+1,m.length);k=z(a,b,e,q,f);m=k.normalize?k.normalize(m,n(f)):c(m,f);t[m]||k.load(m,h(a,b,e,f),d(m),{});return t[m]};b.require=function(a){if(t[a])return t[a];if(w[a])return g.apply(null,w[a]),t[a]};b.amd={};return b}})(h("__browserify_process"),
|
|
"/node_modules/source-map/node_modules/amdefine/amdefine.js")},{__browserify_process:16,path:14}],12:[function(h,u,p){(function(f,D){function k(a){if(a in q)return q[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=w.readFileSync(a,"utf8")}catch(d){c=null}return q[a]=c}function e(a,c){var d=/^\w+:\/\/[^\/]*/.exec(a),d=d?d[0]:"";return d+b.resolve(a.slice(d.length),c)}function a(b){var c=/^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(b);
|
|
return c?(b=r({source:c[2],line:c[3],column:c[4]}),"eval at "+c[1]+" ("+b.source+":"+b.line+":"+b.column+")"):(c=/^eval at ([^(]+) \((.+)\)$/.exec(b))?"eval at "+c[1]+" ("+a(c[2])+")":b}function c(b){var c=b.getFileName()||b.getScriptNameOrSourceURL();if(c){var d=r({source:c,line:b.getLineNumber(),column:b.getColumnNumber()});return{__proto__:b,getFileName:function(){return d.source},getLineNumber:function(){return d.line},getColumnNumber:function(){return d.column},getScriptNameOrSourceURL:function(){return d.source}}}var e=
|
|
b.isEval()&&b.getEvalOrigin();return e?(e=a(e),{__proto__:b,getEvalOrigin:function(){return e}}):b}function n(a,b){t&&(q={},x={});return a+b.map(function(a){return"\n at "+c(a)}).join("")}function d(a){a&&a.stack||(console.log("Uncaught exception:",a),f.exit());var b=/\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(a.stack);if(b&&(b=r({source:b[1],line:b[2],column:b[3]}),w.existsSync(b.source))){var c=w.readFileSync(b.source,"utf8").split(/(?:\r\n|\r|\n)/)[b.line-1];c&&(console.log("\n"+b.source+":"+
|
|
b.line),console.log(c),console.log(Array(+b.column).join(" ")+"^"))}console.log(a.stack);f.exit()}var g=h("source-map").SourceMapConsumer,b=h("path"),w=h("fs"),t=!1,q={},x={},z=function(a){var c=k(a),c=/\/\/[#@]\s*sourceMappingURL=(.*)\s*$/m.exec(c);if(!c)return null;c=c[1];"data:application/json;base64,"==c.slice(0,29).toLowerCase()?a=(new D(c.slice(29),"base64")).toString():(a=b.dirname(a),c=e(a,c),a=k(c,"utf8"));return a?{url:c,map:a}:null},r=p.mapSourcePosition=function(a){var c=x[a.source];if(!c){var d=
|
|
z(a.source);d&&(c=x[a.source]={url:d.url,map:new g(d.map)})}return c&&(d=c.map.originalPositionFor(a),null!==d.source)?(c.url&&(d.source=e(b.dirname(c.url),d.source)),d):a};p.install=function(a){Error.prepareStackTrace=n;a=a||{};var b="handleUncaughtExceptions"in a?a.handleUncaughtExceptions:!0;t="emptyCacheBetweenOperations"in a?a.emptyCacheBetweenOperations:!1;a.retrieveSourceMap&&(z=a.retrieveSourceMap);if(b&&"undefined"===typeof window)f.on("uncaughtException",d)}})(h("__browserify_process"),
|
|
h("__browserify_Buffer").Buffer)},{__browserify_Buffer:15,__browserify_process:16,fs:13,path:14,"source-map":2}],13:[function(h,u,p){},{}],14:[function(h,u,p){(function(f){function h(a,c){for(var e=[],d=0;d<a.length;d++)c(a[d],d,a)&&e.push(a[d]);return e}function k(a,c){for(var e=0,d=a.length;0<=d;d--){var g=a[d];"."==g?a.splice(d,1):".."===g?(a.splice(d,1),e++):e&&(a.splice(d,1),e--)}if(c)for(;e--;e)a.unshift("..");return a}var e=/^(.+\/(?!$)|\/)?((?:.+?)?(\.[^.]*)?)$/;p.resolve=function(){for(var a=
|
|
"",c=!1,e=arguments.length;-1<=e&&!c;e--){var d=0<=e?arguments[e]:f.cwd();"string"===typeof d&&d&&(a=d+"/"+a,c="/"===d.charAt(0))}a=k(h(a.split("/"),function(a){return!!a}),!c).join("/");return(c?"/":"")+a||"."};p.normalize=function(a){var c="/"===a.charAt(0),e="/"===a.slice(-1);(a=k(h(a.split("/"),function(a){return!!a}),!c).join("/"))||c||(a=".");a&&e&&(a+="/");return(c?"/":"")+a};p.join=function(){var a=Array.prototype.slice.call(arguments,0);return p.normalize(h(a,function(a,e){return a&&"string"===
|
|
typeof a}).join("/"))};p.dirname=function(a){return(a=e.exec(a)[1]||"")?1===a.length?a:a.substring(0,a.length-1):"."};p.basename=function(a,c){var n=e.exec(a)[2]||"";c&&n.substr(-1*c.length)===c&&(n=n.substr(0,n.length-c.length));return n};p.extname=function(a){return e.exec(a)[3]||""};p.relative=function(a,c){function e(a){for(var b=0;b<a.length&&""===a[b];b++);for(var c=a.length-1;0<=c&&""===a[c];c--);return b>c?[]:a.slice(b,c-b+1)}a=p.resolve(a).substr(1);c=p.resolve(c).substr(1);for(var d=e(a.split("/")),
|
|
g=e(c.split("/")),b=Math.min(d.length,g.length),f=b,t=0;t<b;t++)if(d[t]!==g[t]){f=t;break}b=[];for(t=f;t<d.length;t++)b.push("..");b=b.concat(g.slice(f));return b.join("/")}})(h("__browserify_process"))},{__browserify_process:16}],15:[function(h,u,p){h=function(f,h,k,e){function a(c){if(!k[c]){if(!h[c]){if(f)return f(c);throw Error("Cannot find module '"+c+"'");}var d=k[c]={exports:{}};h[c][0](function(d){var b=h[c][1][d];return a(b?b:d)},d,d.exports)}return k[c].exports}for(var c=0;c<e.length;c++)a(e[c]);
|
|
return a}("undefined"!==typeof h&&h,{1:[function(f,h,k){function e(a){if(Object.keys)return Object.keys(a);var b=[],c;for(c in a)Object.prototype.hasOwnProperty.call(a,c)&&b.push(c);return b}function a(a,b){return void 0===b?""+b:"number"===typeof b&&(isNaN(b)||!isFinite(b))||"function"===typeof b||b instanceof RegExp?b.toString():b}function c(a,b){return"string"==typeof a?a.length<b?a:a.slice(0,b):a}function n(a,b,c,d,e){throw new r.AssertionError({message:c,actual:a,expected:b,operator:d,stackStartFunction:e});
|
|
}function d(a,b){a||n(a,!0,b,"==",r.ok)}function g(a,b){if(a===b)return!0;if(x.isBuffer(a)&&x.isBuffer(b)){if(a.length!=b.length)return!1;for(var c=0;c<a.length;c++)if(a[c]!==b[c])return!1;return!0}return a instanceof Date&&b instanceof Date?a.getTime()===b.getTime():"object"!=typeof a&&"object"!=typeof b?a==b:w(a,b)}function b(a){return"[object Arguments]"==Object.prototype.toString.call(a)}function w(a,c){if(null===a||void 0===a||(null===c||void 0===c)||a.prototype!==c.prototype)return!1;if(b(a)){if(!b(c))return!1;
|
|
a=z.call(a);c=z.call(c);return g(a,c)}try{var d=e(a),n=e(c),f}catch(t){return!1}if(d.length!=n.length)return!1;d.sort();n.sort();for(f=d.length-1;0<=f;f--)if(d[f]!=n[f])return!1;for(f=d.length-1;0<=f;f--)if(n=d[f],!g(a[n],c[n]))return!1;return!0}function t(a,b){return a&&b?b instanceof RegExp?b.test(a):a instanceof b||!0===b.call({},a)?!0:!1:!1}function q(a,b,c,d){var e;"string"===typeof c&&(d=c,c=null);try{b()}catch(g){e=g}d=(c&&c.name?" ("+c.name+").":".")+(d?" "+d:".");a&&!e&&n("Missing expected exception"+
|
|
d);!a&&t(e,c)&&n("Got unwanted exception"+d);if(a&&e&&c&&!t(e,c)||!a&&e)throw e;}k=f("util");var x=f("buffer").Buffer,z=Array.prototype.slice,r=h.exports=d;r.AssertionError=function(a){this.name="AssertionError";this.message=a.message;this.actual=a.actual;this.expected=a.expected;this.operator=a.operator;a=a.stackStartFunction||n;Error.captureStackTrace&&Error.captureStackTrace(this,a)};k.inherits(r.AssertionError,Error);r.AssertionError.prototype.toString=function(){return this.message?[this.name+
|
|
":",this.message].join(" "):[this.name+":",c(JSON.stringify(this.actual,a),128),this.operator,c(JSON.stringify(this.expected,a),128)].join(" ")};r.AssertionError.__proto__=Error.prototype;r.fail=n;r.ok=d;r.equal=function(a,b,c){a!=b&&n(a,b,c,"==",r.equal)};r.notEqual=function(a,b,c){a==b&&n(a,b,c,"!=",r.notEqual)};r.deepEqual=function(a,b,c){g(a,b)||n(a,b,c,"deepEqual",r.deepEqual)};r.notDeepEqual=function(a,b,c){g(a,b)&&n(a,b,c,"notDeepEqual",r.notDeepEqual)};r.strictEqual=function(a,b,c){a!==b&&
|
|
n(a,b,c,"===",r.strictEqual)};r.notStrictEqual=function(a,b,c){a===b&&n(a,b,c,"!==",r.notStrictEqual)};r["throws"]=function(a,b,c){q.apply(this,[!0].concat(z.call(arguments)))};r.doesNotThrow=function(a,b,c){q.apply(this,[!1].concat(z.call(arguments)))};r.ifError=function(a){if(a)throw a;}},{util:2,buffer:3}],2:[function(f,h,k){function e(a){return a instanceof Array||Array.isArray(a)||a&&a!==Object.prototype&&e(a.__proto__)}function a(a){return a instanceof RegExp||"object"===typeof a&&"[object RegExp]"===
|
|
Object.prototype.toString.call(a)}function c(a){if(a instanceof Date)return!0;if("object"!==typeof a)return!1;var b=Date.prototype&&d(Date.prototype);a=a.__proto__&&d(a.__proto__);return JSON.stringify(a)===JSON.stringify(b)}f("events");k.isArray=e;k.isDate=function(a){return"[object Date]"===Object.prototype.toString.call(a)};k.isRegExp=function(a){return"[object RegExp]"===Object.prototype.toString.call(a)};k.print=function(){};k.puts=function(){};k.debug=function(){};k.inspect=function(b,g,f,h){function z(b,
|
|
f){if(b&&"function"===typeof b.inspect&&b!==k&&(!b.constructor||b.constructor.prototype!==b))return b.inspect(f);switch(typeof b){case "undefined":return s("undefined","undefined");case "string":var h="'"+JSON.stringify(b).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return s(h,"string");case "number":return s(""+b,"number");case "boolean":return s(""+b,"boolean")}if(null===b)return s("null","null");var w=n(b),q=g?d(b):w;if("function"===typeof b&&0===q.length)return a(b)?s(""+
|
|
b,"regexp"):s("[Function"+(b.name?": "+b.name:"")+"]","special");if(c(b)&&0===q.length)return s(b.toUTCString(),"date");var x,p;e(b)?(p="Array",h=["[","]"]):(p="Object",h=["{","}"]);"function"===typeof b?(x=b.name?": "+b.name:"",x=a(b)?" "+b:" [Function"+x+"]"):x="";c(b)&&(x=" "+b.toUTCString());if(0===q.length)return h[0]+x+h[1];if(0>f)return a(b)?s(""+b,"regexp"):s("[Object]","special");r.push(b);q=q.map(function(a){var c,B;b.__lookupGetter__&&(b.__lookupGetter__(a)?B=b.__lookupSetter__(a)?s("[Getter/Setter]",
|
|
"special"):s("[Getter]","special"):b.__lookupSetter__(a)&&(B=s("[Setter]","special")));0>w.indexOf(a)&&(c="["+a+"]");B||(0>r.indexOf(b[a])?(B=null===f?z(b[a]):z(b[a],f-1),-1<B.indexOf("\n")&&(B=e(b)?B.split("\n").map(function(B){return" "+B}).join("\n").substr(2):"\n"+B.split("\n").map(function(B){return" "+B}).join("\n"))):B=s("[Circular]","special"));if("undefined"===typeof c){if("Array"===p&&a.match(/^\d+$/))return B;c=JSON.stringify(""+a);c.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(c=c.substr(1,
|
|
c.length-2),c=s(c,"name")):(c=c.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),c=s(c,"string"))}return c+": "+B});r.pop();var D=0;return q=50<q.reduce(function(a,b){D++;0<=b.indexOf("\n")&&D++;return a+b.length+1},0)?h[0]+(""===x?"":x+"\n ")+" "+q.join(",\n ")+" "+h[1]:h[0]+x+" "+q.join(", ")+" "+h[1]}var r=[],s=function(a,b){var c={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]},d={special:"cyan",number:"blue","boolean":"yellow",undefined:"grey","null":"bold",string:"green",date:"magenta",regexp:"red"}[b];return d?"\u001b["+c[d][0]+"m"+a+"\u001b["+c[d][1]+"m":a};h||(s=function(a,b){return a});return z(b,"undefined"===typeof f?2:f)};k.log=function(a){};k.pump=null;var n=Object.keys||function(a){var b=[],c;for(c in a)b.push(c);return b},d=Object.getOwnPropertyNames||function(a){var b=[],c;for(c in a)Object.hasOwnProperty.call(a,c)&&b.push(c);
|
|
return b},g=Object.create||function(a,b){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 b&&Object.defineProperties&&Object.defineProperties(c,b);return c};k.inherits=function(a,b){a.super_=b;a.prototype=g(b.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}})};var b=/%[sdj%]/g;k.format=function(a){if("string"!==typeof a){for(var c=
|
|
[],d=0;d<arguments.length;d++)c.push(k.inspect(arguments[d]));return c.join(" ")}for(var d=1,e=arguments,g=e.length,c=String(a).replace(b,function(a){if("%%"===a)return"%";if(d>=g)return a;switch(a){case "%s":return String(e[d++]);case "%d":return Number(e[d++]);case "%j":return JSON.stringify(e[d++]);default:return a}}),f=e[d];d<g;f=e[++d])c=null===f||"object"!==typeof f?c+(" "+f):c+(" "+k.inspect(f));return c}},{events:4}],5:[function(f,h,k){k.readIEEE754=function(e,a,c,f,d){var g;g=8*d-f-1;var b=
|
|
(1<<g)-1,k=b>>1,h=-7;d=c?0:d-1;var q=c?1:-1,x=e[a+d];d+=q;c=x&(1<<-h)-1;x>>=-h;for(h+=g;0<h;c=256*c+e[a+d],d+=q,h-=8);g=c&(1<<-h)-1;c>>=-h;for(h+=f;0<h;g=256*g+e[a+d],d+=q,h-=8);if(0===c)c=1-k;else{if(c===b)return g?NaN:Infinity*(x?-1:1);g+=Math.pow(2,f);c-=k}return(x?-1:1)*g*Math.pow(2,c-f)};k.writeIEEE754=function(e,a,c,f,d,g){var b,h=8*g-d-1,k=(1<<h)-1,q=k>>1,x=23===d?Math.pow(2,-24)-Math.pow(2,-77):0;g=f?g-1:0;var p=f?-1:1,r=0>a||0===a&&0>1/a?1:0;a=Math.abs(a);isNaN(a)||Infinity===a?(a=isNaN(a)?
|
|
1:0,f=k):(f=Math.floor(Math.log(a)/Math.LN2),1>a*(b=Math.pow(2,-f))&&(f--,b*=2),a=1<=f+q?a+x/b:a+x*Math.pow(2,1-q),2<=a*b&&(f++,b/=2),f+q>=k?(a=0,f=k):1<=f+q?(a=(a*b-1)*Math.pow(2,d),f+=q):(a=a*Math.pow(2,q-1)*Math.pow(2,d),f=0));for(;8<=d;e[c+g]=a&255,g+=p,a/=256,d-=8);f=f<<d|a;for(h+=d;0<h;e[c+g]=f&255,g+=p,f/=256,h-=8);e[c+g-p]|=128*r}},{}],6:[function(f,h,k){f=h.exports={};f.nextTick=function(){if("undefined"!==typeof window&&window.setImmediate)return function(a){return window.setImmediate(a)};
|
|
if("undefined"!==typeof window&&window.postMessage&&window.addEventListener){var e=[];window.addEventListener("message",function(a){a.source===window&&"process-tick"===a.data&&(a.stopPropagation(),0<e.length&&e.shift()())},!0);return function(a){e.push(a);window.postMessage("process-tick","*")}}return function(a){setTimeout(a,0)}}();f.title="browser";f.browser=!0;f.env={};f.argv=[];f.binding=function(e){throw Error("process.binding is not supported");};f.cwd=function(){return"/"};f.chdir=function(e){throw Error("process.chdir is not supported");
|
|
}},{}],4:[function(f,h,k){(function(e){e.EventEmitter||(e.EventEmitter=function(){});e=k.EventEmitter=e.EventEmitter;var a="function"===typeof Array.isArray?Array.isArray:function(a){return"[object Array]"===Object.prototype.toString.call(a)};e.prototype.setMaxListeners=function(a){this._events||(this._events={});this._events.maxListeners=a};e.prototype.emit=function(c){if("error"===c&&(!this._events||!this._events.error||a(this._events.error)&&!this._events.error.length)){if(arguments[1]instanceof
|
|
Error)throw arguments[1];throw Error("Uncaught, unspecified 'error' event.");}if(!this._events)return!1;var e=this._events[c];if(!e)return!1;if("function"==typeof e){switch(arguments.length){case 1:e.call(this);break;case 2:e.call(this,arguments[1]);break;case 3:e.call(this,arguments[1],arguments[2]);break;default:var d=Array.prototype.slice.call(arguments,1);e.apply(this,d)}return!0}if(a(e)){for(var d=Array.prototype.slice.call(arguments,1),e=e.slice(),f=0,b=e.length;f<b;f++)e[f].apply(this,d);return!0}return!1};
|
|
e.prototype.addListener=function(c,e){if("function"!==typeof e)throw Error("addListener only takes instances of Function");this._events||(this._events={});this.emit("newListener",c,e);if(this._events[c])if(a(this._events[c])){if(!this._events[c].warned){var d;(d=void 0!==this._events.maxListeners?this._events.maxListeners:10)&&(0<d&&this._events[c].length>d)&&(this._events[c].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",
|
|
this._events[c].length),console.trace())}this._events[c].push(e)}else this._events[c]=[this._events[c],e];else this._events[c]=e;return this};e.prototype.on=e.prototype.addListener;e.prototype.once=function(a,e){var d=this;d.on(a,function b(){d.removeListener(a,b);e.apply(this,arguments)});return this};e.prototype.removeListener=function(c,e){if("function"!==typeof e)throw Error("removeListener only takes instances of Function");if(!this._events||!this._events[c])return this;var d=this._events[c];
|
|
if(a(d)){var f;a:if(d.indexOf)f=d.indexOf(e);else{for(f=0;f<d.length;f++)if(e===d[f])break a;f=-1}if(0>f)return this;d.splice(f,1);0==d.length&&delete this._events[c]}else this._events[c]===e&&delete this._events[c];return this};e.prototype.removeAllListeners=function(a){if(0===arguments.length)return this._events={},this;a&&(this._events&&this._events[a])&&(this._events[a]=null);return this};e.prototype.listeners=function(c){this._events||(this._events={});this._events[c]||(this._events[c]=[]);a(this._events[c])||
|
|
(this._events[c]=[this._events[c]]);return this._events[c]}})(f("__browserify_process"))},{__browserify_process:6}],"buffer-browserify":[function(f,h,k){h.exports=f("q9TxCC")},{}],q9TxCC:[function(f,h,k){function e(a){this.length=a}function a(a){return 16>a?"0"+a.toString(16):a.toString(16)}function c(a){for(var b=[],y=0;y<a.length;y++)if(127>=a.charCodeAt(y))b.push(a.charCodeAt(y));else for(var c=encodeURIComponent(a.charAt(y)).substr(1).split("%"),d=0;d<c.length;d++)b.push(parseInt(c[d],16));return b}
|
|
function n(a,b,y,c){for(var d=0;d<c&&!(d+y>=b.length||d>=a.length);)b[d+y]=a[d],d++;return d}function d(a){try{return decodeURIComponent(a)}catch(b){return String.fromCharCode(65533)}}function g(a){a=~~Math.ceil(+a);return 0>a?0:a}function b(a,C,y){if(!(this instanceof b))return new b(a,C,y);if("number"===typeof y)this.length=g(C),this.parent=a,this.offset=y;else{switch(y=typeof a){case "number":this.length=g(a);break;case "string":this.length=b.byteLength(a,C);break;case "object":this.length=g(a.length);
|
|
break;default:throw Error("First argument needs to be a number, array or string.");}if(this.length>b.poolSize)this.parent=new e(this.length),this.offset=0;else{if(!A||A.length-A.used<this.length)A=new e(b.poolSize),A.used=0;this.parent=A;this.offset=A.used;A.used+=this.length}if(Array.isArray(a)||b.isBuffer(a)||a&&"object"===typeof a&&"number"===typeof a.length)for(C=0;C<this.length;C++)this.parent[C+this.offset]=a instanceof b?a.readUInt8(C):a[C];else"string"==y&&(this.length=this.write(a,0,C))}}
|
|
function w(a,b,y,c){var d=0;c||(l.ok("boolean"===typeof y,"missing or invalid endian"),l.ok(void 0!==b&&null!==b,"missing offset"),l.ok(b+1<a.length,"Trying to read beyond buffer length"));if(b>=a.length)return 0;y?(d=a.parent[a.offset+b]<<8,b+1<a.length&&(d|=a.parent[a.offset+b+1])):(d=a.parent[a.offset+b],b+1<a.length&&(d|=a.parent[a.offset+b+1]<<8));return d}function t(a,b,y,c){var d=0;c||(l.ok("boolean"===typeof y,"missing or invalid endian"),l.ok(void 0!==b&&null!==b,"missing offset"),l.ok(b+
|
|
3<a.length,"Trying to read beyond buffer length"));if(b>=a.length)return 0;y?(b+1<a.length&&(d=a.parent[a.offset+b+1]<<16),b+2<a.length&&(d|=a.parent[a.offset+b+2]<<8),b+3<a.length&&(d|=a.parent[a.offset+b+3]),d+=a.parent[a.offset+b]<<24>>>0):(b+2<a.length&&(d=a.parent[a.offset+b+2]<<16),b+1<a.length&&(d|=a.parent[a.offset+b+1]<<8),d|=a.parent[a.offset+b],b+3<a.length&&(d+=a.parent[a.offset+b+3]<<24>>>0));return d}function q(a,b,c,d){d||(l.ok("boolean"===typeof c,"missing or invalid endian"),l.ok(void 0!==
|
|
b&&null!==b,"missing offset"),l.ok(b+1<a.length,"Trying to read beyond buffer length"));a=w(a,b,c,d);return a&32768?-1*(65535-a+1):a}function p(a,b,c,d){d||(l.ok("boolean"===typeof c,"missing or invalid endian"),l.ok(void 0!==b&&null!==b,"missing offset"),l.ok(b+3<a.length,"Trying to read beyond buffer length"));a=t(a,b,c,d);return a&2147483648?-1*(4294967295-a+1):a}function u(a,b,c,d){d||(l.ok("boolean"===typeof c,"missing or invalid endian"),l.ok(b+3<a.length,"Trying to read beyond buffer length"));
|
|
return f("./buffer_ieee754").readIEEE754(a,b,c,23,4)}function r(a,b,c,d){d||(l.ok("boolean"===typeof c,"missing or invalid endian"),l.ok(b+7<a.length,"Trying to read beyond buffer length"));return f("./buffer_ieee754").readIEEE754(a,b,c,52,8)}function s(a,b){l.ok("number"==typeof a,"cannot write a non-number as a number");l.ok(0<=a,"specified a negative value for writing an unsigned value");l.ok(a<=b,"value is larger than maximum value for type");l.ok(Math.floor(a)===a,"value has a fractional component")}
|
|
function v(a,b,c,d,e){e||(l.ok(void 0!==b&&null!==b,"missing value"),l.ok("boolean"===typeof d,"missing or invalid endian"),l.ok(void 0!==c&&null!==c,"missing offset"),l.ok(c+1<a.length,"trying to write beyond buffer length"),s(b,65535));for(e=0;e<Math.min(a.length-c,2);e++)a.parent[a.offset+c+e]=(b&255<<8*(d?1-e:e))>>>8*(d?1-e:e)}function m(a,b,c,d,e){e||(l.ok(void 0!==b&&null!==b,"missing value"),l.ok("boolean"===typeof d,"missing or invalid endian"),l.ok(void 0!==c&&null!==c,"missing offset"),
|
|
l.ok(c+3<a.length,"trying to write beyond buffer length"),s(b,4294967295));for(e=0;e<Math.min(a.length-c,4);e++)a.parent[a.offset+c+e]=b>>>8*(d?3-e:e)&255}function E(a,b,c){l.ok("number"==typeof a,"cannot write a non-number as a number");l.ok(a<=b,"value larger than maximum allowed value");l.ok(a>=c,"value smaller than minimum allowed value");l.ok(Math.floor(a)===a,"value has a fractional component")}function F(a,b,c){l.ok("number"==typeof a,"cannot write a non-number as a number");l.ok(a<=b,"value larger than maximum allowed value");
|
|
l.ok(a>=c,"value smaller than minimum allowed value")}function G(a,b,c,d,e){e||(l.ok(void 0!==b&&null!==b,"missing value"),l.ok("boolean"===typeof d,"missing or invalid endian"),l.ok(void 0!==c&&null!==c,"missing offset"),l.ok(c+1<a.length,"Trying to write beyond buffer length"),E(b,32767,-32768));0<=b?v(a,b,c,d,e):v(a,65535+b+1,c,d,e)}function H(a,b,c,d,e){e||(l.ok(void 0!==b&&null!==b,"missing value"),l.ok("boolean"===typeof d,"missing or invalid endian"),l.ok(void 0!==c&&null!==c,"missing offset"),
|
|
l.ok(c+3<a.length,"Trying to write beyond buffer length"),E(b,2147483647,-2147483648));0<=b?m(a,b,c,d,e):m(a,4294967295+b+1,c,d,e)}function I(a,b,c,d,e){e||(l.ok(void 0!==b&&null!==b,"missing value"),l.ok("boolean"===typeof d,"missing or invalid endian"),l.ok(void 0!==c&&null!==c,"missing offset"),l.ok(c+3<a.length,"Trying to write beyond buffer length"),F(b,3.4028234663852886E38,-3.4028234663852886E38));f("./buffer_ieee754").writeIEEE754(a,b,c,d,23,4)}function J(a,b,c,d,e){e||(l.ok(void 0!==b&&null!==
|
|
b,"missing value"),l.ok("boolean"===typeof d,"missing or invalid endian"),l.ok(void 0!==c&&null!==c,"missing offset"),l.ok(c+7<a.length,"Trying to write beyond buffer length"),F(b,1.7976931348623157E308,-1.7976931348623157E308));f("./buffer_ieee754").writeIEEE754(a,b,c,d,52,8)}var l=f("assert");k.INSPECT_MAX_BYTES=50;e.byteLength=function(a,b){switch(b||"utf8"){case "hex":return a.length/2;case "utf8":case "utf-8":return c(a).length;case "ascii":case "binary":return a.length;case "base64":return f("base64-js").toByteArray(a).length;
|
|
default:throw Error("Unknown encoding");}};e.prototype.utf8Write=function(a,b,y){return e._charsWritten=n(c(a),this,b,y)};e.prototype.asciiWrite=function(a,b,c){for(var d=[],f=0;f<a.length;f++)d.push(a.charCodeAt(f)&255);return e._charsWritten=n(d,this,b,c)};e.prototype.binaryWrite=e.prototype.asciiWrite;e.prototype.base64Write=function(a,b,c){return e._charsWritten=n(f("base64-js").toByteArray(a),this,b,c)};e.prototype.base64Slice=function(a,b){var c=Array.prototype.slice.apply(this,arguments);return f("base64-js").fromByteArray(c)};
|
|
e.prototype.utf8Slice=function(){for(var a=Array.prototype.slice.apply(this,arguments),b="",c="",e=0;e<a.length;)127>=a[e]?(b+=d(c)+String.fromCharCode(a[e]),c=""):c+="%"+a[e].toString(16),e++;return b+d(c)};e.prototype.asciiSlice=function(){for(var a=Array.prototype.slice.apply(this,arguments),b="",c=0;c<a.length;c++)b+=String.fromCharCode(a[c]);return b};e.prototype.binarySlice=e.prototype.asciiSlice;e.prototype.inspect=function(){for(var b=[],c=this.length,d=0;d<c;d++)if(b[d]=a(this[d]),d==k.INSPECT_MAX_BYTES){b[d+
|
|
1]="...";break}return"<SlowBuffer "+b.join(" ")+">"};e.prototype.hexSlice=function(b,c){var d=this.length;if(!b||0>b)b=0;if(!c||0>c||c>d)c=d;for(var d="",e=b;e<c;e++)d+=a(this[e]);return d};e.prototype.toString=function(a,b,c){a=String(a||"utf8").toLowerCase();b=+b||0;"undefined"==typeof c&&(c=this.length);if(+c==b)return"";switch(a){case "hex":return this.hexSlice(b,c);case "utf8":case "utf-8":return this.utf8Slice(b,c);case "ascii":return this.asciiSlice(b,c);case "binary":return this.binarySlice(b,
|
|
c);case "base64":return this.base64Slice(b,c);case "ucs2":case "ucs-2":return this.ucs2Slice(b,c);default:throw Error("Unknown encoding");}};e.prototype.hexWrite=function(a,b,c){b=+b||0;var d=this.length-b;c?(c=+c,c>d&&(c=d)):c=d;d=a.length;if(d%2)throw Error("Invalid hex string");c>d/2&&(c=d/2);for(d=0;d<c;d++){var f=parseInt(a.substr(2*d,2),16);if(isNaN(f))throw Error("Invalid hex string");this[b+d]=f}e._charsWritten=2*d;return d};e.prototype.write=function(a,b,c,d){if(isFinite(b))isFinite(c)||
|
|
(d=c,c=void 0);else{var e=d;d=b;b=c;c=e}b=+b||0;e=this.length-b;c?(c=+c,c>e&&(c=e)):c=e;d=String(d||"utf8").toLowerCase();switch(d){case "hex":return this.hexWrite(a,b,c);case "utf8":case "utf-8":return this.utf8Write(a,b,c);case "ascii":return this.asciiWrite(a,b,c);case "binary":return this.binaryWrite(a,b,c);case "base64":return this.base64Write(a,b,c);case "ucs2":case "ucs-2":return this.ucs2Write(a,b,c);default:throw Error("Unknown encoding");}};e.prototype.slice=function(a,c){void 0===c&&(c=
|
|
this.length);if(c>this.length)throw Error("oob");if(a>c)throw Error("oob");return new b(this,c-a,+a)};e.prototype.copy=function(a,b,c,d){for(var e=[];c<d;c++)l.ok("undefined"!==typeof this[c],"copying undefined buffer bytes!"),e.push(this[c]);for(c=b;c<b+e.length;c++)a[c]=e[c-b]};e.prototype.fill=function(a,b,c){if(c>this.length)throw Error("oob");if(b>c)throw Error("oob");for(;b<c;b++)this[b]=a};k.SlowBuffer=e;k.Buffer=b;b.poolSize=8192;var A;b.isBuffer=function(a){return a instanceof b||a instanceof
|
|
e};b.concat=function(a,c){if(!Array.isArray(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 f=new b(c),g=0,d=0;d<a.length;d++)e=a[d],e.copy(f,g),g+=e.length;return f};b.prototype.inspect=function(){for(var b=[],c=this.length,d=0;d<c;d++)if(b[d]=a(this.parent[d+this.offset]),d==k.INSPECT_MAX_BYTES){b[d+1]="...";
|
|
break}return"<Buffer "+b.join(" ")+">"};b.prototype.get=function(a){if(0>a||a>=this.length)throw Error("oob");return this.parent[this.offset+a]};b.prototype.set=function(a,b){if(0>a||a>=this.length)throw Error("oob");return this.parent[this.offset+a]=b};b.prototype.write=function(a,c,d,f){if(isFinite(c))isFinite(d)||(f=d,d=void 0);else{var g=f;f=c;c=d;d=g}c=+c||0;g=this.length-c;d?(d=+d,d>g&&(d=g)):d=g;f=String(f||"utf8").toLowerCase();switch(f){case "hex":a=this.parent.hexWrite(a,this.offset+c,d);
|
|
break;case "utf8":case "utf-8":a=this.parent.utf8Write(a,this.offset+c,d);break;case "ascii":a=this.parent.asciiWrite(a,this.offset+c,d);break;case "binary":a=this.parent.binaryWrite(a,this.offset+c,d);break;case "base64":a=this.parent.base64Write(a,this.offset+c,d);break;case "ucs2":case "ucs-2":a=this.parent.ucs2Write(a,this.offset+c,d);break;default:throw Error("Unknown encoding");}b._charsWritten=e._charsWritten;return a};b.prototype.toString=function(a,b,c){a=String(a||"utf8").toLowerCase();
|
|
"undefined"==typeof b||0>b?b=0:b>this.length&&(b=this.length);"undefined"==typeof c||c>this.length?c=this.length:0>c&&(c=0);b+=this.offset;c+=this.offset;switch(a){case "hex":return this.parent.hexSlice(b,c);case "utf8":case "utf-8":return this.parent.utf8Slice(b,c);case "ascii":return this.parent.asciiSlice(b,c);case "binary":return this.parent.binarySlice(b,c);case "base64":return this.parent.base64Slice(b,c);case "ucs2":case "ucs-2":return this.parent.ucs2Slice(b,c);default:throw Error("Unknown encoding");
|
|
}};b.byteLength=e.byteLength;b.prototype.fill=function(a,b,c){a||(a=0);b||(b=0);c||(c=this.length);"string"===typeof a&&(a=a.charCodeAt(0));if("number"!==typeof a||isNaN(a))throw Error("value is not a number");if(c<b)throw Error("end < start");if(c===b||0==this.length)return 0;if(0>b||b>=this.length)throw Error("start out of bounds");if(0>c||c>this.length)throw Error("end out of bounds");return this.parent.fill(a,b+this.offset,c+this.offset)};b.prototype.copy=function(a,b,c,d){c||(c=0);d||(d=this.length);
|
|
b||(b=0);if(d<c)throw Error("sourceEnd < sourceStart");if(d===c||0==a.length||0==this.length)return 0;if(0>b||b>=a.length)throw Error("targetStart out of bounds");if(0>c||c>=this.length)throw Error("sourceStart out of bounds");if(0>d||d>this.length)throw Error("sourceEnd out of bounds");d>this.length&&(d=this.length);a.length-b<d-c&&(d=a.length-b+c);return this.parent.copy(a.parent,b+a.offset,c+this.offset,d+this.offset)};b.prototype.slice=function(a,c){void 0===c&&(c=this.length);if(c>this.length)throw Error("oob");
|
|
if(a>c)throw Error("oob");return new b(this.parent,c-a,+a+this.offset)};b.prototype.utf8Slice=function(a,b){return this.toString("utf8",a,b)};b.prototype.binarySlice=function(a,b){return this.toString("binary",a,b)};b.prototype.asciiSlice=function(a,b){return this.toString("ascii",a,b)};b.prototype.utf8Write=function(a,b){return this.write(a,b,"utf8")};b.prototype.binaryWrite=function(a,b){return this.write(a,b,"binary")};b.prototype.asciiWrite=function(a,b){return this.write(a,b,"ascii")};b.prototype.readUInt8=
|
|
function(a,b){b||(l.ok(void 0!==a&&null!==a,"missing offset"),l.ok(a<this.length,"Trying to read beyond buffer length"));if(!(a>=this.length))return this.parent[this.offset+a]};b.prototype.readUInt16LE=function(a,b){return w(this,a,!1,b)};b.prototype.readUInt16BE=function(a,b){return w(this,a,!0,b)};b.prototype.readUInt32LE=function(a,b){return t(this,a,!1,b)};b.prototype.readUInt32BE=function(a,b){return t(this,a,!0,b)};b.prototype.readInt8=function(a,b){var c;b||(l.ok(void 0!==a&&null!==a,"missing offset"),
|
|
l.ok(a<this.length,"Trying to read beyond buffer length"));if(!(a>=this.length))return(c=this.parent[this.offset+a]&128)?-1*(255-this.parent[this.offset+a]+1):this.parent[this.offset+a]};b.prototype.readInt16LE=function(a,b){return q(this,a,!1,b)};b.prototype.readInt16BE=function(a,b){return q(this,a,!0,b)};b.prototype.readInt32LE=function(a,b){return p(this,a,!1,b)};b.prototype.readInt32BE=function(a,b){return p(this,a,!0,b)};b.prototype.readFloatLE=function(a,b){return u(this,a,!1,b)};b.prototype.readFloatBE=
|
|
function(a,b){return u(this,a,!0,b)};b.prototype.readDoubleLE=function(a,b){return r(this,a,!1,b)};b.prototype.readDoubleBE=function(a,b){return r(this,a,!0,b)};b.prototype.writeUInt8=function(a,b,c){c||(l.ok(void 0!==a&&null!==a,"missing value"),l.ok(void 0!==b&&null!==b,"missing offset"),l.ok(b<this.length,"trying to write beyond buffer length"),s(a,255));b<this.length&&(this.parent[this.offset+b]=a)};b.prototype.writeUInt16LE=function(a,b,c){v(this,a,b,!1,c)};b.prototype.writeUInt16BE=function(a,
|
|
b,c){v(this,a,b,!0,c)};b.prototype.writeUInt32LE=function(a,b,c){m(this,a,b,!1,c)};b.prototype.writeUInt32BE=function(a,b,c){m(this,a,b,!0,c)};b.prototype.writeInt8=function(a,b,c){c||(l.ok(void 0!==a&&null!==a,"missing value"),l.ok(void 0!==b&&null!==b,"missing offset"),l.ok(b<this.length,"Trying to write beyond buffer length"),E(a,127,-128));0<=a?this.writeUInt8(a,b,c):this.writeUInt8(255+a+1,b,c)};b.prototype.writeInt16LE=function(a,b,c){G(this,a,b,!1,c)};b.prototype.writeInt16BE=function(a,b,
|
|
c){G(this,a,b,!0,c)};b.prototype.writeInt32LE=function(a,b,c){H(this,a,b,!1,c)};b.prototype.writeInt32BE=function(a,b,c){H(this,a,b,!0,c)};b.prototype.writeFloatLE=function(a,b,c){I(this,a,b,!1,c)};b.prototype.writeFloatBE=function(a,b,c){I(this,a,b,!0,c)};b.prototype.writeDoubleLE=function(a,b,c){J(this,a,b,!1,c)};b.prototype.writeDoubleBE=function(a,b,c){J(this,a,b,!0,c)};e.prototype.readUInt8=b.prototype.readUInt8;e.prototype.readUInt16LE=b.prototype.readUInt16LE;e.prototype.readUInt16BE=b.prototype.readUInt16BE;
|
|
e.prototype.readUInt32LE=b.prototype.readUInt32LE;e.prototype.readUInt32BE=b.prototype.readUInt32BE;e.prototype.readInt8=b.prototype.readInt8;e.prototype.readInt16LE=b.prototype.readInt16LE;e.prototype.readInt16BE=b.prototype.readInt16BE;e.prototype.readInt32LE=b.prototype.readInt32LE;e.prototype.readInt32BE=b.prototype.readInt32BE;e.prototype.readFloatLE=b.prototype.readFloatLE;e.prototype.readFloatBE=b.prototype.readFloatBE;e.prototype.readDoubleLE=b.prototype.readDoubleLE;e.prototype.readDoubleBE=
|
|
b.prototype.readDoubleBE;e.prototype.writeUInt8=b.prototype.writeUInt8;e.prototype.writeUInt16LE=b.prototype.writeUInt16LE;e.prototype.writeUInt16BE=b.prototype.writeUInt16BE;e.prototype.writeUInt32LE=b.prototype.writeUInt32LE;e.prototype.writeUInt32BE=b.prototype.writeUInt32BE;e.prototype.writeInt8=b.prototype.writeInt8;e.prototype.writeInt16LE=b.prototype.writeInt16LE;e.prototype.writeInt16BE=b.prototype.writeInt16BE;e.prototype.writeInt32LE=b.prototype.writeInt32LE;e.prototype.writeInt32BE=b.prototype.writeInt32BE;
|
|
e.prototype.writeFloatLE=b.prototype.writeFloatLE;e.prototype.writeFloatBE=b.prototype.writeFloatBE;e.prototype.writeDoubleLE=b.prototype.writeDoubleLE;e.prototype.writeDoubleBE=b.prototype.writeDoubleBE},{assert:1,"./buffer_ieee754":5,"base64-js":7}],7:[function(f,h,k){(function(e){h.exports.toByteArray=function(a){var c,e,d,f,b;if(0<a.length%4)throw"Invalid string. Length must be a multiple of 4";f=a.indexOf("=");f=0<f?a.length-f:0;b=[];e=0<f?a.length-4:a.length;for(c=0;c<e;c+=4)d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(a[c])<<
|
|
18|"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(a[c+1])<<12|"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(a[c+2])<<6|"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(a[c+3]),b.push((d&16711680)>>16),b.push((d&65280)>>8),b.push(d&255);2===f?(d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(a[c])<<2|"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(a[c+1])>>4,b.push(d&
|
|
255)):1===f&&(d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(a[c])<<10|"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(a[c+1])<<4|"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(a[c+2])>>2,b.push(d>>8&255),b.push(d&255));return b};h.exports.fromByteArray=function(a){var c,e=a.length%3,d="",f,b;c=0;for(b=a.length-e;c<b;c+=3)f=(a[c]<<16)+(a[c+1]<<8)+a[c+2],d+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[f>>
|
|
18&63]+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[f>>12&63]+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[f>>6&63]+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[f&63];switch(e){case 1:f=a[a.length-1];d+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[f>>2];d+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[f<<4&63];d+="==";break;case 2:f=(a[a.length-2]<<8)+a[a.length-1],d+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[f>>
|
|
10],d+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[f>>4&63],d+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[f<<2&63],d+="="}return d}})()},{}],8:[function(f,h,k){k.readIEEE754=function(e,a,c,f,d){var g;g=8*d-f-1;var b=(1<<g)-1,h=b>>1,k=-7;d=c?0:d-1;var q=c?1:-1,p=e[a+d];d+=q;c=p&(1<<-k)-1;p>>=-k;for(k+=g;0<k;c=256*c+e[a+d],d+=q,k-=8);g=c&(1<<-k)-1;c>>=-k;for(k+=f;0<k;g=256*g+e[a+d],d+=q,k-=8);if(0===c)c=1-h;else{if(c===b)return g?NaN:Infinity*(p?-1:1);
|
|
g+=Math.pow(2,f);c-=h}return(p?-1:1)*g*Math.pow(2,c-f)};k.writeIEEE754=function(e,a,c,f,d,g){var b,h=8*g-d-1,k=(1<<h)-1,q=k>>1,p=23===d?Math.pow(2,-24)-Math.pow(2,-77):0;g=f?g-1:0;var u=f?-1:1,r=0>a||0===a&&0>1/a?1:0;a=Math.abs(a);isNaN(a)||Infinity===a?(a=isNaN(a)?1:0,f=k):(f=Math.floor(Math.log(a)/Math.LN2),1>a*(b=Math.pow(2,-f))&&(f--,b*=2),a=1<=f+q?a+p/b:a+p*Math.pow(2,1-q),2<=a*b&&(f++,b/=2),f+q>=k?(a=0,f=k):1<=f+q?(a=(a*b-1)*Math.pow(2,d),f+=q):(a=a*Math.pow(2,q-1)*Math.pow(2,d),f=0));for(;8<=
|
|
d;e[c+g]=a&255,g+=u,a/=256,d-=8);f=f<<d|a;for(h+=d;0<h;e[c+g]=f&255,g+=u,f/=256,h-=8);e[c+g-u]|=128*r}},{}],3:[function(f,h,k){function e(a){this.length=a}function a(a){return 16>a?"0"+a.toString(16):a.toString(16)}function c(a){for(var b=[],c=0;c<a.length;c++)if(127>=a.charCodeAt(c))b.push(a.charCodeAt(c));else for(var d=encodeURIComponent(a.charAt(c)).substr(1).split("%"),e=0;e<d.length;e++)b.push(parseInt(d[e],16));return b}function n(a,b,c,d){for(var e=0;e<d&&!(e+c>=b.length||e>=a.length);)b[e+
|
|
c]=a[e],e++;return e}function d(a){try{return decodeURIComponent(a)}catch(b){return String.fromCharCode(65533)}}function g(a){a=~~Math.ceil(+a);return 0>a?0:a}function b(a,c,d){if(!(this instanceof b))return new b(a,c,d);if("number"===typeof d)this.length=g(c),this.parent=a,this.offset=d;else{switch(d=typeof a){case "number":this.length=g(a);break;case "string":this.length=b.byteLength(a,c);break;case "object":this.length=g(a.length);break;default:throw Error("First argument needs to be a number, array or string.");
|
|
}if(this.length>b.poolSize)this.parent=new e(this.length),this.offset=0;else{if(!A||A.length-A.used<this.length)A=new e(b.poolSize),A.used=0;this.parent=A;this.offset=A.used;A.used+=this.length}if(Array.isArray(a)||b.isBuffer(a)||a&&"object"===typeof a&&"number"===typeof a.length)for(c=0;c<this.length;c++)this.parent[c+this.offset]=a[c];else"string"==d&&(this.length=this.write(a,0,c))}}function p(a,b,c,d){var e=0;d||(l.ok("boolean"===typeof c,"missing or invalid endian"),l.ok(void 0!==b&&null!==b,
|
|
"missing offset"),l.ok(b+1<a.length,"Trying to read beyond buffer length"));c?(e=a.parent[a.offset+b]<<8,e|=a.parent[a.offset+b+1]):(e=a.parent[a.offset+b],e|=a.parent[a.offset+b+1]<<8);return e}function t(a,b,c,d){var e=0;d||(l.ok("boolean"===typeof c,"missing or invalid endian"),l.ok(void 0!==b&&null!==b,"missing offset"),l.ok(b+3<a.length,"Trying to read beyond buffer length"));c?(e=a.parent[a.offset+b+1]<<16,e|=a.parent[a.offset+b+2]<<8,e|=a.parent[a.offset+b+3],e+=a.parent[a.offset+b]<<24>>>
|
|
0):(e=a.parent[a.offset+b+2]<<16,e|=a.parent[a.offset+b+1]<<8,e|=a.parent[a.offset+b],e+=a.parent[a.offset+b+3]<<24>>>0);return e}function q(a,b,c,d){d||(l.ok("boolean"===typeof c,"missing or invalid endian"),l.ok(void 0!==b&&null!==b,"missing offset"),l.ok(b+1<a.length,"Trying to read beyond buffer length"));a=p(a,b,c,d);return a&32768?-1*(65535-a+1):a}function u(a,b,c,d){d||(l.ok("boolean"===typeof c,"missing or invalid endian"),l.ok(void 0!==b&&null!==b,"missing offset"),l.ok(b+3<a.length,"Trying to read beyond buffer length"));
|
|
a=t(a,b,c,d);return a&2147483648?-1*(4294967295-a+1):a}function z(a,b,c,d){d||(l.ok("boolean"===typeof c,"missing or invalid endian"),l.ok(b+3<a.length,"Trying to read beyond buffer length"));return f("./buffer_ieee754").readIEEE754(a,b,c,23,4)}function r(a,b,c,d){d||(l.ok("boolean"===typeof c,"missing or invalid endian"),l.ok(b+7<a.length,"Trying to read beyond buffer length"));return f("./buffer_ieee754").readIEEE754(a,b,c,52,8)}function s(a,b){l.ok("number"==typeof a,"cannot write a non-number as a number");
|
|
l.ok(0<=a,"specified a negative value for writing an unsigned value");l.ok(a<=b,"value is larger than maximum value for type");l.ok(Math.floor(a)===a,"value has a fractional component")}function v(a,b,c,d,e){e||(l.ok(void 0!==b&&null!==b,"missing value"),l.ok("boolean"===typeof d,"missing or invalid endian"),l.ok(void 0!==c&&null!==c,"missing offset"),l.ok(c+1<a.length,"trying to write beyond buffer length"),s(b,65535));d?(a.parent[a.offset+c]=(b&65280)>>>8,a.parent[a.offset+c+1]=b&255):(a.parent[a.offset+
|
|
c+1]=(b&65280)>>>8,a.parent[a.offset+c]=b&255)}function m(a,b,c,d,e){e||(l.ok(void 0!==b&&null!==b,"missing value"),l.ok("boolean"===typeof d,"missing or invalid endian"),l.ok(void 0!==c&&null!==c,"missing offset"),l.ok(c+3<a.length,"trying to write beyond buffer length"),s(b,4294967295));d?(a.parent[a.offset+c]=b>>>24&255,a.parent[a.offset+c+1]=b>>>16&255,a.parent[a.offset+c+2]=b>>>8&255,a.parent[a.offset+c+3]=b&255):(a.parent[a.offset+c+3]=b>>>24&255,a.parent[a.offset+c+2]=b>>>16&255,a.parent[a.offset+
|
|
c+1]=b>>>8&255,a.parent[a.offset+c]=b&255)}function E(a,b,c){l.ok("number"==typeof a,"cannot write a non-number as a number");l.ok(a<=b,"value larger than maximum allowed value");l.ok(a>=c,"value smaller than minimum allowed value");l.ok(Math.floor(a)===a,"value has a fractional component")}function F(a,b,c){l.ok("number"==typeof a,"cannot write a non-number as a number");l.ok(a<=b,"value larger than maximum allowed value");l.ok(a>=c,"value smaller than minimum allowed value")}function G(a,b,c,d,
|
|
e){e||(l.ok(void 0!==b&&null!==b,"missing value"),l.ok("boolean"===typeof d,"missing or invalid endian"),l.ok(void 0!==c&&null!==c,"missing offset"),l.ok(c+1<a.length,"Trying to write beyond buffer length"),E(b,32767,-32768));0<=b?v(a,b,c,d,e):v(a,65535+b+1,c,d,e)}function H(a,b,c,d,e){e||(l.ok(void 0!==b&&null!==b,"missing value"),l.ok("boolean"===typeof d,"missing or invalid endian"),l.ok(void 0!==c&&null!==c,"missing offset"),l.ok(c+3<a.length,"Trying to write beyond buffer length"),E(b,2147483647,
|
|
-2147483648));0<=b?m(a,b,c,d,e):m(a,4294967295+b+1,c,d,e)}function I(a,b,c,d,e){e||(l.ok(void 0!==b&&null!==b,"missing value"),l.ok("boolean"===typeof d,"missing or invalid endian"),l.ok(void 0!==c&&null!==c,"missing offset"),l.ok(c+3<a.length,"Trying to write beyond buffer length"),F(b,3.4028234663852886E38,-3.4028234663852886E38));f("./buffer_ieee754").writeIEEE754(a,b,c,d,23,4)}function J(a,b,c,d,e){e||(l.ok(void 0!==b&&null!==b,"missing value"),l.ok("boolean"===typeof d,"missing or invalid endian"),
|
|
l.ok(void 0!==c&&null!==c,"missing offset"),l.ok(c+7<a.length,"Trying to write beyond buffer length"),F(b,1.7976931348623157E308,-1.7976931348623157E308));f("./buffer_ieee754").writeIEEE754(a,b,c,d,52,8)}var l=f("assert");k.INSPECT_MAX_BYTES=50;e.byteLength=function(a,b){switch(b||"utf8"){case "hex":return a.length/2;case "utf8":case "utf-8":return c(a).length;case "ascii":return a.length;case "base64":return f("base64-js").toByteArray(a).length;default:throw Error("Unknown encoding");}};e.prototype.utf8Write=
|
|
function(a,b,d){return e._charsWritten=n(c(a),this,b,d)};e.prototype.asciiWrite=function(a,b,c){for(var d=[],f=0;f<a.length;f++)d.push(a.charCodeAt(f)&255);return e._charsWritten=n(d,this,b,c)};e.prototype.base64Write=function(a,b,c){return e._charsWritten=n(f("base64-js").toByteArray(a),this,b,c)};e.prototype.base64Slice=function(a,b){var c=Array.prototype.slice.apply(this,arguments);return f("base64-js").fromByteArray(c)};e.prototype.utf8Slice=function(){for(var a=Array.prototype.slice.apply(this,
|
|
arguments),b="",c="",e=0;e<a.length;)127>=a[e]?(b+=d(c)+String.fromCharCode(a[e]),c=""):c+="%"+a[e].toString(16),e++;return b+d(c)};e.prototype.asciiSlice=function(){for(var a=Array.prototype.slice.apply(this,arguments),b="",c=0;c<a.length;c++)b+=String.fromCharCode(a[c]);return b};e.prototype.inspect=function(){for(var b=[],c=this.length,d=0;d<c;d++)if(b[d]=a(this[d]),d==k.INSPECT_MAX_BYTES){b[d+1]="...";break}return"<SlowBuffer "+b.join(" ")+">"};e.prototype.hexSlice=function(b,c){var d=this.length;
|
|
if(!b||0>b)b=0;if(!c||0>c||c>d)c=d;for(var d="",e=b;e<c;e++)d+=a(this[e]);return d};e.prototype.toString=function(a,b,c){a=String(a||"utf8").toLowerCase();b=+b||0;"undefined"==typeof c&&(c=this.length);if(+c==b)return"";switch(a){case "hex":return this.hexSlice(b,c);case "utf8":case "utf-8":return this.utf8Slice(b,c);case "ascii":return this.asciiSlice(b,c);case "binary":return this.binarySlice(b,c);case "base64":return this.base64Slice(b,c);case "ucs2":case "ucs-2":return this.ucs2Slice(b,c);default:throw Error("Unknown encoding");
|
|
}};e.prototype.hexWrite=function(a,b,c){b=+b||0;var d=this.length-b;c?(c=+c,c>d&&(c=d)):c=d;d=a.length;if(d%2)throw Error("Invalid hex string");c>d/2&&(c=d/2);for(d=0;d<c;d++){var f=parseInt(a.substr(2*d,2),16);if(isNaN(f))throw Error("Invalid hex string");this[b+d]=f}e._charsWritten=2*d;return d};e.prototype.write=function(a,b,c,d){if(isFinite(b))isFinite(c)||(d=c,c=void 0);else{var e=d;d=b;b=c;c=e}b=+b||0;e=this.length-b;c?(c=+c,c>e&&(c=e)):c=e;d=String(d||"utf8").toLowerCase();switch(d){case "hex":return this.hexWrite(a,
|
|
b,c);case "utf8":case "utf-8":return this.utf8Write(a,b,c);case "ascii":return this.asciiWrite(a,b,c);case "binary":return this.binaryWrite(a,b,c);case "base64":return this.base64Write(a,b,c);case "ucs2":case "ucs-2":return this.ucs2Write(a,b,c);default:throw Error("Unknown encoding");}};e.prototype.slice=function(a,c){void 0===c&&(c=this.length);if(c>this.length)throw Error("oob");if(a>c)throw Error("oob");return new b(this,c-a,+a)};e.prototype.copy=function(a,b,c,d){for(var e=[];c<d;c++)l.ok("undefined"!==
|
|
typeof this[c],"copying undefined buffer bytes!"),e.push(this[c]);for(c=b;c<b+e.length;c++)a[c]=e[c-b]};k.SlowBuffer=e;k.Buffer=b;b.poolSize=8192;var A;b.isBuffer=function(a){return a instanceof b||a instanceof e};b.concat=function(a,c){if(!Array.isArray(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 f=new b(c),
|
|
g=0,d=0;d<a.length;d++)e=a[d],e.copy(f,g),g+=e.length;return f};b.prototype.inspect=function(){for(var b=[],c=this.length,d=0;d<c;d++)if(b[d]=a(this.parent[d+this.offset]),d==k.INSPECT_MAX_BYTES){b[d+1]="...";break}return"<Buffer "+b.join(" ")+">"};b.prototype.get=function(a){if(0>a||a>=this.length)throw Error("oob");return this.parent[this.offset+a]};b.prototype.set=function(a,b){if(0>a||a>=this.length)throw Error("oob");return this.parent[this.offset+a]=b};b.prototype.write=function(a,c,d,f){if(isFinite(c))isFinite(d)||
|
|
(f=d,d=void 0);else{var g=f;f=c;c=d;d=g}c=+c||0;g=this.length-c;d?(d=+d,d>g&&(d=g)):d=g;f=String(f||"utf8").toLowerCase();switch(f){case "hex":a=this.parent.hexWrite(a,this.offset+c,d);break;case "utf8":case "utf-8":a=this.parent.utf8Write(a,this.offset+c,d);break;case "ascii":a=this.parent.asciiWrite(a,this.offset+c,d);break;case "binary":a=this.parent.binaryWrite(a,this.offset+c,d);break;case "base64":a=this.parent.base64Write(a,this.offset+c,d);break;case "ucs2":case "ucs-2":a=this.parent.ucs2Write(a,
|
|
this.offset+c,d);break;default:throw Error("Unknown encoding");}b._charsWritten=e._charsWritten;return a};b.prototype.toString=function(a,b,c){a=String(a||"utf8").toLowerCase();"undefined"==typeof b||0>b?b=0:b>this.length&&(b=this.length);"undefined"==typeof c||c>this.length?c=this.length:0>c&&(c=0);b+=this.offset;c+=this.offset;switch(a){case "hex":return this.parent.hexSlice(b,c);case "utf8":case "utf-8":return this.parent.utf8Slice(b,c);case "ascii":return this.parent.asciiSlice(b,c);case "binary":return this.parent.binarySlice(b,
|
|
c);case "base64":return this.parent.base64Slice(b,c);case "ucs2":case "ucs-2":return this.parent.ucs2Slice(b,c);default:throw Error("Unknown encoding");}};b.byteLength=e.byteLength;b.prototype.fill=function(a,b,c){a||(a=0);b||(b=0);c||(c=this.length);"string"===typeof a&&(a=a.charCodeAt(0));if("number"!==typeof a||isNaN(a))throw Error("value is not a number");if(c<b)throw Error("end < start");if(c===b||0==this.length)return 0;if(0>b||b>=this.length)throw Error("start out of bounds");if(0>c||c>this.length)throw Error("end out of bounds");
|
|
return this.parent.fill(a,b+this.offset,c+this.offset)};b.prototype.copy=function(a,b,c,d){c||(c=0);d||(d=this.length);b||(b=0);if(d<c)throw Error("sourceEnd < sourceStart");if(d===c||0==a.length||0==this.length)return 0;if(0>b||b>=a.length)throw Error("targetStart out of bounds");if(0>c||c>=this.length)throw Error("sourceStart out of bounds");if(0>d||d>this.length)throw Error("sourceEnd out of bounds");d>this.length&&(d=this.length);a.length-b<d-c&&(d=a.length-b+c);return this.parent.copy(a.parent,
|
|
b+a.offset,c+this.offset,d+this.offset)};b.prototype.slice=function(a,c){void 0===c&&(c=this.length);if(c>this.length)throw Error("oob");if(a>c)throw Error("oob");return new b(this.parent,c-a,+a+this.offset)};b.prototype.utf8Slice=function(a,b){return this.toString("utf8",a,b)};b.prototype.binarySlice=function(a,b){return this.toString("binary",a,b)};b.prototype.asciiSlice=function(a,b){return this.toString("ascii",a,b)};b.prototype.utf8Write=function(a,b){return this.write(a,b,"utf8")};b.prototype.binaryWrite=
|
|
function(a,b){return this.write(a,b,"binary")};b.prototype.asciiWrite=function(a,b){return this.write(a,b,"ascii")};b.prototype.readUInt8=function(a,b){b||(l.ok(void 0!==a&&null!==a,"missing offset"),l.ok(a<this.length,"Trying to read beyond buffer length"));return this.parent[this.offset+a]};b.prototype.readUInt16LE=function(a,b){return p(this,a,!1,b)};b.prototype.readUInt16BE=function(a,b){return p(this,a,!0,b)};b.prototype.readUInt32LE=function(a,b){return t(this,a,!1,b)};b.prototype.readUInt32BE=
|
|
function(a,b){return t(this,a,!0,b)};b.prototype.readInt8=function(a,b){b||(l.ok(void 0!==a&&null!==a,"missing offset"),l.ok(a<this.length,"Trying to read beyond buffer length"));return this.parent[this.offset+a]&128?-1*(255-this.parent[this.offset+a]+1):this.parent[this.offset+a]};b.prototype.readInt16LE=function(a,b){return q(this,a,!1,b)};b.prototype.readInt16BE=function(a,b){return q(this,a,!0,b)};b.prototype.readInt32LE=function(a,b){return u(this,a,!1,b)};b.prototype.readInt32BE=function(a,
|
|
b){return u(this,a,!0,b)};b.prototype.readFloatLE=function(a,b){return z(this,a,!1,b)};b.prototype.readFloatBE=function(a,b){return z(this,a,!0,b)};b.prototype.readDoubleLE=function(a,b){return r(this,a,!1,b)};b.prototype.readDoubleBE=function(a,b){return r(this,a,!0,b)};b.prototype.writeUInt8=function(a,b,c){c||(l.ok(void 0!==a&&null!==a,"missing value"),l.ok(void 0!==b&&null!==b,"missing offset"),l.ok(b<this.length,"trying to write beyond buffer length"),s(a,255));this.parent[this.offset+b]=a};
|
|
b.prototype.writeUInt16LE=function(a,b,c){v(this,a,b,!1,c)};b.prototype.writeUInt16BE=function(a,b,c){v(this,a,b,!0,c)};b.prototype.writeUInt32LE=function(a,b,c){m(this,a,b,!1,c)};b.prototype.writeUInt32BE=function(a,b,c){m(this,a,b,!0,c)};b.prototype.writeInt8=function(a,b,c){c||(l.ok(void 0!==a&&null!==a,"missing value"),l.ok(void 0!==b&&null!==b,"missing offset"),l.ok(b<this.length,"Trying to write beyond buffer length"),E(a,127,-128));0<=a?this.writeUInt8(a,b,c):this.writeUInt8(255+a+1,b,c)};
|
|
b.prototype.writeInt16LE=function(a,b,c){G(this,a,b,!1,c)};b.prototype.writeInt16BE=function(a,b,c){G(this,a,b,!0,c)};b.prototype.writeInt32LE=function(a,b,c){H(this,a,b,!1,c)};b.prototype.writeInt32BE=function(a,b,c){H(this,a,b,!0,c)};b.prototype.writeFloatLE=function(a,b,c){I(this,a,b,!1,c)};b.prototype.writeFloatBE=function(a,b,c){I(this,a,b,!0,c)};b.prototype.writeDoubleLE=function(a,b,c){J(this,a,b,!1,c)};b.prototype.writeDoubleBE=function(a,b,c){J(this,a,b,!0,c)};e.prototype.readUInt8=b.prototype.readUInt8;
|
|
e.prototype.readUInt16LE=b.prototype.readUInt16LE;e.prototype.readUInt16BE=b.prototype.readUInt16BE;e.prototype.readUInt32LE=b.prototype.readUInt32LE;e.prototype.readUInt32BE=b.prototype.readUInt32BE;e.prototype.readInt8=b.prototype.readInt8;e.prototype.readInt16LE=b.prototype.readInt16LE;e.prototype.readInt16BE=b.prototype.readInt16BE;e.prototype.readInt32LE=b.prototype.readInt32LE;e.prototype.readInt32BE=b.prototype.readInt32BE;e.prototype.readFloatLE=b.prototype.readFloatLE;e.prototype.readFloatBE=
|
|
b.prototype.readFloatBE;e.prototype.readDoubleLE=b.prototype.readDoubleLE;e.prototype.readDoubleBE=b.prototype.readDoubleBE;e.prototype.writeUInt8=b.prototype.writeUInt8;e.prototype.writeUInt16LE=b.prototype.writeUInt16LE;e.prototype.writeUInt16BE=b.prototype.writeUInt16BE;e.prototype.writeUInt32LE=b.prototype.writeUInt32LE;e.prototype.writeUInt32BE=b.prototype.writeUInt32BE;e.prototype.writeInt8=b.prototype.writeInt8;e.prototype.writeInt16LE=b.prototype.writeInt16LE;e.prototype.writeInt16BE=b.prototype.writeInt16BE;
|
|
e.prototype.writeInt32LE=b.prototype.writeInt32LE;e.prototype.writeInt32BE=b.prototype.writeInt32BE;e.prototype.writeFloatLE=b.prototype.writeFloatLE;e.prototype.writeFloatBE=b.prototype.writeFloatBE;e.prototype.writeDoubleLE=b.prototype.writeDoubleLE;e.prototype.writeDoubleBE=b.prototype.writeDoubleBE},{assert:1,"./buffer_ieee754":8,"base64-js":9}],9:[function(f,h,k){(function(e){h.exports.toByteArray=function(a){var c,e,d,f,b;if(0<a.length%4)throw"Invalid string. Length must be a multiple of 4";
|
|
f=a.indexOf("=");f=0<f?a.length-f:0;b=[];e=0<f?a.length-4:a.length;for(c=0;c<e;c+=4)d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(a[c])<<18|"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(a[c+1])<<12|"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(a[c+2])<<6|"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(a[c+3]),b.push((d&16711680)>>16),b.push((d&65280)>>8),b.push(d&255);2===f?(d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(a[c])<<
|
|
2|"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(a[c+1])>>4,b.push(d&255)):1===f&&(d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(a[c])<<10|"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(a[c+1])<<4|"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(a[c+2])>>2,b.push(d>>8&255),b.push(d&255));return b};h.exports.fromByteArray=function(a){var c,e=a.length%3,d="",f,b;c=0;for(b=a.length-e;c<b;c+=
|
|
3)f=(a[c]<<16)+(a[c+1]<<8)+a[c+2],d+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[f>>18&63]+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[f>>12&63]+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[f>>6&63]+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[f&63];switch(e){case 1:f=a[a.length-1];d+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[f>>2];d+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[f<<
|
|
4&63];d+="==";break;case 2:f=(a[a.length-2]<<8)+a[a.length-1],d+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[f>>10],d+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[f>>4&63],d+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[f<<2&63],d+="="}return d}})()},{}]},{},[]);u.exports=h("buffer-browserify")},{}],16:[function(h,u,p){h=u.exports={};h.nextTick=function(){if("undefined"!==typeof window&&window.setImmediate)return function(f){return window.setImmediate(f)};
|
|
if("undefined"!==typeof window&&window.postMessage&&window.addEventListener){var f=[];window.addEventListener("message",function(h){h.source===window&&"process-tick"===h.data&&(h.stopPropagation(),0<f.length&&f.shift()())},!0);return function(h){f.push(h);window.postMessage("process-tick","*")}}return function(f){setTimeout(f,0)}}();h.title="browser";h.browser=!0;h.env={};h.argv=[];h.binding=function(f){throw Error("process.binding is not supported");};h.cwd=function(){return"/"};h.chdir=function(f){throw Error("process.chdir is not supported");
|
|
}},{}]},{},[1]);
|