Rewrite an entry's stack frames and its location to their original sources where a source map says
so, and mark it mapped. The location moves with its stack frame: to the first frame of the app's
own code from there on (a console wrapper in a dependency is not where a message was written), else
to that frame's mapped place. A location that is not in the stack stays as recorded; one without a
stack is mapped by its column. Frames in the message text (React's component stack) are mapped too;
when the stack has none of the app's own code, the first of the text's places the location.
Entries without anything to map are returned unchanged.
Rewrite an entry's stack frames and its location to their original sources where a source map says so, and mark it
mapped. The location moves with its stack frame: to the first frame of the app's own code from there on (a console wrapper in a dependency is not where a message was written), else to that frame's mapped place. A location that is not in the stack stays as recorded; one without a stack is mapped by its column. Frames in the message text (React's component stack) are mapped too; when the stack has none of the app's own code, the first of the text's places the location. Entries without anything to map are returned unchanged.