



'''simple docstring'''



from typing import List

from .keymap import KEYMAP, get_character



def   __lowerCAmelCase					(							lowerCamelCase   :						str					):






	'''simple docstring'''




	def decorator(lowerCamelCase   :						List[Any]					):
		__lowerCAmelCase												=  getattr(lowerCamelCase				,		"handle_key"				,		[]					)
		handle += [key]
		setattr(lowerCamelCase				,		"handle_key"				,		lowerCamelCase					)
		return func

	return decorator



def   __lowerCAmelCase					(							*lowerCamelCase   :						List[str]					):






	'''simple docstring'''




	def decorator(lowerCamelCase   :						List[Any]					):
		__lowerCAmelCase												=  getattr(lowerCamelCase				,		"handle_key"				,		[]					)
		handle += keys
		setattr(lowerCamelCase				,		"handle_key"				,		lowerCamelCase					)
		return func

	return decorator






class 					UpperCAmelCase__	(		UpperCamelCase__ ):



					def __new__(    cls			,				UpperCamelCase			,				UpperCamelCase			,				UpperCamelCase     )     ->			List[str]:
						__lowerCAmelCase												=  super().__new__(cls			,				UpperCamelCase			,				UpperCamelCase			,				UpperCamelCase     )
						if not hasattr(UpperCamelCase			,				"key_handler"     ):
							setattr(UpperCamelCase			,				"key_handler"			,				{}     )
						setattr(UpperCamelCase			,				"handle_input"			,				KeyHandler.handle_input     )

						for value in attrs.values():
							__lowerCAmelCase												=  getattr(UpperCamelCase			,				"handle_key"			,				[]     )
							for key in handled_keys:
								__lowerCAmelCase												=  value
						return new_cls



					@staticmethod
					def        UpperCAmelCase_ (    cls     )     ->			Dict:
						__lowerCAmelCase												=  get_character()
						if char != KEYMAP["undefined"]:
							__lowerCAmelCase												=  ord(UpperCamelCase     )
						__lowerCAmelCase												=  cls.key_handler.get(UpperCamelCase     )
						if handler:
							__lowerCAmelCase												=  char
							return handler(cls     )
						else:
							return None



def   __lowerCAmelCase					(							cls   :						List[str]					):






	'''simple docstring'''




	return KeyHandler(cls.__name__				,		cls.__bases__				,		cls.__dict__.copy()					)




'''simple docstring'''



import requests
from bsa import BeautifulSoup



def   __lowerCAmelCase					(							lowerCamelCase   :						str = "https://www.worldometers.info/coronavirus"					):






	'''simple docstring'''




	__lowerCAmelCase												=  BeautifulSoup(requests.get(lowerCamelCase					).text				,		"html.parser"					)
	__lowerCAmelCase												=  soup.findAll("h1"					)
	__lowerCAmelCase												=  soup.findAll("div"				,		{"class": "maincounter-number"}					)
	keys += soup.findAll("span"				,		{"class": "panel-title"}					)
	values += soup.findAll("div"				,		{"class": "number-table-main"}					)
	return {key.text.strip(): value.text.strip() for key, value in zip(lowerCamelCase				,		lowerCamelCase					)}


if __name__ == "__main__":
	print('''\033[1m''' + '''COVID-19 Status of the World''' + '''\033[0m\n''')
	for key, value in world_covidaa_stats().items():
		print(f'{key}\n{value}\n')