* For example we want to use it in a mapper
   */
  Base64.btoa = function(input) {
    return btoa(input);
  };

  /*
   * Wrapper of atob
   * The reason is that window object has a builtin atob,
   * but we also want to use atob when it is headless.
   * For example we want to use it in a mapper
   */
  Base64.atob = function(input) {
    return atob(input);
  };

  return {
    Base64,
  };
});
</script>
