def METHOD_NAME(text: str) -> dict[str, str]:
    result: dict[str, str] = {}
    current_multiline_key: str | None = None
    multiline_depth = 0
    for line in text.split('\n'):
        line = line.split('#', 1)[0].strip()
        if not line:
            continue
        if multiline_depth:
            if line == '<<':
                multiline_depth -= 1
            elif line.endswith('<<'):
                multiline_depth += 1
            if multiline_depth and current_multiline_key:
                result[current_multiline_key] += line + '\n'
        else:
            key, val = line.split(':', 1)
            key = key.strip()
            val = val.strip()
            if val == '<<':
                current_multiline_key = key.lower()
                multiline_depth = 1
                result[key.lower()] = ''
            else:
                result[key.lower()] = val
    return result