-- LibStub: Library stub
local MAJOR, MINOR = "LibStub", 1
local LibStub = _G.LibStub
if not LibStub or LibStub.minor < MINOR then
    LibStub = {major = MAJOR, minor = MINOR, versions = {}}
    function LibStub:NewLibrary(name, minor)
        local lib = self.versions[name]
        if lib and lib.minor >= minor then return nil end
        lib = lib or {}
        lib.minor = minor
        self.versions[name] = lib
        return lib
    end
    _G.LibStub = LibStub
end
