text: // Edge 15.x does not fire 'progress' events on uploads.
  // See https://github.com/transloadit/uppy/issues/945
  // And https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/12224510/
  module.exports = function supportsUploadProgress (userAgent) {
    // Allow passing in userAgent for tests
    if (userAgent == null) {
      userAgent = typeof navigator !== 'undefined' ? navigator.userAgent : null
    }
    // Assume it works because basically everything supports progress events.
    if (!userAgent) return true
  
    const m = /Edge\/(\d+\.\d+)/.exec(userAgent)
    if (!m) return true
  
    const edgeVersion = m[1]
    let [major, minor] = edgeVersion.split('.')
    major = parseInt(major, 10)
    minor = parseInt(minor, 10)
  
    // Worked before:
    // Edge 40.15063.0.0
    // Microsoft EdgeHTML 15.15063
    if (major < 15 || (major === 15 && minor < 15063)) {
      return true
    }
  
    // Fixed in:
    // Microsoft EdgeHTML 18.18218
    if (major > 18 || (major === 18 && minor >= 18218)) {
      return true
    }
  
    // other versions don't work.
    return false
  }
  