{"_id":"@a-la/source-map-generator","_rev":"2-ee7c5780fdd1b76e56231120eefcb9a8","name":"@a-la/source-map-generator","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@a-la/source-map-generator","version":"1.0.0","description":"[fork] Generates Source Maps, Works With Google Closure Compiler.","main":"build/index.js","module":"src/index.js","scripts":{"t":"zoroaster -a","test":"yarn t test/spec test/mask","spec":"yarn t test/spec","mask":"yarn t test/mask","test-build":"ALAMODE_ENV=test-build yarn test","lint":"eslint .","doc":"NODE_DEBUG=doc doc -o README.md","b":"alamode src -o build -s","d":"yarn-s d1 externs","d1":"typal src -c","externs":"typal externs.js -e","build":"yarn-s d b doc","e":"alanode"},"externs":"externs.js","repository":{"type":"git","url":"git://github.com/a-la/source-map-generator.git"},"keywords":["source-map-generator","a-la"],"author":{"name":"Anton","email":"anton@adc.sh"},"license":"MIT","bugs":{"url":"https://github.com/a-la/source-map-generator/issues"},"homepage":"https://github.com/a-la/source-map-generator#readme","devDependencies":{"alamode":"^1.9.3","documentary":"^1.24.1","eslint-config-artdeco":"1.0.1","yarn-s":"1.1.0","zoroaster":"^3.11.6"},"licenseText":"Updated by Art Deco Code, 2019\n\n + rewrite using ES6 modules\n + provide Google Closure Compiler externs\n\nOriginal\n\nCopyright (c) 2009-2011, Mozilla Foundation and contributors\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n* Redistributions of source code must retain the above copyright notice, this\n  list of conditions and the following disclaimer.\n\n* Redistributions in binary form must reproduce the above copyright notice,\n  this list of conditions and the following disclaimer in the documentation\n  and/or other materials provided with the distribution.\n\n* Neither the names of the Mozilla Foundation nor the names of project\n  contributors may be used to endorse or promote products derived from this\n  software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\nANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\nWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\nFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\nDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\nSERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\nCAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\nOR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\nOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.","_id":"@a-la/source-map-generator@1.0.0","dist":{"shasum":"afbfffa157442f6e822c9a08fc2e5f5463fa943a","integrity":"sha512-ZEtyblLbtiII5ahN4aHuGm1dRyabQjFNHlNVPp//mrZAF80iNlaspW62tIkSRR/N4dM3ERxmQJOa4+rLUVOEPQ==","tarball":"https://registry.npmjs.org/@a-la/source-map-generator/-/source-map-generator-1.0.0.tgz","fileCount":18,"unpackedSize":68702,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcv+szCRA9TVsSAnZWagAAfMkP/2Lctjhx5ieMQVIAxQrg\npzoHrR3Sb/8ogemjsDt8jkBpjm1Lgi8HII2oJjbcDv5Bz5jKFlUdmHiemRuI\nP+wyX/4E+E2qlrL3Hkd9oma8yQ7IAjWQmycoBySAA/9BzKWwlmIquZZM4Rld\nfxpBmuWAPsXqMNQYFp9TBUdRWysefRwz/ZVV/xmEIj/gXYgqeWn74dAJYOXv\nPGt1CEFGRMYMCflU2yZjdHc5mzn6v2+fndTDLwk71673/s2cS8O7j1EifZyJ\n4/lDN2ViLbRstd7bSKMSyYJoBy38ppYIhCBdYsl8MRGLKadcB7wdbVnfbhuy\nErcwHjrNXkbXBVNvFBnlkE87wOHqQx0ULnPKFjeB17oEmaQco5sMl26hJcy9\nRSGbkSPPO/hJdpq4Os68ce02PRyckiViTvq6OTZAGa/DVtNtiLLpAv/uYBlR\noFa17CwOldcBeb+z9r1/SsClx+3TMvsA91keOIetHDyKCoKhgVoOT8Lqj/6Z\nbSDASLfwPd0dj+V4662Ht4BTyQh61B4mqAvSi8G4Px7ID12my+lxiiwp92jQ\n1dUF61AVefwxYCIvDeYFKAlKdsnTD0aPN16Skl3R6HeTzoTyiRFHAmjtPO7E\nrS2pioqG2fKH/wuJC8+QJZkFRNiTnAhB6McTaRjFI+SLvVTeWwGwqCAmIXm/\nXkOw\r\n=DgLT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDqjo3Kp8xyfKXVp4BMAxfpkiIXswmfkDb3dQ7McyDA9gIhAI8Siwc7Po7Qsn9CDO94hOjP493riF5TOwaYuMwIJMst"}]},"maintainers":[{"name":"zvr","email":"anton@adc.sh"}],"_npmUser":{"name":"zvr","email":"anton@adc.sh"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/source-map-generator_1.0.0_1556081458228_0.2699520407635294"},"_hasShrinkwrap":false},"1.0.1":{"name":"@a-la/source-map-generator","version":"1.0.1","description":"[fork] Generates Source Maps, Works With Google Closure Compiler.","main":"build/index.js","module":"src/index.js","scripts":{"t":"zoroaster -a","test":"yarn t test/spec test/mask","spec":"yarn t test/spec","mask":"yarn t test/mask","test-build":"ALAMODE_ENV=test-build yarn test","lint":"eslint .","doc":"NODE_DEBUG=doc doc -o README.md","b":"alamode src -o build -s","d":"yarn-s d1 externs","d1":"typal src -c","externs":"typal types/externs.js","build":"yarn-s d b doc","e":"alanode"},"externs":"types/externs.js","repository":{"type":"git","url":"git://github.com/a-la/source-map-generator.git"},"keywords":["source-map-generator","a-la"],"author":{"name":"Anton","email":"anton@adc.sh"},"license":"MIT","bugs":{"url":"https://github.com/a-la/source-map-generator/issues"},"homepage":"https://github.com/a-la/source-map-generator#readme","devDependencies":{"alamode":"^2.4.0","documentary":"^1.32.1","eslint-config-artdeco":"1.0.1","yarn-s":"1.1.0","zoroaster":"^4.1.1-alpha"},"licenseText":"Updated by Art Deco Code, 2019\n\n + rewrite using ES6 modules\n + provide Google Closure Compiler externs\n\nOriginal\n\nCopyright (c) 2009-2011, Mozilla Foundation and contributors\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n* Redistributions of source code must retain the above copyright notice, this\n  list of conditions and the following disclaimer.\n\n* Redistributions in binary form must reproduce the above copyright notice,\n  this list of conditions and the following disclaimer in the documentation\n  and/or other materials provided with the distribution.\n\n* Neither the names of the Mozilla Foundation nor the names of project\n  contributors may be used to endorse or promote products derived from this\n  software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\nANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\nWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE\nFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL\nDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR\nSERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\nCAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,\nOR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\nOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.","_id":"@a-la/source-map-generator@1.0.1","dist":{"shasum":"808c56cde97a0b1e04070167532c4bc1488dd33e","integrity":"sha512-KUMPSI5hSEeeZTaoBUSWb62YN1oG1tWP2FcJJwvEOgfqO9c/jZbTGimCb3d4WnDm8sCWWyfw+g5oQd/Y64ey5w==","tarball":"https://registry.npmjs.org/@a-la/source-map-generator/-/source-map-generator-1.0.1.tgz","fileCount":19,"unpackedSize":68981,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdZnoRCRA9TVsSAnZWagAAauQQAINRfJtowgIHOBP7TlLl\nYEv3lbNWqgNjGXdEzGJrgGjT8hr5JRa4LM6FjpVPQzlWCbzPuLItvvKYZYuS\nIR2cPO2K6VCSwWz1Vc2flPXpXNBdahT3hg42hQyLLR54BE/jjsriLPjo5yWY\njIbc16ByHpojUu0cepQ9ss7w2DISZs5040WL/0uCRlG4docAzIOhuwfe0a9J\nBKoPK2NYkZA31Zk+jqZrmMyk/pAR+0Sxl9IQhcIemPrQzUKOw2/vzIHcZ7Oq\n3uzwHhJiSiz9/JRcHU+iDhWaJrFvtfDhgOzhman35sQQxQmoyuCkDqi9WpRi\nMo8fuTKkqCwyO3j/0/AXE/5zFvd4dRdzrsN22+lDTyE+tKwtfy4qeKcJfCne\nS+vTZRe7FP2AUTPuI6kFscpo8c8LQqNZj7V8ee2l87iT9Jr8XABr+VgtkVXu\n/M4Wr9+DFlw3Tax/q62AFuNFfAydt3bbNJCMLuvxonDdgSOsx22581+E7Sx5\nRjqLyVkJnct2IZb4G/1HXX9ir5fyq3WbMtq8Lpoo+O9uamQtJsBRHrAmPJOO\n+MYtrRP2luEMFS81i2p05XqnbDcXAbZzuXMK8xN2iAnXEq+TxtnI6ixsz+Bo\n+OFAuuEjX210itwjf0c/kh/qZ6od/CTDj3nXBMlZdX1I/CmxVykvVjYD7Yvl\n2kOg\r\n=Xa+W\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFefrm/WLf18jJzr0cSV/vC2885hyWRjEiozyglW0TZaAiEAxbvel3Z+YGD0VDlQWPFS8umx3ibngcUUFFq9IPi1s+8="}]},"maintainers":[{"name":"zvr","email":"anton@adc.sh"}],"_npmUser":{"name":"zvr","email":"anton@adc.sh"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/source-map-generator_1.0.1_1566997008616_0.2862533040104147"},"_hasShrinkwrap":false}},"time":{"created":"2019-04-24T04:50:58.136Z","1.0.0":"2019-04-24T04:50:58.433Z","modified":"2022-04-04T10:52:21.265Z","1.0.1":"2019-08-28T12:56:48.759Z"},"maintainers":[{"name":"zvr","email":"anton@adc.sh"}],"description":"[fork] Generates Source Maps, Works With Google Closure Compiler.","homepage":"https://github.com/a-la/source-map-generator#readme","keywords":["source-map-generator","a-la"],"repository":{"type":"git","url":"git://github.com/a-la/source-map-generator.git"},"author":{"name":"Anton","email":"anton@adc.sh"},"bugs":{"url":"https://github.com/a-la/source-map-generator/issues"},"license":"MIT","readme":"# @a-la/source-map-generator\n\n[![npm version](https://badge.fury.io/js/%40a-la%2Fsource-map-generator.svg)](https://npmjs.org/package/@a-la/source-map-generator)\n\n`@a-la/source-map-generator` is a [fork](https://github.com/mozilla/source-map) of Mozilla/SourceMap that Generates Source Maps and Works With Google Closure Compiler. It was rewritten in ES6 syntax and externs for _GCC_ were provided for compilation.\n\n```sh\nyarn add @a-la/source-map-generator\n```\n\n## Table Of Contents\n\n- [Table Of Contents](#table-of-contents)\n- [API](#api)\n- [`class SourceMapGenerator`](#class-sourcemapgenerator)\n  * [`constructor(conf: Config): SourceMapGenerator`](#constructorconf-config-sourcemapgenerator)\n    * [`_sourceMapGenerator.Config`](#type-_sourcemapgeneratorconfig)\n- [Copyright](#copyright)\n\n<p align=\"center\"><a href=\"#table-of-contents\">\n  <img src=\"/.documentary/section-breaks/0.svg?sanitize=true\">\n</a></p>\n\n## API\n\nThe package is available by importing its default function:\n\n```js\nimport sourceMapGenerator from '@a-la/source-map-generator'\n```\n\n<p align=\"center\"><a href=\"#table-of-contents\">\n  <img src=\"/.documentary/section-breaks/1.svg?sanitize=true\">\n</a></p>\n\n## `class SourceMapGenerator`\n\nAn instance of the SourceMapGenerator represents a source map which is being built incrementally.\n\n**Removed Methods For Now**\n\n- [x] `static fromSourceMap`\n- [x] `applySourceMap`\n\n\n### <code><ins>constructor</ins>(</code><sub><br/>&nbsp;&nbsp;`conf: Config,`<br/></sub><code>): <i>SourceMapGenerator</i></code>\n\nThe constructor method is called to create a new source map.\n\n<strong><a name=\"type-_sourcemapgeneratorconfig\">`_sourceMapGenerator.Config`</a></strong>: Options for the program.\n\n|      Name      |       Type       |                                                                                                           Description                                                                                                           | Default |\n| -------------- | ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------- |\n| file           | <em>string</em>  | The filename of the generated source.                                                                                                                                                                                           | -       |\n| sourceRoot     | <em>string</em>  | A root for all relative URLs in this source map.                                                                                                                                                                                | -       |\n| skipValidation | <em>boolean</em> | When `true`, disables validation of mappings as they are added. This can improve performance but should be used with discretion, as a last resort. Even then, one should avoid using this flag when running tests, if possible. | `false` |\n\n```js\nimport SourceMapGenerator from '@a-la/source-map-generator'\nimport { readFileSync } from 'fs'\n\nconst file = `${readFileSync(__filename)}`\n\nconst gen = new SourceMapGenerator({\n  file: 'example/index.js',\n})\n/**\n * Generate the source map for the file, keeping all positions as they are.\n *\n * The first two rules will update inline and block comments to not have any tokens in them.\n * The third rule will break each line into tokens and add mappings.\n */\nconst linesInSource = file\n  .replace(/\\/\\*(?:[\\s\\S]+?)\\*\\//g, (match, pos) => {\n    const next = file[pos + match.length]\n    if (next == '\\n') return '\\n'.repeat(match.split('\\n').length - 1)\n\n    const lines = match.split('\\n')\n    const lastLineI = lines.length - 1\n    const lastLine = lines[lastLineI]\n    const ss = ' '.repeat(lastLine.length)\n    const ws = '\\n'.repeat(lastLineI)\n    return `${ws}${ss}`\n  })\n  .replace(/\\/\\/(.+)/gm, (match) => {\n    return ' '.repeat(match.length)\n  })\n  .split('\\n')\nlinesInSource.forEach((l, i) => {\n  const line = i + 1\n  l\n    .replace(/(?:(?:\\s+)|(?:[$_\\w\\d]+)|.)/g, (match, column) => {\n      if (column == 0 && /^\\s+$/.test(match)) return\n      const generated = {\n        line,\n        column,\n      }\n      const m = {\n        generated,\n        source: __filename,\n        original: generated,\n      }\n      gen.addMapping(m)\n    })\n})\ngen.setSourceContent(__filename, file)\nconst sourceMap = gen.toJSON()\nconsole.log(sourceMap)\n```\n```js\n{ version: 3,\n  sources: [ '/Users/zavr/a-la/source-map-generator/example/index.js' ],\n  names: [],\n  mappings: 'AAAA,MAAM,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;AACtC,MAAM,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE;;AAEhC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC;;AAEzC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,kBAAkB,CAAC;EACjC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;AAC1B,CAAC;;;;;;;AAOD,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC;EACpB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAC3B,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM;IACpC,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;;IAEjE,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IAC9B,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;IACjC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS;IAChC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM;IACrC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,SAAS;IAChC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;EACpB,CAAC;EACD,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IAChC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM;EAChC,CAAC;EACD,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;AACb,aAAa,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;EAC9B,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;EACjB;IACE,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;MAC1D,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;MACxC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC;QAChB,IAAI;QACJ,MAAM;MACR;MACA,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;QACR,SAAS;QACT,MAAM,CAAC,CAAC,UAAU;QAClB,QAAQ,CAAC,CAAC,SAAS;MACrB;MACA,GAAG,CAAC,UAAU,CAAC,CAAC;IAClB,CAAC;AACL,CAAC;AACD,GAAG,CAAC,gBAAgB,CAAC,UAAU,CAAC,CAAC,IAAI;AACrC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC;AAC7B,OAAO,CAAC,GAAG,CAAC,SAAS',\n  file: 'example/index.js',\n  sourcesContent: \n   [ 'import SourceMapGenerator from \\'../src\\'\\nimport { readFileSync } from \\'fs\\'\\n\\nconst file = `${readFileSync(__filename)}`\\n\\nconst gen = new SourceMapGenerator({\\n  file: \\'example/index.js\\',\\n})\\n/**\\n * Generate the source map for the file, keeping all positions as they are.\\n *\\n * The first two rules will update inline and block comments to not have any tokens in them.\\n * The third rule will break each line into tokens and add mappings.\\n */\\nconst linesInSource = file\\n  .replace(/\\\\/\\\\*(?:[\\\\s\\\\S]+?)\\\\*\\\\//g, (match, pos) => {\\n    const next = file[pos + match.length]\\n    if (next == \\'\\\\n\\') return \\'\\\\n\\'.repeat(match.split(\\'\\\\n\\').length - 1)\\n\\n    const lines = match.split(\\'\\\\n\\')\\n    const lastLineI = lines.length - 1\\n    const lastLine = lines[lastLineI]\\n    const ss = \\' \\'.repeat(lastLine.length)\\n    const ws = \\'\\\\n\\'.repeat(lastLineI)\\n    return `${ws}${ss}`\\n  })\\n  .replace(/\\\\/\\\\/(.+)/gm, (match) => {\\n    return \\' \\'.repeat(match.length)\\n  })\\n  .split(\\'\\\\n\\')\\nlinesInSource.forEach((l, i) => {\\n  const line = i + 1\\n  l\\n    .replace(/(?:(?:\\\\s+)|(?:[$_\\\\w\\\\d]+)|.)/g, (match, column) => {\\n      if (column == 0 && /^\\\\s+$/.test(match)) return\\n      const generated = {\\n        line,\\n        column,\\n      }\\n      const m = {\\n        generated,\\n        source: __filename,\\n        original: generated,\\n      }\\n      gen.addMapping(m)\\n    })\\n})\\ngen.setSourceContent(__filename, file)\\nconst sourceMap = gen.toJSON()\\nconsole.log(sourceMap)' ] }\n```\n\n<p align=\"center\"><a href=\"#table-of-contents\">\n  <img src=\"/.documentary/section-breaks/2.svg?sanitize=true\">\n</a></p>\n\n## Copyright\n\nOriginal Authors: [Mozilla](https://github.com/mozilla/source-map/)\n\n---\n\n<table>\n  <tr>\n    <th>\n      <a href=\"https://artd.eco\">\n        <img width=\"100\" src=\"https://raw.githubusercontent.com/wrote/wrote/master/images/artdeco.png\"\n          alt=\"Art Deco\">\n      </a>\n    </th>\n    <th>© <a href=\"https://artd.eco\">Art Deco</a> for <a href=\"https://alamode.cc\">À La Mode</a> 2019</th>\n    <th>\n      <a href=\"https://www.technation.sucks\" title=\"Tech Nation Visa\">\n        <img width=\"100\" src=\"https://raw.githubusercontent.com/idiocc/cookies/master/wiki/arch4.jpg\"\n          alt=\"Tech Nation Visa\">\n      </a>\n    </th>\n    <th><a href=\"https://www.technation.sucks\">Tech Nation Visa Sucks</a></th>\n  </tr>\n</table>\n\n<p align=\"center\"><a href=\"#table-of-contents\">\n  <img src=\"/.documentary/section-breaks/-1.svg?sanitize=true\">\n</a></p>","readmeFilename":"README.md"}