prod/service-worker-28ddbc7ef7a575da0539a0f05f4bfdae.js
function readAsBinaryString(blob, callback) {
  if (typeof FileReader === 'undefined') {
    // fix for Firefox in a web worker
    // https://bugzilla.mozilla.org/show_bug.cgi?id=901097
    return callback(arrayBufferToBinaryString(
      new FileReaderSync().readAsArrayBuffer(blob)));
  }

  var reader = new FileReader();
  var hasBinaryString = typeof reader.readAsBinaryString === 'function';
  reader.onloadend = function (e) {
    var result = e.target.result || '';
    if (hasBinaryString) {
      return callback(result);
    }
    callback(arrayBufferToBinaryString(result));
  };
  if (hasBinaryString) {
    reader.readAsBinaryString(blob);
  } else {
    reader.readAsArrayBuffer(blob);
  }
}
function readAsBinaryString(blob, callback) {
  if (typeof FileReader === 'undefined') {
    // fix for Firefox in a web worker
    // https://bugzilla.mozilla.org/show_bug.cgi?id=901097
    return callback(arrayBufferToBinaryString(
      new FileReaderSync().readAsArrayBuffer(blob)));
  }

  var reader = new FileReader();
  var hasBinaryString = typeof reader.readAsBinaryString === 'function';
  reader.onloadend = function (e) {
    var result = e.target.result || '';
    if (hasBinaryString) {
      return callback(result);
    }
    callback(arrayBufferToBinaryString(result));
  };
  if (hasBinaryString) {
    reader.readAsBinaryString(blob);
  } else {
    reader.readAsArrayBuffer(blob);
  }
}
function readAsBinaryString ( blob , callback ) { if ( typeof FileReader === 'undefined' ) { // fix for Firefox in a web worker // https://bugzilla.mozilla.org/show_bug.cgi?id=901097 return callback ( arrayBufferToBinaryString ( new FileReaderSync ( ) . readAsArrayBuffer ( blob ) ) ) ; } var reader = new FileReader ( ) ; var hasBinaryString = typeof reader . readAsBinaryString === 'function' ; reader . onloadend = function ( e ) { var result = e . target . result || '' ; if ( hasBinaryString ) { return callback ( result ) ; } callback ( arrayBufferToBinaryString ( result ) ) ; } ; if ( hasBinaryString ) { reader . readAsBinaryString ( blob ) ; } else { reader . readAsArrayBuffer ( blob ) ; } }
shim for browsers that don't support it
shim for browsers that don t support it