



'''simple docstring'''






import enum
import shutil
import sys


UpperCamelCase__:     Any										=    shutil.get_terminal_size()

UpperCamelCase__:     Optional[Any]										=    {"UP": "A", "DOWN": "B", "RIGHT": "C", "LEFT": "D"}

class        SCREAMING_SNAKE_CASE(							enum.Enum    ):







	"""simple docstring"""






	lowerCamelCase__    				= 0
	lowerCamelCase__    				= 1


def 				snake_case_  (      _lowerCAmelCase						:		Optional[int]     ,   _lowerCAmelCase						:		Tuple=""						)   ->     List[str]:

							'''simple docstring'''





							sys.stdout.write(str(_lowerCAmelCase						) + end						)
							sys.stdout.flush()


def 				snake_case_  (      _lowerCAmelCase						:		Dict     ,   _lowerCAmelCase						:		str     ,   _lowerCAmelCase						:		Union[str, Any]=""						)   ->     List[str]:

							'''simple docstring'''





							forceWrite(f"""\u001b[{color}m{content}\u001b[0m"""     ,   _lowerCAmelCase						)


def 				snake_case_  (      )   ->     int:

							'''simple docstring'''





							forceWrite('''\r'''						)


def 				snake_case_  (      _lowerCAmelCase						:		int     ,   _lowerCAmelCase						:		str						)   ->     Dict:

							'''simple docstring'''





							forceWrite(f"""\033[{num_lines}{CURSOR_TO_CHAR[direction.upper()]}"""						)


def 				snake_case_  (      )   ->     Optional[int]:

							'''simple docstring'''





							forceWrite(''' ''' * TERMINAL_WIDTH						)
							reset_cursor()




def 				snake_case_  (      )   ->     List[Any]:

							'''simple docstring'''





							reset_cursor()
							forceWrite('''-''' * TERMINAL_WIDTH						)










'''simple docstring'''






from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available


UpperCamelCase__:     Union[str, Any]										=    {
    "configuration_lilt": ["LILT_PRETRAINED_CONFIG_ARCHIVE_MAP", "LiltConfig"],
}

try:
						if not is_torch_available():
												raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
						pass
else:
						UpperCamelCase__:     List[str]										=    [
						    "LILT_PRETRAINED_MODEL_ARCHIVE_LIST",
						    "LiltForQuestionAnswering",
						    "LiltForSequenceClassification",
						    "LiltForTokenClassification",
						    "LiltModel",
						    "LiltPreTrainedModel",
						]

if TYPE_CHECKING:
						from .configuration_lilt import LILT_PRETRAINED_CONFIG_ARCHIVE_MAP, LiltConfig

						try:
												if not is_torch_available():
																		raise OptionalDependencyNotAvailable()
						except OptionalDependencyNotAvailable:
												pass
						else:
												from .modeling_lilt import (
												    LILT_PRETRAINED_MODEL_ARCHIVE_LIST,
												    LiltForQuestionAnswering,
												    LiltForSequenceClassification,
												    LiltForTokenClassification,
												    LiltModel,
												    LiltPreTrainedModel,
												)

else:
						import sys

						UpperCamelCase__:     Optional[Any]										=    _LazyModule(__name__, globals()["__file__"], _import_structure, module_spec=__spec__)





