const req = webpackJsonp.push([[], {__extra_id__: (module, exports, req) => module.exports = req}, [["__extra_id__"]]]);
delete req.m.__extra_id__;
delete req.c.__extra_id__;
const find = (filter) => {
    for (const i in req.c) {
        if (req.c.hasOwnProperty(i)) {
            const m = req.c[i].exports;
            if (m && m.__esModule && m.default && filter(m.default)) return m.default;
            if (m && filter(m))	return m;
        }
    }
    // console.warn("Cannot find loaded module in cache");
    return null;
};

const findAll = (filter) => {
    const modules = [];
    for (const i in req.c) {
        if (req.c.hasOwnProperty(i)) {
            const m = req.c[i].exports;
            if (m && m.__esModule && m.default && filter(m.default)) modules.push(m.default);
            else if (m && filter(m)) modules.push(m);
        }
    }
    return modules;
};

const findByProps = (...propNames) => find(module => propNames.every(prop => module[prop] !== undefined));
const findByPrototypes = (...protoNames) => find(module => module.prototype && protoNames.every(protoProp => module.prototype[protoProp] !== undefined));
const findByDisplayName = (displayName) => find(module => module.displayName === displayName);

let mod =  {find, findAll, findByProps, findByPrototypes, findByDisplayName};
export default mod

window.Lightcord.BetterDiscord.WebpackModules = mod