function ElementUtils.getElementByKey(q,x)if q==nil or typeof(q)=="\098\111\111\108\101\097\110"then return nil end if Type.of(q)==Type.Element then if x==ElementUtils.UseParentKey then return q end return nil end if typeof(q)=="\116\097\098\108\101"then return q[x]end error("\073\110\118\097\108\105\100 \101\108\101\109\101\110\116\115")end return ElementUtils

function ElementUtils.getElementByKey(elements, hostKey)
	if elements == nil or typeof(elements) == "boolean" then
		return nil
	end

	if Type.of(elements) == Type.Element then
		if hostKey == ElementUtils.UseParentKey then
			return elements
		end

		return nil
	end

	if typeof(elements) == "table" then
		return elements[hostKey]
	end

	error("Invalid elements")
end

return ElementUtils
