function loaderFactory(fetch, fs) {
    return options => ({
      options: options || {},
      sanitize: sanitize,
      load: load$1,
      fileAccess: false,
      file: fileLoader(),
      http: httpLoader(fetch)
    });
  }
Factory for a loader constructor that provides methods for requesting
files from either the network or disk, and for sanitizing request URIs.
@param {function} fetch - The Fetch API for HTTP network requests.
  If null or undefined, HTTP loading will be disabled.
@param {object} fs - The file system interface for file loading.
  If null or undefined, local file loading will be disabled.
@return {function} A loader constructor with the following signature:
  param {object} [options] - Optional default loading options to use.
  return {object} - A new loader instance.