Socket
Socket
Sign inDemoInstall

source-map-support

Package Overview
Dependencies
1
Maintainers
3
Versions
66
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.4.8 to 0.4.9

webpack-test/compiled.js

56

browser-source-map-support.js

@@ -16,19 +16,19 @@ /*

c[c.length-1],h+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(n>>10),h+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(n>>4&63),h+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(n<<2&63),h+="="}return h}})("undefined"===typeof l?this.base64js={}:l)},{}],3:[function(p,v,l){},{}],4:[function(p,v,l){function c(g,m,b){if(!(this instanceof c))return new c(g,m,b);var y=typeof g;if("base64"===m&&"string"===y)for(g=g.trim?
g.trim():g.replace(/^\s+|\s+$/g,"");0!==g.length%4;)g+="=";var a;if("number"===y)a=G(g);else if("string"===y)a=c.byteLength(g,m);else if("object"===y)a=G(g.length);else throw Error("First argument needs to be a number, array or string.");var f;c._useTypedArrays?f=c._augment(new Uint8Array(a)):(f=this,f.length=a,f._isBuffer=!0);if(c._useTypedArrays&&"number"===typeof g.byteLength)f._set(g);else{var d=g;if(L(d)||c.isBuffer(d)||d&&"object"===typeof d&&"number"===typeof d.length)for(m=0;m<a;m++)c.isBuffer(g)?
g.trim():g.replace(/^\s+|\s+$/g,"");0!==g.length%4;)g+="=";var a;if("number"===y)a=C(g);else if("string"===y)a=c.byteLength(g,m);else if("object"===y)a=C(g.length);else throw Error("First argument needs to be a number, array or string.");var f;c._useTypedArrays?f=c._augment(new Uint8Array(a)):(f=this,f.length=a,f._isBuffer=!0);if(c._useTypedArrays&&"number"===typeof g.byteLength)f._set(g);else{var d=g;if(L(d)||c.isBuffer(d)||d&&"object"===typeof d&&"number"===typeof d.length)for(m=0;m<a;m++)c.isBuffer(g)?
f[m]=g.readUInt8(m):f[m]=g[m];else if("string"===y)f.write(g,0,m);else if("number"===y&&!c._useTypedArrays&&!b)for(m=0;m<a;m++)f[m]=0}return f}function e(g,m,b){var y="";for(b=Math.min(g.length,b);m<b;m++)y+=String.fromCharCode(g[m]);return y}function k(g,m,b,a){a||(q("boolean"===typeof b,"missing or invalid endian"),q(void 0!==m&&null!==m,"missing offset"),q(m+1<g.length,"Trying to read beyond buffer length"));a=g.length;if(!(m>=a))return b?(b=g[m],m+1<a&&(b|=g[m+1]<<8)):(b=g[m]<<8,m+1<a&&(b|=g[m+
1])),b}function r(g,m,b,a){a||(q("boolean"===typeof b,"missing or invalid endian"),q(void 0!==m&&null!==m,"missing offset"),q(m+3<g.length,"Trying to read beyond buffer length"));a=g.length;if(!(m>=a)){var y;b?(m+2<a&&(y=g[m+2]<<16),m+1<a&&(y|=g[m+1]<<8),y|=g[m],m+3<a&&(y+=g[m+3]<<24>>>0)):(m+1<a&&(y=g[m+1]<<16),m+2<a&&(y|=g[m+2]<<8),m+3<a&&(y|=g[m+3]),y+=g[m]<<24>>>0);return y}}function d(g,m,b,a){a||(q("boolean"===typeof b,"missing or invalid endian"),q(void 0!==m&&null!==m,"missing offset"),q(m+
1<g.length,"Trying to read beyond buffer length"));if(!(m>=g.length))return g=k(g,m,b,!0),g&32768?-1*(65535-g+1):g}function a(g,m,b,a){a||(q("boolean"===typeof b,"missing or invalid endian"),q(void 0!==m&&null!==m,"missing offset"),q(m+3<g.length,"Trying to read beyond buffer length"));if(!(m>=g.length))return g=r(g,m,b,!0),g&2147483648?-1*(4294967295-g+1):g}function h(g,m,b,a){a||(q("boolean"===typeof b,"missing or invalid endian"),q(m+3<g.length,"Trying to read beyond buffer length"));return K.read(g,
m,b,23,4)}function n(g,m,b,a){a||(q("boolean"===typeof b,"missing or invalid endian"),q(m+7<g.length,"Trying to read beyond buffer length"));return K.read(g,m,b,52,8)}function t(g,m,b,a,c){c||(q(void 0!==m&&null!==m,"missing value"),q("boolean"===typeof a,"missing or invalid endian"),q(void 0!==b&&null!==b,"missing offset"),q(b+1<g.length,"trying to write beyond buffer length"),H(m,65535));var y=g.length;if(!(b>=y))for(c=0,y=Math.min(y-b,2);c<y;c++)g[b+c]=(m&255<<8*(a?c:1-c))>>>8*(a?c:1-c)}function b(g,
1<g.length,"Trying to read beyond buffer length"));if(!(m>=g.length))return g=k(g,m,b,!0),g&32768?-1*(65535-g+1):g}function a(g,m,b,a){a||(q("boolean"===typeof b,"missing or invalid endian"),q(void 0!==m&&null!==m,"missing offset"),q(m+3<g.length,"Trying to read beyond buffer length"));if(!(m>=g.length))return g=r(g,m,b,!0),g&2147483648?-1*(4294967295-g+1):g}function h(g,m,b,a){a||(q("boolean"===typeof b,"missing or invalid endian"),q(m+3<g.length,"Trying to read beyond buffer length"));return J.read(g,
m,b,23,4)}function n(g,m,b,a){a||(q("boolean"===typeof b,"missing or invalid endian"),q(m+7<g.length,"Trying to read beyond buffer length"));return J.read(g,m,b,52,8)}function t(g,m,b,a,c){c||(q(void 0!==m&&null!==m,"missing value"),q("boolean"===typeof a,"missing or invalid endian"),q(void 0!==b&&null!==b,"missing offset"),q(b+1<g.length,"trying to write beyond buffer length"),H(m,65535));var y=g.length;if(!(b>=y))for(c=0,y=Math.min(y-b,2);c<y;c++)g[b+c]=(m&255<<8*(a?c:1-c))>>>8*(a?c:1-c)}function b(g,
b,a,c,f){f||(q(void 0!==b&&null!==b,"missing value"),q("boolean"===typeof c,"missing or invalid endian"),q(void 0!==a&&null!==a,"missing offset"),q(a+3<g.length,"trying to write beyond buffer length"),H(b,4294967295));var m=g.length;if(!(a>=m))for(f=0,m=Math.min(m-a,4);f<m;f++)g[a+f]=b>>>8*(c?f:3-f)&255}function f(g,b,a,c,f){f||(q(void 0!==b&&null!==b,"missing value"),q("boolean"===typeof c,"missing or invalid endian"),q(void 0!==a&&null!==a,"missing offset"),q(a+1<g.length,"Trying to write beyond buffer length"),
z(b,32767,-32768));a>=g.length||(0<=b?t(g,b,a,c,f):t(g,65535+b+1,a,c,f))}function F(g,m,a,c,f){f||(q(void 0!==m&&null!==m,"missing value"),q("boolean"===typeof c,"missing or invalid endian"),q(void 0!==a&&null!==a,"missing offset"),q(a+3<g.length,"Trying to write beyond buffer length"),z(m,2147483647,-2147483648));a>=g.length||(0<=m?b(g,m,a,c,f):b(g,4294967295+m+1,a,c,f))}function u(g,b,a,c,f){f||(q(void 0!==b&&null!==b,"missing value"),q("boolean"===typeof c,"missing or invalid endian"),q(void 0!==
a&&null!==a,"missing offset"),q(a+3<g.length,"Trying to write beyond buffer length"),D(b,3.4028234663852886E38,-3.4028234663852886E38));a>=g.length||K.write(g,b,a,c,23,4)}function M(g,b,a,c,f){f||(q(void 0!==b&&null!==b,"missing value"),q("boolean"===typeof c,"missing or invalid endian"),q(void 0!==a&&null!==a,"missing offset"),q(a+7<g.length,"Trying to write beyond buffer length"),D(b,1.7976931348623157E308,-1.7976931348623157E308));a>=g.length||K.write(g,b,a,c,52,8)}function I(g,b,a){if("number"!==
typeof g)return a;g=~~g;if(g>=b)return b;if(0<=g)return g;g+=b;return 0<=g?g:0}function G(g){g=~~Math.ceil(+g);return 0>g?0:g}function L(g){return(Array.isArray||function(g){return"[object Array]"===Object.prototype.toString.call(g)})(g)}function B(g){return 16>g?"0"+g.toString(16):g.toString(16)}function x(g){for(var b=[],a=0;a<g.length;a++){var c=g.charCodeAt(a);if(127>=c)b.push(g.charCodeAt(a));else{var f=a;55296<=c&&57343>=c&&a++;c=encodeURIComponent(g.slice(f,a+1)).substr(1).split("%");for(f=
0;f<c.length;f++)b.push(parseInt(c[f],16))}}return b}function J(g){for(var b=[],a=0;a<g.length;a++)b.push(g.charCodeAt(a)&255);return b}function A(g,b,a,c){for(var m=0;m<c&&!(m+a>=b.length||m>=g.length);m++)b[m+a]=g[m];return m}function E(g){try{return decodeURIComponent(g)}catch(m){return String.fromCharCode(65533)}}function H(g,b){q("number"===typeof g,"cannot write a non-number as a number");q(0<=g,"specified a negative value for writing an unsigned value");q(g<=b,"value is larger than maximum value for type");
q(Math.floor(g)===g,"value has a fractional component")}function z(g,b,a){q("number"===typeof g,"cannot write a non-number as a number");q(g<=b,"value larger than maximum allowed value");q(g>=a,"value smaller than minimum allowed value");q(Math.floor(g)===g,"value has a fractional component")}function D(g,b,a){q("number"===typeof g,"cannot write a non-number as a number");q(g<=b,"value larger than maximum allowed value");q(g>=a,"value smaller than minimum allowed value")}function q(g,b){if(!g)throw Error(b||
"Failed assertion");}var C=p("base64-js"),K=p("ieee754");l.Buffer=c;l.SlowBuffer=c;l.INSPECT_MAX_BYTES=50;c.poolSize=8192;c._useTypedArrays=function(){try{var g=new ArrayBuffer(0),b=new Uint8Array(g);b.foo=function(){return 42};return 42===b.foo()&&"function"===typeof b.subarray}catch(y){return!1}}();c.isEncoding=function(g){switch(String(g).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}};c.isBuffer=function(g){return!(null===g||void 0===g||!g._isBuffer)};c.byteLength=function(g,b){var a;g+="";switch(b||"utf8"){case "hex":a=g.length/2;break;case "utf8":case "utf-8":a=x(g).length;break;case "ascii":case "binary":case "raw":a=g.length;break;case "base64":a=C.toByteArray(g).length;break;case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":a=2*g.length;break;default:throw Error("Unknown encoding");}return a};c.concat=function(g,b){q(L(g),"Usage: Buffer.concat(list, [totalLength])\nlist should be an Array.");
z(b,32767,-32768));a>=g.length||(0<=b?t(g,b,a,c,f):t(g,65535+b+1,a,c,f))}function G(g,m,a,c,f){f||(q(void 0!==m&&null!==m,"missing value"),q("boolean"===typeof c,"missing or invalid endian"),q(void 0!==a&&null!==a,"missing offset"),q(a+3<g.length,"Trying to write beyond buffer length"),z(m,2147483647,-2147483648));a>=g.length||(0<=m?b(g,m,a,c,f):b(g,4294967295+m+1,a,c,f))}function u(g,b,a,c,f){f||(q(void 0!==b&&null!==b,"missing value"),q("boolean"===typeof c,"missing or invalid endian"),q(void 0!==
a&&null!==a,"missing offset"),q(a+3<g.length,"Trying to write beyond buffer length"),E(b,3.4028234663852886E38,-3.4028234663852886E38));a>=g.length||J.write(g,b,a,c,23,4)}function M(g,b,a,c,f){f||(q(void 0!==b&&null!==b,"missing value"),q("boolean"===typeof c,"missing or invalid endian"),q(void 0!==a&&null!==a,"missing offset"),q(a+7<g.length,"Trying to write beyond buffer length"),E(b,1.7976931348623157E308,-1.7976931348623157E308));a>=g.length||J.write(g,b,a,c,52,8)}function I(g,b,a){if("number"!==
typeof g)return a;g=~~g;if(g>=b)return b;if(0<=g)return g;g+=b;return 0<=g?g:0}function C(g){g=~~Math.ceil(+g);return 0>g?0:g}function L(g){return(Array.isArray||function(g){return"[object Array]"===Object.prototype.toString.call(g)})(g)}function B(g){return 16>g?"0"+g.toString(16):g.toString(16)}function x(g){for(var b=[],a=0;a<g.length;a++){var c=g.charCodeAt(a);if(127>=c)b.push(g.charCodeAt(a));else{var f=a;55296<=c&&57343>=c&&a++;c=encodeURIComponent(g.slice(f,a+1)).substr(1).split("%");for(f=
0;f<c.length;f++)b.push(parseInt(c[f],16))}}return b}function K(g){for(var b=[],a=0;a<g.length;a++)b.push(g.charCodeAt(a)&255);return b}function A(g,b,a,c){for(var m=0;m<c&&!(m+a>=b.length||m>=g.length);m++)b[m+a]=g[m];return m}function F(g){try{return decodeURIComponent(g)}catch(m){return String.fromCharCode(65533)}}function H(g,b){q("number"===typeof g,"cannot write a non-number as a number");q(0<=g,"specified a negative value for writing an unsigned value");q(g<=b,"value is larger than maximum value for type");
q(Math.floor(g)===g,"value has a fractional component")}function z(g,b,a){q("number"===typeof g,"cannot write a non-number as a number");q(g<=b,"value larger than maximum allowed value");q(g>=a,"value smaller than minimum allowed value");q(Math.floor(g)===g,"value has a fractional component")}function E(g,b,a){q("number"===typeof g,"cannot write a non-number as a number");q(g<=b,"value larger than maximum allowed value");q(g>=a,"value smaller than minimum allowed value")}function q(g,b){if(!g)throw Error(b||
"Failed assertion");}var D=p("base64-js"),J=p("ieee754");l.Buffer=c;l.SlowBuffer=c;l.INSPECT_MAX_BYTES=50;c.poolSize=8192;c._useTypedArrays=function(){try{var g=new ArrayBuffer(0),b=new Uint8Array(g);b.foo=function(){return 42};return 42===b.foo()&&"function"===typeof b.subarray}catch(y){return!1}}();c.isEncoding=function(g){switch(String(g).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}};c.isBuffer=function(g){return!(null===g||void 0===g||!g._isBuffer)};c.byteLength=function(g,b){var a;g+="";switch(b||"utf8"){case "hex":a=g.length/2;break;case "utf8":case "utf-8":a=x(g).length;break;case "ascii":case "binary":case "raw":a=g.length;break;case "base64":a=D.toByteArray(g).length;break;case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":a=2*g.length;break;default:throw Error("Unknown encoding");}return a};c.concat=function(g,b){q(L(g),"Usage: Buffer.concat(list, [totalLength])\nlist should be an Array.");
if(0===g.length)return new c(0);if(1===g.length)return g[0];var a;if("number"!==typeof b)for(a=b=0;a<g.length;a++)b+=g[a].length;var m=new c(b),f=0;for(a=0;a<g.length;a++){var d=g[a];d.copy(m,f);f+=d.length}return m};c.prototype.write=function(g,b,a,f){if(isFinite(b))isFinite(a)||(f=a,a=void 0);else{var m=f;f=b;b=a;a=m}b=Number(b)||0;m=this.length-b;a?(a=Number(a),a>m&&(a=m)):a=m;f=String(f||"utf8").toLowerCase();switch(f){case "hex":b=Number(b)||0;f=this.length-b;a?(a=Number(a),a>f&&(a=f)):a=f;f=
g.length;q(0===f%2,"Invalid hex string");a>f/2&&(a=f/2);for(f=0;f<a;f++)m=parseInt(g.substr(2*f,2),16),q(!isNaN(m),"Invalid hex string"),this[b+f]=m;c._charsWritten=2*f;g=f;break;case "utf8":case "utf-8":g=c._charsWritten=A(x(g),this,b,a);break;case "ascii":g=c._charsWritten=A(J(g),this,b,a);break;case "binary":g=c._charsWritten=A(J(g),this,b,a);break;case "base64":g=c._charsWritten=A(C.toByteArray(g),this,b,a);break;case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":for(var d,m=[],h=0;h<g.length;h++)d=
g.charCodeAt(h),f=d>>8,d%=256,m.push(d),m.push(f);g=c._charsWritten=A(m,this,b,a);break;default:throw Error("Unknown encoding");}return g};c.prototype.toString=function(g,b,a){g=String(g||"utf8").toLowerCase();b=Number(b)||0;a=void 0!==a?Number(a):a=this.length;if(a===b)return"";switch(g){case "hex":g=this.length;if(!b||0>b)b=0;if(!a||0>a||a>g)a=g;for(g="";b<a;b++)g+=B(this[b]);a=g;break;case "utf8":case "utf-8":var f=g="";for(a=Math.min(this.length,a);b<a;b++)127>=this[b]?(g+=E(f)+String.fromCharCode(this[b]),
f=""):f+="%"+this[b].toString(16);a=g+E(f);break;case "ascii":a=e(this,b,a);break;case "binary":a=e(this,b,a);break;case "base64":a=0===b&&a===this.length?C.fromByteArray(this):C.fromByteArray(this.slice(b,a));break;case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":a=this.slice(b,a);b="";for(g=0;g<a.length;g+=2)b+=String.fromCharCode(a[g]+256*a[g+1]);a=b;break;default:throw Error("Unknown encoding");}return a};c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||
g.length;q(0===f%2,"Invalid hex string");a>f/2&&(a=f/2);for(f=0;f<a;f++)m=parseInt(g.substr(2*f,2),16),q(!isNaN(m),"Invalid hex string"),this[b+f]=m;c._charsWritten=2*f;g=f;break;case "utf8":case "utf-8":g=c._charsWritten=A(x(g),this,b,a);break;case "ascii":g=c._charsWritten=A(K(g),this,b,a);break;case "binary":g=c._charsWritten=A(K(g),this,b,a);break;case "base64":g=c._charsWritten=A(D.toByteArray(g),this,b,a);break;case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":for(var d,m=[],h=0;h<g.length;h++)d=
g.charCodeAt(h),f=d>>8,d%=256,m.push(d),m.push(f);g=c._charsWritten=A(m,this,b,a);break;default:throw Error("Unknown encoding");}return g};c.prototype.toString=function(g,b,a){g=String(g||"utf8").toLowerCase();b=Number(b)||0;a=void 0!==a?Number(a):a=this.length;if(a===b)return"";switch(g){case "hex":g=this.length;if(!b||0>b)b=0;if(!a||0>a||a>g)a=g;for(g="";b<a;b++)g+=B(this[b]);a=g;break;case "utf8":case "utf-8":var f=g="";for(a=Math.min(this.length,a);b<a;b++)127>=this[b]?(g+=F(f)+String.fromCharCode(this[b]),
f=""):f+="%"+this[b].toString(16);a=g+F(f);break;case "ascii":a=e(this,b,a);break;case "binary":a=e(this,b,a);break;case "base64":a=0===b&&a===this.length?D.fromByteArray(this):D.fromByteArray(this.slice(b,a));break;case "ucs2":case "ucs-2":case "utf16le":case "utf-16le":a=this.slice(b,a);b="";for(g=0;g<a.length;g+=2)b+=String.fromCharCode(a[g]+256*a[g+1]);a=b;break;default:throw Error("Unknown encoding");}return a};c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||
this,0)}};c.prototype.copy=function(g,b,a,f){a||(a=0);f||0===f||(f=this.length);b||(b=0);if(f!==a&&0!==g.length&&0!==this.length)if(q(f>=a,"sourceEnd < sourceStart"),q(0<=b&&b<g.length,"targetStart out of bounds"),q(0<=a&&a<this.length,"sourceStart out of bounds"),q(0<=f&&f<=this.length,"sourceEnd out of bounds"),f>this.length&&(f=this.length),g.length-b<f-a&&(f=g.length-b+a),f-=a,100>f||!c._useTypedArrays)for(var m=0;m<f;m++)g[m+b]=this[m+a];else g._set(this.subarray(a,a+f),b)};c.prototype.slice=

@@ -39,3 +39,3 @@ function(g,a){var b=this.length;g=I(g,b,0);a=I(a,b,b);if(c._useTypedArrays)return c._augment(this.subarray(g,a));for(var b=a-g,f=new c(b,void 0,!0),m=0;m<b;m++)f[m]=this[m+g];return f};c.prototype.get=function(b){console.log(".get() is deprecated. Access using array indexes instead.");return this.readUInt8(b)};c.prototype.set=function(b,a){console.log(".set() is deprecated. Access using array indexes instead.");return this.writeUInt8(b,a)};c.prototype.readUInt8=function(b,a){a||(q(void 0!==b&&null!==

function(b,a){return n(this,b,!1,a)};c.prototype.writeUInt8=function(b,a,f){f||(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"),H(b,255));a>=this.length||(this[a]=b)};c.prototype.writeUInt16LE=function(b,a,f){t(this,b,a,!0,f)};c.prototype.writeUInt16BE=function(b,a,f){t(this,b,a,!1,f)};c.prototype.writeUInt32LE=function(a,f,c){b(this,a,f,!0,c)};c.prototype.writeUInt32BE=function(a,f,c){b(this,a,f,!1,c)};c.prototype.writeInt8=
function(b,a,f){f||(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"),z(b,127,-128));a>=this.length||(0<=b?this.writeUInt8(b,a,f):this.writeUInt8(255+b+1,a,f))};c.prototype.writeInt16LE=function(b,a,c){f(this,b,a,!0,c)};c.prototype.writeInt16BE=function(b,a,c){f(this,b,a,!1,c)};c.prototype.writeInt32LE=function(b,a,f){F(this,b,a,!0,f)};c.prototype.writeInt32BE=function(b,a,f){F(this,b,a,!1,f)};c.prototype.writeFloatLE=
function(b,a,f){f||(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"),z(b,127,-128));a>=this.length||(0<=b?this.writeUInt8(b,a,f):this.writeUInt8(255+b+1,a,f))};c.prototype.writeInt16LE=function(b,a,c){f(this,b,a,!0,c)};c.prototype.writeInt16BE=function(b,a,c){f(this,b,a,!1,c)};c.prototype.writeInt32LE=function(b,a,f){G(this,b,a,!0,f)};c.prototype.writeInt32BE=function(b,a,f){G(this,b,a,!1,f)};c.prototype.writeFloatLE=
function(b,a,f){u(this,b,a,!0,f)};c.prototype.writeFloatBE=function(b,a,f){u(this,b,a,!1,f)};c.prototype.writeDoubleLE=function(b,a,f){M(this,b,a,!0,f)};c.prototype.writeDoubleBE=function(b,a,f){M(this,b,a,!1,f)};c.prototype.fill=function(b,a,f){b||(b=0);a||(a=0);f||(f=this.length);"string"===typeof b&&(b=b.charCodeAt(0));q("number"===typeof b&&!isNaN(b),"value is not a number");q(f>=a,"end < start");if(f!==a&&0!==this.length)for(q(0<=a&&a<this.length,"start out of bounds"),q(0<=f&&f<=this.length,

@@ -46,6 +46,6 @@ "end out of bounds");a<f;a++)this[a]=b};c.prototype.inspect=function(){for(var b=[],a=this.length,f=0;f<a;f++)if(b[f]=B(this[f]),f===l.INSPECT_MAX_BYTES){b[f+1]="...";break}return"<Buffer "+b.join(" ")+">"};c.prototype.toArrayBuffer=function(){if("undefined"!==typeof Uint8Array){if(c._useTypedArrays)return(new c(this)).buffer;for(var b=new Uint8Array(this.length),a=0,f=b.length;a<f;a+=1)b[a]=this[a];return b.buffer}throw Error("Buffer.toArrayBuffer not supported in this browser");};var w=c.prototype;

b.fill=w.fill;b.inspect=w.inspect;b.toArrayBuffer=w.toArrayBuffer;return b}},{"base64-js":2,ieee754:5}],5:[function(p,v,l){l.read=function(c,e,k,r,d){var a;a=8*d-r-1;var h=(1<<a)-1,n=h>>1,t=-7;d=k?d-1:0;var b=k?-1:1,f=c[e+d];d+=b;k=f&(1<<-t)-1;f>>=-t;for(t+=a;0<t;k=256*k+c[e+d],d+=b,t-=8);a=k&(1<<-t)-1;k>>=-t;for(t+=r;0<t;a=256*a+c[e+d],d+=b,t-=8);if(0===k)k=1-n;else{if(k===h)return a?NaN:Infinity*(f?-1:1);a+=Math.pow(2,r);k-=n}return(f?-1:1)*a*Math.pow(2,k-r)};l.write=function(c,e,k,r,d,a){var h,
n=8*a-d-1,t=(1<<n)-1,b=t>>1,f=23===d?Math.pow(2,-24)-Math.pow(2,-77):0;a=r?0:a-1;var F=r?1:-1,u=0>e||0===e&&0>1/e?1:0;e=Math.abs(e);isNaN(e)||Infinity===e?(e=isNaN(e)?1:0,r=t):(r=Math.floor(Math.log(e)/Math.LN2),1>e*(h=Math.pow(2,-r))&&(r--,h*=2),e=1<=r+b?e+f/h:e+f*Math.pow(2,1-b),2<=e*h&&(r++,h/=2),r+b>=t?(e=0,r=t):1<=r+b?(e=(e*h-1)*Math.pow(2,d),r+=b):(e=e*Math.pow(2,b-1)*Math.pow(2,d),r=0));for(;8<=d;c[k+a]=e&255,a+=F,e/=256,d-=8);r=r<<d|e;for(n+=d;0<n;c[k+a]=r&255,a+=F,r/=256,n-=8);c[k+a-F]|=
n=8*a-d-1,t=(1<<n)-1,b=t>>1,f=23===d?Math.pow(2,-24)-Math.pow(2,-77):0;a=r?0:a-1;var G=r?1:-1,u=0>e||0===e&&0>1/e?1:0;e=Math.abs(e);isNaN(e)||Infinity===e?(e=isNaN(e)?1:0,r=t):(r=Math.floor(Math.log(e)/Math.LN2),1>e*(h=Math.pow(2,-r))&&(r--,h*=2),e=1<=r+b?e+f/h:e+f*Math.pow(2,1-b),2<=e*h&&(r++,h/=2),r+b>=t?(e=0,r=t):1<=r+b?(e=(e*h-1)*Math.pow(2,d),r+=b):(e=e*Math.pow(2,b-1)*Math.pow(2,d),r=0));for(;8<=d;c[k+a]=e&255,a+=G,e/=256,d-=8);r=r<<d|e;for(n+=d;0<n;c[k+a]=r&255,a+=G,r/=256,n-=8);c[k+a-G]|=
128*u}},{}],6:[function(p,v,l){(function(c){function e(a,c){for(var d=0,h=a.length-1;0<=h;h--){var b=a[h];"."===b?a.splice(h,1):".."===b?(a.splice(h,1),d++):d&&(a.splice(h,1),d--)}if(c)for(;d--;d)a.unshift("..");return a}function k(a,c){if(a.filter)return a.filter(c);for(var d=[],h=0;h<a.length;h++)c(a[h],h,a)&&d.push(a[h]);return d}var r=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;l.resolve=function(){for(var a="",d=!1,n=arguments.length-1;-1<=n&&!d;n--){var t=0<=n?arguments[n]:
c.cwd();if("string"!==typeof t)throw new TypeError("Arguments to path.resolve must be strings");t&&(a=t+"/"+a,d="/"===t.charAt(0))}a=e(k(a.split("/"),function(b){return!!b}),!d).join("/");return(d?"/":"")+a||"."};l.normalize=function(a){var c=l.isAbsolute(a),n="/"===d(a,-1);(a=e(k(a.split("/"),function(a){return!!a}),!c).join("/"))||c||(a=".");a&&n&&(a+="/");return(c?"/":"")+a};l.isAbsolute=function(a){return"/"===a.charAt(0)};l.join=function(){var a=Array.prototype.slice.call(arguments,0);return l.normalize(k(a,
function(a,c){if("string"!==typeof a)throw new TypeError("Arguments to path.join must be strings");return a}).join("/"))};l.relative=function(a,c){function d(b){for(var a=0;a<b.length&&""===b[a];a++);for(var f=b.length-1;0<=f&&""===b[f];f--);return a>f?[]:b.slice(a,f-a+1)}a=l.resolve(a).substr(1);c=l.resolve(c).substr(1);for(var h=d(a.split("/")),b=d(c.split("/")),f=Math.min(h.length,b.length),F=f,u=0;u<f;u++)if(h[u]!==b[u]){F=u;break}f=[];for(u=F;u<h.length;u++)f.push("..");f=f.concat(b.slice(F));
function(a,c){if("string"!==typeof a)throw new TypeError("Arguments to path.join must be strings");return a}).join("/"))};l.relative=function(a,c){function d(b){for(var a=0;a<b.length&&""===b[a];a++);for(var f=b.length-1;0<=f&&""===b[f];f--);return a>f?[]:b.slice(a,f-a+1)}a=l.resolve(a).substr(1);c=l.resolve(c).substr(1);for(var h=d(a.split("/")),b=d(c.split("/")),f=Math.min(h.length,b.length),G=f,u=0;u<f;u++)if(h[u]!==b[u]){G=u;break}f=[];for(u=G;u<h.length;u++)f.push("..");f=f.concat(b.slice(G));
return f.join("/")};l.sep="/";l.delimiter=":";l.dirname=function(a){var c=r.exec(a).slice(1);a=c[0];c=c[1];if(!a&&!c)return".";c&&(c=c.substr(0,c.length-1));return a+c};l.basename=function(a,c){var d=r.exec(a).slice(1)[2];c&&d.substr(-1*c.length)===c&&(d=d.substr(0,d.length-c.length));return d};l.extname=function(a){return r.exec(a).slice(1)[3]};var d="b"==="ab".substr(-1)?function(a,c,d){return a.substr(c,d)}:function(a,c,d){0>c&&(c=a.length+c);return a.substr(c,d)}}).call(this,p("node_modules/process/browser.js"))},

@@ -60,3 +60,3 @@ {"node_modules/process/browser.js":7}],7:[function(p,v,l){function c(){}p=v.exports={};p.nextTick=function(){if("undefined"!==typeof window&&window.setImmediate)return function(c){return window.setImmediate(c)};if("undefined"!==typeof window&&window.postMessage&&window.addEventListener){var c=[];window.addEventListener("message",function(e){var k=e.source;k!==window&&null!==k||"process-tick"!==e.data||(e.stopPropagation(),0<c.length&&c.shift()())},!0);return function(e){c.push(e);window.postMessage("process-tick",

c[d]=a}function e(k,l,d,a){if(d<a){var h=d-1;c(k,Math.round(d+Math.random()*(a-d)),a);for(var n=k[a],t=d;t<a;t++)0>=l(k[t],n)&&(h+=1,c(k,h,t));c(k,h+1,t);h+=1;e(k,l,d,h-1);e(k,l,h+1,a)}}l.quickSort=function(c,l){e(c,l,0,c.length-1)}},{}],14:[function(p,v,l){function c(b){var a=b;"string"===typeof b&&(a=JSON.parse(b.replace(/^\)\]\}'/,"")));return null!=a.sections?new r(a):new e(a)}function e(b){var a=b;"string"===typeof b&&(a=JSON.parse(b.replace(/^\)\]\}'/,"")));b=d.getArg(a,"version");var c=d.getArg(a,
"sources"),u=d.getArg(a,"names",[]),e=d.getArg(a,"sourceRoot",null),n=d.getArg(a,"sourcesContent",null),k=d.getArg(a,"mappings"),a=d.getArg(a,"file",null);if(b!=this._version)throw Error("Unsupported version: "+b);c=c.map(String).map(d.normalize).map(function(b){return e&&d.isAbsolute(e)&&d.isAbsolute(b)?d.relative(e,b):b});this._names=h.fromArray(u.map(String),!0);this._sources=h.fromArray(c,!0);this.sourceRoot=e;this.sourcesContent=n;this._mappings=k;this.file=a}function k(){this.generatedColumn=
"sources"),u=d.getArg(a,"names",[]),e=d.getArg(a,"sourceRoot",null),n=d.getArg(a,"sourcesContent",null),t=d.getArg(a,"mappings"),a=d.getArg(a,"file",null);if(b!=this._version)throw Error("Unsupported version: "+b);c=c.map(String).map(d.normalize).map(function(b){return e&&d.isAbsolute(e)&&d.isAbsolute(b)?d.relative(e,b):b});this._names=h.fromArray(u.map(String),!0);this._sources=h.fromArray(c,!0);this.sourceRoot=e;this.sourcesContent=n;this._mappings=t;this.file=a}function k(){this.generatedColumn=
this.generatedLine=0;this.name=this.originalColumn=this.originalLine=this.source=null}function r(b){var a=b;"string"===typeof b&&(a=JSON.parse(b.replace(/^\)\]\}'/,"")));b=d.getArg(a,"version");a=d.getArg(a,"sections");if(b!=this._version)throw Error("Unsupported version: "+b);this._sources=new h;this._names=new h;var e={line:-1,column:0};this._sections=a.map(function(b){if(b.url)throw Error("Support for url field in sections not implemented.");var a=d.getArg(b,"offset"),f=d.getArg(a,"line"),u=d.getArg(a,

@@ -70,4 +70,4 @@ "column");if(f<e.line||f===e.line&&u<e.column)throw Error("Section offsets must be ordered and non-overlapping.");e=a;return{generatedOffset:{generatedLine:f+1,generatedColumn:u+1},consumer:new c(d.getArg(b,"map"))}})}var d=p("./util"),a=p("./binary-search"),h=p("./array-set").ArraySet,n=p("./base64-vlq"),t=p("./quick-sort").quickSort;c.fromSourceMap=function(b){return e.fromSourceMap(b)};c.prototype._version=3;c.prototype.__generatedMappings=null;Object.defineProperty(c.prototype,"_generatedMappings",

for(var n=a.__generatedMappings=[],l=a.__originalMappings=[],r=0,p=b.length;r<p;r++){var B=b[r],x=new k;x.generatedLine=B.generatedLine;x.generatedColumn=B.generatedColumn;B.source&&(x.source=u.indexOf(B.source),x.originalLine=B.originalLine,x.originalColumn=B.originalColumn,B.name&&(x.name=c.indexOf(B.name)),l.push(x));n.push(x)}t(a.__originalMappings,d.compareByOriginalPositions);return a};e.prototype._version=3;Object.defineProperty(e.prototype,"sources",{get:function(){return this._sources.toArray().map(function(b){return null!=
this.sourceRoot?d.join(this.sourceRoot,b):b},this)}});e.prototype._parseMappings=function(b,a){for(var c=1,f=0,e=0,h=0,l=0,r=0,p=b.length,x=0,v={},A={},E=[],H=[],z,D,q,C,K;x<p;)if(";"===b.charAt(x))c++,x++,f=0;else if(","===b.charAt(x))x++;else{z=new k;z.generatedLine=c;for(C=x;C<p&&!this._charIsMappingSeparator(b,C);C++);D=b.slice(x,C);if(q=v[D])x+=D.length;else{for(q=[];x<C;)n.decode(b,x,A),K=A.value,x=A.rest,q.push(K);if(2===q.length)throw Error("Found a source, but no line and column");if(3===
q.length)throw Error("Found a source and line, but no column");v[D]=q}z.generatedColumn=f+q[0];f=z.generatedColumn;1<q.length&&(z.source=l+q[1],l+=q[1],z.originalLine=e+q[2],e=z.originalLine,z.originalLine+=1,z.originalColumn=h+q[3],h=z.originalColumn,4<q.length&&(z.name=r+q[4],r+=q[4]));H.push(z);"number"===typeof z.originalLine&&E.push(z)}t(H,d.compareByGeneratedPositionsDeflated);this.__generatedMappings=H;t(E,d.compareByOriginalPositions);this.__originalMappings=E};e.prototype._findMapping=function(b,
this.sourceRoot?d.join(this.sourceRoot,b):b},this)}});e.prototype._parseMappings=function(b,a){for(var c=1,f=0,e=0,h=0,l=0,r=0,p=b.length,x=0,v={},A={},F=[],H=[],z,E,q,D,J;x<p;)if(";"===b.charAt(x))c++,x++,f=0;else if(","===b.charAt(x))x++;else{z=new k;z.generatedLine=c;for(D=x;D<p&&!this._charIsMappingSeparator(b,D);D++);E=b.slice(x,D);if(q=v[E])x+=E.length;else{for(q=[];x<D;)n.decode(b,x,A),J=A.value,x=A.rest,q.push(J);if(2===q.length)throw Error("Found a source, but no line and column");if(3===
q.length)throw Error("Found a source and line, but no column");v[E]=q}z.generatedColumn=f+q[0];f=z.generatedColumn;1<q.length&&(z.source=l+q[1],l+=q[1],z.originalLine=e+q[2],e=z.originalLine,z.originalLine+=1,z.originalColumn=h+q[3],h=z.originalColumn,4<q.length&&(z.name=r+q[4],r+=q[4]));H.push(z);"number"===typeof z.originalLine&&F.push(z)}t(H,d.compareByGeneratedPositionsDeflated);this.__generatedMappings=H;t(F,d.compareByOriginalPositions);this.__originalMappings=F};e.prototype._findMapping=function(b,
c,d,e,h,n){if(0>=b[d])throw new TypeError("Line must be greater than or equal to 1, got "+b[d]);if(0>b[e])throw new TypeError("Column must be greater than or equal to 0, got "+b[e]);return a.search(b,c,h,n)};e.prototype.computeColumnSpans=function(){for(var b=0;b<this._generatedMappings.length;++b){var a=this._generatedMappings[b];if(b+1<this._generatedMappings.length){var c=this._generatedMappings[b+1];if(a.generatedLine===c.generatedLine){a.lastGeneratedColumn=c.generatedColumn-1;continue}}a.lastGeneratedColumn=

@@ -89,3 +89,3 @@ Infinity}};e.prototype.originalPositionFor=function(b){var a={generatedLine:d.getArg(b,"line"),generatedColumn:d.getArg(b,"column")};b=this._findMapping(a,this._generatedMappings,"generatedLine","generatedColumn",d.compareByGeneratedPositionsDeflated,d.getArg(b,"bias",c.GREATEST_LOWER_BOUND));if(0<=b&&(b=this._generatedMappings[b],b.generatedLine===a.generatedLine)){a=d.getArg(b,"source",null);null!==a&&(a=this._sources.at(a),null!=this.sourceRoot&&(a=d.join(this.sourceRoot,a)));var e=d.getArg(b,

k.join(d,c.source)),null!=b&&(c.source=k.relative(b,c.source)),c.originalLine=n.line,c.originalColumn=n.column,null!=n.name&&(c.name=n.name))}n=c.source;null==n||f.has(n)||f.add(n);c=c.name;null==c||h.has(c)||h.add(c)},this);this._sources=f;this._names=h;a.sources.forEach(function(c){var f=a.sourceContentFor(c);null!=f&&(null!=d&&(c=k.join(d,c)),null!=b&&(c=k.relative(b,c)),this.setSourceContent(c,f))},this)};c.prototype._validateMapping=function(a,c,d,e){if(!(a&&"line"in a&&"column"in a&&0<a.line&&
0<=a.column&&!c&&!d&&!e||a&&"line"in a&&"column"in a&&c&&"line"in c&&"column"in c&&0<a.line&&0<=a.column&&0<c.line&&0<=c.column&&d))throw Error("Invalid mapping: "+JSON.stringify({generated:a,source:d,original:c,name:e}));};c.prototype._serializeMappings=function(){for(var a=0,c=1,d=0,l=0,b=0,f=0,r="",u,p,I,G=this._mappings.toArray(),v=0,B=G.length;v<B;v++){p=G[v];u="";if(p.generatedLine!==c)for(a=0;p.generatedLine!==c;)u+=";",c++;else if(0<v){if(!k.compareByGeneratedPositionsInflated(p,G[v-1]))continue;
0<=a.column&&!c&&!d&&!e||a&&"line"in a&&"column"in a&&c&&"line"in c&&"column"in c&&0<a.line&&0<=a.column&&0<c.line&&0<=c.column&&d))throw Error("Invalid mapping: "+JSON.stringify({generated:a,source:d,original:c,name:e}));};c.prototype._serializeMappings=function(){for(var a=0,c=1,d=0,l=0,b=0,f=0,r="",u,p,I,C=this._mappings.toArray(),v=0,B=C.length;v<B;v++){p=C[v];u="";if(p.generatedLine!==c)for(a=0;p.generatedLine!==c;)u+=";",c++;else if(0<v){if(!k.compareByGeneratedPositionsInflated(p,C[v-1]))continue;
u+=","}u+=e.encode(p.generatedColumn-a);a=p.generatedColumn;null!=p.source&&(I=this._sources.indexOf(p.source),u+=e.encode(I-f),f=I,u+=e.encode(p.originalLine-1-l),l=p.originalLine-1,u+=e.encode(p.originalColumn-d),d=p.originalColumn,null!=p.name&&(p=this._names.indexOf(p.name),u+=e.encode(p-b),b=p));r+=u}return r};c.prototype._generateSourcesContent=function(a,c){return a.map(function(a){if(!this._sourcesContents)return null;null!=c&&(a=k.relative(c,a));a=k.toSetString(a);return Object.prototype.hasOwnProperty.call(this._sourcesContents,

@@ -106,12 +106,12 @@ a)?this._sourcesContents[a]:null},this)};c.prototype.toJSON=function(){var a={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};null!=this._file&&(a.file=this._file);null!=this._sourceRoot&&(a.sourceRoot=this._sourceRoot);this._sourcesContents&&(a.sourcesContent=this._generateSourcesContent(a.sources,a.sourceRoot));return a};c.prototype.toString=function(){return JSON.stringify(this.toJSON())};l.SourceMapGenerator=c},{"./array-set":8,

if(0!==b)return b;b=a.originalLine-c.originalLine;if(0!==b)return b;b=a.originalColumn-c.originalColumn;return 0!==b?b:a.name-c.name};l.compareByGeneratedPositionsInflated=function(a,c){var b=a.generatedLine-c.generatedLine;if(0!==b)return b;b=a.generatedColumn-c.generatedColumn;if(0!==b)return b;var b=a.source,d=c.source,b=b===d?0:b>d?1:-1;if(0!==b)return b;b=a.originalLine-c.originalLine;if(0!==b)return b;b=a.originalColumn-c.originalColumn;0===b&&(b=a.name,d=c.name,b=b===d?0:b>d?1:-1);return b}},
{}],18:[function(p,v,l){l.SourceMapGenerator=p("./lib/source-map-generator").SourceMapGenerator;l.SourceMapConsumer=p("./lib/source-map-consumer").SourceMapConsumer;l.SourceNode=p("./lib/source-node").SourceNode},{"./lib/source-map-consumer":14,"./lib/source-map-generator":15,"./lib/source-node":16}],19:[function(p,v,l){(function(c,e){function k(){return"browser"===J?!0:"node"===J?!1:"undefined"!==typeof window&&"function"===typeof XMLHttpRequest&&!(window.require&&window.module&&window.process&&
"renderer"===window.process.type)}function r(a){return function(b){for(var c=0;c<a.length;c++){var d=a[c](b);if(d)return d}return null}}function d(a,b){if(!a)return b;var c=I.dirname(a),d=/^\w+:\/\/[^\/]*/.exec(c),d=d?d[0]:"";return d+I.resolve(c.slice(d.length),b)}function a(a){var b=E[a.source];if(!b){var c=C(a.source);c?(b=E[a.source]={url:c.url,map:new M(c.map)},b.map.sourcesContent&&b.map.sources.forEach(function(a,c){var g=b.map.sourcesContent[c];if(g){var e=d(b.url,a);A[e]=g}})):b=E[a.source]=
{}],18:[function(p,v,l){l.SourceMapGenerator=p("./lib/source-map-generator").SourceMapGenerator;l.SourceMapConsumer=p("./lib/source-map-consumer").SourceMapConsumer;l.SourceNode=p("./lib/source-node").SourceNode},{"./lib/source-map-consumer":14,"./lib/source-map-generator":15,"./lib/source-node":16}],19:[function(p,v,l){(function(c,e){function k(){return"browser"===K?!0:"node"===K?!1:"undefined"!==typeof window&&"function"===typeof XMLHttpRequest&&!(window.require&&window.module&&window.process&&
"renderer"===window.process.type)}function r(a){return function(b){for(var c=0;c<a.length;c++){var d=a[c](b);if(d)return d}return null}}function d(a,b){if(!a)return b;var c=I.dirname(a),d=/^\w+:\/\/[^\/]*/.exec(c),d=d?d[0]:"";return d+I.resolve(c.slice(d.length),b)}function a(a){var b=F[a.source];if(!b){var c=D(a.source);c?(b=F[a.source]={url:c.url,map:new M(c.map)},b.map.sourcesContent&&b.map.sources.forEach(function(a,c){var g=b.map.sourcesContent[c];if(g){var e=d(b.url,a);A[e]=g}})):b=F[a.source]=
{url:null,map:null}}return b&&b.map&&(c=b.map.originalPositionFor(a),null!==c.source)?(c.source=d(b.url,c.source),c):a}function h(b){var c=/^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(b);return c?(b=a({source:c[2],line:+c[3],column:c[4]-1}),"eval at "+c[1]+" ("+b.source+":"+b.line+":"+(b.column+1)+")"):(c=/^eval at ([^(]+) \((.+)\)$/.exec(b))?"eval at "+c[1]+" ("+h(c[2])+")":b}function n(){var a,b="";this.isNative()?b="native":(a=this.getScriptNameOrSourceURL(),!a&&this.isEval()&&(b=this.getEvalOrigin(),
b+=", "),b=a?b+a:b+"<anonymous>",a=this.getLineNumber(),null!=a&&(b+=":"+a,(a=this.getColumnNumber())&&(b+=":"+a)));a="";var c=this.getFunctionName(),d=!0,e=this.isConstructor();if(this.isToplevel()||e)e?a+="new "+(c||"<anonymous>"):c?a+=c:(a+=b,d=!1);else{e=this.getTypeName();"[object Object]"===e&&(e="null");var f=this.getMethodName();c?(e&&0!=c.indexOf(e)&&(a+=e+"."),a+=c,f&&c.indexOf("."+f)!=c.length-f.length-1&&(a+=" [as "+f+"]")):a+=e+"."+(f||"<anonymous>")}d&&(a+=" ("+b+")");return a}function t(a){var b=
{};Object.getOwnPropertyNames(Object.getPrototypeOf(a)).forEach(function(c){b[c]=/^(?:is|get)/.test(c)?function(){return a[c].call(a)}:a[c]});b.toString=n;return b}function b(b){if(b.isNative())return b;var c=b.getFileName()||b.getScriptNameOrSourceURL();if(c){var d=b.getLineNumber(),e=b.getColumnNumber()-1;1!==d||k()||b.isEval()||(e-=62);var f=a({source:c,line:d,column:e});b=t(b);b.getFileName=function(){return f.source};b.getLineNumber=function(){return f.line};b.getColumnNumber=function(){return f.column+
1};b.getScriptNameOrSourceURL=function(){return f.source};return b}var l=b.isEval()&&b.getEvalOrigin();l&&(l=h(l),b=t(b),b.getEvalOrigin=function(){return l});return b}function f(a,c){x&&(A={},E={});return a+c.map(function(a){return"\n at "+b(a)}).join("")}function v(a){var b=/\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(a.stack);if(b){a=b[1];var c=+b[2],b=+b[3],d=A[a];!d&&G.existsSync(a)&&(d=G.readFileSync(a,"utf8"));if(d&&(d=d.split(/(?:\r\n|\r|\n)/)[c-1]))return a+":"+c+"\n"+d+"\n"+Array(b).join(" ")+
"^"}return null}function u(){var a=c.emit;c.emit=function(b){if("uncaughtException"===b){var d=arguments[1]&&arguments[1].stack,e=0<this.listeners(b).length;if(d&&!e){d=arguments[1];if(e=v(d))console.error(),console.error(e);console.error(d.stack);c.exit(1);return}}return a.apply(this,arguments)}}var M=p("source-map").SourceMapConsumer,I=p("path"),G=p("fs"),L=!1,B=!1,x=!1,J="auto",A={},E={},H=/^data:application\/json[^,]+base64,/,z=[],D=[],q=r(z);z.push(function(a){a=a.trim();if(a in A)return A[a];
try{if(k()){var b=new XMLHttpRequest;b.open("GET",a,!1);b.send(null);var c=null;4===b.readyState&&200===b.status&&(c=b.responseText)}else c=G.readFileSync(a,"utf8")}catch(m){c=null}return A[a]=c});var C=r(D);D.push(function(a){var b;a:{var c;if(k()&&(c=new XMLHttpRequest,c.open("GET",a,!1),c.send(null),c=c.getResponseHeader("SourceMap")||c.getResponseHeader("X-SourceMap"))){b=c;break a}c=q(a);for(var f=/(?:\/\/[@#][ \t]+sourceMappingURL=([^\s'"]+?)[ \t]*$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^\*]+?)[ \t]*(?:\*\/)[ \t]*$)/mg,
h;h=f.exec(c);)b=h;b=b?b[1]:null}if(!b)return null;H.test(b)?(b=b.slice(b.indexOf(",")+1),c=(new e(b,"base64")).toString(),b=a):(b=d(a,b),c=q(b));return c?{url:b,map:c}:null});l.wrapCallSite=b;l.getErrorSource=v;l.mapSourcePosition=a;l.retrieveSourceMap=C;l.install=function(a){a=a||{};if(a.environment&&(J=a.environment,-1===["node","browser","auto"].indexOf(J)))throw Error("environment "+J+" was unknown. Available options are {auto, browser, node}");a.retrieveFile&&(a.overrideRetrieveFile&&(z.length=
0),z.unshift(a.retrieveFile));a.retrieveSourceMap&&(a.overrideRetrieveSourceMap&&(D.length=0),D.unshift(a.retrieveSourceMap));if(a.hookRequire&&!k()){var b=p("module"),d=b.prototype._compile;d.__sourceMapSupport||(b.prototype._compile=function(a,b){A[b]=a;E[b]=void 0;return d.call(this,a,b)},b.prototype._compile.__sourceMapSupport=!0)}x||(x="emptyCacheBetweenOperations"in a?a.emptyCacheBetweenOperations:!1);L||(L=!0,Error.prepareStackTrace=f);!B&&("handleUncaughtExceptions"in a?a.handleUncaughtExceptions:
1)&&"object"===typeof c&&null!==c&&"function"===typeof c.on&&(B=!0,u())}}).call(this,p("node_modules/process/browser.js"),p("buffer").Buffer)},{"node_modules/process/browser.js":7,buffer:4,fs:3,module:3,path:6,"source-map":18}]},{},[1]);return N});
1};b.getScriptNameOrSourceURL=function(){return f.source};return b}var l=b.isEval()&&b.getEvalOrigin();l&&(l=h(l),b=t(b),b.getEvalOrigin=function(){return l});return b}function f(a,c){x&&(A={},F={});return a+c.map(function(a){return"\n at "+b(a)}).join("")}function v(a){var b=/\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(a.stack);if(b){a=b[1];var c=+b[2],b=+b[3],d=A[a];!d&&C&&C.existsSync(a)&&(d=C.readFileSync(a,"utf8"));if(d&&(d=d.split(/(?:\r\n|\r|\n)/)[c-1]))return a+":"+c+"\n"+d+"\n"+Array(b).join(" ")+
"^"}return null}function u(){var a=c.emit;c.emit=function(b){if("uncaughtException"===b){var d=arguments[1]&&arguments[1].stack,e=0<this.listeners(b).length;if(d&&!e){d=arguments[1];if(e=v(d))console.error(),console.error(e);console.error(d.stack);c.exit(1);return}}return a.apply(this,arguments)}}var M=p("source-map").SourceMapConsumer,I=p("path"),C;try{C=p("fs")}catch(J){}var L=!1,B=!1,x=!1,K="auto",A={},F={},H=/^data:application\/json[^,]+base64,/,z=[],E=[],q=r(z);z.push(function(a){a=a.trim();
if(a in A)return A[a];var b=null;if(C)C.existsSync(a)&&(b=C.readFileSync(a,"utf8"));else{var c=new XMLHttpRequest;c.open("GET",a,!1);c.send(null);b=null;4===c.readyState&&200===c.status&&(b=c.responseText)}return A[a]=b});var D=r(E);E.push(function(a){var b;a:{var c;if(k()&&(c=new XMLHttpRequest,c.open("GET",a,!1),c.send(null),c=c.getResponseHeader("SourceMap")||c.getResponseHeader("X-SourceMap"))){b=c;break a}c=q(a);for(var f=/(?:\/\/[@#][ \t]+sourceMappingURL=([^\s'"]+?)[ \t]*$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^\*]+?)[ \t]*(?:\*\/)[ \t]*$)/mg,
h;h=f.exec(c);)b=h;b=b?b[1]:null}if(!b)return null;H.test(b)?(b=b.slice(b.indexOf(",")+1),c=(new e(b,"base64")).toString(),b=a):(b=d(a,b),c=q(b));return c?{url:b,map:c}:null});l.wrapCallSite=b;l.getErrorSource=v;l.mapSourcePosition=a;l.retrieveSourceMap=D;l.install=function(a){a=a||{};if(a.environment&&(K=a.environment,-1===["node","browser","auto"].indexOf(K)))throw Error("environment "+K+" was unknown. Available options are {auto, browser, node}");a.retrieveFile&&(a.overrideRetrieveFile&&(z.length=
0),z.unshift(a.retrieveFile));a.retrieveSourceMap&&(a.overrideRetrieveSourceMap&&(E.length=0),E.unshift(a.retrieveSourceMap));if(a.hookRequire&&!k()){var b;try{b=p("module")}catch(m){}var d=b.prototype._compile;d.__sourceMapSupport||(b.prototype._compile=function(a,b){A[b]=a;F[b]=void 0;return d.call(this,a,b)},b.prototype._compile.__sourceMapSupport=!0)}x||(x="emptyCacheBetweenOperations"in a?a.emptyCacheBetweenOperations:!1);L||(L=!0,Error.prepareStackTrace=f);!B&&("handleUncaughtExceptions"in a?
a.handleUncaughtExceptions:1)&&"object"===typeof c&&null!==c&&"function"===typeof c.on&&(B=!0,u())}}).call(this,p("node_modules/process/browser.js"),p("buffer").Buffer)},{"node_modules/process/browser.js":7,buffer:4,fs:3,module:3,path:6,"source-map":18}]},{},[1]);return N});

@@ -8,4 +8,5 @@ #!/usr/bin/env node

var browserify = path.join('node_modules', '.bin', 'browserify');
var coffee = path.join('node_modules', '.bin', 'coffee');
var browserify = path.resolve(path.join('node_modules', '.bin', 'browserify'));
var webpack = path.resolve(path.join('node_modules', '.bin', 'webpack'));
var coffee = path.resolve(path.join('node_modules', '.bin', 'coffee'));

@@ -75,1 +76,6 @@ function run(command, callback) {

});
// Build the webpack test
child_process.exec(webpack, {cwd: 'webpack-test'}, function(error) {
if (error) throw error;
});
{
"name": "source-map-support",
"description": "Fixes stack traces for files with source maps",
"version": "0.4.8",
"version": "0.4.9",
"main": "./source-map-support.js",

@@ -19,3 +19,4 @@ "scripts": {

"http-server": "^0.8.5",
"mocha": "1.18.2"
"mocha": "1.18.2",
"webpack": "^1.13.3"
},

@@ -22,0 +23,0 @@ "repository": {

var SourceMapConsumer = require('source-map').SourceMapConsumer;
var path = require('path');
var fs = require('fs');
var fs;
try {
fs = require('fs');
} catch (err) {
/* nop */
}
// Only install once if called multiple times

@@ -61,20 +67,15 @@ var errorFormatterInstalled = false;

try {
var contents = null;
if (!fs) {
// Use SJAX if we are in the browser
if (isInBrowser()) {
var xhr = new XMLHttpRequest();
xhr.open('GET', path, false);
xhr.send(null);
var contents = null
if (xhr.readyState === 4 && xhr.status === 200) {
contents = xhr.responseText
}
var xhr = new XMLHttpRequest();
xhr.open('GET', path, false);
xhr.send(null);
var contents = null
if (xhr.readyState === 4 && xhr.status === 200) {
contents = xhr.responseText
}
} else if (fs.existsSync(path)) {
// Otherwise, use the filesystem
else {
var contents = fs.readFileSync(path, 'utf8');
}
} catch (e) {
var contents = null;
contents = fs.readFileSync(path, 'utf8');
}

@@ -382,3 +383,3 @@

// Support files on disk
if (!contents && fs.existsSync(source)) {
if (!contents && fs && fs.existsSync(source)) {
contents = fs.readFileSync(source, 'utf8');

@@ -465,3 +466,8 @@ }

if (options.hookRequire && !isInBrowser()) {
var Module = require('module');
var Module;
try {
Module = require('module');
} catch (err) {
// NOP: Loading in catch block to convert webpack error to warning.
}
var $compile = Module.prototype._compile;

@@ -468,0 +474,0 @@

@@ -183,3 +183,3 @@ require('./source-map-support').install({

// Before Node 4, `Object.eval`, after just `eval`.
/^ at (?:Object\.)?eval \(eval at <anonymous> \((?:.*\/)?line1\.js:1001:101\)/,
/^ at (?:Object\.)?eval \(eval at (<anonymous>|exports.test) \((?:.*\/)?line1\.js:1001:101\)/,

@@ -195,4 +195,4 @@ /^ at Object\.exports\.test \((?:.*\/)?line1\.js:1001:101\)$/

'Error: test',
/^ at (?:Object\.)?eval \(eval at <anonymous> \(eval at <anonymous> \((?:.*\/)?line1\.js:1001:101\)/,
/^ at (?:Object\.)?eval \(eval at <anonymous> \((?:.*\/)?line1\.js:1001:101\)/,
/^ at (?:Object\.)?eval \(eval at (<anonymous>|exports.test) \(eval at (<anonymous>|exports.test) \((?:.*\/)?line1\.js:1001:101\)/,
/^ at (?:Object\.)?eval \(eval at (<anonymous>|exports.test) \((?:.*\/)?line1\.js:1001:101\)/,
/^ at Object\.exports\.test \((?:.*\/)?line1\.js:1001:101\)$/

@@ -232,3 +232,3 @@ ]);

/^ at (?:Object\.)?eval \(sourceURL\.js:1:7\)$/,
/^ at (?:Object\.)?eval \(eval at <anonymous> \((?:.*\/)?line1\.js:1001:101\)/,
/^ at (?:Object\.)?eval \(eval at (<anonymous>|exports.test) \((?:.*\/)?line1\.js:1001:101\)/,
/^ at Object\.exports\.test \((?:.*\/)?line1\.js:1001:101\)$/

@@ -235,0 +235,0 @@ ]);

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc