"use strict";function SourceMap(r){r=defaults(r,{file:null,root:null,orig:null,orig_line_diff:0,dest_line_diff:0},!0);var o=new MOZ_SourceMap.SourceMapGenerator({file:r.file,sourceRoot:r.root}),e=r.orig&&Object.create(null);if(e)for(var n in r.orig){var i=new MOZ_SourceMap.SourceMapConsumer(r.orig[n]);Array.isArray(r.orig[n].sources)&&i._sources.toArray().forEach(function(r){var e=i.sourceContentFor(r,!0);e&&o.setSourceContent(r,e)}),e[n]=i}return{add:function(n,i,u,t,l,a){var c=e&&e[n];if(c){var f=c.originalPositionFor({line:t,column:l});if(null===f.source)return;n=f.source,t=f.line,l=f.column,a=f.name||a}o.addMapping({name:a,source:n,generated:{line:i+r.dest_line_diff,column:u},original:{line:t+r.orig_line_diff,column:l}})},get:function(){return o},toString:function(){return JSON.stringify(o.toJSON())}}}