trace-mapping.mjs 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580
  1. import { encode, decode } from '@jridgewell/sourcemap-codec';
  2. import resolveUri from '@jridgewell/resolve-uri';
  3. function resolve(input, base) {
  4. // The base is always treated as a directory, if it's not empty.
  5. // https://github.com/mozilla/source-map/blob/8cb3ee57/lib/util.js#L327
  6. // https://github.com/chromium/chromium/blob/da4adbb3/third_party/blink/renderer/devtools/front_end/sdk/SourceMap.js#L400-L401
  7. if (base && !base.endsWith('/'))
  8. base += '/';
  9. return resolveUri(input, base);
  10. }
  11. /**
  12. * Removes everything after the last "/", but leaves the slash.
  13. */
  14. function stripFilename(path) {
  15. if (!path)
  16. return '';
  17. const index = path.lastIndexOf('/');
  18. return path.slice(0, index + 1);
  19. }
  20. const COLUMN = 0;
  21. const SOURCES_INDEX = 1;
  22. const SOURCE_LINE = 2;
  23. const SOURCE_COLUMN = 3;
  24. const NAMES_INDEX = 4;
  25. const REV_GENERATED_LINE = 1;
  26. const REV_GENERATED_COLUMN = 2;
  27. function maybeSort(mappings, owned) {
  28. const unsortedIndex = nextUnsortedSegmentLine(mappings, 0);
  29. if (unsortedIndex === mappings.length)
  30. return mappings;
  31. // If we own the array (meaning we parsed it from JSON), then we're free to directly mutate it. If
  32. // not, we do not want to modify the consumer's input array.
  33. if (!owned)
  34. mappings = mappings.slice();
  35. for (let i = unsortedIndex; i < mappings.length; i = nextUnsortedSegmentLine(mappings, i + 1)) {
  36. mappings[i] = sortSegments(mappings[i], owned);
  37. }
  38. return mappings;
  39. }
  40. function nextUnsortedSegmentLine(mappings, start) {
  41. for (let i = start; i < mappings.length; i++) {
  42. if (!isSorted(mappings[i]))
  43. return i;
  44. }
  45. return mappings.length;
  46. }
  47. function isSorted(line) {
  48. for (let j = 1; j < line.length; j++) {
  49. if (line[j][COLUMN] < line[j - 1][COLUMN]) {
  50. return false;
  51. }
  52. }
  53. return true;
  54. }
  55. function sortSegments(line, owned) {
  56. if (!owned)
  57. line = line.slice();
  58. return line.sort(sortComparator);
  59. }
  60. function sortComparator(a, b) {
  61. return a[COLUMN] - b[COLUMN];
  62. }
  63. let found = false;
  64. /**
  65. * A binary search implementation that returns the index if a match is found.
  66. * If no match is found, then the left-index (the index associated with the item that comes just
  67. * before the desired index) is returned. To maintain proper sort order, a splice would happen at
  68. * the next index:
  69. *
  70. * ```js
  71. * const array = [1, 3];
  72. * const needle = 2;
  73. * const index = binarySearch(array, needle, (item, needle) => item - needle);
  74. *
  75. * assert.equal(index, 0);
  76. * array.splice(index + 1, 0, needle);
  77. * assert.deepEqual(array, [1, 2, 3]);
  78. * ```
  79. */
  80. function binarySearch(haystack, needle, low, high) {
  81. while (low <= high) {
  82. const mid = low + ((high - low) >> 1);
  83. const cmp = haystack[mid][COLUMN] - needle;
  84. if (cmp === 0) {
  85. found = true;
  86. return mid;
  87. }
  88. if (cmp < 0) {
  89. low = mid + 1;
  90. }
  91. else {
  92. high = mid - 1;
  93. }
  94. }
  95. found = false;
  96. return low - 1;
  97. }
  98. function upperBound(haystack, needle, index) {
  99. for (let i = index + 1; i < haystack.length; index = i++) {
  100. if (haystack[i][COLUMN] !== needle)
  101. break;
  102. }
  103. return index;
  104. }
  105. function lowerBound(haystack, needle, index) {
  106. for (let i = index - 1; i >= 0; index = i--) {
  107. if (haystack[i][COLUMN] !== needle)
  108. break;
  109. }
  110. return index;
  111. }
  112. function memoizedState() {
  113. return {
  114. lastKey: -1,
  115. lastNeedle: -1,
  116. lastIndex: -1,
  117. };
  118. }
  119. /**
  120. * This overly complicated beast is just to record the last tested line/column and the resulting
  121. * index, allowing us to skip a few tests if mappings are monotonically increasing.
  122. */
  123. function memoizedBinarySearch(haystack, needle, state, key) {
  124. const { lastKey, lastNeedle, lastIndex } = state;
  125. let low = 0;
  126. let high = haystack.length - 1;
  127. if (key === lastKey) {
  128. if (needle === lastNeedle) {
  129. found = lastIndex !== -1 && haystack[lastIndex][COLUMN] === needle;
  130. return lastIndex;
  131. }
  132. if (needle >= lastNeedle) {
  133. // lastIndex may be -1 if the previous needle was not found.
  134. low = lastIndex === -1 ? 0 : lastIndex;
  135. }
  136. else {
  137. high = lastIndex;
  138. }
  139. }
  140. state.lastKey = key;
  141. state.lastNeedle = needle;
  142. return (state.lastIndex = binarySearch(haystack, needle, low, high));
  143. }
  144. // Rebuilds the original source files, with mappings that are ordered by source line/column instead
  145. // of generated line/column.
  146. function buildBySources(decoded, memos) {
  147. const sources = memos.map(buildNullArray);
  148. for (let i = 0; i < decoded.length; i++) {
  149. const line = decoded[i];
  150. for (let j = 0; j < line.length; j++) {
  151. const seg = line[j];
  152. if (seg.length === 1)
  153. continue;
  154. const sourceIndex = seg[SOURCES_INDEX];
  155. const sourceLine = seg[SOURCE_LINE];
  156. const sourceColumn = seg[SOURCE_COLUMN];
  157. const originalSource = sources[sourceIndex];
  158. const originalLine = (originalSource[sourceLine] || (originalSource[sourceLine] = []));
  159. const memo = memos[sourceIndex];
  160. // The binary search either found a match, or it found the left-index just before where the
  161. // segment should go. Either way, we want to insert after that. And there may be multiple
  162. // generated segments associated with an original location, so there may need to move several
  163. // indexes before we find where we need to insert.
  164. let index = upperBound(originalLine, sourceColumn, memoizedBinarySearch(originalLine, sourceColumn, memo, sourceLine));
  165. memo.lastIndex = ++index;
  166. insert(originalLine, index, [sourceColumn, i, seg[COLUMN]]);
  167. }
  168. }
  169. return sources;
  170. }
  171. function insert(array, index, value) {
  172. for (let i = array.length; i > index; i--) {
  173. array[i] = array[i - 1];
  174. }
  175. array[index] = value;
  176. }
  177. // Null arrays allow us to use ordered index keys without actually allocating contiguous memory like
  178. // a real array. We use a null-prototype object to avoid prototype pollution and deoptimizations.
  179. // Numeric properties on objects are magically sorted in ascending order by the engine regardless of
  180. // the insertion order. So, by setting any numeric keys, even out of order, we'll get ascending
  181. // order when iterating with for-in.
  182. function buildNullArray() {
  183. return { __proto__: null };
  184. }
  185. const AnyMap = function (map, mapUrl) {
  186. const parsed = parse(map);
  187. if (!('sections' in parsed)) {
  188. return new TraceMap(parsed, mapUrl);
  189. }
  190. const mappings = [];
  191. const sources = [];
  192. const sourcesContent = [];
  193. const names = [];
  194. const ignoreList = [];
  195. recurse(parsed, mapUrl, mappings, sources, sourcesContent, names, ignoreList, 0, 0, Infinity, Infinity);
  196. const joined = {
  197. version: 3,
  198. file: parsed.file,
  199. names,
  200. sources,
  201. sourcesContent,
  202. mappings,
  203. ignoreList,
  204. };
  205. return presortedDecodedMap(joined);
  206. };
  207. function parse(map) {
  208. return typeof map === 'string' ? JSON.parse(map) : map;
  209. }
  210. function recurse(input, mapUrl, mappings, sources, sourcesContent, names, ignoreList, lineOffset, columnOffset, stopLine, stopColumn) {
  211. const { sections } = input;
  212. for (let i = 0; i < sections.length; i++) {
  213. const { map, offset } = sections[i];
  214. let sl = stopLine;
  215. let sc = stopColumn;
  216. if (i + 1 < sections.length) {
  217. const nextOffset = sections[i + 1].offset;
  218. sl = Math.min(stopLine, lineOffset + nextOffset.line);
  219. if (sl === stopLine) {
  220. sc = Math.min(stopColumn, columnOffset + nextOffset.column);
  221. }
  222. else if (sl < stopLine) {
  223. sc = columnOffset + nextOffset.column;
  224. }
  225. }
  226. addSection(map, mapUrl, mappings, sources, sourcesContent, names, ignoreList, lineOffset + offset.line, columnOffset + offset.column, sl, sc);
  227. }
  228. }
  229. function addSection(input, mapUrl, mappings, sources, sourcesContent, names, ignoreList, lineOffset, columnOffset, stopLine, stopColumn) {
  230. const parsed = parse(input);
  231. if ('sections' in parsed)
  232. return recurse(...arguments);
  233. const map = new TraceMap(parsed, mapUrl);
  234. const sourcesOffset = sources.length;
  235. const namesOffset = names.length;
  236. const decoded = decodedMappings(map);
  237. const { resolvedSources, sourcesContent: contents, ignoreList: ignores } = map;
  238. append(sources, resolvedSources);
  239. append(names, map.names);
  240. if (contents)
  241. append(sourcesContent, contents);
  242. else
  243. for (let i = 0; i < resolvedSources.length; i++)
  244. sourcesContent.push(null);
  245. if (ignores)
  246. for (let i = 0; i < ignores.length; i++)
  247. ignoreList.push(ignores[i] + sourcesOffset);
  248. for (let i = 0; i < decoded.length; i++) {
  249. const lineI = lineOffset + i;
  250. // We can only add so many lines before we step into the range that the next section's map
  251. // controls. When we get to the last line, then we'll start checking the segments to see if
  252. // they've crossed into the column range. But it may not have any columns that overstep, so we
  253. // still need to check that we don't overstep lines, too.
  254. if (lineI > stopLine)
  255. return;
  256. // The out line may already exist in mappings (if we're continuing the line started by a
  257. // previous section). Or, we may have jumped ahead several lines to start this section.
  258. const out = getLine(mappings, lineI);
  259. // On the 0th loop, the section's column offset shifts us forward. On all other lines (since the
  260. // map can be multiple lines), it doesn't.
  261. const cOffset = i === 0 ? columnOffset : 0;
  262. const line = decoded[i];
  263. for (let j = 0; j < line.length; j++) {
  264. const seg = line[j];
  265. const column = cOffset + seg[COLUMN];
  266. // If this segment steps into the column range that the next section's map controls, we need
  267. // to stop early.
  268. if (lineI === stopLine && column >= stopColumn)
  269. return;
  270. if (seg.length === 1) {
  271. out.push([column]);
  272. continue;
  273. }
  274. const sourcesIndex = sourcesOffset + seg[SOURCES_INDEX];
  275. const sourceLine = seg[SOURCE_LINE];
  276. const sourceColumn = seg[SOURCE_COLUMN];
  277. out.push(seg.length === 4
  278. ? [column, sourcesIndex, sourceLine, sourceColumn]
  279. : [column, sourcesIndex, sourceLine, sourceColumn, namesOffset + seg[NAMES_INDEX]]);
  280. }
  281. }
  282. }
  283. function append(arr, other) {
  284. for (let i = 0; i < other.length; i++)
  285. arr.push(other[i]);
  286. }
  287. function getLine(arr, index) {
  288. for (let i = arr.length; i <= index; i++)
  289. arr[i] = [];
  290. return arr[index];
  291. }
  292. const LINE_GTR_ZERO = '`line` must be greater than 0 (lines start at line 1)';
  293. const COL_GTR_EQ_ZERO = '`column` must be greater than or equal to 0 (columns start at column 0)';
  294. const LEAST_UPPER_BOUND = -1;
  295. const GREATEST_LOWER_BOUND = 1;
  296. class TraceMap {
  297. constructor(map, mapUrl) {
  298. const isString = typeof map === 'string';
  299. if (!isString && map._decodedMemo)
  300. return map;
  301. const parsed = (isString ? JSON.parse(map) : map);
  302. const { version, file, names, sourceRoot, sources, sourcesContent } = parsed;
  303. this.version = version;
  304. this.file = file;
  305. this.names = names || [];
  306. this.sourceRoot = sourceRoot;
  307. this.sources = sources;
  308. this.sourcesContent = sourcesContent;
  309. this.ignoreList = parsed.ignoreList || parsed.x_google_ignoreList || undefined;
  310. const from = resolve(sourceRoot || '', stripFilename(mapUrl));
  311. this.resolvedSources = sources.map((s) => resolve(s || '', from));
  312. const { mappings } = parsed;
  313. if (typeof mappings === 'string') {
  314. this._encoded = mappings;
  315. this._decoded = undefined;
  316. }
  317. else {
  318. this._encoded = undefined;
  319. this._decoded = maybeSort(mappings, isString);
  320. }
  321. this._decodedMemo = memoizedState();
  322. this._bySources = undefined;
  323. this._bySourceMemos = undefined;
  324. }
  325. }
  326. /**
  327. * Typescript doesn't allow friend access to private fields, so this just casts the map into a type
  328. * with public access modifiers.
  329. */
  330. function cast(map) {
  331. return map;
  332. }
  333. /**
  334. * Returns the encoded (VLQ string) form of the SourceMap's mappings field.
  335. */
  336. function encodedMappings(map) {
  337. var _a;
  338. var _b;
  339. return ((_a = (_b = cast(map))._encoded) !== null && _a !== void 0 ? _a : (_b._encoded = encode(cast(map)._decoded)));
  340. }
  341. /**
  342. * Returns the decoded (array of lines of segments) form of the SourceMap's mappings field.
  343. */
  344. function decodedMappings(map) {
  345. var _a;
  346. return ((_a = cast(map))._decoded || (_a._decoded = decode(cast(map)._encoded)));
  347. }
  348. /**
  349. * A low-level API to find the segment associated with a generated line/column (think, from a
  350. * stack trace). Line and column here are 0-based, unlike `originalPositionFor`.
  351. */
  352. function traceSegment(map, line, column) {
  353. const decoded = decodedMappings(map);
  354. // It's common for parent source maps to have pointers to lines that have no
  355. // mapping (like a "//# sourceMappingURL=") at the end of the child file.
  356. if (line >= decoded.length)
  357. return null;
  358. const segments = decoded[line];
  359. const index = traceSegmentInternal(segments, cast(map)._decodedMemo, line, column, GREATEST_LOWER_BOUND);
  360. return index === -1 ? null : segments[index];
  361. }
  362. /**
  363. * A higher-level API to find the source/line/column associated with a generated line/column
  364. * (think, from a stack trace). Line is 1-based, but column is 0-based, due to legacy behavior in
  365. * `source-map` library.
  366. */
  367. function originalPositionFor(map, needle) {
  368. let { line, column, bias } = needle;
  369. line--;
  370. if (line < 0)
  371. throw new Error(LINE_GTR_ZERO);
  372. if (column < 0)
  373. throw new Error(COL_GTR_EQ_ZERO);
  374. const decoded = decodedMappings(map);
  375. // It's common for parent source maps to have pointers to lines that have no
  376. // mapping (like a "//# sourceMappingURL=") at the end of the child file.
  377. if (line >= decoded.length)
  378. return OMapping(null, null, null, null);
  379. const segments = decoded[line];
  380. const index = traceSegmentInternal(segments, cast(map)._decodedMemo, line, column, bias || GREATEST_LOWER_BOUND);
  381. if (index === -1)
  382. return OMapping(null, null, null, null);
  383. const segment = segments[index];
  384. if (segment.length === 1)
  385. return OMapping(null, null, null, null);
  386. const { names, resolvedSources } = map;
  387. return OMapping(resolvedSources[segment[SOURCES_INDEX]], segment[SOURCE_LINE] + 1, segment[SOURCE_COLUMN], segment.length === 5 ? names[segment[NAMES_INDEX]] : null);
  388. }
  389. /**
  390. * Finds the generated line/column position of the provided source/line/column source position.
  391. */
  392. function generatedPositionFor(map, needle) {
  393. const { source, line, column, bias } = needle;
  394. return generatedPosition(map, source, line, column, bias || GREATEST_LOWER_BOUND, false);
  395. }
  396. /**
  397. * Finds all generated line/column positions of the provided source/line/column source position.
  398. */
  399. function allGeneratedPositionsFor(map, needle) {
  400. const { source, line, column, bias } = needle;
  401. // SourceMapConsumer uses LEAST_UPPER_BOUND for some reason, so we follow suit.
  402. return generatedPosition(map, source, line, column, bias || LEAST_UPPER_BOUND, true);
  403. }
  404. /**
  405. * Iterates each mapping in generated position order.
  406. */
  407. function eachMapping(map, cb) {
  408. const decoded = decodedMappings(map);
  409. const { names, resolvedSources } = map;
  410. for (let i = 0; i < decoded.length; i++) {
  411. const line = decoded[i];
  412. for (let j = 0; j < line.length; j++) {
  413. const seg = line[j];
  414. const generatedLine = i + 1;
  415. const generatedColumn = seg[0];
  416. let source = null;
  417. let originalLine = null;
  418. let originalColumn = null;
  419. let name = null;
  420. if (seg.length !== 1) {
  421. source = resolvedSources[seg[1]];
  422. originalLine = seg[2] + 1;
  423. originalColumn = seg[3];
  424. }
  425. if (seg.length === 5)
  426. name = names[seg[4]];
  427. cb({
  428. generatedLine,
  429. generatedColumn,
  430. source,
  431. originalLine,
  432. originalColumn,
  433. name,
  434. });
  435. }
  436. }
  437. }
  438. function sourceIndex(map, source) {
  439. const { sources, resolvedSources } = map;
  440. let index = sources.indexOf(source);
  441. if (index === -1)
  442. index = resolvedSources.indexOf(source);
  443. return index;
  444. }
  445. /**
  446. * Retrieves the source content for a particular source, if its found. Returns null if not.
  447. */
  448. function sourceContentFor(map, source) {
  449. const { sourcesContent } = map;
  450. if (sourcesContent == null)
  451. return null;
  452. const index = sourceIndex(map, source);
  453. return index === -1 ? null : sourcesContent[index];
  454. }
  455. /**
  456. * Determines if the source is marked to ignore by the source map.
  457. */
  458. function isIgnored(map, source) {
  459. const { ignoreList } = map;
  460. if (ignoreList == null)
  461. return false;
  462. const index = sourceIndex(map, source);
  463. return index === -1 ? false : ignoreList.includes(index);
  464. }
  465. /**
  466. * A helper that skips sorting of the input map's mappings array, which can be expensive for larger
  467. * maps.
  468. */
  469. function presortedDecodedMap(map, mapUrl) {
  470. const tracer = new TraceMap(clone(map, []), mapUrl);
  471. cast(tracer)._decoded = map.mappings;
  472. return tracer;
  473. }
  474. /**
  475. * Returns a sourcemap object (with decoded mappings) suitable for passing to a library that expects
  476. * a sourcemap, or to JSON.stringify.
  477. */
  478. function decodedMap(map) {
  479. return clone(map, decodedMappings(map));
  480. }
  481. /**
  482. * Returns a sourcemap object (with encoded mappings) suitable for passing to a library that expects
  483. * a sourcemap, or to JSON.stringify.
  484. */
  485. function encodedMap(map) {
  486. return clone(map, encodedMappings(map));
  487. }
  488. function clone(map, mappings) {
  489. return {
  490. version: map.version,
  491. file: map.file,
  492. names: map.names,
  493. sourceRoot: map.sourceRoot,
  494. sources: map.sources,
  495. sourcesContent: map.sourcesContent,
  496. mappings,
  497. ignoreList: map.ignoreList || map.x_google_ignoreList,
  498. };
  499. }
  500. function OMapping(source, line, column, name) {
  501. return { source, line, column, name };
  502. }
  503. function GMapping(line, column) {
  504. return { line, column };
  505. }
  506. function traceSegmentInternal(segments, memo, line, column, bias) {
  507. let index = memoizedBinarySearch(segments, column, memo, line);
  508. if (found) {
  509. index = (bias === LEAST_UPPER_BOUND ? upperBound : lowerBound)(segments, column, index);
  510. }
  511. else if (bias === LEAST_UPPER_BOUND)
  512. index++;
  513. if (index === -1 || index === segments.length)
  514. return -1;
  515. return index;
  516. }
  517. function sliceGeneratedPositions(segments, memo, line, column, bias) {
  518. let min = traceSegmentInternal(segments, memo, line, column, GREATEST_LOWER_BOUND);
  519. // We ignored the bias when tracing the segment so that we're guarnateed to find the first (in
  520. // insertion order) segment that matched. Even if we did respect the bias when tracing, we would
  521. // still need to call `lowerBound()` to find the first segment, which is slower than just looking
  522. // for the GREATEST_LOWER_BOUND to begin with. The only difference that matters for us is when the
  523. // binary search didn't match, in which case GREATEST_LOWER_BOUND just needs to increment to
  524. // match LEAST_UPPER_BOUND.
  525. if (!found && bias === LEAST_UPPER_BOUND)
  526. min++;
  527. if (min === -1 || min === segments.length)
  528. return [];
  529. // We may have found the segment that started at an earlier column. If this is the case, then we
  530. // need to slice all generated segments that match _that_ column, because all such segments span
  531. // to our desired column.
  532. const matchedColumn = found ? column : segments[min][COLUMN];
  533. // The binary search is not guaranteed to find the lower bound when a match wasn't found.
  534. if (!found)
  535. min = lowerBound(segments, matchedColumn, min);
  536. const max = upperBound(segments, matchedColumn, min);
  537. const result = [];
  538. for (; min <= max; min++) {
  539. const segment = segments[min];
  540. result.push(GMapping(segment[REV_GENERATED_LINE] + 1, segment[REV_GENERATED_COLUMN]));
  541. }
  542. return result;
  543. }
  544. function generatedPosition(map, source, line, column, bias, all) {
  545. var _a;
  546. line--;
  547. if (line < 0)
  548. throw new Error(LINE_GTR_ZERO);
  549. if (column < 0)
  550. throw new Error(COL_GTR_EQ_ZERO);
  551. const { sources, resolvedSources } = map;
  552. let sourceIndex = sources.indexOf(source);
  553. if (sourceIndex === -1)
  554. sourceIndex = resolvedSources.indexOf(source);
  555. if (sourceIndex === -1)
  556. return all ? [] : GMapping(null, null);
  557. const generated = ((_a = cast(map))._bySources || (_a._bySources = buildBySources(decodedMappings(map), (cast(map)._bySourceMemos = sources.map(memoizedState)))));
  558. const segments = generated[sourceIndex][line];
  559. if (segments == null)
  560. return all ? [] : GMapping(null, null);
  561. const memo = cast(map)._bySourceMemos[sourceIndex];
  562. if (all)
  563. return sliceGeneratedPositions(segments, memo, line, column, bias);
  564. const index = traceSegmentInternal(segments, memo, line, column, bias);
  565. if (index === -1)
  566. return GMapping(null, null);
  567. const segment = segments[index];
  568. return GMapping(segment[REV_GENERATED_LINE] + 1, segment[REV_GENERATED_COLUMN]);
  569. }
  570. export { AnyMap, GREATEST_LOWER_BOUND, LEAST_UPPER_BOUND, TraceMap, allGeneratedPositionsFor, decodedMap, decodedMappings, eachMapping, encodedMap, encodedMappings, generatedPositionFor, isIgnored, originalPositionFor, presortedDecodedMap, sourceContentFor, traceSegment };
  571. //# sourceMappingURL=trace-mapping.mjs.map