a
    hs                     @   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)Zwindows_enable_vt_modec                  O   s   t j| i |S N)ctypesZWINFUNCTYPE)argskwargs r   J/mnt/pikpak/tmp/myenv/lib/python3.9/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   | S r   r   )r   r   r   r   <lambda>M       r   c                   C   s   t jS r   )
subprocessDEVNULLr   r   r   r   r   X   r   c                 C   s   | S r   r   )Z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.cookiesZhttp.server	itertoolsosshlexshutilsocketstructr   tokenizeurllib.errorurlliburllib.parseurllib.requestxml.etree.ElementTreeetreeElementTreeZasynciorer   Zcompat_asyncio_runr   Zcompat_Patternr   Zcompat_Match r   r   Zcompat_utilsr   Zdependenciesr
   Zcompat_brotlir   Zcompat_websocketsZdependencies.Cryptodomer   Zcompat_pycrypto_AESZnetworking.exceptionsr   Zcompat_HTTPError__name__r   environr   	b64decodeZcompat_base64_b64decodestrZcompat_basestringcasefoldZcompat_casefoldchrZ
compat_chrabcZcompat_collections_abc	cookiejarZcompat_cookiejarZcompat_http_cookiejarCookieZcompat_cookiejar_CookieZcompat_http_cookiejar_CookiecookiesZcompat_cookiesZcompat_http_cookiesSimpleCookieZcompat_cookies_SimpleCookieZ compat_http_cookies_SimpleCookieElementZcompat_etree_ElementZ$compat_xml_etree_ElementTree_Elementregister_namespaceZcompat_etree_register_namespaceZ#compat_xml_etree_register_namespacefilterZcompat_filterget_terminal_sizeZcompat_get_terminal_sizegetenvZcompat_getenvZcompat_getpassZcompat_getpass_getpassentitiesZcompat_html_entitieshtml5Zcompat_html_entities_html5Z!compat_html_parser_HTMLParseErrorparser
HTMLParserZcompat_HTMLParserZcompat_html_parser_HTMLParserclientZcompat_http_clientserverZcompat_http_serverinputZcompat_inputintZcompat_integer_typescountZcompat_itertools_countZcompat_kwargsmapZ
compat_mapfloatcomplexZcompat_numeric_typesZcompat_os_path_expanduserpathrealpathZcompat_os_path_realpathprintZcompat_printsplitZcompat_shlex_splitcreate_connectionZcompat_socket_create_connectionStructZcompat_StructpackZcompat_struct_packunpackZcompat_struct_unpackZcompat_subprocess_get_DEVNULLZcompat_tokenize_tokenizeerrorZcompat_urllib_errorZcompat_urllib_HTTPErrorparseZcompat_urllib_parseparse_qsZcompat_urllib_parse_parse_qsquoteZcompat_urllib_parse_quote
quote_plusZcompat_urllib_parse_quote_plusunquote_plusZ compat_urllib_parse_unquote_plusunquote_to_bytesZ$compat_urllib_parse_unquote_to_bytes
urlunparseZcompat_urllib_parse_urlunparserequestZcompat_urllib_requestDataHandlerZ!compat_urllib_request_DataHandlerresponseZcompat_urllib_responseurlretrieveZcompat_urlretrieveZ!compat_urllib_request_urlretrieve
ParseErrorZcompat_xml_parse_errorZ'compat_xml_etree_ElementTree_ParseErrorZcompat_xpathzipZ
compat_zipZworkaround_optparse_bug9161Z
compat_strZcompat_b64decodeZcompat_urlparseZcompat_parse_qsunquoteZcompat_urllib_parse_unquote	urlencodeZcompat_urllib_parse_urlencodeurlparseZcompat_urllib_parse_urlparselegacyr   r   r   r   <module>   s   






