o
    is                     @   s  d Z ddlZddlZddlZddlZddlZddlZddlZ	ddl
Z	ddlZ	ddlZ	ddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlm  mZ ddlZddlZddlmZ ddlm Z! ddlm"Z# ddl$m%Z%m&Z& ddl'm(Z( d	d
l)m*Z+ d	dl)m,Z- d	dl.m/Z0 d	dl1m2Z3 e(e4dd dd Z5ej6fddZ7ej8Z9e:Z;e:j<Z=e>Z?ej@ZAe	jB ZCZDe	jBjE ZFZGe	jH ZIZJe	jHjK ZLZMejN ZOZPejQ ZRZSeTZUejVZWejXZYej ZZZ[ej\Z]ej\j^Z_e&Z`ejajb ZcZde	jeZfe	jgZheiZjekfZlejmZndd ZoepZqekeresfZte%ZuejvjwZxeyZzej{Z|ej}Z~ejZejZejZdd ZejZejZe3ZejZejjZejjZejjZejjZejjZejjZejZejjZejZejj ZZej ZZdd ZeZdd Ze:Zej8ZejZejjZejjZejjZejjZg ZdS )z Do not use!     N)run)Pattern)match   )compat_expandusercompat_HTMLParseError)passthrough_module   )brotli)
websockets)AES)	HTTPErrorz...utils)windows_enable_vt_modec                  O   s   t j| i |S N)ctypesWINFUNCTYPE)argskwargs r   I/home/ubuntu/.local/lib/python3.10/site-packages/yt_dlp/compat/_legacy.pycompat_ctypes_WINFUNCTYPE-   s   r   c                 C   s   ||| < d S r   r   )keyvalueenvr   r   r   compat_setenv1   s   r   c                 C      | S r   r   )r   r   r   r   <lambda>M       r   c                   C   s   t jS r   )
subprocessDEVNULLr   r   r   r   r   X   s    c                 C   r   r   r   )xpathr   r   r   r   h   r   c                   C   s   d S r   r   r   r   r   r   r   j   r   )__doc__base64collectionsr   getpasshtml.entitieshtmlhtml.parserhttp.clienthttphttp.cookiejarhttp.cookieshttp.server	itertoolsosshlexshutilsocketstructr   tokenizeurllib.errorurlliburllib.parseurllib.requestxml.etree.ElementTreeetreeElementTreeasynciorer   compat_asyncio_runr   compat_Patternr   compat_Match r   r   compat_utilsr   dependenciesr
   compat_brotlir   compat_websocketsdependencies.Cryptodomer   compat_pycrypto_AESnetworking.exceptionsr   compat_HTTPError__name__r   environr   	b64decodecompat_base64_b64decodestrcompat_basestringcasefoldcompat_casefoldchr
compat_chrabccompat_collections_abc	cookiejarcompat_cookiejarcompat_http_cookiejarCookiecompat_cookiejar_Cookiecompat_http_cookiejar_Cookiecookiescompat_cookiescompat_http_cookiesSimpleCookiecompat_cookies_SimpleCookie compat_http_cookies_SimpleCookieElementcompat_etree_Element$compat_xml_etree_ElementTree_Elementregister_namespacecompat_etree_register_namespace#compat_xml_etree_register_namespacefiltercompat_filterget_terminal_sizecompat_get_terminal_sizegetenvcompat_getenvcompat_getpasscompat_getpass_getpassentitiescompat_html_entitieshtml5compat_html_entities_html5!compat_html_parser_HTMLParseErrorparser
HTMLParsercompat_HTMLParsercompat_html_parser_HTMLParserclientcompat_http_clientservercompat_http_serverinputcompat_inputintcompat_integer_typescountcompat_itertools_countcompat_kwargsmap
compat_mapfloatcomplexcompat_numeric_typescompat_os_path_expanduserpathrealpathcompat_os_path_realpathprintcompat_printsplitcompat_shlex_splitcreate_connectioncompat_socket_create_connectionStructcompat_Structpackcompat_struct_packunpackcompat_struct_unpackcompat_subprocess_get_DEVNULLcompat_tokenize_tokenizeerrorcompat_urllib_errorcompat_urllib_HTTPErrorparsecompat_urllib_parseparse_qscompat_urllib_parse_parse_qsquotecompat_urllib_parse_quote
quote_pluscompat_urllib_parse_quote_plusunquote_plus compat_urllib_parse_unquote_plusunquote_to_bytes$compat_urllib_parse_unquote_to_bytes
urlunparsecompat_urllib_parse_urlunparserequestcompat_urllib_requestDataHandler!compat_urllib_request_DataHandlerresponsecompat_urllib_responseurlretrievecompat_urlretrieve!compat_urllib_request_urlretrieve
ParseErrorcompat_xml_parse_error'compat_xml_etree_ElementTree_ParseErrorcompat_xpathzip
compat_zipworkaround_optparse_bug9161
compat_strcompat_b64decodecompat_urlparsecompat_parse_qsunquotecompat_urllib_parse_unquote	urlencodecompat_urllib_parse_urlencodeurlparsecompat_urllib_parse_urlparselegacyr   r   r   r   <module>   s    






