nl_tokens: Transform array buffer to Data URL .
pl_tokens: function arrayBufferToDataURL ( arrayBuffer , mimeType ) { var chunks = [ ] ; // Chunk Typed Array for better performance (#435) var chunkSize = 8192 ; var uint8 = new Uint8Array ( arrayBuffer ) ; while ( uint8 . length > 0 ) { // XXX: Babel's `toConsumableArray` helper will throw error in IE or Safari 9 // eslint-disable-next-line prefer-spread chunks . <mask> ( fromCharCode . apply ( null , toArray ( uint8 . subarray ( 0 , chunkSize ) ) ) ) ; uint8 = uint8 . subarray ( chunkSize ) ; } return "data:" . concat ( mimeType , ";base64," ) . concat ( btoa ( chunks . join ( '' ) ) ) ; }