Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

source-map-support

Package Overview
Dependencies
Maintainers
3
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

source-map-support - npm Package Compare versions

Comparing version 0.4.13 to 0.4.14

84

browser-source-map-support.js

@@ -45,43 +45,43 @@ /*

n=8*a-d-1,t=(1<<n)-1,c=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+c?e+f/h:e+f*Math.pow(2,1-c),2<=e*h&&(r++,h/=2),r+c>=t?(e=0,r=t):1<=r+c?(e=(e*h-1)*Math.pow(2,d),r+=c):(e=e*Math.pow(2,c-1)*Math.pow(2,d),r=0));for(;8<=d;b[k+a]=e&255,a+=G,e/=256,d-=8);r=r<<d|e;for(n+=d;0<n;b[k+a]=r&255,a+=G,r/=256,n-=8);b[k+a-G]|=
128*u}},{}],6:[function(p,v,l){function b(){}p=v.exports={};p.nextTick=function(){if("undefined"!==typeof window&&window.setImmediate)return function(b){return window.setImmediate(b)};if("undefined"!==typeof window&&window.postMessage&&window.addEventListener){var b=[];window.addEventListener("message",function(e){var k=e.source;k!==window&&null!==k||"process-tick"!==e.data||(e.stopPropagation(),0<b.length&&b.shift()())},!0);return function(e){b.push(e);window.postMessage("process-tick","*")}}return function(b){setTimeout(b,
0)}}();p.title="browser";p.browser=!0;p.env={};p.argv=[];p.on=b;p.once=b;p.off=b;p.emit=b;p.binding=function(b){throw Error("process.binding is not supported");};p.cwd=function(){return"/"};p.chdir=function(b){throw Error("process.chdir is not supported");}},{}],7:[function(p,v,l){(function(b){function e(a,b){for(var d=0,h=a.length-1;0<=h;h--){var c=a[h];"."===c?a.splice(h,1):".."===c?(a.splice(h,1),d++):d&&(a.splice(h,1),d--)}if(b)for(;d--;d)a.unshift("..");return a}function k(a,b){if(a.filter)return a.filter(b);
for(var d=[],h=0;h<a.length;h++)b(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]:b.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(a){return!!a}),!d).join("/");return(d?"/":"")+a||"."};l.normalize=function(a){var b=l.isAbsolute(a),n="/"===
d(a,-1);(a=e(k(a.split("/"),function(a){return!!a}),!b).join("/"))||b||(a=".");a&&n&&(a+="/");return(b?"/":"")+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,b){if("string"!==typeof a)throw new TypeError("Arguments to path.join must be strings");return a}).join("/"))};l.relative=function(a,b){function d(a){for(var c=0;c<a.length&&""===a[c];c++);for(var f=a.length-1;0<=f&&""===a[f];f--);return c>
f?[]:a.slice(c,f-c+1)}a=l.resolve(a).substr(1);b=l.resolve(b).substr(1);for(var h=d(a.split("/")),c=d(b.split("/")),f=Math.min(h.length,c.length),G=f,u=0;u<f;u++)if(h[u]!==c[u]){G=u;break}f=[];for(u=G;u<h.length;u++)f.push("..");f=f.concat(c.slice(G));return f.join("/")};l.sep="/";l.delimiter=":";l.dirname=function(a){var b=r.exec(a).slice(1);a=b[0];b=b[1];if(!a&&!b)return".";b&&(b=b.substr(0,b.length-1));return a+b};l.basename=function(a,b){var d=r.exec(a).slice(1)[2];b&&d.substr(-1*b.length)===
b&&(d=d.substr(0,d.length-b.length));return d};l.extname=function(a){return r.exec(a).slice(1)[3]};var d="b"==="ab".substr(-1)?function(a,b,d){return a.substr(b,d)}:function(a,b,d){0>b&&(b=a.length+b);return a.substr(b,d)}}).call(this,p("node_modules/insert-module-globals/node_modules/process/browser.js"))},{"node_modules/insert-module-globals/node_modules/process/browser.js":6}],8:[function(p,v,l){function b(){this._array=[];this._set=Object.create(null)}var e=p("./util"),k=Object.prototype.hasOwnProperty;
b.fromArray=function(e,d){for(var a=new b,h=0,n=e.length;h<n;h++)a.add(e[h],d);return a};b.prototype.size=function(){return Object.getOwnPropertyNames(this._set).length};b.prototype.add=function(b,d){var a=e.toSetString(b),h=k.call(this._set,a),n=this._array.length;h&&!d||this._array.push(b);h||(this._set[a]=n)};b.prototype.has=function(b){b=e.toSetString(b);return k.call(this._set,b)};b.prototype.indexOf=function(b){var d=e.toSetString(b);if(k.call(this._set,d))return this._set[d];throw Error('"'+
b+'" is not in the set.');};b.prototype.at=function(b){if(0<=b&&b<this._array.length)return this._array[b];throw Error("No element indexed by "+b);};b.prototype.toArray=function(){return this._array.slice()};l.ArraySet=b},{"./util":17}],9:[function(p,v,l){var b=p("./base64");l.encode=function(e){var k="",r=0>e?(-e<<1)+1:(e<<1)+0;do e=r&31,r>>>=5,0<r&&(e|=32),k+=b.encode(e);while(0<r);return k};l.decode=function(e,k,r){var d=e.length,a=0,h=0,n,t;do{if(k>=d)throw Error("Expected more digits in base 64 VLQ value.");
t=b.decode(e.charCodeAt(k++));if(-1===t)throw Error("Invalid base64 digit: "+e.charAt(k-1));n=!!(t&32);t&=31;a+=t<<h;h+=5}while(n);e=a>>1;r.value=1===(a&1)?-e:e;r.rest=k}},{"./base64":10}],10:[function(p,v,l){var b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");l.encode=function(e){if(0<=e&&e<b.length)return b[e];throw new TypeError("Must be between 0 and 63: "+e);};l.decode=function(b){return 65<=b&&90>=b?b-65:97<=b&&122>=b?b-97+26:48<=b&&57>=b?b-48+52:43==b?62:47==
b?63:-1}},{}],11:[function(p,v,l){function b(e,k,r,d,a,h){var n=Math.floor((k-e)/2)+e,t=a(r,d[n],!0);return 0===t?n:0<t?1<k-n?b(n,k,r,d,a,h):h==l.LEAST_UPPER_BOUND?k<d.length?k:-1:n:1<n-e?b(e,n,r,d,a,h):h==l.LEAST_UPPER_BOUND?n:0>e?-1:e}l.GREATEST_LOWER_BOUND=1;l.LEAST_UPPER_BOUND=2;l.search=function(e,k,r,d){if(0===k.length)return-1;e=b(-1,k.length,e,k,r,d||l.GREATEST_LOWER_BOUND);if(0>e)return-1;for(;0<=e-1&&0===r(k[e],k[e-1],!0);)--e;return e}},{}],12:[function(p,v,l){function b(){this._array=
[];this._sorted=!0;this._last={generatedLine:-1,generatedColumn:0}}var e=p("./util");b.prototype.unsortedForEach=function(b,e){this._array.forEach(b,e)};b.prototype.add=function(b){var k=this._last,d=k.generatedLine,a=b.generatedLine,h=k.generatedColumn,n=b.generatedColumn;a>d||a==d&&n>=h||0>=e.compareByGeneratedPositionsInflated(k,b)?this._last=b:this._sorted=!1;this._array.push(b)};b.prototype.toArray=function(){this._sorted||(this._array.sort(e.compareByGeneratedPositionsInflated),this._sorted=
!0);return this._array};l.MappingList=b},{"./util":17}],13:[function(p,v,l){function b(b,e,d){var a=b[e];b[e]=b[d];b[d]=a}function e(k,l,d,a){if(d<a){var h=d-1;b(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,b(k,h,t));b(k,h+1,t);h+=1;e(k,l,d,h-1);e(k,l,h+1,a)}}l.quickSort=function(b,l){e(b,l,0,b.length-1)}},{}],14:[function(p,v,l){function b(a){var c=a;"string"===typeof a&&(c=JSON.parse(a.replace(/^\)\]\}'/,"")));return null!=c.sections?new r(c):new e(c)}function e(a){var c=
a;"string"===typeof a&&(c=JSON.parse(a.replace(/^\)\]\}'/,"")));a=d.getArg(c,"version");var b=d.getArg(c,"sources"),u=d.getArg(c,"names",[]),e=d.getArg(c,"sourceRoot",null),n=d.getArg(c,"sourcesContent",null),t=d.getArg(c,"mappings"),c=d.getArg(c,"file",null);if(a!=this._version)throw Error("Unsupported version: "+a);b=b.map(String).map(d.normalize).map(function(a){return e&&d.isAbsolute(e)&&d.isAbsolute(a)?d.relative(e,a):a});this._names=h.fromArray(u.map(String),!0);this._sources=h.fromArray(b,
!0);this.sourceRoot=e;this.sourcesContent=n;this._mappings=t;this.file=c}function k(){this.generatedColumn=this.generatedLine=0;this.name=this.originalColumn=this.originalLine=this.source=null}function r(a){var c=a;"string"===typeof a&&(c=JSON.parse(a.replace(/^\)\]\}'/,"")));a=d.getArg(c,"version");c=d.getArg(c,"sections");if(a!=this._version)throw Error("Unsupported version: "+a);this._sources=new h;this._names=new h;var e={line:-1,column:0};this._sections=c.map(function(a){if(a.url)throw Error("Support for url field in sections not implemented.");
var c=d.getArg(a,"offset"),f=d.getArg(c,"line"),u=d.getArg(c,"column");if(f<e.line||f===e.line&&u<e.column)throw Error("Section offsets must be ordered and non-overlapping.");e=c;return{generatedOffset:{generatedLine:f+1,generatedColumn:u+1},consumer:new b(d.getArg(a,"map"))}})}var d=p("./util"),a=p("./binary-search"),h=p("./array-set").ArraySet,n=p("./base64-vlq"),t=p("./quick-sort").quickSort;b.fromSourceMap=function(a){return e.fromSourceMap(a)};b.prototype._version=3;b.prototype.__generatedMappings=
null;Object.defineProperty(b.prototype,"_generatedMappings",{get:function(){this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot);return this.__generatedMappings}});b.prototype.__originalMappings=null;Object.defineProperty(b.prototype,"_originalMappings",{get:function(){this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot);return this.__originalMappings}});b.prototype._charIsMappingSeparator=function(a,b){var c=a.charAt(b);return";"===c||","===c};b.prototype._parseMappings=
function(a,b){throw Error("Subclasses must implement _parseMappings");};b.GENERATED_ORDER=1;b.ORIGINAL_ORDER=2;b.GREATEST_LOWER_BOUND=1;b.LEAST_UPPER_BOUND=2;b.prototype.eachMapping=function(a,f,e){f=f||null;switch(e||b.GENERATED_ORDER){case b.GENERATED_ORDER:e=this._generatedMappings;break;case b.ORIGINAL_ORDER:e=this._originalMappings;break;default:throw Error("Unknown order of iteration.");}var c=this.sourceRoot;e.map(function(a){var b=null===a.source?null:this._sources.at(a.source);null!=b&&null!=
c&&(b=d.join(c,b));return{source:b,generatedLine:a.generatedLine,generatedColumn:a.generatedColumn,originalLine:a.originalLine,originalColumn:a.originalColumn,name:null===a.name?null:this._names.at(a.name)}},this).forEach(a,f)};b.prototype.allGeneratedPositionsFor=function(c){var b=d.getArg(c,"line"),e={source:d.getArg(c,"source"),originalLine:b,originalColumn:d.getArg(c,"column",0)};null!=this.sourceRoot&&(e.source=d.relative(this.sourceRoot,e.source));if(!this._sources.has(e.source))return[];e.source=
this._sources.indexOf(e.source);var u=[],e=this._findMapping(e,this._originalMappings,"originalLine","originalColumn",d.compareByOriginalPositions,a.LEAST_UPPER_BOUND);if(0<=e){var h=this._originalMappings[e];if(void 0===c.column)for(b=h.originalLine;h&&h.originalLine===b;)u.push({line:d.getArg(h,"generatedLine",null),column:d.getArg(h,"generatedColumn",null),lastColumn:d.getArg(h,"lastGeneratedColumn",null)}),h=this._originalMappings[++e];else for(c=h.originalColumn;h&&h.originalLine===b&&h.originalColumn==
c;)u.push({line:d.getArg(h,"generatedLine",null),column:d.getArg(h,"generatedColumn",null),lastColumn:d.getArg(h,"lastGeneratedColumn",null)}),h=this._originalMappings[++e]}return u};l.SourceMapConsumer=b;e.prototype=Object.create(b.prototype);e.prototype.consumer=b;e.fromSourceMap=function(a){var c=Object.create(e.prototype),b=c._names=h.fromArray(a._names.toArray(),!0),u=c._sources=h.fromArray(a._sources.toArray(),!0);c.sourceRoot=a._sourceRoot;c.sourcesContent=a._generateSourcesContent(c._sources.toArray(),
c.sourceRoot);c.file=a._file;a=a._mappings.toArray().slice();for(var n=c.__generatedMappings=[],l=c.__originalMappings=[],r=0,p=a.length;r<p;r++){var C=a[r],x=new k;x.generatedLine=C.generatedLine;x.generatedColumn=C.generatedColumn;C.source&&(x.source=u.indexOf(C.source),x.originalLine=C.originalLine,x.originalColumn=C.originalColumn,C.name&&(x.name=b.indexOf(C.name)),l.push(x));n.push(x)}t(c.__originalMappings,d.compareByOriginalPositions);return c};e.prototype._version=3;Object.defineProperty(e.prototype,
"sources",{get:function(){return this._sources.toArray().map(function(a){return null!=this.sourceRoot?d.join(this.sourceRoot,a):a},this)}});e.prototype._parseMappings=function(a,b){for(var c=1,f=0,e=0,h=0,l=0,r=0,p=a.length,x=0,v={},B={},F=[],H=[],z,E,q,D,J;x<p;)if(";"===a.charAt(x))c++,x++,f=0;else if(","===a.charAt(x))x++;else{z=new k;z.generatedLine=c;for(D=x;D<p&&!this._charIsMappingSeparator(a,D);D++);E=a.slice(x,D);if(q=v[E])x+=E.length;else{for(q=[];x<D;)n.decode(a,x,B),J=B.value,x=B.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(c,b,d,e,h,n){if(0>=c[d])throw new TypeError("Line must be greater than or equal to 1, got "+c[d]);if(0>c[e])throw new TypeError("Column must be greater than or equal to 0, got "+c[e]);return a.search(c,b,h,n)};e.prototype.computeColumnSpans=function(){for(var a=0;a<this._generatedMappings.length;++a){var b=this._generatedMappings[a];if(a+1<this._generatedMappings.length){var d=this._generatedMappings[a+1];if(b.generatedLine===
d.generatedLine){b.lastGeneratedColumn=d.generatedColumn-1;continue}}b.lastGeneratedColumn=Infinity}};e.prototype.originalPositionFor=function(a){var c={generatedLine:d.getArg(a,"line"),generatedColumn:d.getArg(a,"column")};a=this._findMapping(c,this._generatedMappings,"generatedLine","generatedColumn",d.compareByGeneratedPositionsDeflated,d.getArg(a,"bias",b.GREATEST_LOWER_BOUND));if(0<=a&&(a=this._generatedMappings[a],a.generatedLine===c.generatedLine)){c=d.getArg(a,"source",null);null!==c&&(c=
this._sources.at(c),null!=this.sourceRoot&&(c=d.join(this.sourceRoot,c)));var e=d.getArg(a,"name",null);null!==e&&(e=this._names.at(e));return{source:c,line:d.getArg(a,"originalLine",null),column:d.getArg(a,"originalColumn",null),name:e}}return{source:null,line:null,column:null,name:null}};e.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(a){return null==a}):!1};e.prototype.sourceContentFor=
function(a,b){if(!this.sourcesContent)return null;null!=this.sourceRoot&&(a=d.relative(this.sourceRoot,a));if(this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];var c;if(null!=this.sourceRoot&&(c=d.urlParse(this.sourceRoot))){var f=a.replace(/^file:\/\//,"");if("file"==c.scheme&&this._sources.has(f))return this.sourcesContent[this._sources.indexOf(f)];if((!c.path||"/"==c.path)&&this._sources.has("/"+a))return this.sourcesContent[this._sources.indexOf("/"+a)]}if(b)return null;
throw Error('"'+a+'" is not in the SourceMap.');};e.prototype.generatedPositionFor=function(a){var c=d.getArg(a,"source");null!=this.sourceRoot&&(c=d.relative(this.sourceRoot,c));if(!this._sources.has(c))return{line:null,column:null,lastColumn:null};c=this._sources.indexOf(c);c={source:c,originalLine:d.getArg(a,"line"),originalColumn:d.getArg(a,"column")};a=this._findMapping(c,this._originalMappings,"originalLine","originalColumn",d.compareByOriginalPositions,d.getArg(a,"bias",b.GREATEST_LOWER_BOUND));
return 0<=a&&(a=this._originalMappings[a],a.source===c.source)?{line:d.getArg(a,"generatedLine",null),column:d.getArg(a,"generatedColumn",null),lastColumn:d.getArg(a,"lastGeneratedColumn",null)}:{line:null,column:null,lastColumn:null}};l.BasicSourceMapConsumer=e;r.prototype=Object.create(b.prototype);r.prototype.constructor=b;r.prototype._version=3;Object.defineProperty(r.prototype,"sources",{get:function(){for(var a=[],b=0;b<this._sections.length;b++)for(var d=0;d<this._sections[b].consumer.sources.length;d++)a.push(this._sections[b].consumer.sources[d]);
return a}});r.prototype.originalPositionFor=function(c){var b={generatedLine:d.getArg(c,"line"),generatedColumn:d.getArg(c,"column")},e=a.search(b,this._sections,function(a,c){var b=a.generatedLine-c.generatedOffset.generatedLine;return b?b:a.generatedColumn-c.generatedOffset.generatedColumn});return(e=this._sections[e])?e.consumer.originalPositionFor({line:b.generatedLine-(e.generatedOffset.generatedLine-1),column:b.generatedColumn-(e.generatedOffset.generatedLine===b.generatedLine?e.generatedOffset.generatedColumn-
1:0),bias:c.bias}):{source:null,line:null,column:null,name:null}};r.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(a){return a.consumer.hasContentsOfAllSources()})};r.prototype.sourceContentFor=function(a,b){for(var c=0;c<this._sections.length;c++){var f=this._sections[c].consumer.sourceContentFor(a,!0);if(f)return f}if(b)return null;throw Error('"'+a+'" is not in the SourceMap.');};r.prototype.generatedPositionFor=function(a){for(var c=0;c<this._sections.length;c++){var b=
this._sections[c];if(-1!==b.consumer.sources.indexOf(d.getArg(a,"source"))){var e=b.consumer.generatedPositionFor(a);if(e)return{line:e.line+(b.generatedOffset.generatedLine-1),column:e.column+(b.generatedOffset.generatedLine===e.line?b.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}};r.prototype._parseMappings=function(a,b){this.__generatedMappings=[];this.__originalMappings=[];for(var c=0;c<this._sections.length;c++)for(var f=this._sections[c],e=f.consumer._generatedMappings,
h=0;h<e.length;h++){var n=e[h],k=f.consumer._sources.at(n.source);null!==f.consumer.sourceRoot&&(k=d.join(f.consumer.sourceRoot,k));this._sources.add(k);var k=this._sources.indexOf(k),l=f.consumer._names.at(n.name);this._names.add(l);l=this._names.indexOf(l);n={source:k,generatedLine:n.generatedLine+(f.generatedOffset.generatedLine-1),generatedColumn:n.generatedColumn+(f.generatedOffset.generatedLine===n.generatedLine?f.generatedOffset.generatedColumn-1:0),originalLine:n.originalLine,originalColumn:n.originalColumn,
name:l};this.__generatedMappings.push(n);"number"===typeof n.originalLine&&this.__originalMappings.push(n)}t(this.__generatedMappings,d.compareByGeneratedPositionsDeflated);t(this.__originalMappings,d.compareByOriginalPositions)};l.IndexedSourceMapConsumer=r},{"./array-set":8,"./base64-vlq":9,"./binary-search":11,"./quick-sort":13,"./util":17}],15:[function(p,v,l){function b(a){a||(a={});this._file=k.getArg(a,"file",null);this._sourceRoot=k.getArg(a,"sourceRoot",null);this._skipValidation=k.getArg(a,
"skipValidation",!1);this._sources=new r;this._names=new r;this._mappings=new d;this._sourcesContents=null}var e=p("./base64-vlq"),k=p("./util"),r=p("./array-set").ArraySet,d=p("./mapping-list").MappingList;b.prototype._version=3;b.fromSourceMap=function(a){var d=a.sourceRoot,e=new b({file:a.file,sourceRoot:d});a.eachMapping(function(a){var c={generated:{line:a.generatedLine,column:a.generatedColumn}};null!=a.source&&(c.source=a.source,null!=d&&(c.source=k.relative(d,c.source)),c.original={line:a.originalLine,
column:a.originalColumn},null!=a.name&&(c.name=a.name));e.addMapping(c)});a.sources.forEach(function(b){var c=a.sourceContentFor(b);null!=c&&e.setSourceContent(b,c)});return e};b.prototype.addMapping=function(a){var b=k.getArg(a,"generated"),d=k.getArg(a,"original",null),e=k.getArg(a,"source",null);a=k.getArg(a,"name",null);this._skipValidation||this._validateMapping(b,d,e,a);null!=e&&(e=String(e),this._sources.has(e)||this._sources.add(e));null!=a&&(a=String(a),this._names.has(a)||this._names.add(a));
this._mappings.add({generatedLine:b.line,generatedColumn:b.column,originalLine:null!=d&&d.line,originalColumn:null!=d&&d.column,source:e,name:a})};b.prototype.setSourceContent=function(a,b){var d=a;null!=this._sourceRoot&&(d=k.relative(this._sourceRoot,d));null!=b?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[k.toSetString(d)]=b):this._sourcesContents&&(delete this._sourcesContents[k.toSetString(d)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=
null))};b.prototype.applySourceMap=function(a,b,d){var e=b;if(null==b){if(null==a.file)throw Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');e=a.file}var c=this._sourceRoot;null!=c&&(e=k.relative(c,e));var f=new r,h=new r;this._mappings.unsortedForEach(function(b){if(b.source===e&&null!=b.originalLine){var n=a.originalPositionFor({line:b.originalLine,column:b.originalColumn});null!=n.source&&(b.source=
n.source,null!=d&&(b.source=k.join(d,b.source)),null!=c&&(b.source=k.relative(c,b.source)),b.originalLine=n.line,b.originalColumn=n.column,null!=n.name&&(b.name=n.name))}n=b.source;null==n||f.has(n)||f.add(n);b=b.name;null==b||h.has(b)||h.add(b)},this);this._sources=f;this._names=h;a.sources.forEach(function(b){var f=a.sourceContentFor(b);null!=f&&(null!=d&&(b=k.join(d,b)),null!=c&&(b=k.relative(c,b)),this.setSourceContent(b,f))},this)};b.prototype._validateMapping=function(a,b,d,e){if(!(a&&"line"in
a&&"column"in a&&0<a.line&&0<=a.column&&!b&&!d&&!e||a&&"line"in a&&"column"in a&&b&&"line"in b&&"column"in b&&0<a.line&&0<=a.column&&0<b.line&&0<=b.column&&d))throw Error("Invalid mapping: "+JSON.stringify({generated:a,source:d,original:b,name:e}));};b.prototype._serializeMappings=function(){for(var a=0,b=1,d=0,l=0,c=0,f=0,r="",u,p,I,A=this._mappings.toArray(),v=0,C=A.length;v<C;v++){p=A[v];u="";if(p.generatedLine!==b)for(a=0;p.generatedLine!==b;)u+=";",b++;else if(0<v){if(!k.compareByGeneratedPositionsInflated(p,
A[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-c),c=p));r+=u}return r};b.prototype._generateSourcesContent=function(a,b){return a.map(function(a){if(!this._sourcesContents)return null;null!=b&&(a=k.relative(b,a));a=k.toSetString(a);return Object.prototype.hasOwnProperty.call(this._sourcesContents,
128*u}},{}],6:[function(p,v,l){(function(b){function e(a,b){for(var d=0,h=a.length-1;0<=h;h--){var c=a[h];"."===c?a.splice(h,1):".."===c?(a.splice(h,1),d++):d&&(a.splice(h,1),d--)}if(b)for(;d--;d)a.unshift("..");return a}function k(a,b){if(a.filter)return a.filter(b);for(var d=[],h=0;h<a.length;h++)b(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]:
b.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(a){return!!a}),!d).join("/");return(d?"/":"")+a||"."};l.normalize=function(a){var b=l.isAbsolute(a),n="/"===d(a,-1);(a=e(k(a.split("/"),function(a){return!!a}),!b).join("/"))||b||(a=".");a&&n&&(a+="/");return(b?"/":"")+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,b){if("string"!==typeof a)throw new TypeError("Arguments to path.join must be strings");return a}).join("/"))};l.relative=function(a,b){function d(a){for(var c=0;c<a.length&&""===a[c];c++);for(var f=a.length-1;0<=f&&""===a[f];f--);return c>f?[]:a.slice(c,f-c+1)}a=l.resolve(a).substr(1);b=l.resolve(b).substr(1);for(var h=d(a.split("/")),c=d(b.split("/")),f=Math.min(h.length,c.length),G=f,u=0;u<f;u++)if(h[u]!==c[u]){G=u;break}f=[];for(u=G;u<h.length;u++)f.push("..");f=f.concat(c.slice(G));
return f.join("/")};l.sep="/";l.delimiter=":";l.dirname=function(a){var b=r.exec(a).slice(1);a=b[0];b=b[1];if(!a&&!b)return".";b&&(b=b.substr(0,b.length-1));return a+b};l.basename=function(a,b){var d=r.exec(a).slice(1)[2];b&&d.substr(-1*b.length)===b&&(d=d.substr(0,d.length-b.length));return d};l.extname=function(a){return r.exec(a).slice(1)[3]};var d="b"==="ab".substr(-1)?function(a,b,d){return a.substr(b,d)}:function(a,b,d){0>b&&(b=a.length+b);return a.substr(b,d)}}).call(this,p("node_modules/process/browser.js"))},
{"node_modules/process/browser.js":7}],7:[function(p,v,l){function b(){}p=v.exports={};p.nextTick=function(){if("undefined"!==typeof window&&window.setImmediate)return function(b){return window.setImmediate(b)};if("undefined"!==typeof window&&window.postMessage&&window.addEventListener){var b=[];window.addEventListener("message",function(e){var k=e.source;k!==window&&null!==k||"process-tick"!==e.data||(e.stopPropagation(),0<b.length&&b.shift()())},!0);return function(e){b.push(e);window.postMessage("process-tick",
"*")}}return function(b){setTimeout(b,0)}}();p.title="browser";p.browser=!0;p.env={};p.argv=[];p.on=b;p.once=b;p.off=b;p.emit=b;p.binding=function(b){throw Error("process.binding is not supported");};p.cwd=function(){return"/"};p.chdir=function(b){throw Error("process.chdir is not supported");}},{}],8:[function(p,v,l){function b(){this._array=[];this._set=Object.create(null)}var e=p("./util"),k=Object.prototype.hasOwnProperty;b.fromArray=function(e,d){for(var a=new b,h=0,n=e.length;h<n;h++)a.add(e[h],
d);return a};b.prototype.size=function(){return Object.getOwnPropertyNames(this._set).length};b.prototype.add=function(b,d){var a=e.toSetString(b),h=k.call(this._set,a),n=this._array.length;h&&!d||this._array.push(b);h||(this._set[a]=n)};b.prototype.has=function(b){b=e.toSetString(b);return k.call(this._set,b)};b.prototype.indexOf=function(b){var d=e.toSetString(b);if(k.call(this._set,d))return this._set[d];throw Error('"'+b+'" is not in the set.');};b.prototype.at=function(b){if(0<=b&&b<this._array.length)return this._array[b];
throw Error("No element indexed by "+b);};b.prototype.toArray=function(){return this._array.slice()};l.ArraySet=b},{"./util":17}],9:[function(p,v,l){var b=p("./base64");l.encode=function(e){var k="",r=0>e?(-e<<1)+1:(e<<1)+0;do e=r&31,r>>>=5,0<r&&(e|=32),k+=b.encode(e);while(0<r);return k};l.decode=function(e,k,r){var d=e.length,a=0,h=0,n,t;do{if(k>=d)throw Error("Expected more digits in base 64 VLQ value.");t=b.decode(e.charCodeAt(k++));if(-1===t)throw Error("Invalid base64 digit: "+e.charAt(k-1));
n=!!(t&32);t&=31;a+=t<<h;h+=5}while(n);e=a>>1;r.value=1===(a&1)?-e:e;r.rest=k}},{"./base64":10}],10:[function(p,v,l){var b="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");l.encode=function(e){if(0<=e&&e<b.length)return b[e];throw new TypeError("Must be between 0 and 63: "+e);};l.decode=function(b){return 65<=b&&90>=b?b-65:97<=b&&122>=b?b-97+26:48<=b&&57>=b?b-48+52:43==b?62:47==b?63:-1}},{}],11:[function(p,v,l){function b(e,k,r,d,a,h){var n=Math.floor((k-e)/2)+e,t=a(r,
d[n],!0);return 0===t?n:0<t?1<k-n?b(n,k,r,d,a,h):h==l.LEAST_UPPER_BOUND?k<d.length?k:-1:n:1<n-e?b(e,n,r,d,a,h):h==l.LEAST_UPPER_BOUND?n:0>e?-1:e}l.GREATEST_LOWER_BOUND=1;l.LEAST_UPPER_BOUND=2;l.search=function(e,k,r,d){if(0===k.length)return-1;e=b(-1,k.length,e,k,r,d||l.GREATEST_LOWER_BOUND);if(0>e)return-1;for(;0<=e-1&&0===r(k[e],k[e-1],!0);)--e;return e}},{}],12:[function(p,v,l){function b(){this._array=[];this._sorted=!0;this._last={generatedLine:-1,generatedColumn:0}}var e=p("./util");b.prototype.unsortedForEach=
function(b,e){this._array.forEach(b,e)};b.prototype.add=function(b){var k=this._last,d=k.generatedLine,a=b.generatedLine,h=k.generatedColumn,n=b.generatedColumn;a>d||a==d&&n>=h||0>=e.compareByGeneratedPositionsInflated(k,b)?this._last=b:this._sorted=!1;this._array.push(b)};b.prototype.toArray=function(){this._sorted||(this._array.sort(e.compareByGeneratedPositionsInflated),this._sorted=!0);return this._array};l.MappingList=b},{"./util":17}],13:[function(p,v,l){function b(b,e,d){var a=b[e];b[e]=b[d];
b[d]=a}function e(k,l,d,a){if(d<a){var h=d-1;b(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,b(k,h,t));b(k,h+1,t);h+=1;e(k,l,d,h-1);e(k,l,h+1,a)}}l.quickSort=function(b,l){e(b,l,0,b.length-1)}},{}],14:[function(p,v,l){function b(a){var c=a;"string"===typeof a&&(c=JSON.parse(a.replace(/^\)\]\}'/,"")));return null!=c.sections?new r(c):new e(c)}function e(a){var c=a;"string"===typeof a&&(c=JSON.parse(a.replace(/^\)\]\}'/,"")));a=d.getArg(c,"version");var b=d.getArg(c,
"sources"),u=d.getArg(c,"names",[]),e=d.getArg(c,"sourceRoot",null),n=d.getArg(c,"sourcesContent",null),t=d.getArg(c,"mappings"),c=d.getArg(c,"file",null);if(a!=this._version)throw Error("Unsupported version: "+a);b=b.map(String).map(d.normalize).map(function(a){return e&&d.isAbsolute(e)&&d.isAbsolute(a)?d.relative(e,a):a});this._names=h.fromArray(u.map(String),!0);this._sources=h.fromArray(b,!0);this.sourceRoot=e;this.sourcesContent=n;this._mappings=t;this.file=c}function k(){this.generatedColumn=
this.generatedLine=0;this.name=this.originalColumn=this.originalLine=this.source=null}function r(a){var c=a;"string"===typeof a&&(c=JSON.parse(a.replace(/^\)\]\}'/,"")));a=d.getArg(c,"version");c=d.getArg(c,"sections");if(a!=this._version)throw Error("Unsupported version: "+a);this._sources=new h;this._names=new h;var e={line:-1,column:0};this._sections=c.map(function(a){if(a.url)throw Error("Support for url field in sections not implemented.");var c=d.getArg(a,"offset"),f=d.getArg(c,"line"),u=d.getArg(c,
"column");if(f<e.line||f===e.line&&u<e.column)throw Error("Section offsets must be ordered and non-overlapping.");e=c;return{generatedOffset:{generatedLine:f+1,generatedColumn:u+1},consumer:new b(d.getArg(a,"map"))}})}var d=p("./util"),a=p("./binary-search"),h=p("./array-set").ArraySet,n=p("./base64-vlq"),t=p("./quick-sort").quickSort;b.fromSourceMap=function(a){return e.fromSourceMap(a)};b.prototype._version=3;b.prototype.__generatedMappings=null;Object.defineProperty(b.prototype,"_generatedMappings",
{get:function(){this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot);return this.__generatedMappings}});b.prototype.__originalMappings=null;Object.defineProperty(b.prototype,"_originalMappings",{get:function(){this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot);return this.__originalMappings}});b.prototype._charIsMappingSeparator=function(a,b){var c=a.charAt(b);return";"===c||","===c};b.prototype._parseMappings=function(a,b){throw Error("Subclasses must implement _parseMappings");
};b.GENERATED_ORDER=1;b.ORIGINAL_ORDER=2;b.GREATEST_LOWER_BOUND=1;b.LEAST_UPPER_BOUND=2;b.prototype.eachMapping=function(a,f,e){f=f||null;switch(e||b.GENERATED_ORDER){case b.GENERATED_ORDER:e=this._generatedMappings;break;case b.ORIGINAL_ORDER:e=this._originalMappings;break;default:throw Error("Unknown order of iteration.");}var c=this.sourceRoot;e.map(function(a){var b=null===a.source?null:this._sources.at(a.source);null!=b&&null!=c&&(b=d.join(c,b));return{source:b,generatedLine:a.generatedLine,
generatedColumn:a.generatedColumn,originalLine:a.originalLine,originalColumn:a.originalColumn,name:null===a.name?null:this._names.at(a.name)}},this).forEach(a,f)};b.prototype.allGeneratedPositionsFor=function(c){var b=d.getArg(c,"line"),e={source:d.getArg(c,"source"),originalLine:b,originalColumn:d.getArg(c,"column",0)};null!=this.sourceRoot&&(e.source=d.relative(this.sourceRoot,e.source));if(!this._sources.has(e.source))return[];e.source=this._sources.indexOf(e.source);var u=[],e=this._findMapping(e,
this._originalMappings,"originalLine","originalColumn",d.compareByOriginalPositions,a.LEAST_UPPER_BOUND);if(0<=e){var h=this._originalMappings[e];if(void 0===c.column)for(b=h.originalLine;h&&h.originalLine===b;)u.push({line:d.getArg(h,"generatedLine",null),column:d.getArg(h,"generatedColumn",null),lastColumn:d.getArg(h,"lastGeneratedColumn",null)}),h=this._originalMappings[++e];else for(c=h.originalColumn;h&&h.originalLine===b&&h.originalColumn==c;)u.push({line:d.getArg(h,"generatedLine",null),column:d.getArg(h,
"generatedColumn",null),lastColumn:d.getArg(h,"lastGeneratedColumn",null)}),h=this._originalMappings[++e]}return u};l.SourceMapConsumer=b;e.prototype=Object.create(b.prototype);e.prototype.consumer=b;e.fromSourceMap=function(a){var c=Object.create(e.prototype),b=c._names=h.fromArray(a._names.toArray(),!0),u=c._sources=h.fromArray(a._sources.toArray(),!0);c.sourceRoot=a._sourceRoot;c.sourcesContent=a._generateSourcesContent(c._sources.toArray(),c.sourceRoot);c.file=a._file;a=a._mappings.toArray().slice();
for(var n=c.__generatedMappings=[],l=c.__originalMappings=[],r=0,p=a.length;r<p;r++){var C=a[r],x=new k;x.generatedLine=C.generatedLine;x.generatedColumn=C.generatedColumn;C.source&&(x.source=u.indexOf(C.source),x.originalLine=C.originalLine,x.originalColumn=C.originalColumn,C.name&&(x.name=b.indexOf(C.name)),l.push(x));n.push(x)}t(c.__originalMappings,d.compareByOriginalPositions);return c};e.prototype._version=3;Object.defineProperty(e.prototype,"sources",{get:function(){return this._sources.toArray().map(function(a){return null!=
this.sourceRoot?d.join(this.sourceRoot,a):a},this)}});e.prototype._parseMappings=function(a,b){for(var c=1,f=0,e=0,h=0,l=0,r=0,p=a.length,x=0,v={},B={},F=[],H=[],z,E,q,D,J;x<p;)if(";"===a.charAt(x))c++,x++,f=0;else if(","===a.charAt(x))x++;else{z=new k;z.generatedLine=c;for(D=x;D<p&&!this._charIsMappingSeparator(a,D);D++);E=a.slice(x,D);if(q=v[E])x+=E.length;else{for(q=[];x<D;)n.decode(a,x,B),J=B.value,x=B.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(c,
b,d,e,h,n){if(0>=c[d])throw new TypeError("Line must be greater than or equal to 1, got "+c[d]);if(0>c[e])throw new TypeError("Column must be greater than or equal to 0, got "+c[e]);return a.search(c,b,h,n)};e.prototype.computeColumnSpans=function(){for(var a=0;a<this._generatedMappings.length;++a){var b=this._generatedMappings[a];if(a+1<this._generatedMappings.length){var d=this._generatedMappings[a+1];if(b.generatedLine===d.generatedLine){b.lastGeneratedColumn=d.generatedColumn-1;continue}}b.lastGeneratedColumn=
Infinity}};e.prototype.originalPositionFor=function(a){var c={generatedLine:d.getArg(a,"line"),generatedColumn:d.getArg(a,"column")};a=this._findMapping(c,this._generatedMappings,"generatedLine","generatedColumn",d.compareByGeneratedPositionsDeflated,d.getArg(a,"bias",b.GREATEST_LOWER_BOUND));if(0<=a&&(a=this._generatedMappings[a],a.generatedLine===c.generatedLine)){c=d.getArg(a,"source",null);null!==c&&(c=this._sources.at(c),null!=this.sourceRoot&&(c=d.join(this.sourceRoot,c)));var e=d.getArg(a,
"name",null);null!==e&&(e=this._names.at(e));return{source:c,line:d.getArg(a,"originalLine",null),column:d.getArg(a,"originalColumn",null),name:e}}return{source:null,line:null,column:null,name:null}};e.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(a){return null==a}):!1};e.prototype.sourceContentFor=function(a,b){if(!this.sourcesContent)return null;null!=this.sourceRoot&&(a=d.relative(this.sourceRoot,
a));if(this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];var c;if(null!=this.sourceRoot&&(c=d.urlParse(this.sourceRoot))){var f=a.replace(/^file:\/\//,"");if("file"==c.scheme&&this._sources.has(f))return this.sourcesContent[this._sources.indexOf(f)];if((!c.path||"/"==c.path)&&this._sources.has("/"+a))return this.sourcesContent[this._sources.indexOf("/"+a)]}if(b)return null;throw Error('"'+a+'" is not in the SourceMap.');};e.prototype.generatedPositionFor=function(a){var c=
d.getArg(a,"source");null!=this.sourceRoot&&(c=d.relative(this.sourceRoot,c));if(!this._sources.has(c))return{line:null,column:null,lastColumn:null};c=this._sources.indexOf(c);c={source:c,originalLine:d.getArg(a,"line"),originalColumn:d.getArg(a,"column")};a=this._findMapping(c,this._originalMappings,"originalLine","originalColumn",d.compareByOriginalPositions,d.getArg(a,"bias",b.GREATEST_LOWER_BOUND));return 0<=a&&(a=this._originalMappings[a],a.source===c.source)?{line:d.getArg(a,"generatedLine",
null),column:d.getArg(a,"generatedColumn",null),lastColumn:d.getArg(a,"lastGeneratedColumn",null)}:{line:null,column:null,lastColumn:null}};l.BasicSourceMapConsumer=e;r.prototype=Object.create(b.prototype);r.prototype.constructor=b;r.prototype._version=3;Object.defineProperty(r.prototype,"sources",{get:function(){for(var a=[],b=0;b<this._sections.length;b++)for(var d=0;d<this._sections[b].consumer.sources.length;d++)a.push(this._sections[b].consumer.sources[d]);return a}});r.prototype.originalPositionFor=
function(c){var b={generatedLine:d.getArg(c,"line"),generatedColumn:d.getArg(c,"column")},e=a.search(b,this._sections,function(a,c){var b=a.generatedLine-c.generatedOffset.generatedLine;return b?b:a.generatedColumn-c.generatedOffset.generatedColumn});return(e=this._sections[e])?e.consumer.originalPositionFor({line:b.generatedLine-(e.generatedOffset.generatedLine-1),column:b.generatedColumn-(e.generatedOffset.generatedLine===b.generatedLine?e.generatedOffset.generatedColumn-1:0),bias:c.bias}):{source:null,
line:null,column:null,name:null}};r.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(a){return a.consumer.hasContentsOfAllSources()})};r.prototype.sourceContentFor=function(a,b){for(var c=0;c<this._sections.length;c++){var f=this._sections[c].consumer.sourceContentFor(a,!0);if(f)return f}if(b)return null;throw Error('"'+a+'" is not in the SourceMap.');};r.prototype.generatedPositionFor=function(a){for(var c=0;c<this._sections.length;c++){var b=this._sections[c];if(-1!==
b.consumer.sources.indexOf(d.getArg(a,"source"))){var e=b.consumer.generatedPositionFor(a);if(e)return{line:e.line+(b.generatedOffset.generatedLine-1),column:e.column+(b.generatedOffset.generatedLine===e.line?b.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}};r.prototype._parseMappings=function(a,b){this.__generatedMappings=[];this.__originalMappings=[];for(var c=0;c<this._sections.length;c++)for(var f=this._sections[c],e=f.consumer._generatedMappings,h=0;h<e.length;h++){var n=
e[h],k=f.consumer._sources.at(n.source);null!==f.consumer.sourceRoot&&(k=d.join(f.consumer.sourceRoot,k));this._sources.add(k);var k=this._sources.indexOf(k),l=f.consumer._names.at(n.name);this._names.add(l);l=this._names.indexOf(l);n={source:k,generatedLine:n.generatedLine+(f.generatedOffset.generatedLine-1),generatedColumn:n.generatedColumn+(f.generatedOffset.generatedLine===n.generatedLine?f.generatedOffset.generatedColumn-1:0),originalLine:n.originalLine,originalColumn:n.originalColumn,name:l};
this.__generatedMappings.push(n);"number"===typeof n.originalLine&&this.__originalMappings.push(n)}t(this.__generatedMappings,d.compareByGeneratedPositionsDeflated);t(this.__originalMappings,d.compareByOriginalPositions)};l.IndexedSourceMapConsumer=r},{"./array-set":8,"./base64-vlq":9,"./binary-search":11,"./quick-sort":13,"./util":17}],15:[function(p,v,l){function b(a){a||(a={});this._file=k.getArg(a,"file",null);this._sourceRoot=k.getArg(a,"sourceRoot",null);this._skipValidation=k.getArg(a,"skipValidation",
!1);this._sources=new r;this._names=new r;this._mappings=new d;this._sourcesContents=null}var e=p("./base64-vlq"),k=p("./util"),r=p("./array-set").ArraySet,d=p("./mapping-list").MappingList;b.prototype._version=3;b.fromSourceMap=function(a){var d=a.sourceRoot,e=new b({file:a.file,sourceRoot:d});a.eachMapping(function(a){var c={generated:{line:a.generatedLine,column:a.generatedColumn}};null!=a.source&&(c.source=a.source,null!=d&&(c.source=k.relative(d,c.source)),c.original={line:a.originalLine,column:a.originalColumn},
null!=a.name&&(c.name=a.name));e.addMapping(c)});a.sources.forEach(function(b){var c=a.sourceContentFor(b);null!=c&&e.setSourceContent(b,c)});return e};b.prototype.addMapping=function(a){var b=k.getArg(a,"generated"),d=k.getArg(a,"original",null),e=k.getArg(a,"source",null);a=k.getArg(a,"name",null);this._skipValidation||this._validateMapping(b,d,e,a);null!=e&&(e=String(e),this._sources.has(e)||this._sources.add(e));null!=a&&(a=String(a),this._names.has(a)||this._names.add(a));this._mappings.add({generatedLine:b.line,
generatedColumn:b.column,originalLine:null!=d&&d.line,originalColumn:null!=d&&d.column,source:e,name:a})};b.prototype.setSourceContent=function(a,b){var d=a;null!=this._sourceRoot&&(d=k.relative(this._sourceRoot,d));null!=b?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[k.toSetString(d)]=b):this._sourcesContents&&(delete this._sourcesContents[k.toSetString(d)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))};b.prototype.applySourceMap=
function(a,b,d){var e=b;if(null==b){if(null==a.file)throw Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');e=a.file}var c=this._sourceRoot;null!=c&&(e=k.relative(c,e));var f=new r,h=new r;this._mappings.unsortedForEach(function(b){if(b.source===e&&null!=b.originalLine){var n=a.originalPositionFor({line:b.originalLine,column:b.originalColumn});null!=n.source&&(b.source=n.source,null!=d&&(b.source=
k.join(d,b.source)),null!=c&&(b.source=k.relative(c,b.source)),b.originalLine=n.line,b.originalColumn=n.column,null!=n.name&&(b.name=n.name))}n=b.source;null==n||f.has(n)||f.add(n);b=b.name;null==b||h.has(b)||h.add(b)},this);this._sources=f;this._names=h;a.sources.forEach(function(b){var f=a.sourceContentFor(b);null!=f&&(null!=d&&(b=k.join(d,b)),null!=c&&(b=k.relative(c,b)),this.setSourceContent(b,f))},this)};b.prototype._validateMapping=function(a,b,d,e){if(!(a&&"line"in a&&"column"in a&&0<a.line&&
0<=a.column&&!b&&!d&&!e||a&&"line"in a&&"column"in a&&b&&"line"in b&&"column"in b&&0<a.line&&0<=a.column&&0<b.line&&0<=b.column&&d))throw Error("Invalid mapping: "+JSON.stringify({generated:a,source:d,original:b,name:e}));};b.prototype._serializeMappings=function(){for(var a=0,b=1,d=0,l=0,c=0,f=0,r="",u,p,I,A=this._mappings.toArray(),v=0,C=A.length;v<C;v++){p=A[v];u="";if(p.generatedLine!==b)for(a=0;p.generatedLine!==b;)u+=";",b++;else if(0<v){if(!k.compareByGeneratedPositionsInflated(p,A[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-c),c=p));r+=u}return r};b.prototype._generateSourcesContent=function(a,b){return a.map(function(a){if(!this._sourcesContents)return null;null!=b&&(a=k.relative(b,a));a=k.toSetString(a);return Object.prototype.hasOwnProperty.call(this._sourcesContents,
a)?this._sourcesContents[a]:null},this)};b.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};b.prototype.toString=function(){return JSON.stringify(this.toJSON())};l.SourceMapGenerator=b},{"./array-set":8,

@@ -111,2 +111,2 @@ "./base64-vlq":9,"./mapping-list":12,"./util":17}],16:[function(p,v,l){function b(b,a,e,n,k){this.children=[];this.sourceContents={};this.line=null==b?null:b;this.column=null==a?null:a;this.source=null==e?null:e;this.name=null==k?null:k;this.$$$isSourceNode$$$=!0;null!=n&&this.add(n)}var e=p("./source-map-generator").SourceMapGenerator,k=p("./util"),r=/(\r?\n)/;b.fromStringWithSourceMap=function(d,a,e){function h(a,c){if(null===a||void 0===a.source)l.add(c);else{var f=e?k.join(e,a.source):a.source;

0),z.unshift(a.retrieveFile));a.retrieveSourceMap&&(a.overrideRetrieveSourceMap&&(E.length=0),E.unshift(a.retrieveSourceMap));if(a.hookRequire&&!k()){var c;try{c=p("module")}catch(m){}var d=c.prototype._compile;d.__sourceMapSupport||(c.prototype._compile=function(a,b){B[b]=a;F[b]=void 0;return d.call(this,a,b)},c.prototype._compile.__sourceMapSupport=!0)}x||(x="emptyCacheBetweenOperations"in a?a.emptyCacheBetweenOperations:!1);L||(L=!0,Error.prepareStackTrace=f);!C&&("handleUncaughtExceptions"in a?
a.handleUncaughtExceptions:1)&&"object"===typeof b&&null!==b&&"function"===typeof b.on&&(C=!0,u())}}).call(this,p("node_modules/insert-module-globals/node_modules/process/browser.js"),p("buffer").Buffer)},{"node_modules/insert-module-globals/node_modules/process/browser.js":6,buffer:4,fs:3,module:3,path:7,"source-map":18}]},{},[1]);return N});
a.handleUncaughtExceptions:1)&&"object"===typeof b&&null!==b&&"function"===typeof b.on&&(C=!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});
{
"name": "source-map-support",
"description": "Fixes stack traces for files with source maps",
"version": "0.4.13",
"version": "0.4.14",
"main": "./source-map-support.js",

@@ -6,0 +6,0 @@ "scripts": {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc