'use strict'
!(function(require, directRequire) {
  function a(a, b) {
    return a.endsWith(b) ? a : a + b
  }
  function b(a, b) {
    return a.startsWith(b) ? a : b + a
  }
  let c = null,
    d = Object.create(null)
  module.exports = {
    isFileIgnored(e, g) {
      if (c !== g) (c = g), (d = Object.create(null))
      else if (void 0 !== d[e]) return d[e]
      const h = e.replace(/\\/g, '/').toLowerCase()
      if (!h) return !1
      const i = h.slice(h.lastIndexOf('/') + 1)
      let j = !1
      for (const c of g) {
        if (!c) continue
        const d = c.value.toLowerCase()
        if (
          ('prefix' === c.type && (j = i.startsWith(d)),
          'suffix' === c.type && (j = i.endsWith(d)),
          'folder' === c.type && (j = b(h, '/').startsWith(a(b(d, '/'), '/'))),
          'file' === c.type && (j = b(h, '/') === b(d, '/')),
          j)
        )
          break
      }
      return (d[e] = j), j
    }
  }
})(require('lazyload'), require)
