'use strict'
!(function(require, directRequire) {
  const a = require('./162bf2ee28b76d3b3d95b685cede4146.js'),
    b = require('path'),
    { whiteFileExtName: c } = require('./6242f55dbdfe53c2f07b7a51568311f2.js')
  module.exports = {
    bufToUTF8: function(a) {
      let b = a.toString()
      return 0 === Buffer.compare(new Buffer(b, 'utf8'), a) ? b : void 0
    },
    calculateTotalSize: async function(d) {
      let e = await a(d),
        f = e.getAllFileInfo(),
        g = 0
      for (let a in f) {
        let e = b.extname(a)
        if (c[e]) {
          if (
            (!d.attr ||
              !d.attr.platform ||
              !d.attr.extInfo ||
              !d.attr.extInfo.appid) &&
            'ext.json' == a
          )
            continue
          let b = f[a]
          g += b.size
        }
      }
      return g
    }
  }
})(require('lazyload'), require)
