






import enum
import shutil
import sys


_SCREAMING_SNAKE_CASE  ,	_SCREAMING_SNAKE_CASE   =  shutil.get_terminal_size()

_SCREAMING_SNAKE_CASE   =  {"UP": "A", "DOWN": "B", "RIGHT": "C", "LEFT": "D"}






class 					SCREAMING_SNAKE_CASE_  (       enum.Enum ):
       """simple docstring"""


       __lowerCAmelCase    :		Optional[Any]					=0
       __lowerCAmelCase    :		List[Any]					=1





def        _snake_case   (_snake_case				:       Tuple      ,    _snake_case				:       Union[str, Any]="")					->	Any:
   sys.stdout.write(str(_snake_case) + end)
   sys.stdout.flush()





def        _snake_case   (_snake_case				:       str      ,    _snake_case				:       int      ,    _snake_case				:       List[str]="")					->	List[Any]:
   forceWrite(f'''\u001b[{color}m{content}\u001b[0m'''      ,    _snake_case)





def        _snake_case   ()					->	List[Any]:
   forceWrite('\r')





def        _snake_case   (_snake_case				:       int      ,    _snake_case				:       str)					->	Optional[int]:
   forceWrite(f'''\033[{num_lines}{CURSOR_TO_CHAR[direction.upper()]}''')





def        _snake_case   ()					->	Union[str, Any]:
   forceWrite(' ' * TERMINAL_WIDTH)
   reset_cursor()





def        _snake_case   ()					->	Union[str, Any]:
   reset_cursor()
   forceWrite('-' * TERMINAL_WIDTH)










from dataclasses import dataclass
from enum import Enum
from typing import List, Optional, Union

import numpy as np
import PIL
from PIL import Image

from ...utils import BaseOutput, is_torch_available, is_transformers_available






@dataclass
class 					SCREAMING_SNAKE_CASE_  (       _a ):
       """simple docstring"""


       __lowerCAmelCase    :		Union[List[PIL.Image.Image], np.ndarray]
       __lowerCAmelCase    :		Optional[List[bool]]


if is_transformers_available() and is_torch_available():
    from .pipeline_semantic_stable_diffusion import SemanticStableDiffusionPipeline


