a
    e0hu                  A   @   sL  d Z ddlmZ ddlZddlZddlZddlZddlZdZdZ	ej
d dkZej
d dkZej
dd dkZerefZefZefZeZeZejZn|efZeefZeejfZeZeZejd	red
ZnFG dd deZ ze!e   W n e"y   ed
ZY n
0 edZ[ dd Z#dd Z$G dd deZ%G dd de%Z&G dd dej'Z(G dd de%Z)G dd deZ*e*e+Z,G dd de(Z-e)dddd e)d!d"d#d$d!e)d%d"d"d&d%e)d'd(d#d)d'e)d*d(d+e)d,d"d#d-d,e)d.d/d/d0d.e)d1d/d/d.d1e)d2d(d#d3d2e)d4d(erd5nd6d7e)d8d(d9e)d:d;d<d=e)d d de)d>d>d?e)d@d@d?e)dAdAd?e)d3d(d#d3d2e)dBd"d#dCdBe)dDd"d"dEdDe&d#d(e&dFdGe&dHdIe&dJdKdLe&dMdNdMe&dOdPdQe&dRdSdTe&dUdVdWe&dXdYdZe&d[d\d]e&d^d_d`e&dadbdce&dddedfe&dgdhdie&djdjdke&dldldke&dmdmdke&dndndoe&dpdqe&drdse&dtdue&dvdwdve&dxdye&dzd{d|e&d}d~de&ddde&ddde&ddde&ddde&ddde&ddde&ddde&ddde&ddde&ddde&ddde&ddde&de+d de&de+d de&de+d e+d e&ddde&ddde&dddg>Z.ejdkrPe.e&ddg7 Z.e.D ]2Z/e0e-e/j1e/ e2e/e&rTe,3e/de/j1  qT[/e.e-_.e-e+d Z4e,3e4d G dd de(Z5e)ddde)ddde)ddde)ddde)ddde)ddde)ddde)ddde)ddde)ddde)d=dde)ddde)ddde)ddde)ddde)ddde)ddde)ddde)ddde)ddde)ddde)ddde)dddgZ6e6D ]Z/e0e5e/j1e/ q[/e6e5_.e,3e5e+d ddҡ G ddԄ de(Z7e)ddde)ddde)dddgZ8e8D ]Z/e0e7e/j1e/ q[/e8e7_.e,3e7e+d ddۡ G dd݄ de(Z9e)ddd߃e)ddd߃e)ddd߃e)ddd߃e)ddd߃e)ddd߃e)ddd߃e)ddd߃e)ddd߃e)ddd߃e)ddd߃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ze+Ze d{durg e_ejr<eejD ]4\ZZeej+dkrej1e+kreje=  q8q[[eje, dS (~  z6Utilities for writing code that runs on Python 2 and 3    )absolute_importNz'Benjamin Peterson <benjamin@python.org>z1.10.0      )r      javaic                   @   s   e Zd Zdd ZdS )Xc                 C   s   dS )Nl         selfr   r   G/var/www/auris/lib/python3.9/site-packages/pkg_resources/_vendor/six.py__len__>   s    z	X.__len__N)__name__
__module____qualname__r   r   r   r   r   r   <   s   r   l    c                 C   s
   || _ dS )z Add documentation to a function.N)__doc__)funcdocr   r   r   _add_docK   s    r   c                 C   s   t |  tj|  S )z7Import module, returning the module after the last dot.)
__import__sysmodulesnamer   r   r   _import_moduleP   s    r   c                   @   s   e Zd Zdd Zdd ZdS )
_LazyDescrc                 C   s
   || _ d S Nr   r
   r   r   r   r   __init__X   s    z_LazyDescr.__init__c                 C   s@   |   }t|| j| zt|j| j W n ty:   Y n0 |S r   )_resolvesetattrr   delattr	__class__AttributeError)r
   objtpresultr   r   r   __get__[   s    z_LazyDescr.__get__N)r   r   r   r   r&   r   r   r   r   r   V   s   r   c                       s.   e Zd Zd fdd	Zdd Zdd Z  ZS )	MovedModuleNc                    s2   t t| | tr(|d u r |}|| _n|| _d S r   )superr'   r   PY3mod)r
   r   oldnewr!   r   r   r   i   s    zMovedModule.__init__c                 C   s
   t | jS r   )r   r*   r	   r   r   r   r   r   s    zMovedModule._resolvec                 C   s"   |   }t||}t| || |S r   )r   getattrr   )r
   attr_modulevaluer   r   r   __getattr__u   s    
zMovedModule.__getattr__)N)r   r   r   r   r   r2   __classcell__r   r   r-   r   r'   g   s   	r'   c                       s(   e Zd Z fddZdd Zg Z  ZS )_LazyModulec                    s   t t| | | jj| _d S r   )r(   r4   r   r!   r   r   r-   r   r   r   ~   s    z_LazyModule.__init__c                 C   s    ddg}|dd | j D 7 }|S )Nr   r   c                 S   s   g | ]
}|j qS r   r   ).0r/   r   r   r   
<listcomp>       z'_LazyModule.__dir__.<locals>.<listcomp>)_moved_attributes)r
   attrsr   r   r   __dir__   s    z_LazyModule.__dir__)r   r   r   r   r:   r8   r3   r   r   r-   r   r4   |   s   r4   c                       s&   e Zd Zd fdd	Zdd Z  ZS )MovedAttributeNc                    sd   t t| | trH|d u r |}|| _|d u r@|d u r<|}n|}|| _n|| _|d u rZ|}|| _d S r   )r(   r;   r   r)   r*   r/   )r
   r   old_modnew_modold_attrnew_attrr-   r   r   r      s    zMovedAttribute.__init__c                 C   s   t | j}t|| jS r   )r   r*   r.   r/   )r
   moduler   r   r   r      s    
zMovedAttribute._resolve)NN)r   r   r   r   r   r3   r   r   r-   r   r;      s   r;   c                   @   sV   e Zd ZdZdd Zdd Zdd Zdd	d
Zdd Zdd Z	dd Z
dd ZeZdS )_SixMetaPathImporterz
    A meta path importer to import six.moves and its submodules.

    This class implements a PEP302 finder and loader. It should be compatible
    with Python 2.5 and all existing versions of Python3
    c                 C   s   || _ i | _d S r   )r   known_modules)r
   six_module_namer   r   r   r      s    z_SixMetaPathImporter.__init__c                 G   s"   |D ]}|| j | jd | < qd S N.rB   r   )r
   r*   	fullnamesfullnamer   r   r   _add_module   s    z _SixMetaPathImporter._add_modulec                 C   s   | j | jd |  S rD   rF   r
   rH   r   r   r   _get_module   s    z _SixMetaPathImporter._get_moduleNc                 C   s   || j v r| S d S r   )rB   )r
   rH   pathr   r   r   find_module   s    
z _SixMetaPathImporter.find_modulec                 C   s0   z| j | W S  ty*   td| Y n0 d S )Nz!This loader does not know module )rB   KeyErrorImportErrorrJ   r   r   r   __get_module   s    z!_SixMetaPathImporter.__get_modulec                 C   sR   zt j| W S  ty   Y n0 | |}t|tr>| }n| |_|t j|< |S r   )r   r   rN    _SixMetaPathImporter__get_module
isinstancer'   r   
__loader__)r
   rH   r*   r   r   r   load_module   s    



z _SixMetaPathImporter.load_modulec                 C   s   t | |dS )z
        Return true, if the named module is a package.

        We need this method to get correct spec objects with
        Python 3.4 (see PEP451)
        __path__)hasattrrQ   rJ   r   r   r   
is_package   s    z_SixMetaPathImporter.is_packagec                 C   s   |  | dS )z;Return None

        Required, if is_package is implementedN)rQ   rJ   r   r   r   get_code   s    
z_SixMetaPathImporter.get_code)N)r   r   r   r   r   rI   rK   rM   rQ   rT   rW   rX   
get_sourcer   r   r   r   rA      s   
	rA   c                   @   s   e Zd ZdZg ZdS )_MovedItemszLazy loading of moved objectsN)r   r   r   r   rU   r   r   r   r   rZ      s   rZ   	cStringIOioStringIOfilter	itertoolsbuiltinsifilterfilterfalseifilterfalseinput__builtin__	raw_inputinternr   mapimapgetcwdosZgetcwdugetcwdbrangexrangereload_module	importlibimpreloadreduce	functoolsshlex_quoteZpipesshlexquoteUserDictcollectionsUserList
UserStringzipizipzip_longestizip_longestconfigparserConfigParsercopyregcopy_regdbm_gnugdbmzdbm.gnu_dummy_threaddummy_threadhttp_cookiejar	cookielibzhttp.cookiejarhttp_cookiesCookiezhttp.cookieshtml_entitieshtmlentitydefszhtml.entitieshtml_parser
HTMLParserzhtml.parserhttp_clienthttplibzhttp.clientemail_mime_multipartzemail.MIMEMultipartzemail.mime.multipartemail_mime_nonmultipartzemail.MIMENonMultipartzemail.mime.nonmultipartemail_mime_textzemail.MIMETextzemail.mime.textemail_mime_basezemail.MIMEBasezemail.mime.baseBaseHTTPServerzhttp.serverCGIHTTPServerSimpleHTTPServercPicklepicklequeueQueuereprlibreprsocketserverSocketServer_threadthreadtkinterTkintertkinter_dialogDialogztkinter.dialogtkinter_filedialog
FileDialogztkinter.filedialogtkinter_scrolledtextScrolledTextztkinter.scrolledtexttkinter_simpledialogSimpleDialogztkinter.simpledialogtkinter_tixTixztkinter.tixtkinter_ttkttkztkinter.ttktkinter_constantsTkconstantsztkinter.constantstkinter_dndTkdndztkinter.dndtkinter_colorchoosertkColorChooserztkinter.colorchoosertkinter_commondialogtkCommonDialogztkinter.commondialogtkinter_tkfiledialogtkFileDialogtkinter_fonttkFontztkinter.fonttkinter_messageboxtkMessageBoxztkinter.messageboxtkinter_tksimpledialogtkSimpleDialogurllib_parsez.moves.urllib_parsezurllib.parseurllib_errorz.moves.urllib_errorzurllib.errorurllibz.moves.urlliburllib_robotparserrobotparserzurllib.robotparserxmlrpc_client	xmlrpclibzxmlrpc.clientxmlrpc_serverSimpleXMLRPCServerzxmlrpc.serverwin32winreg_winregzmoves.z.movesmovesc                   @   s   e Zd ZdZdS )Module_six_moves_urllib_parsez7Lazy loading of moved objects in six.moves.urllib_parseNr   r   r   r   r   r   r   r   r   @  s   r   ParseResulturlparseSplitResultparse_qs	parse_qsl	urldefragurljoinurlsplit
urlunparse
urlunsplit
quote_plusunquoteunquote_plus	urlencode
splitquerysplittag	splituseruses_fragmentuses_netlocuses_params
uses_queryuses_relativemoves.urllib_parsezmoves.urllib.parsec                   @   s   e Zd ZdZdS )Module_six_moves_urllib_errorz7Lazy loading of moved objects in six.moves.urllib_errorNr   r   r   r   r   r   h  s   r   URLErrorurllib2	HTTPErrorContentTooShortErrorz.moves.urllib.errormoves.urllib_errorzmoves.urllib.errorc                   @   s   e Zd ZdZdS )Module_six_moves_urllib_requestz9Lazy loading of moved objects in six.moves.urllib_requestNr   r   r   r   r   r   |  s   r   urlopenzurllib.requestinstall_openerbuild_openerpathname2urlurl2pathname
getproxiesRequestOpenerDirectorHTTPDefaultErrorHandlerHTTPRedirectHandlerHTTPCookieProcessorProxyHandlerBaseHandlerHTTPPasswordMgrHTTPPasswordMgrWithDefaultRealmAbstractBasicAuthHandlerHTTPBasicAuthHandlerProxyBasicAuthHandlerAbstractDigestAuthHandlerHTTPDigestAuthHandlerProxyDigestAuthHandlerHTTPHandlerHTTPSHandlerFileHandler
FTPHandlerCacheFTPHandlerUnknownHandlerHTTPErrorProcessorurlretrieve
urlcleanup	URLopenerFancyURLopenerproxy_bypassz.moves.urllib.requestmoves.urllib_requestzmoves.urllib.requestc                   @   s   e Zd ZdZdS ) Module_six_moves_urllib_responsez:Lazy loading of moved objects in six.moves.urllib_responseNr   r   r   r   r   r    s   r  addbasezurllib.responseaddclosehookaddinfo
addinfourlz.moves.urllib.responsemoves.urllib_responsezmoves.urllib.responsec                   @   s   e Zd ZdZdS )#Module_six_moves_urllib_robotparserz=Lazy loading of moved objects in six.moves.urllib_robotparserNr   r   r   r   r   r    s   r  RobotFileParserz.moves.urllib.robotparsermoves.urllib_robotparserzmoves.urllib.robotparserc                   @   sN   e Zd ZdZg ZedZedZedZ	edZ
edZdd Zd	S )
Module_six_moves_urllibzICreate a six.moves.urllib namespace that resembles the Python 3 namespacer   r   r  r  r  c                 C   s   g dS )N)parseerrorrequestresponser   r   r	   r   r   r   r:     s    zModule_six_moves_urllib.__dir__N)r   r   r   r   rU   	_importerrK   r  r  r  r  r   r:   r   r   r   r   r    s   




r  zmoves.urllibc                 C   s   t t| j|  dS )zAdd an item to six.moves.N)r   rZ   r   )mover   r   r   add_move  s    r   c                 C   sT   zt t|  W n@ tyN   ztj| = W n  tyH   td| f Y n0 Y n0 dS )zRemove item from six.moves.zno such move, %rN)r    rZ   r"   r   __dict__rN   r   r   r   r   remove_move  s    r"  __func____self____closure____code____defaults____globals__im_funcZim_selfZfunc_closure	func_codeZfunc_defaultsZfunc_globalsc                 C   s   |   S r   )next)itr   r   r   advance_iterator  s    r-  c                 C   s   t dd t| jD S )Nc                 s   s   | ]}d |j v V  qdS )__call__N)r!  )r5   klassr   r   r   	<genexpr>  r7   zcallable.<locals>.<genexpr>)anytype__mro__)r#   r   r   r   callable  s    r4  c                 C   s   | S r   r   unboundr   r   r   get_unbound_function  s    r7  c                 C   s   | S r   r   r   clsr   r   r   create_unbound_method  s    r:  c                 C   s   | j S r   )r)  r5  r   r   r   r7  "  s    c                 C   s   t | ||jS r   )types
MethodTyper!   )r   r#   r   r   r   create_bound_method%  s    r=  c                 C   s   t | d |S r   )r;  r<  r8  r   r   r   r:  (  s    c                   @   s   e Zd Zdd ZdS )Iteratorc                 C   s   t | | S r   )r2  __next__r	   r   r   r   r+  -  s    zIterator.nextN)r   r   r   r+  r   r   r   r   r>  +  s   r>  z3Get the function out of a possibly unbound functionc                 K   s   t | jf i |S r   )iterkeysdkwr   r   r   iterkeys>  s    rE  c                 K   s   t | jf i |S r   )r@  valuesrB  r   r   r   
itervaluesA  s    rG  c                 K   s   t | jf i |S r   )r@  itemsrB  r   r   r   	iteritemsD  s    rI  c                 K   s   t | jf i |S r   )r@  listsrB  r   r   r   	iterlistsG  s    rK  rA  rF  rH  c                 K   s   | j f i |S r   )rE  rB  r   r   r   rE  P  s    c                 K   s   | j f i |S r   )rG  rB  r   r   r   rG  S  s    c                 K   s   | j f i |S r   )rI  rB  r   r   r   rI  V  s    c                 K   s   | j f i |S r   )rK  rB  r   r   r   rK  Y  s    viewkeys
viewvalues	viewitemsz1Return an iterator over the keys of a dictionary.z3Return an iterator over the values of a dictionary.z?Return an iterator over the (key, value) pairs of a dictionary.zBReturn an iterator over the (key, [values]) pairs of a dictionary.c                 C   s
   |  dS )Nzlatin-1)encodesr   r   r   bk  s    rR  c                 C   s   | S r   r   rP  r   r   r   un  s    rS  z>BassertCountEqual   ZassertRaisesRegexpZassertRegexpMatchesassertRaisesRegexassertRegexc                 C   s   | S r   r   rP  r   r   r   rR    s    c                 C   s   t | dddS )Nz\\z\\\\unicode_escape)unicodereplacerP  r   r   r   rS    s    c                 C   s   t | d S )Nr   ord)bsr   r   r   byte2int  s    r^  c                 C   s   t | | S r   r[  )bufir   r   r   
indexbytes  s    ra  ZassertItemsEqualzByte literalzText literalc                 O   s   t | t|i |S r   )r.   _assertCountEqualr
   argskwargsr   r   r   rT    s    c                 O   s   t | t|i |S r   )r.   _assertRaisesRegexrc  r   r   r   rV    s    c                 O   s   t | t|i |S r   )r.   _assertRegexrc  r   r   r   rW    s    execc                 C   s*   |d u r|  }|j |ur"|||d S r   )__traceback__with_traceback)r$   r1   tbr   r   r   reraise  s
    

rl  c                 C   sB   |du r*t d}|j}|du r&|j}~n|du r6|}td dS )zExecute code in a namespace.NrU  zexec _code_ in _globs_, _locs_)r   	_getframe	f_globalsf_localsrh  )Z_code_Z_globs_Z_locs_framer   r   r   exec_  s    
rq  z9def reraise(tp, value, tb=None):
    raise tp, value, tb
)r   r   zrdef raise_from(value, from_value):
    if from_value is None:
        raise value
    raise value from from_value
zCdef raise_from(value, from_value):
    raise value from from_value
c                 C   s   | d S r   r   )r1   
from_valuer   r   r   
raise_from  s    rs  printc            
         s.  | dtj  du rdS  fdd}d}| dd}|dur`t|trNd}nt|ts`td| d	d}|durt|trd}nt|tstd
|rtd|s| D ]}t|trd} qq|rtd}td}nd}d}|du r|}|du r|}t| D ] \}	}|	r|| || q || dS )z4The new-style print function for Python 2.4 and 2.5.fileNc                    sd   t | tst| } t  trVt | trV jd urVt dd }|d u rHd}|  j|}  |  d S )Nerrorsstrict)	rR   
basestringstrru  rY  encodingr.   rO  write)datarv  fpr   r   r{    s    

zprint_.<locals>.writeFsepTzsep must be None or a stringendzend must be None or a stringz$invalid keyword arguments to print()
 )popr   stdoutrR   rY  ry  	TypeError	enumerate)
rd  re  r{  Zwant_unicoder  r  argnewlinespacer`  r   r}  r   print_  sL    





r  )r   r   c                  O   s@   | dtj}|dd}t| i | |r<|d ur<|  d S )Nru  flushF)getr   r  r  _printr  )rd  re  r~  r  r   r   r   r    s
    zReraise an exception.c                    s    fdd}|S )Nc                    s   t  | } | _| S r   )rt   wraps__wrapped__)fassignedupdatedwrappedr   r   wrapper  s    zwraps.<locals>.wrapperr   )r  r  r  r  r   r  r   r    s    r  c                    s&   G  fddd}t |ddi S )z%Create a base class with a metaclass.c                       s   e Zd Z fddZdS )z!with_metaclass.<locals>.metaclassc                    s   | |S r   r   )r9  r   
this_basesrC  basesmetar   r   __new__'  s    z)with_metaclass.<locals>.metaclass.__new__N)r   r   r   r  r   r  r   r   	metaclass%  s   r  temporary_classr   )r2  r  )r  r  r  r   r  r   with_metaclass   s    r  c                    s    fdd}|S )z6Class decorator for creating a class with a metaclass.c                    sh   | j  }|d}|d ur@t|tr,|g}|D ]}|| q0|dd  |dd   | j| j|S )N	__slots__r!  __weakref__)r!  copyr  rR   ry  r  r   	__bases__)r9  	orig_varsslots	slots_varr  r   r   r  .  s    


zadd_metaclass.<locals>.wrapperr   )r  r  r   r  r   add_metaclass,  s    r  c                 C   s2   t r.d| jvrtd| j | j| _dd | _| S )a   
    A decorator that defines __unicode__ and __str__ methods under Python 2.
    Under Python 3 it does nothing.

    To support Python 2 and 3 with a single code base, define a __str__ method
    returning text and apply this decorator to the class.
    __str__zY@python_2_unicode_compatible cannot be applied to %s because it doesn't define __str__().c                 S   s   |   dS )Nzutf-8)__unicode__rO  r	   r   r   r   <lambda>J  r7   z-python_2_unicode_compatible.<locals>.<lambda>)PY2r!  
ValueErrorr   r  r  )r/  r   r   r   python_2_unicode_compatible<  s    

r  __spec__)N)NN)r   
__future__r   rt   r_   operatorr   r;  
__author____version__version_infor  r)   PY34ry  string_typesintinteger_typesr2  class_types	text_typebytesbinary_typemaxsizeMAXSIZErx  longZ	ClassTyperY  platform
startswithobjectr   lenOverflowErrorr   r   r   r'   
ModuleTyper4   r;   rA   r   r  rZ   r8   r/   r   r   rR   rI   r   r   _urllib_parse_moved_attributesr   _urllib_error_moved_attributesr    _urllib_request_moved_attributesr  !_urllib_response_moved_attributesr  $_urllib_robotparser_moved_attributesr  r   r"  
_meth_func
_meth_self_func_closure
_func_code_func_defaults_func_globalsr+  r-  	NameErrorr4  r7  r<  r=  r:  r>  
attrgetterget_method_functionget_method_selfget_function_closureget_function_codeget_function_defaultsget_function_globalsrE  rG  rI  rK  methodcallerrL  rM  rN  rR  rS  chrunichrstructStructpackint2byte
itemgetterr^  getitemra  r@  	iterbytesr\   r]   BytesIOrb  rf  rg  partialri   r\  rT  rV  rW  r.   r`   rq  rl  rs  r  r  WRAPPER_ASSIGNMENTSWRAPPER_UPDATESr  r  r  r  rU   __package__globalsr  r  submodule_search_locations	meta_pathr  r`  importerappendr   r   r   r   <module>   s  

>



































D


























































#









5
