Ë
    Èúàe#Ž ã                   ó¤  — 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Z ddlmZmZmZ ddlmZmZmZmZ ddlmZmZmZmZ ej4                  ZdZdZd	Zd
Z ej@                  i «      Z! e«       Z" ejF                  ejH                  ejJ                  «      Z& G d„ dejN                  «      Z(e(jR                  Z)	  G d„ de*«      Z+e)ddddddddddddddfd„Z,dOd„Z-d„ Z.d„ Z/ e/dg d¢«      Z0d„ Z1d„ Z2d„ Z3d„ Z4d„ Z5d„ Z6d„ Z7d„ Z8d„ Z9 G d „ d!«      Z:d"„ Z;d#„ Z<	 dPd$„Z=	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 	 dQd%„Z>e>Z?	 d&„ Z@d'„ ZAd(„ ZBd)„ ZCd*„ ZDd+„ ZEd,„ ZFdRd-„ZGd.„ ZHdSd/„ZId0„ ZJd1„ ZKd2„ Z%d3„ ZLd4„ ZMd5„ ZNd6„ ZOd7„ ZPd8„ ZQd9„ ZRd:„ ZSd;eTd<eTfd=„ZU G d>„ d?«      ZVeVj®                  D � cg c]  }  eV| e)ddddd| d@k7  dd eU| «      ¬A«      ‘Œ  c} ZX eC eG eIeVeX¬B«      eXD �cg c]  }|j²                  dCk7  sŒ|‘Œ c}¬B«      eXD �cg c]!  }|j´                  sŒ|j²                  dCk7  sŒ |‘Œ# c}¬B«      ZV G dD„ dE«      Z[ eG eIe[«      «      Z[ G dF„ dG«      Z\e\j®                  D � cg c]  }  eV| e)dddddddd¬H«
      ‘Œ c} Z] eC eG eIe\e]¬B«      e]¬B«      e]¬B«      Z\efdfdI„Z^ e>dd¬J«       G dK„ dL«      «       Z_dM„ Z`dN„ Z#yc c} w c c}w c c}w c c} w )Té    N)Ú
itemgetteré   )Ú_compatÚ_configÚsetters)ÚPY310ÚPY_3_8_PLUSÚ_AnnotationExtractorÚget_generic_base)ÚDefaultAlreadySetErrorÚFrozenInstanceErrorÚNotAnAttrsClassErrorÚUnannotatedAttributeErrorz__attr_converter_%sz__attr_factory_%s)ztyping.ClassVarz
t.ClassVarÚClassVarztyping_extensions.ClassVarÚ_attrs_cached_hashc                   ó>   — e Zd ZdZ ej
                  «       Zd„ Zd„ Zy)Ú_NothingaH  
    Sentinel to indicate the lack of a value when ``None`` is ambiguous.

    If extending attrs, you can use ``typing.Literal[NOTHING]`` to show
    that a value may be ``NOTHING``.

    .. versionchanged:: 21.1.0 ``bool(NOTHING)`` is now False.
    .. versionchanged:: 22.2.0 ``NOTHING`` is now an ``enum.Enum`` variant.
    c                  ó   — y)NÚNOTHING© ©Úselfs    ú,/usr/lib/python3/dist-packages/attr/_make.pyÚ__repr__z_Nothing.__repr__E   s   € Øó    c                  ó   — y)NFr   r   s    r   Ú__bool__z_Nothing.__bool__H   s   € Ør   N)	Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚenumÚautor   r   r   r   r   r   r   r   8   s    „ ñð ˆd�i‰i‹k€Gòór   r   c                   ó(   — e Zd ZdZ ed«      dfd„Zy)Ú_CacheHashWrappera�  
    An integer subclass that pickles / copies as None

    This is used for non-slots classes with ``cache_hash=True``, to avoid
    serializing a potentially (even likely) invalid hash value. Since ``None``
    is the default value for uncalculated hashes, whenever this is copied,
    the copy's value for the hash should automatically reset.

    See GH #613 for more details.
    Nr   c                 ó
   — ||fS ©Nr   )r   Ú_none_constructorÚ_argss      r   Ú
__reduce__z_CacheHashWrapper.__reduce__^   s   € Ø  %Ð'Ð'r   )r   r   r    r!   Útyper*   r   r   r   r%   r%   R   s   „ ñ	ñ ,0°«:¸Rô (r   r%   TFc                 ó  — t        |||d«      \  }}}}|�|dur|durd}t        |«      ‚|	�8| t        urd}t        |«      ‚t	        |	«      sd}t        |«      ‚t        |	«      } |€i }t        |t        t        f«      rt        j                  |Ž }|rt        |t        t        f«      rt        |Ž }|rt        |t        t        f«      rt        |Ž }t        di d| “d|“d	|“d
d“d|“d|“d|“d|“d|“d|
“d|“d|“d|“d|“d|“d|“ŽS )aÐ  
    Create a new attribute on a class.

    ..  warning::

        Does *not* do anything unless the class is also decorated with `attr.s`
        / `attrs.define` / and so on!

    Please consider using `attrs.field` in new code (``attr.ib`` will *never*
    go away, though).

    :param default: A value that is used if an *attrs*-generated ``__init__``
        is used and no value is passed while instantiating or the attribute is
        excluded using ``init=False``.

        If the value is an instance of `attrs.Factory`, its callable will be
        used to construct a new value (useful for mutable data types like lists
        or dicts).

        If a default is not set (or set manually to `attrs.NOTHING`), a value
        *must* be supplied when instantiating; otherwise a `TypeError` will be
        raised.

        The default can also be set using decorator notation as shown below.

        .. seealso:: `defaults`

    :param callable factory: Syntactic sugar for
        ``default=attr.Factory(factory)``.

    :param validator: `callable` that is called by *attrs*-generated
        ``__init__`` methods after the instance has been initialized.  They
        receive the initialized instance, the :func:`~attrs.Attribute`, and the
        passed value.

        The return value is *not* inspected so the validator has to throw an
        exception itself.

        If a `list` is passed, its items are treated as validators and must all
        pass.

        Validators can be globally disabled and re-enabled using
        `attrs.validators.get_disabled` / `attrs.validators.set_disabled`.

        The validator can also be set using decorator notation as shown below.

        .. seealso:: :ref:`validators`

    :type validator: `callable` or a `list` of `callable`\ s.

    :param repr: Include this attribute in the generated ``__repr__`` method.
        If ``True``, include the attribute; if ``False``, omit it. By default,
        the built-in ``repr()`` function is used. To override how the attribute
        value is formatted, pass a ``callable`` that takes a single value and
        returns a string. Note that the resulting string is used as-is, i.e. it
        will be used directly *instead* of calling ``repr()`` (the default).
    :type repr: a `bool` or a `callable` to use a custom function.

    :param eq: If ``True`` (default), include this attribute in the generated
        ``__eq__`` and ``__ne__`` methods that check two instances for
        equality. To override how the attribute value is compared, pass a
        ``callable`` that takes a single value and returns the value to be
        compared.

        .. seealso:: `comparison`
    :type eq: a `bool` or a `callable`.

    :param order: If ``True`` (default), include this attributes in the
        generated ``__lt__``, ``__le__``, ``__gt__`` and ``__ge__`` methods. To
        override how the attribute value is ordered, pass a ``callable`` that
        takes a single value and returns the value to be ordered.

        .. seealso:: `comparison`
    :type order: a `bool` or a `callable`.

    :param cmp: Setting *cmp* is equivalent to setting *eq* and *order* to the
        same value. Must not be mixed with *eq* or *order*.

        .. seealso:: `comparison`
    :type cmp: a `bool` or a `callable`.

    :param bool | None hash: Include this attribute in the generated
        ``__hash__`` method.  If ``None`` (default), mirror *eq*'s value.  This
        is the correct behavior according the Python spec.  Setting this value
        to anything else than ``None`` is *discouraged*.

        .. seealso:: `hashing`
    :param bool init: Include this attribute in the generated ``__init__``
        method.  It is possible to set this to ``False`` and set a default
        value.  In that case this attributed is unconditionally initialized
        with the specified default value or factory.

        .. seealso:: `init`
    :param callable converter: `callable` that is called by *attrs*-generated
        ``__init__`` methods to convert attribute's value to the desired
        format.  It is given the passed-in value, and the returned value will
        be used as the new value of the attribute.  The value is converted
        before being passed to the validator, if any.

        .. seealso:: :ref:`converters`
    :param dict | None metadata: An arbitrary mapping, to be used by
        third-party components.  See `extending-metadata`.

    :param type: The type of the attribute. Nowadays, the preferred method to
        specify the type is using a variable annotation (see :pep:`526`). This
        argument is provided for backward compatibility. Regardless of the
        approach used, the type will be stored on ``Attribute.type``.

        Please note that *attrs* doesn't do anything with this metadata by
        itself. You can use it as part of your own code or for `static type
        checking <types>`.
    :param bool kw_only: Make this attribute keyword-only in the generated
        ``__init__`` (if ``init`` is ``False``, this parameter is ignored).
    :param on_setattr: Allows to overwrite the *on_setattr* setting from
        `attr.s`. If left `None`, the *on_setattr* value from `attr.s` is used.
        Set to `attrs.setters.NO_OP` to run **no** `setattr` hooks for this
        attribute -- regardless of the setting in `attr.s`.
    :type on_setattr: `callable`, or a list of callables, or `None`, or
        `attrs.setters.NO_OP`
    :param str | None alias: Override this attribute's parameter name in the
        generated ``__init__`` method. If left `None`, default to ``name``
        stripped of leading underscores. See `private-attributes`.

    .. versionadded:: 15.2.0 *convert*
    .. versionadded:: 16.3.0 *metadata*
    .. versionchanged:: 17.1.0 *validator* can be a ``list`` now.
    .. versionchanged:: 17.1.0
       *hash* is ``None`` and therefore mirrors *eq* by default.
    .. versionadded:: 17.3.0 *type*
    .. deprecated:: 17.4.0 *convert*
    .. versionadded:: 17.4.0 *converter* as a replacement for the deprecated
       *convert* to achieve consistency with other noun-based arguments.
    .. versionadded:: 18.1.0
       ``factory=f`` is syntactic sugar for ``default=attr.Factory(f)``.
    .. versionadded:: 18.2.0 *kw_only*
    .. versionchanged:: 19.2.0 *convert* keyword argument removed.
    .. versionchanged:: 19.2.0 *repr* also accepts a custom callable.
    .. deprecated:: 19.2.0 *cmp* Removal on or after 2021-06-01.
    .. versionadded:: 19.2.0 *eq* and *order*
    .. versionadded:: 20.1.0 *on_setattr*
    .. versionchanged:: 20.3.0 *kw_only* backported to Python 2
    .. versionchanged:: 21.1.0
       *eq*, *order*, and *cmp* also accept a custom callable
    .. versionchanged:: 21.1.0 *cmp* undeprecated
    .. versionadded:: 22.2.0 *alias*
    TNFú6Invalid value for hash.  Must be True, False, or None.z=The `default` and `factory` arguments are mutually exclusive.z*The `factory` argument must be a callable.ÚdefaultÚ	validatorÚreprÚcmpÚhashÚinitÚ	converterÚmetadatar+   Úkw_onlyÚeqÚeq_keyÚorderÚ	order_keyÚ
on_setattrÚaliasr   )Ú_determine_attrib_eq_orderÚ	TypeErrorr   Ú
ValueErrorÚcallableÚFactoryÚ
isinstanceÚlistÚtupler   ÚpipeÚand_Ú_CountingAttr)r.   r/   r0   r1   r2   r3   r5   r+   r4   Úfactoryr6   r7   r9   r;   r<   r8   r:   Úmsgs                     r   ÚattribrJ   b   s�  € ôF $>ØˆR�˜ó$Ñ €Bˆ��yð Ð˜D¨Ñ,°¸UÑ1BØFˆÜ˜‹nÐàÐØœ'Ñ!àOð ô ˜S“/Ð!Ü˜Ô Ø>ˆCÜ˜S“/Ð!Ü˜'Ó"ˆàÐØˆô �*œt¤U˜mÔ,Ü—\‘\ :Ð.ˆ
á”Z 	¬D´%¨=Ô9Ü˜)Ð$ˆ	á”Z 	¬D´%¨=Ô9Ü˜)Ð$ˆ	äò Ùðáðñ ðñ ð	ñ
 ðñ ðñ ðñ ðñ ðñ ðñ ðñ ðñ ðñ ðñ ðñ  ð!ð r   c                 ó8   — t        | |d«      }t        |||«       y)zU
    "Exec" the script with the given global (globs) and local (locs) variables.
    ÚexecN)ÚcompileÚeval)ÚscriptÚglobsÚlocsÚfilenameÚbytecodes        r   Ú_compile_and_evalrT   9  s   € ô �v˜x¨Ó0€HÜˆ�5˜$Õr   c                 óà   — i }d}|}	 t        |«      d|j                  d«      |f}t        j                  j	                  ||«      }||k(  rn|dd › d|› d�}|dz  }ŒUt        ||||«       ||    S )zO
    Create the method with the script given and return the method object.
    r   TNéÿÿÿÿú-ú>)ÚlenÚ
splitlinesÚ	linecacheÚcacheÚ
setdefaultrT   )	ÚnamerO   rR   rP   rQ   ÚcountÚbase_filenameÚlinecache_tupleÚold_vals	            r   Ú_make_methodrc   A  sŸ   € ð €Dð €EØ€MØ
ä�‹KØØ×Ñ˜dÓ#Øð	
ˆô —/‘/×,Ñ,¨X°ÓGˆØ�oÒ%Øà# C RÐ(Ð)¨¨5¨'°Ð3ˆØ�‰
ˆð ô �f˜e T¨8Ô4à�‰:Ðr   c                 óô   — | › d�}d|› d�dg}|r,t        |«      D ]  \  }}|j                  d|› d|› d�«       Œ n|j                  d«       t        t        d	œ}t	        d
j                  |«      |«       ||   S )zé
    Create a tuple subclass to hold `Attribute`s for an `attrs` class.

    The subclass is a bare tuple with properties for names.

    class MyClassAttributes(tuple):
        __slots__ = ()
        x = property(itemgetter(0))
    Ú
Attributeszclass z(tuple):z    __slots__ = ()ú    z% = _attrs_property(_attrs_itemgetter(ú))z    pass)Ú_attrs_itemgetterÚ_attrs_propertyú
)Ú	enumerateÚappendr   ÚpropertyrT   Újoin)Úcls_nameÚ
attr_namesÚattr_class_nameÚattr_class_templateÚiÚ	attr_namerP   s          r   Ú_make_attr_tuple_classru   ^  sŸ   € ð "˜
 *Ð-€Oà
�Ð! Ð*ØðÐñ Ü% jÓ1ò 	‰LˆAˆyØ×&Ñ&Ø�y�kÐ!FÀqÀcÈÐLõñ	ð
 	×"Ñ" :Ô.Ü",ÄÑJ€EÜ�d—i‘iÐ 3Ó4°eÔ<Ø�Ñ!Ð!r   Ú_Attributes)ÚattrsÚ
base_attrsÚbase_attrs_mapc                 ó�   — t        | «      } | j                  d«      r| j                  d«      r| dd } | j                  t        «      S )zñ
    Check whether *annot* is a typing.ClassVar.

    The string comparison hack is used to avoid evaluating all string
    annotations which would put attrs-based classes at a performance
    disadvantage compared to plain old classes.
    )ú'ú"r   rV   )ÚstrÚ
startswithÚendswithÚ_classvar_prefixes)Úannots    r   Ú_is_class_varr‚   ˆ  sE   € ô �‹J€Eð ×Ñ˜
Ô#¨¯©°zÔ(BØ�a˜�ˆà×ÑÔ.Ó/Ð/r   c                 ó†   — t        | |t        «      }|t        u ry| j                  dd D ]  }t        ||d«      }||u sŒ y y)zR
    Check whether *cls* defines *attrib_name* (and doesn't just inherit it).
    Fr   NT)ÚgetattrÚ	_sentinelÚ__mro__)ÚclsÚattrib_nameÚattrÚbase_clsÚas        r   Ú_has_own_attributerŒ   ™  sS   € ô �3˜¤YÓ/€DØŒyÑØà—K‘K  �Oò ˆÜ�H˜k¨4Ó0ˆØ�1Š9Ùðð
 r   c                 ó6   — t        | d«      r| j                  S i S )z$
    Get annotations for *cls*.
    Ú__annotations__)rŒ   rŽ   ©r‡   s    r   Ú_get_annotationsr�   ©  s    € ô ˜#Ð0Ô1Ø×"Ñ"Ð"à€Ir   c                 óº  — g }i }t        | j                  dd «      D ]a  }t        |dg «      D ]O  }|j                  s|j                  |v rŒ|j                  d¬«      }|j                  |«       |||j                  <   ŒQ Œc g }t        «       }t        |«      D ]>  }|j                  |v rŒ|j                  d|«       |j                  |j                  «       Œ@ ||fS )zQ
    Collect attr.ibs from base classes of *cls*, except *taken_attr_names*.
    r   rV   Ú__attrs_attrs__T©Ú	inheritedr   )
Úreversedr†   r„   r”   r^   Úevolverl   ÚsetÚinsertÚadd)r‡   Útaken_attr_namesrx   Úbase_attr_maprŠ   r‹   ÚfilteredÚseens           r   Ú_collect_base_attrsrž   ³  så   € ð €JØ€Mô ˜SŸ[™[¨¨2Ð.Ó/ò -ˆÜ˜Ð#4°bÓ9ò 	-ˆAØ�{Š{˜aŸf™fÐ(8Ñ8Øà—‘ 4�Ó(ˆAØ×Ñ˜aÔ Ø$,ˆM˜!Ÿ&™&Ò!ñ	-ð-ð €HÜ‹5€DÜ�jÓ!ò ˆØ�6‰6�T‰>ØØ�‰˜˜1ÔØ�‰�—‘Õð	ð �]Ð"Ð"r   c                 ó  — g }i }| j                   dd D ]p  }t        |dg «      D ]^  }|j                  |v rŒ|j                  d¬«      }|j	                  |j                  «       |j                  |«       |||j                  <   Œ` Œr ||fS )a-  
    Collect attr.ibs from base classes of *cls*, except *taken_attr_names*.

    N.B. *taken_attr_names* will be mutated.

    Adhere to the old incorrect behavior.

    Notably it collects from the front and considers inherited attributes which
    leads to the buggy behavior reported in #428.
    r   rV   r’   Tr“   )r†   r„   r^   r–   r™   rl   )r‡   rš   rx   r›   rŠ   r‹   s         r   Ú_collect_base_attrs_brokenr    Ò  sž   € ð €JØ€Mð —K‘K  "Ð%ò -ˆÜ˜Ð#4°bÓ9ò 	-ˆAØ�v‰vÐ)Ñ)Øà—‘ 4�Ó(ˆAØ× Ñ  §¡Ô(Ø×Ñ˜aÔ Ø$,ˆM˜!Ÿ&™&Ò!ñ	-ð-ð �}Ð$Ð$r   c                 ó€  ‡— | j                   Št        | «      }|�t        |j                  «       «      }�n3|du �r‰j                  «       D ��	ch c]  \  }}	t	        |	t
        «      r|’Œ }
}}	g }t        «       }|j                  «       D ]y  \  }}t        |«      rŒ|j                  |«       ‰j                  |t        «      }t	        |t
        «      s|t        u r
t        «       nt        |¬«      }|j                  ||f«       Œ{ |
|z
  }t        |«      dkD  rQt        ddj                  t!        |ˆfd„¬«      «      z   dz   «      ‚t!        d	„ ‰j                  «       D «       d
„ ¬«      }|D ��cg c],  \  }}t"        j%                  |||j                  |«      ¬«      ‘Œ. }}}|r(t'        | |D �ch c]  }|j(                  ’Œ c}«      \  }}n't+        | |D �ch c]  }|j(                  ’Œ c}«      \  }}|r>|D �cg c]  }|j-                  d¬«      ‘Œ }}|D �cg c]  }|j-                  d¬«      ‘Œ }}||z   }d}d„ |D «       D ]B  }|du r"|j.                  t        u rd|›�}t1        |«      ‚|du sŒ.|j.                  t        usŒAd}ŒD |�	 || |«      }|D �cg c]5  }|j2                  s%|j-                  t5        |j(                  «      ¬«      n|‘Œ7 }}|D �cg c]  }|j(                  ‘Œ }}t7        | j8                  |«      }t;         ||«      ||f«      S c c}	}w c c}}w c c}w c c}w c c}w c c}w c c}w c c}w )a0  
    Transform all `_CountingAttr`s on a class into `Attribute`s.

    If *these* is passed, use that and don't look for them on the class.

    *collect_by_mro* is True, collect them in the correct MRO order, otherwise
    use the old -- incorrect -- order.  See #428.

    Return an `_Attributes`.
    T©r.   r   z1The following `attr.ib`s lack a type annotation: ú, c                 ó:   •— ‰j                  | «      j                  S r'   )ÚgetÚcounter)ÚnÚcds    €r   ú<lambda>z"_transform_attrs.<locals>.<lambda>  s   ø€ °b·f±f¸Q³i×6GÑ6G€ r   )Úkeyú.c              3   óJ   K  — | ]  \  }}t        |t        «      r||f–— Œ y ­wr'   )rB   rG   )Ú.0r^   r‰   s      r   ú	<genexpr>z#_transform_attrs.<locals>.<genexpr>  s*   è ø€ ò á�D˜$Ü˜d¤MÔ2ð �t”ñùs   ‚!#c                 ó    — | d   j                   S ©Nr   )r¦   )Úes    r   r©   z"_transform_attrs.<locals>.<lambda>"  s   € ˜!˜A™$Ÿ,™,€ r   )r^   Úcar+   )r6   Fc              3   ó\   K  — | ]$  }|j                   d usŒ|j                  d u sŒ!|–— Œ& y­w)FN)r3   r6   ©r­   r‹   s     r   r®   z#_transform_attrs.<locals>.<genexpr>@  s&   è ø€ ÒM�A !§&¡&°Ò"5¸!¿)¹)ÀuÒ:LŒaÑMùs   ‚,–,¥,zlNo mandatory attributes allowed after an attribute with a default value or factory.  Attribute in question: )r<   )Ú__dict__r�   rC   ÚitemsrB   rG   r—   r‚   r™   r¥   r   rJ   rl   rY   r   rn   ÚsortedÚ	AttributeÚfrom_counting_attrrž   r^   r    r–   r.   r?   r<   Ú_default_init_alias_forru   r   rv   )r‡   ÚtheseÚauto_attribsr6   Úcollect_by_mroÚfield_transformerÚannsÚca_listr^   r‰   Úca_namesÚannot_namesrt   r+   r‹   Úunannotatedr²   Ú	own_attrsrx   r›   rw   Úhad_defaultrI   rp   Ú
AttrsClassr¨   s                            @r   Ú_transform_attrsrÇ   î  s_  ø€ ð 
�‰€BÜ˜CÓ €DàÐÜ�u—{‘{“}Ó%ŠØ	˜Ò	ð !Ÿh™h›j÷
á��dÜ˜$¤Ô.ò ð
ˆñ 
ð
 ˆÜ“eˆØ#Ÿz™z›|ò 	+‰OˆI�tÜ˜TÔ"ØØ�O‰O˜IÔ&Ø—‘�y¤'Ó*ˆAä˜a¤Ô/Ø !¤W¡”F”H´&ÀÔ2C�Ø�N‰N˜I q˜>Õ*ð	+ð  Ñ,ˆÜˆ{Ó˜aÒÜ+ØCØ—)‘)Ü˜;Ó,GÔHóñð ñ	óð ô ñà"$§(¡(£*ôñ
 'ô
ˆð %÷	ñ ˆI�rô 	×$Ñ$Ø˜r¨¯©°Ó(;ð 	%õ 	
ð€Iñ ñ Ü$7Ø )Ö,˜Q�!—&“&Ò,ó%
Ñ!ˆ
‘Mô %?Ø )Ö,˜Q�!—&“&Ò,ó%
Ñ!ˆ
�Mñ Ø5>Ö?°�Q—X‘X d�XÕ+Ð?ˆ	Ð?Ø6@ÖA°�a—h‘h t�hÕ,ÐAˆ
ÐAà˜Ñ"€Eð €KÙM˜ÔMò ˆØ˜$Ñ 1§9¡9´Ñ#7ð Að  BCð  AFð  GˆCÜ˜S“/Ð!à˜%Ò A§I¡I´WÒ$<Ø‰Kðð Ð$Ù! # uÓ-ˆð öàð @A¿wºwˆ�‰Ô.¨q¯v©vÓ6ˆÔ7ÈAÑMð€Eð ð #(Ö(˜Q�!—&“&Ð(€JÐ(Ü'¨¯©°jÓA€Jä™
 5Ó)¨:°}ÐEÓFÐFùóo
ùóHùò -ùò -ùò @ùÚAùò.ùò )s0   ÁLÅ.1LÆ.L"
ÇL'
Ç9L,ÈL1Ê:L6ËL;c                 óú   — g d¢}|�|j                  d«       n|j                  g d¢«       |j                  ddg«       t        |d«      }| t        j                  ||dœ}t        dd	j                  |«      ||«      S )
N)	zdef wrapper():z    __class__ = _clsz‘    def __getattr__(self, item, cached_properties=cached_properties, original_getattr=original_getattr, _cached_setattr_get=_cached_setattr_get):z+         func = cached_properties.get(item)z         if func is not None:z!              result = func(self)z1              _setter = _cached_setattr_get(self)z#              _setter(item, result)z              return resultz,         return original_getattr(self, item))z,         if hasattr(super(), '__getattr__'):z.              return super().__getattr__(item)zY         original_error = f"'{self.__class__.__name__}' object has no attribute '{item}'"z-         raise AttributeError(original_error)z    return __getattr__z__getattr__ = wrapper()r„   )Úcached_propertiesÚ_cached_setattr_getÚ_clsÚoriginal_getattrÚ__getattr__rj   )rl   ÚextendÚ_generate_unique_filenameÚ_obj_setattrÚ__get__rc   rn   )rÉ   rÌ   r‡   ÚlinesÚunique_filenameÚglobs         r   Ú_make_cached_property_getattrrÕ   [  s™   € ò
€Eð Ð#Ø�‰Ø:õ	
ð 	�‰òô	
ð 
‡L�Là$Ø%ð	
ôô 0°°YÓ?€Oð /Ü+×3Ñ3ØØ,ñ	€Dô ØØ�	‰	�%ÓØØó	ð r   c                 ón   — t        | t        «      r|dv rt        j                  | ||«       yt        «       ‚)z4
    Attached to frozen classes as __setattr__.
    )Ú	__cause__Ú__context__Ú__traceback__N)rB   ÚBaseExceptionÚ__setattr__r   ©r   r^   Úvalues      r   Ú_frozen_setattrsrÞ   “  s:   € ô �$œÔ&¨4ð 4ñ ,ô
 	×!Ñ! $¨¨eÔ4Øä
Ó
Ðr   c                 ó   — t        «       ‚)z4
    Attached to frozen classes as __delattr__.
    ©r   )r   r^   s     r   Ú_frozen_delattrsrá   ¢  s   € ô Ó
Ðr   c                   óŽ   — e Zd ZdZdZd„ Zd„ ZerddlZd„ Z	nd„ Z	d	„ Z
d
„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zd„ Zy)Ú_ClassBuilderz(
    Iteratively build *one* class.
    )Ú_attr_namesÚ_attrsÚ_base_attr_mapÚ_base_namesÚ_cache_hashrË   Ú	_cls_dictÚ_delete_attribsÚ_frozenÚ_has_pre_initÚ_pre_init_has_argsÚ_has_post_initÚ_is_excÚ_on_setattrÚ_slotsÚ_weakref_slotÚ_wrote_own_setattrÚ_has_custom_setattrc                 óÀ  — t        ||||||«      \  }}}|| _        |rt        |j                  «      ni | _        || _        |D �ch c]  }|j                  ’Œ c}| _        || _        t        d„ |D «       «      | _
        || _        || _        || _        |	| _        t        t!        |dd«      «      | _        d| _        | j"                  r>|j&                  }t)        j*                  |«      }t-        |j.                  «      dkD  | _        t        t!        |dd«      «      | _        t        |«       | _        |
| _        || _        || _        d| _        | j
                  | j                  d<   |r.t<        | j                  d<   t>        | j                  d<   d	| _        n“|t@        tB        jD                  tB        jF                  fv rldx}}|D ]%  }|jH                  �d	}|jJ                  �d	}|sŒ"|sŒ% n |t@        k(  r|s|r*|tB        jD                  k(  r|r|tB        jF                  k(  r	|sd | _        |r.| jM                  «       \  | j                  d
<   | j                  d<   y y c c}w )Nc              3   ó4   K  — | ]  }|j                   –— Œ y ­wr'   ©r^   r´   s     r   r®   z)_ClassBuilder.__init__.<locals>.<genexpr>â  s   è ø€ Ò 7¨A §¥Ñ 7ùs   ‚Ú__attrs_pre_init__Fr   Ú__attrs_post_init__r’   rÛ   Ú__delattr__TÚ__getstate__Ú__setstate__)'rÇ   rË   Údictrµ   ré   rå   r^   rç   ræ   rD   rä   rñ   rë   rò   rè   Úboolr„   rì   rí   rø   ÚinspectÚ	signaturerY   Ú
parametersrî   rê   rï   rð   rô   ró   rÞ   rá   Ú_ng_default_on_setattrr   ÚvalidateÚconvertr/   r4   Ú_make_getstate_setstate)r   r‡   r»   ÚslotsÚfrozenÚweakref_slotÚgetstate_setstater¼   r6   Ú
cache_hashÚis_excr½   r;   Úhas_custom_setattrr¾   rw   rx   Úbase_mapr‹   Úpre_init_funcÚpre_init_signatureÚhas_validatorÚhas_converters                          r   Ú__init__z_ClassBuilder.__init__Ã  sJ  € ô" '7ØØØØØØó'
Ñ#ˆˆz˜8ð ˆŒ	Ù/4œ˜cŸl™lÔ+¸"ˆŒØˆŒØ,6Ö7 q˜AŸF›FÒ7ˆÔØ&ˆÔÜ Ñ 7°Ô 7Ó7ˆÔØˆŒØˆŒØ)ˆÔØ%ˆÔÜ!¤'¨#Ð/CÀUÓ"KÓLˆÔØ"'ˆÔØ×Òð  ×2Ñ2ˆMÜ!(×!2Ñ!2°=Ó!AÐÜ&)Ð*<×*GÑ*GÓ&HÈ1Ñ&LˆDÔ#Ü"¤7¨3Ð0EÀuÓ#MÓNˆÔÜ#'¨£;˜ˆÔØˆŒØ%ˆÔà#5ˆÔ Ø"'ˆÔà,0¯K©Kˆ�‰Ð(Ñ)áÜ,<ˆD�N‰N˜=Ñ)Ü,<ˆD�N‰N˜=Ñ)à&*ˆDÕ#ØÜ"Ü×ÑÜ�O‰Oð
ñ 
ð
 -2Ð1ˆM˜MØò �Ø—;‘;Ð*Ø$(�MØ—;‘;Ð*Ø$(�Mâ ¢]Ùðð Ô"8Ò8Ù*©mà¤'×"2Ñ"2Ò2¹=Ø¤'§/¡/Ò1¹-ð
 $(�Ô áð ×,Ñ,Ó.ñØ—‘˜~Ñ.Ø—‘˜~Ò.ð ùòs 8s   ÁIc                 ó6   — d| j                   j                  › d�S )Nz<_ClassBuilder(cls=z)>)rË   r   r   s    r   r   z_ClassBuilder.__repr__  s   € Ø$ T§Y¡Y×%7Ñ%7Ð$8¸Ð;Ð;r   r   Nc                 ó�   — | j                   du r| j                  «       S | j                  j                  | j	                  «       «      S ©z�
            Finalize class based on the accumulated configuration.

            Builder cannot be used after calling this method.
            T)rñ   Ú_create_slots_classÚabcÚupdate_abstractmethodsÚ_patch_original_classr   s    r   Úbuild_classz_ClassBuilder.build_class%  sB   € ð �{‰{˜dÑ"Ø×/Ñ/Ó1Ð1à—8‘8×2Ñ2Ø×*Ñ*Ó,óð r   c                 ó^   — | j                   du r| j                  «       S | j                  «       S r  )rñ   r  r  r   s    r   r  z_ClassBuilder.build_class4  s.   € ð �{‰{˜dÑ"Ø×/Ñ/Ó1Ð1à×-Ñ-Ó/Ð/r   c                 óê  — | j                   }| j                  }| j                  r\| j                  D ]M  }||vsŒt	        ||t
        «      t
        usŒ t        j                  t        «      5  t        ||«       ddd«       ŒO | j                  j                  «       D ]  \  }}t        |||«       Œ | j                  s+t	        |dd«      rd|_        | j                  st         |_        |S # 1 sw Y   ŒÁxY w)zA
        Apply accumulated methods and return the class.
        NÚ__attrs_own_setattr__F)rË   rç   rê   rä   r„   r…   Ú
contextlibÚsuppressÚAttributeErrorÚdelattrré   r¶   Úsetattrró   r  rô   rÐ   rÛ   )r   r‡   Ú
base_namesr^   rÝ   s        r   r  z#_ClassBuilder._patch_original_class?  sì   € ð �i‰iˆØ×%Ñ%ˆ
ð ×ÒØ×(Ñ(ò 	+�à 
Ò*Ü  T¬9Ó5¼YÒFô
 $×,Ñ,¬^Ó<ñ +Ü  TÔ*÷+ð +ð	+ð  Ÿ>™>×/Ñ/Ó1ò 	&‰KˆD�%Ü�C˜˜uÕ%ð	&ð
 ×&Ò&¬7ØÐ(¨%ô,
ð ).ˆCÔ%à×+Ò+Ü".�”àˆ
÷#+ð +ús   Á*C)Ã)C2	c                 óò  — | j                   j                  «       D ��ci c]&  \  }}|g t        | j                  «      ¢d‘d‘­vr||“Œ( }}}| j                  sSd|d<   | j
                  sB| j                  j                  D ])  }|j                  j                  dd«      sŒ t        |d<    n i }d}| j                  j                  dd D ]U  }|j                  j                  dd«      �d	}|j                  t        |d
g «      D �ci c]  }|t        ||«      “Œ c}«       ŒW t        | j                  «      }| j                  }	| j                   r$dt        | j                  d
d«      vrd|	vr|s|	dz  }	t"        rH|j                  «       D ��
ci c],  \  }}
t%        |
t&        j(                  «      r||
j*                  “Œ. }}}
ni }g }|rÒ|	t        |j-                  «       «      z  }	|D ]  }||= Œ t/        | j                  «      }|j                  «       D ]F  \  }}t1        j2                  |«      j4                  }|t0        j6                  j8                  usŒB|||<   ŒH |j                  d«      }|�|j;                  |«       t=        ||| j                  «      |d<   |	D �cg c]	  }||vsŒ|‘Œ }}|j                  «       D ��ci c]  \  }}||v r||“Œ }}}|D �cg c]	  }||vsŒ|‘Œ }}|j                  |«       | j>                  r|j;                  t@        «       t        |«      |d
<   | j                  jB                  |d<    tE        | j                  «      | j                  jF                  | j                  j                  |«      }tI        jJ                  |j                  jM                  «       |«      D ]’  }t%        |tN        tP        f«      rt        |jR                  dd«      }n5t%        |tT        «      rt        |jV                  dd«      }nt        |dd«      }|sŒi|D ]%  }	 |jX                  | j                  u }|sŒ||_,        Œ' Œ” |S c c}}w c c}w c c}
}w c c}w c c}}w c c}w # tZ        $ r Y ŒXw xY w)zL
        Build and return a new class with a `__slots__` attribute.
        rµ   Ú__weakref__Fr  rÛ   r   rV   NTÚ	__slots__r   )r%  rÍ   r    Ú__closure__).ré   r¶   rD   rä   ró   rô   rË   Ú	__bases__rµ   r¥   rÐ   r†   Úupdater„   r—   rç   rò   r	   rB   Ú	functoolsÚcached_propertyÚfuncÚkeysr�   rÿ   r   Úreturn_annotationÚ	ParameterÚemptyrl   rÕ   rè   Ú_hash_cache_fieldr    r+   r   Ú	itertoolsÚchainÚvaluesÚclassmethodÚstaticmethodÚ__func__rm   ÚfgetÚcell_contentsr?   )r   ÚkÚvr¨   rŠ   Úexisting_slotsÚweakref_inheritedr^   r#  Únamesr+  rÉ   Ú&additional_closure_functions_to_updateÚclass_annotationsr,  Ú
annotationrÌ   Ú
slot_namesÚslotÚslot_descriptorÚreused_slotsr‡   ÚitemÚclosure_cellsÚcellÚmatchs                             r   r  z!_ClassBuilder._create_slots_classc  s–  € ð Ÿ™×,Ñ,Ó.÷
á��1ØÐMœ% × 0Ñ 0Ó1ÐM°:ÐM¸}ÑMÑMð ˆq‰Dð
ˆñ 
ð ×&Ò&Ø*/ˆBÐ&Ñ'à×+Ò+Ø $§	¡	× 3Ñ 3ò �HØ×(Ñ(×,Ñ,Ð-DÀeÕLÜ,8˜˜=Ñ)Ùðð ˆØ!ÐØŸ	™	×)Ñ)¨!¨BÐ/ò 	ˆHØ× Ñ ×$Ñ$ ]°DÓ9ÐEØ$(Ð!Ø×!Ñ!ô !(¨°+¸rÓ Böàð œ' (¨DÓ1Ñ1òõð	ô ˜×)Ñ)Ó*ˆ
à× Ñ ˆà×ÒØ¤W¨T¯Y©Y¸ÀRÓ%HÑHØ UÑ*Ù%àÐ%Ñ%ˆEåð .0¯X©X«Z÷!á)�D˜/Ü˜o¬y×/HÑ/HÔIð �o×*Ñ*Ñ*ð!Ðò !ð !#Ðð 24Ð.Ùà”UÐ,×1Ñ1Ó3Ó4Ñ4ˆEà)ò �à�t‘Hðô !1°·±Ó ;ÐØ/×5Ñ5Ó7ò 9‘
��dÜ$×.Ñ.¨tÓ4×FÑF�
Ø¤W×%6Ñ%6×%<Ñ%<Ò<Ø.8Ð% dÒ+ð9ð
  "Ÿv™v mÓ4ÐØÐ+Ø6×=Ñ=Ð>NÔOä =Ø!Ð#3°T·Y±Yó!ˆBˆ}Ñð (-ÖG˜t°¸JÒ0F’dÐGˆ
ÐGð *8×)=Ñ)=Ó)?÷
á%��oØ�zÑ!ð �/Ñ!ð
ˆñ 
ð
 (2ÖN˜t°TÀÒ5M’dÐNˆ
ÐNØ
�	‰	�,ÔØ×ÒØ×ÑÔ/Ô0ä 
Ó+ˆˆ;‰à!ŸY™Y×3Ñ3ˆˆ>Ñð Œd�4—9‘9‹o˜dŸi™i×0Ñ0°$·)±)×2EÑ2EÀrÓJˆô —O‘OØ�L‰L×ÑÓ!Ð#Ió
ò 	1ˆDô ˜$¤¬lÐ ;Ô<ô !(¨¯©°}ÀdÓ K‘Ü˜D¤(Ô+ô !(¨¯	©	°=À$Ó G‘ä '¨¨m¸TÓ B�á ØØ%ò 1�ð1Ø ×.Ñ.°$·)±)Ð;�Eò
 Ø-0˜Õ*ñ1ð!	1ð2 ˆ
ùóY
ùò>ùó$!ùòJ Hùó
ùò
 OøôJ "ò áðúsA   ž+Q	ÄQ
Æ
1QÊ	QÊ%QÊ>QË	Q%Ë Q%Ð!Q*Ñ*	Q6Ñ5Q6c                 ó€   — | j                  t        | j                  || j                  «      «      | j                  d<   | S )Nr   )Ú_add_method_dundersÚ
_make_reprrå   rË   ré   )r   Únss     r   Úadd_reprz_ClassBuilder.add_reprõ  s6   € Ø%)×%=Ñ%=Ü�t—{‘{ B¨¯	©	Ó2ó&
ˆ�‰�zÑ"ð ˆr   c                 óœ   — | j                   j                  d«      }|€d}t        |«      ‚d„ }| j                  |«      | j                   d<   | S )Nr   z3__str__ can only be generated if a __repr__ exists.c                 ó"   — | j                  «       S r'   ©r   r   s    r   Ú__str__z&_ClassBuilder.add_str.<locals>.__str__  s   € Ø—=‘=“?Ð"r   rR  )ré   r¥   r?   rK  )r   r0   rI   rR  s       r   Úadd_strz_ClassBuilder.add_strû  sO   € Ø�~‰~×!Ñ! *Ó-ˆØˆ<ØGˆCÜ˜S“/Ð!ò	#ð %)×$<Ñ$<¸WÓ$Eˆ�‰�yÑ!Øˆr   c                 ót   ‡‡— t        d„ | j                  D «       «      Šˆfd„}| j                  Šˆˆfd„}||fS )zF
        Create custom __setstate__ and __getstate__ methods.
        c              3   ó,   K  — | ]  }|d k7  sŒ	|–— Œ y­w)r%  Nr   )r­   Úans     r   r®   z8_ClassBuilder._make_getstate_setstate.<locals>.<genexpr>  s   è ø€ ò !
Ø¨R°=Ó-@ŒBñ!
ùs   ‚
�c                 óD   •— ‰D �ci c]  }|t        | |«      “Œ c}S c c}w )ú9
            Automatically created by attrs.
            ©r„   )r   r^   Ústate_attr_namess     €r   Úslots_getstatez=_ClassBuilder._make_getstate_setstate.<locals>.slots_getstate  s&   ø€ ð ;KÖK°$�Dœ' $¨Ó-Ñ-ÒKÐKùÒKs   †c                 óÜ   •— t         j                  | «      }t        |t        «      rt	        ‰|«      D ]  \  }} |||«       Œ n‰D ]  }||v sŒ ||||   «       Œ ‰r |t
        d«       yy)rX  N)rÐ   rÑ   rB   rD   Úzipr1  )r   ÚstateÚ_ClassBuilder__bound_setattrr^   rÝ   Úhash_caching_enabledrZ  s        €€r   Úslots_setstatez=_ClassBuilder._make_getstate_setstate.<locals>.slots_setstate  s�   ø€ ô +×2Ñ2°4Ó8ˆOÜ˜%¤Ô'ô $'Ð'7¸Ó#?ò 1‘K�D˜%Ù# D¨%Õ0ñ1ð -ò ;�DØ˜u’}Ù'¨¨e°D©kÕ:ð;ñ $ÙÔ 1°4Õ8ð $r   )rD   rä   rè   )r   r[  ra  r`  rZ  s      @@r   r  z%_ClassBuilder._make_getstate_setstate  sI   ù€ ô
 !ñ !
Ø×)Ñ)ô!
ó 
Ðô	Lð  $×/Ñ/Ðõ	9ð, ˜~Ð-Ð-r   c                 ó$   — d | j                   d<   | S )NÚ__hash__)ré   r   s    r   Úmake_unhashablez_ClassBuilder.make_unhashable0  s   € Ø%)ˆ�‰�zÑ"Øˆr   c                 ó¬   — | j                  t        | j                  | j                  | j                  | j
                  ¬«      «      | j                  d<   | S )N©r  r
  rc  )rK  Ú
_make_hashrË   rå   rë   rè   ré   r   s    r   Úadd_hashz_ClassBuilder.add_hash4  sH   € Ø%)×%=Ñ%=ÜØ—	‘	Ø—‘Ø—|‘|Ø×+Ñ+ô	ó&
ˆ�‰�zÑ"ð ˆr   c                 óH  — | j                  t        | j                  | j                  | j                  | j
                  | j                  | j                  | j                  | j                  | j                  | j                  | j                  d¬«      «      | j                  d<   | S )NF©Ú
attrs_initr  ©rK  Ú
_make_initrË   rå   rì   rí   rî   rë   rñ   rè   ræ   rï   rð   ré   r   s    r   Úadd_initz_ClassBuilder.add_init@  s†   € Ø%)×%=Ñ%=ÜØ—	‘	Ø—‘Ø×"Ñ"Ø×'Ñ'Ø×#Ñ#Ø—‘Ø—‘Ø× Ñ Ø×#Ñ#Ø—‘Ø× Ñ Ø ôó&
ˆ�‰�zÑ"ð" ˆr   c                 óV   — t        d„ | j                  D «       «      | j                  d<   y )Nc              3   ód   K  — | ](  }|j                   r|j                  s|j                  –— Œ* y ­wr'   )r3   r6   r^   )r­   Úfields     r   r®   z/_ClassBuilder.add_match_args.<locals>.<genexpr>U  s)   è ø€ ò 1
àØ�zŠz %§-¢-ð �J�Jñ1
ùs   ‚.0Ú__match_args__)rD   rå   ré   r   s    r   Úadd_match_argsz_ClassBuilder.add_match_argsT  s'   € Ü+0ñ 1
àŸ™ô1
ó ,
ˆ�‰Ð'Ò(r   c                 óH  — | j                  t        | j                  | j                  | j                  | j
                  | j                  | j                  | j                  | j                  | j                  | j                  | j                  d¬«      «      | j                  d<   | S )NTrj  Ú__attrs_init__rl  r   s    r   Úadd_attrs_initz_ClassBuilder.add_attrs_init[  s‡   € Ø+/×+CÑ+CÜØ—	‘	Ø—‘Ø×"Ñ"Ø×'Ñ'Ø×#Ñ#Ø—‘Ø—‘Ø× Ñ Ø×#Ñ#Ø—‘Ø× Ñ Øôó,
ˆ�‰Ð'Ñ(ð" ˆr   c                 óº   — | j                   }| j                  t        | j                  | j                  «      «      |d<   | j                  t        «       «      |d<   | S )NÚ__eq__Ú__ne__)ré   rK  Ú_make_eqrË   rå   Ú_make_ne©r   r¨   s     r   Úadd_eqz_ClassBuilder.add_eqo  sN   € Ø�^‰^ˆà×/Ñ/Ü�T—Y‘Y §¡Ó,ó
ˆˆ8‰ð ×/Ñ/´³
Ó;ˆˆ8‰àˆr   c                 ó”   ‡ — ‰ j                   }ˆ fd„t        ‰ j                  ‰ j                  «      D «       \  |d<   |d<   |d<   |d<   ‰ S )Nc              3   ó@   •K  — | ]  }‰j                  |«      –— Œ y ­wr'   )rK  )r­   Úmethr   s     €r   r®   z*_ClassBuilder.add_order.<locals>.<genexpr>|  s&   øè ø€ ò B
àð ×$Ñ$ T×*ñB
ùs   ƒÚ__lt__Ú__le__Ú__gt__Ú__ge__)ré   Ú_make_orderrË   rå   r|  s   ` r   Ú	add_orderz_ClassBuilder.add_ordery  sL   ø€ Ø�^‰^ˆóB
ä# D§I¡I¨t¯{©{Ó;ôB
Ñ>ˆˆ8‰�b˜‘l B x¡L°"°X±,ð
 ˆr   c                 óx  ‡— | j                   r| S i Š| j                  D ]C  }|j                  xs | j                  }|sŒ |t        j
                  usŒ3||f‰|j                  <   ŒE ‰s| S | j                  rd}t        |«      ‚ˆfd„}d| j                  d<   | j                  |«      | j                  d<   d| _        | S )Nz7Can't combine custom __setattr__ with on_setattr hooks.c                 óh   •— 	 ‰|   \  }} || ||«      }t        | ||«       y # t         $ r |}Y Œw xY wr'   )ÚKeyErrorrÐ   )r   r^   Úvalr‹   ÚhookÚnvalÚsa_attrss         €r   rÛ   z._ClassBuilder.add_setattr.<locals>.__setattr__–  sG   ø€ ð*Ø" 4™.‘��4ñ ˜D ! SÓ)�ä˜˜t TÕ*øô ò Ø’ðús   ƒ# £1°1Tr  rÛ   )rë   rå   r;   rð   r   ÚNO_OPr^   rô   r?   ré   rK  ró   )r   r‹   r;   rI   rÛ   r�  s        @r   Úadd_setattrz_ClassBuilder.add_setattrƒ  s¹   ø€ Ø�<Š<ØˆKàˆØ—‘ò 	1ˆAØŸ™Ò9¨×)9Ñ)9ˆJÚ˜j´·±Ò=Ø#$ j =�˜Ÿ™Ò ð	1ñ
 ØˆKà×#Ò#àKˆCÜ˜S“/Ð!ô	+ð 37ˆ�‰Ð.Ñ/Ø(,×(@Ñ(@ÀÓ(Mˆ�‰�}Ñ%Ø"&ˆÔàˆr   c                 óä  — t        j                  t        «      5  | j                  j                  |_        ddd«       t        j                  t        «      5  | j                  j
                  › d|j                  › �|_        ddd«       t        j                  t        «      5  d| j                  j
                  › d�|_        ddd«       |S # 1 sw Y   Œ˜xY w# 1 sw Y   ŒXxY w# 1 sw Y   |S xY w)zL
        Add __module__ and __qualname__ to a *method* if possible.
        Nr«   z$Method generated by attrs for class )r  r  r   rË   r   r    r   r!   )r   Úmethods     r   rK  z!_ClassBuilder._add_method_dunders¦  sÔ   € ô × Ñ ¤Ó0ñ 	5Ø $§	¡	× 4Ñ 4ˆFÔ÷	5ô × Ñ ¤Ó0ñ 	PØ%)§Y¡Y×%;Ñ%;Ð$<¸A¸f¿o¹oÐ=NÐ"OˆFÔ÷	Pô × Ñ ¤Ó0ñ 	à6Ø—9‘9×)Ñ)Ð*¨!ð-ð ŒN÷	ð ˆ÷	5ð 	5ú÷	Pð 	Pú÷	ð ˆús#   šCÁ+CÂ# C%ÃCÃC"Ã%C/)r   r   r    r!   r&  r  r   r   r  r  r  r  rN  rS  r  rd  rh  rn  rs  rv  r}  r†  r�  rK  r   r   r   rã   rã   ©  sw   „ ñð€Iò*Z/òx<ñ Ûó	ò		0ò"òHPòdò
ò'.òRò
òò(
òò(òò!óFr   rã   c                 ó�   — | �t        |du|duf«      rd}t        |«      ‚| �| | fS |€|}|€|}|du r|du rd}t        |«      ‚||fS )úš
    Validate the combination of *cmp*, *eq*, and *order*. Derive the effective
    values of eq and order.  If *eq* is None, set it to *default_eq*.
    Nú&Don't mix `cmp` with `eq' and `order`.FTú-`order` can only be True if `eq` is True too.©Úanyr?   )r1   r7   r9   Ú
default_eqrI   s        r   Ú_determine_attrs_eq_orderr™  ¹  sy   € ð
 €œ3 ¨$ °¸TÐ0AÐBÔCØ6ˆÜ˜‹oÐð €Ø�Cˆxˆð 
€zØˆà€}Øˆà	ˆU�{�u ‘}Ø=ˆÜ˜‹oÐàˆuˆ9Ðr   c                 óì   — | �t        |du|duf«      rd}t        |«      ‚d„ }| � || «      \  } }| || |fS |€|d}}n ||«      \  }}|€||}}n ||«      \  }}|du r|du rd}t        |«      ‚||||fS )r“  Nr”  c                 ó4   — t        | «      rd| }} | |fS d}| |fS )z8
        Decide whether a key function is used.
        TN)r@   )rÝ   rª   s     r   Údecide_callable_or_booleanz>_determine_attrib_eq_order.<locals>.decide_callable_or_booleanÞ  s1   € ô �EŒ?Ø˜u�3ˆEð �cˆzÐð ˆCØ�cˆzÐr   FTr•  r–  )	r1   r7   r9   r˜  rI   rœ  Úcmp_keyr8   r:   s	            r   r=   r=   Õ  s¼   € ð
 €œ3 ¨$ °¸TÐ0AÐBÔCØ6ˆÜ˜‹oÐòð €Ù1°#Ó6‰ˆˆWØ�G˜S 'Ð)Ð)ð 
€zØ ˆF‰á/°Ó3‰
ˆˆFà€}Ø˜vˆy‰á5°eÓ<Ñˆˆyà	ˆU�{�u ‘}Ø=ˆÜ˜‹oÐàˆv�u˜iÐ'Ð'r   c                 óT   — |du s|du r|S |€|du r|S |D ]  }t        | |«      sŒ y |S )ap  
    Check whether we should implement a set of methods for *cls*.

    *flag* is the argument passed into @attr.s like 'init', *auto_detect* the
    same as passed into @attr.s and *dunders* is a tuple of attribute names
    whose presence signal that the user has implemented it themselves.

    Return *default* if no reason for either for or against is found.
    TF)rŒ   )r‡   ÚflagÚauto_detectÚdundersr.   Údunders         r   Ú_determine_whether_to_implementr£     sL   € ð ˆt�|�t˜u‘}Øˆà€|˜ uÑ,Øˆð ò ˆÜ˜c 6Õ*Ùðð €Nr   c                 óð   ‡‡‡‡‡‡‡‡	‡
‡‡‡‡‡‡‡‡‡‡‡‡— t        |||d«      \  ŠŠ|�|Št        ‰t        t        f«      rt	        j
                  ‰Ž Šˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆˆ
ˆˆ	fd„}| €|S  || «      S )a 4  
    A class decorator that adds :term:`dunder methods` according to the
    specified attributes using `attr.ib` or the *these* argument.

    Please consider using `attrs.define` / `attrs.frozen` in new code
    (``attr.s`` will *never* go away, though).

    :param these: A dictionary of name to `attr.ib` mappings.  This is useful
        to avoid the definition of your attributes within the class body
        because you can't (e.g. if you want to add ``__repr__`` methods to
        Django models) or don't want to.

        If *these* is not ``None``, *attrs* will *not* search the class body
        for attributes and will *not* remove any attributes from it.

        The order is deduced from the order of the attributes inside *these*.

    :type these: `dict` of `str` to `attr.ib`

    :param str repr_ns: When using nested classes, there's no way in Python 2
        to automatically detect that.  Therefore it's possible to set the
        namespace explicitly for a more meaningful ``repr`` output.
    :param bool auto_detect: Instead of setting the *init*, *repr*, *eq*,
        *order*, and *hash* arguments explicitly, assume they are set to
        ``True`` **unless any** of the involved methods for one of the
        arguments is implemented in the *current* class (i.e. it is *not*
        inherited from some base class).

        So for example by implementing ``__eq__`` on a class yourself, *attrs*
        will deduce ``eq=False`` and will create *neither* ``__eq__`` *nor*
        ``__ne__`` (but Python classes come with a sensible ``__ne__`` by
        default, so it *should* be enough to only implement ``__eq__`` in most
        cases).

        .. warning::

           If you prevent *attrs* from creating the ordering methods for you
           (``order=False``, e.g. by implementing ``__le__``), it becomes
           *your* responsibility to make sure its ordering is sound. The best
           way is to use the `functools.total_ordering` decorator.


        Passing ``True`` or ``False`` to *init*, *repr*, *eq*, *order*, *cmp*,
        or *hash* overrides whatever *auto_detect* would determine.

    :param bool repr: Create a ``__repr__`` method with a human readable
        representation of *attrs* attributes..
    :param bool str: Create a ``__str__`` method that is identical to
        ``__repr__``.  This is usually not necessary except for `Exception`\ s.
    :param bool | None eq: If ``True`` or ``None`` (default), add ``__eq__``
        and ``__ne__`` methods that check two instances for equality.

        They compare the instances as if they were tuples of their *attrs*
        attributes if and only if the types of both classes are *identical*!

        .. seealso:: `comparison`
    :param bool | None order: If ``True``, add ``__lt__``, ``__le__``,
        ``__gt__``, and ``__ge__`` methods that behave like *eq* above and
        allow instances to be ordered. If ``None`` (default) mirror value of
        *eq*.

        .. seealso:: `comparison`
    :param bool | None cmp: Setting *cmp* is equivalent to setting *eq* and
        *order* to the same value. Must not be mixed with *eq* or *order*.

        .. seealso:: `comparison`
    :param bool | None unsafe_hash: If ``None`` (default), the ``__hash__``
        method is generated according how *eq* and *frozen* are set.

        1. If *both* are True, *attrs* will generate a ``__hash__`` for you.
        2. If *eq* is True and *frozen* is False, ``__hash__`` will be set to
           None, marking it unhashable (which it is).
        3. If *eq* is False, ``__hash__`` will be left untouched meaning the
           ``__hash__`` method of the base class will be used (if base class is
           ``object``, this means it will fall back to id-based hashing.).

        Although not recommended, you can decide for yourself and force *attrs*
        to create one (e.g. if the class is immutable even though you didn't
        freeze it programmatically) by passing ``True`` or not.  Both of these
        cases are rather special and should be used carefully.

        .. seealso::

           - Our documentation on `hashing`,
           - Python's documentation on `object.__hash__`,
           - and the `GitHub issue that led to the default \
             behavior <https://github.com/python-attrs/attrs/issues/136>`_ for
             more details.

    :param bool | None hash: Alias for *unsafe_hash*. *unsafe_hash* takes
        precedence.
    :param bool init: Create a ``__init__`` method that initializes the *attrs*
        attributes. Leading underscores are stripped for the argument name. If
        a ``__attrs_pre_init__`` method exists on the class, it will be called
        before the class is initialized. If a ``__attrs_post_init__`` method
        exists on the class, it will be called after the class is fully
        initialized.

        If ``init`` is ``False``, an ``__attrs_init__`` method will be injected
        instead. This allows you to define a custom ``__init__`` method that
        can do pre-init work such as ``super().__init__()``, and then call
        ``__attrs_init__()`` and ``__attrs_post_init__()``.

        .. seealso:: `init`
    :param bool slots: Create a :term:`slotted class <slotted classes>` that's
        more memory-efficient. Slotted classes are generally superior to the
        default dict classes, but have some gotchas you should know about, so
        we encourage you to read the :term:`glossary entry <slotted classes>`.
    :param bool frozen: Make instances immutable after initialization.  If
        someone attempts to modify a frozen instance,
        `attrs.exceptions.FrozenInstanceError` is raised.

        .. note::

            1. This is achieved by installing a custom ``__setattr__`` method
               on your class, so you can't implement your own.

            2. True immutability is impossible in Python.

            3. This *does* have a minor a runtime performance `impact
               <how-frozen>` when initializing new instances.  In other words:
               ``__init__`` is slightly slower with ``frozen=True``.

            4. If a class is frozen, you cannot modify ``self`` in
               ``__attrs_post_init__`` or a self-written ``__init__``. You can
               circumvent that limitation by using ``object.__setattr__(self,
               "attribute_name", value)``.

            5. Subclasses of a frozen class are frozen too.

    :param bool weakref_slot: Make instances weak-referenceable.  This has no
        effect unless ``slots`` is also enabled.
    :param bool auto_attribs: If ``True``, collect :pep:`526`-annotated
        attributes from the class body.

        In this case, you **must** annotate every field.  If *attrs* encounters
        a field that is set to an `attr.ib` but lacks a type annotation, an
        `attr.exceptions.UnannotatedAttributeError` is raised.  Use
        ``field_name: typing.Any = attr.ib(...)`` if you don't want to set a
        type.

        If you assign a value to those attributes (e.g. ``x: int = 42``), that
        value becomes the default value like if it were passed using
        ``attr.ib(default=42)``.  Passing an instance of `attrs.Factory` also
        works as expected in most cases (see warning below).

        Attributes annotated as `typing.ClassVar`, and attributes that are
        neither annotated nor set to an `attr.ib` are **ignored**.

        .. warning::
           For features that use the attribute name to create decorators (e.g.
           :ref:`validators <validators>`), you still *must* assign `attr.ib`
           to them. Otherwise Python will either not find the name or try to
           use the default value to call e.g. ``validator`` on it.

           These errors can be quite confusing and probably the most common bug
           report on our bug tracker.

    :param bool kw_only: Make all attributes keyword-only in the generated
        ``__init__`` (if ``init`` is ``False``, this parameter is ignored).
    :param bool cache_hash: Ensure that the object's hash code is computed only
        once and stored on the object.  If this is set to ``True``, hashing
        must be either explicitly or implicitly enabled for this class.  If the
        hash code is cached, avoid any reassignments of fields involved in hash
        code computation or mutations of the objects those fields point to
        after object creation.  If such changes occur, the behavior of the
        object's hash code is undefined.
    :param bool auto_exc: If the class subclasses `BaseException` (which
        implicitly includes any subclass of any exception), the following
        happens to behave like a well-behaved Python exceptions class:

        - the values for *eq*, *order*, and *hash* are ignored and the
          instances compare and hash by the instance's ids (N.B. *attrs* will
          *not* remove existing implementations of ``__hash__`` or the equality
          methods. It just won't add own ones.),
        - all attributes that are either passed into ``__init__`` or have a
          default value are additionally available as a tuple in the ``args``
          attribute,
        - the value of *str* is ignored leaving ``__str__`` to base classes.
    :param bool collect_by_mro: Setting this to `True` fixes the way *attrs*
       collects attributes from base classes.  The default behavior is
       incorrect in certain cases of multiple inheritance.  It should be on by
       default but is kept off for backward-compatibility.

       .. seealso::
          Issue `#428 <https://github.com/python-attrs/attrs/issues/428>`_

    :param bool | None getstate_setstate:
       .. note::
          This is usually only interesting for slotted classes and you should
          probably just set *auto_detect* to `True`.

       If `True`, ``__getstate__`` and ``__setstate__`` are generated and
       attached to the class. This is necessary for slotted classes to be
       pickleable. If left `None`, it's `True` by default for slotted classes
       and ``False`` for dict classes.

       If *auto_detect* is `True`, and *getstate_setstate* is left `None`, and
       **either** ``__getstate__`` or ``__setstate__`` is detected directly on
       the class (i.e. not inherited), it is set to `False` (this is usually
       what you want).

    :param on_setattr: A callable that is run whenever the user attempts to set
        an attribute (either by assignment like ``i.x = 42`` or by using
        `setattr` like ``setattr(i, "x", 42)``). It receives the same arguments
        as validators: the instance, the attribute that is being modified, and
        the new value.

        If no exception is raised, the attribute is set to the return value of
        the callable.

        If a list of callables is passed, they're automatically wrapped in an
        `attrs.setters.pipe`.
    :type on_setattr: `callable`, or a list of callables, or `None`, or
        `attrs.setters.NO_OP`

    :param callable | None field_transformer:
        A function that is called with the original class object and all fields
        right before *attrs* finalizes the class.  You can use this, e.g., to
        automatically add converters or validators to fields based on their
        types.

        .. seealso:: `transform-fields`

    :param bool match_args:
        If `True` (default), set ``__match_args__`` on the class to support
        :pep:`634` (Structural Pattern Matching). It is a tuple of all
        non-keyword-only ``__init__`` parameter names on Python 3.10 and later.
        Ignored on older Python versions.

    .. versionadded:: 16.0.0 *slots*
    .. versionadded:: 16.1.0 *frozen*
    .. versionadded:: 16.3.0 *str*
    .. versionadded:: 16.3.0 Support for ``__attrs_post_init__``.
    .. versionchanged:: 17.1.0
       *hash* supports ``None`` as value which is also the default now.
    .. versionadded:: 17.3.0 *auto_attribs*
    .. versionchanged:: 18.1.0
       If *these* is passed, no attributes are deleted from the class body.
    .. versionchanged:: 18.1.0 If *these* is ordered, the order is retained.
    .. versionadded:: 18.2.0 *weakref_slot*
    .. deprecated:: 18.2.0
       ``__lt__``, ``__le__``, ``__gt__``, and ``__ge__`` now raise a
       `DeprecationWarning` if the classes compared are subclasses of
       each other. ``__eq`` and ``__ne__`` never tried to compared subclasses
       to each other.
    .. versionchanged:: 19.2.0
       ``__lt__``, ``__le__``, ``__gt__``, and ``__ge__`` now do not consider
       subclasses comparable anymore.
    .. versionadded:: 18.2.0 *kw_only*
    .. versionadded:: 18.2.0 *cache_hash*
    .. versionadded:: 19.1.0 *auto_exc*
    .. deprecated:: 19.2.0 *cmp* Removal on or after 2021-06-01.
    .. versionadded:: 19.2.0 *eq* and *order*
    .. versionadded:: 20.1.0 *auto_detect*
    .. versionadded:: 20.1.0 *collect_by_mro*
    .. versionadded:: 20.1.0 *getstate_setstate*
    .. versionadded:: 20.1.0 *on_setattr*
    .. versionadded:: 20.3.0 *field_transformer*
    .. versionchanged:: 21.1.0
       ``init=False`` injects ``__attrs_init__``
    .. versionchanged:: 21.1.0 Support for ``__attrs_pre_init__``
    .. versionchanged:: 21.1.0 *cmp* undeprecated
    .. versionadded:: 21.3.0 *match_args*
    .. versionadded:: 22.2.0
       *unsafe_hash* as an alias for *hash* (for :pep:`681` compliance).
    Nc                 óÖ  •— ‰xs t        | «      }‰	du xr t        | t        «      }‰xr t        | d«      }|r|rd}t	        |«      ‚t        | ‰‰|‰t        | ‰‰d‰¬«      ‰‰‰
|‰‰|‰«      }t        | ‰‰d«      r|j                  ‰«       ‰du r|j                  «        t        | ‰‰d«      }|s|du r|j                  «        |st        | ‰‰d«      r|j                  «        |j                  «        ‰€‰du rt        | d	«      rd
Š‰dur‰d
ur‰�d}t        |«      ‚‰d
u s‰€|d
u s|r‰
rKd}t        |«      ‚‰du s
‰€|du r|du r|j                  «        n‰
rd}t        |«      ‚|j                  «        t        | ‰‰d«      r|j                  «        n|j!                  «        ‰
rd}t        |«      ‚t"        r‰rt        | d«      s|j%                  «        |j'                  «       S )NTrÛ   z/Can't freeze a class with a custom __setattr__.)rû   rü   r¢   rQ  )rx  ry  )r�  r‚  rƒ  r„  rc  Fr-   zlInvalid value for cache_hash.  To use hash caching, hashing must be either explicitly or implicitly enabled.)r  zFInvalid value for cache_hash.  To use hash caching, init must be True.rr  )Ú_has_frozen_base_classÚ
issubclassrÚ   rŒ   r?   rã   r£  rN  rS  r}  r†  r�  r>   rh  rd  rn  rv  r   rs  r  )r‡   Ú	is_frozenr  Úhas_own_setattrrI   Úbuilderr7   r¼   r   Úauto_excr
  r½   Úeq_r¾   r  r	  r2   r3   r6   Ú
match_argsr;   Úorder_r0   Úrepr_nsr  r}   r»   r  s          €€€€€€€€€€€€€€€€€€€€€r   Úwrapzattrs.<locals>.wrapH  sL  ø€ ØÒ9Ô4°SÓ9ˆ	Ø˜TÐ!ÒD¤j°´mÓ&DˆØ%ò 
Ô*<Ø�ó+
ˆñ ™yØCˆCÜ˜S“/Ð!äØØØØØÜ+ØØ!ØØ0Øôð ØØØØØØØó)
ˆô, +Ø��{ Mô
ð ×Ñ˜WÔ%Ø�$‰;Ø�O‰OÔä,Ø��kÐ#7ó
ˆñ ˜" ™*Ø�N‰NÔÙÔ9Ø�˜Ð&Nô
ð ×ÑÔà×ÑÔð ˆLØ˜tÑ#Ü" 3¨
Ô3àˆDà�tÑ ¨EÑ 1°dÐ6FàJˆCÜ˜C“.Ð à�5‰=˜T˜\¨b°E©k¹fñ ð E�Ü “nÐ$Ø�T‰\ØˆL˜R 4™Z¨I¸Ñ,=ð ×ÑÕñ ð E�Ü “nÐ$Ø×#Ñ#Ô%ä*Ø��{ Mô
ð ×ÑÕà×"Ñ"Ô$ÙØ^�Ü “nÐ$õ ÙÜ& sÐ,<Ô=à×"Ñ"Ô$à×"Ñ"Ó$Ð$r   )r™  rB   rC   rD   r   rE   )Ú	maybe_clsr»   r¯  r0   r1   r2   r3   r  r  r  r}   r¼   r6   r
  r«  r7   r9   r   r½   r	  r;   r¾   r­  Úunsafe_hashr°  r¬  r®  s    ``` ``````````  ``````  @@r   rw   rw     su   ÿÿü€ ôJ	 ,¨C°°U¸DÓA�K€Cˆð ÐØˆä�*œt¤U˜mÔ,Ü—\‘\ :Ð.ˆ
÷d%÷ d%÷ d%ð d%ðP ÐØˆá�	‹?Ðr   c                 ó&   — | j                   t        u S )zV
    Check whether *cls* has a frozen ancestor by looking at its
    __setattr__.
    )rÛ   rÞ   r�   s    r   r¦  r¦  ½  s   € ð
 �?‰?Ô.Ð.Ð.r   c           
      óX   — d|› d| j                   › dt        | d| j                  «      › d�S )zF
    Create a "filename" suitable for a function being generated.
    z<attrs generated ú r«   r    rX   )r   r„   r   )r‡   Ú	func_names     r   rÏ   rÏ   Å  s7   € ð
 ˜I˜; a¨¯©Ð'7°qÜ�3˜¨¯©Ó5Ð
6°að	9ðr   c                 ó  ‡‡	‡
‡‡‡— t        d„ ‰D «       «      Šd}t        | d«      }t        |«      Ši Š
d}dŠdŠ	|s|dz  }n|dz  }|d	z  }d
‰z   Š‰	dz  Š	|gŠˆˆ	ˆ
ˆˆˆfd„}|rz‰j                  |dt        › d�z   «       |r, |dt        › d�|dz  «       ‰j                  |dz  dz   «       n |dt        › d�|dz  «       ‰j                  |dt        › �z   «       n	 |d|«       dj                  ‰«      }t        d||‰
«      S )Nc              3   ót   K  — | ]0  }|j                   d u s|j                   �Œ|j                  d u sŒ-|–— Œ2 y­w)TN)r2   r7   r´   s     r   r®   z_make_hash.<locals>.<genexpr>Ð  s1   è ø€ ò Ø˜AŸF™F d™N¨q¯v©v©~À!Ç$Á$È$Â,Œñùs   ‚8¢8±8ú        r2   zdef __hash__(selfzhash((rg   z):z, *zC, _cache_wrapper=__import__('attr._make')._make._CacheHashWrapper):z_cache_wrapper(ú)c           	      óh  •— ‰j                  || z   ‰z   |d‰	› d�z   g«       ‰D ]u  }|j                  rEd|j                  › d�}|j                  ‰|<   ‰j                  |d|› d|j                  › d�z   «       ŒT‰j                  |d|j                  › d�z   «       Œw ‰j                  |dz   ‰z   «       y	)
zÛ
        Generate the code for actually computing the hash code.
        Below this will either be returned directly or used to compute
        a value which is then cached, depending on the value of cache_hash
        r¹  ú,Ú_Ú_keyú(self.ú),ú        self.rf   N)rÎ   r8   r^   rl   )
ÚprefixÚindentr‹   Úcmp_namerw   Úclosing_bracesrP   Ú	hash_funcÚmethod_linesÚ	type_hashs
       €€€€€€r   Úappend_hash_computation_linesz1_make_hash.<locals>.append_hash_computation_linesé  sÒ   ø€ ð 	×Ñà˜‘ )Ñ+Ø˜8 I ;¨aÐ0Ñ0ðô	
ð ò 	HˆAØ�xŠxØ˜qŸv™v˜h dÐ+�Ø"#§(¡(��h‘Ø×#Ñ#Ø˜x¨ z°¸¿¹°x¸rÐBÑBõð ×#Ñ# F¨}¸Q¿V¹V¸HÀAÐ-FÑ$FÕGð	Hð 	×Ñ˜F V™O¨nÑ<Õ=r   zif self.z	 is None:zobject.__setattr__(self, 'ú', é   úself.ú = zreturn self.zreturn rj   rc  )rD   rÏ   r2   rl   r1  rn   rc   )r‡   rw   r  r
  ÚtabrÓ   Úhash_defrÉ  rO   rÅ  rP   rÆ  rÇ  rÈ  s    `       @@@@@r   rg  rg  Ï  sO  ý€ Üñ Øôó €Eð €Cä/°°VÓ<€OÜ�_Ó%€Ià€Eà"€HØ€IØ€NÙØ�DÑ‰à�EÑˆàÐYÑYˆØ%¨	Ñ1ˆ	Ø˜#Ñˆà�:€L÷>ñ >ñ4 Ø×Ñ˜C HÔ->Ð,?¸yÐ"IÑIÔJÙÙ)Ø,Ô->Ð,?¸sÐCÀSÈ1ÁWôð ×Ñ  a¡¨#¡Õ.á)ØÔ)Ð*¨#Ð.°°a±ôð 	×Ñ˜C LÔ1BÐ0CÐ"DÑDÕEá% i°Ô5à�Y‰Y�|Ó$€FÜ˜
 F¨O¸UÓCÐCr   c                 ó.   — t        | |dd¬«      | _        | S )z%
    Add a hash method to *cls*.
    Frf  )rg  rc  ©r‡   rw   s     r   Ú	_add_hashrÒ    s   € ô ˜c 5°À5ÔI€C„LØ€Jr   c                  ó   — d„ } | S )z
    Create __ne__ method.
    c                 óF   — | j                  |«      }|t        u rt        S | S )zj
        Check equality and either forward a NotImplemented or
        return the result negated.
        )rx  ÚNotImplemented)r   ÚotherÚresults      r   ry  z_make_ne.<locals>.__ne__#  s(   € ð
 —‘˜UÓ#ˆØ”^Ñ#Ü!Ð!àˆzÐr   r   )ry  s    r   r{  r{    s   € ò
	ð €Mr   c                 ór  — |D �cg c]  }|j                   sŒ|‘Œ }}t        | d«      }g d¢}i }|rÓ|j                  d«       dg}|D ]°  }|j                  rdd|j                  › d�}|j                  ||<   |j                  d|› d|j                  › d	�«       |j                  d|› d
|j                  › d	�«       Œs|j                  d|j                  › d�«       |j                  d|j                  › d�«       Œ² |g |¢d‘z  }n|j                  d«       dj                  |«      }t        d|||«      S c c}w )z6
    Create __eq__ method for *cls* with *attrs*.
    r7   )zdef __eq__(self, other):z-    if other.__class__ is not self.__class__:z        return NotImplementedz    return  (z
    ) == (r½  r¾  r¹  r¿  rÀ  z(other.rÁ  r¼  z        other.z    )z    return Truerj   rx  )r7   rÏ   rl   r8   r^   rn   rc   )	r‡   rw   r‹   rÓ   rÒ   rP   ÚothersrÄ  rO   s	            r   rz  rz  1  s=  € ð Ö&�1 §£ŠQÐ&€EÐ&ä/°°TÓ:€Oò€Eð €EÙØ�‰�_Ô%Ø�ˆØò 
	:ˆAØ�xŠxØ˜qŸv™v˜h dÐ+�ð #$§(¡(��h‘Ø—‘˜x¨ z°¸¿¹°x¸rÐBÔCØ—‘ ¨¨
°'¸!¿&¹&¸ÀÐDÕEà—‘˜}¨Q¯V©V¨H°AÐ6Ô7Ø—‘ ¨q¯v©v¨h°aÐ8Õ9ð
	:ð 	Ð#�6Ð#˜7Ð#Ñ#‰à�‰Ð&Ô'à�Y‰Y�uÓ€Fä˜ &¨/¸5ÓAÐAùòC 's
   …D4—D4c                 óˆ   ‡‡— ‰D �cg c]  }|j                   sŒ|‘Œ c}Šˆfd„Šˆfd„}ˆfd„}ˆfd„}ˆfd„}||||fS c c}w )z9
    Create ordering methods for *cls* with *attrs*.
    c                 ó<   •‡ — t        d„ ˆ fd„‰D «       D «       «      S )z&
        Save us some typing.
        c              3   ó:   K  — | ]  \  }}|r ||«      n|–— Œ y ­wr'   r   )r­   rÝ   rª   s      r   r®   z6_make_order.<locals>.attrs_to_tuple.<locals>.<genexpr>c  s'   è ø€ ò 
á��sñ ‰C�ŒJ 5Ó(ñ
ùs   ‚c              3   ób   •K  — | ]&  }t        ‰|j                  «      |j                  f–— Œ( y ­wr'   )r„   r^   r:   )r­   r‹   Úobjs     €r   r®   z6_make_order.<locals>.attrs_to_tuple.<locals>.<genexpr>e  s*   øè ø€ ò Ø89”˜˜aŸf™fÓ% q§{¡{Ô3ñùs   ƒ,/)rD   )rÞ  rw   s   `€r   Úattrs_to_tuplez#_make_order.<locals>.attrs_to_tuple_  s)   ù€ ô ñ 
óØ=Bôô
ó 
ð 	
r   c                 ób   •— |j                   | j                   u r ‰| «       ‰|«      k  S t        S ©z1
        Automatically created by attrs.
        ©Ú	__class__rÕ  ©r   rÖ  rß  s     €r   r�  z_make_order.<locals>.__lt__j  ó0   ø€ ð �?‰?˜dŸn™nÑ,Ù! $Ó'©.¸Ó*?Ñ?Ð?äÐr   c                 ób   •— |j                   | j                   u r ‰| «       ‰|«      k  S t        S rá  râ  rä  s     €r   r‚  z_make_order.<locals>.__le__s  ó0   ø€ ð �?‰?˜dŸn™nÑ,Ù! $Ó'©>¸%Ó+@Ñ@Ð@äÐr   c                 ób   •— |j                   | j                   u r ‰| «       ‰|«      kD  S t        S rá  râ  rä  s     €r   rƒ  z_make_order.<locals>.__gt__|  rå  r   c                 ób   •— |j                   | j                   u r ‰| «       ‰|«      k\  S t        S rá  râ  rä  s     €r   r„  z_make_order.<locals>.__ge__…  rç  r   )r9   )r‡   rw   r‹   r�  r‚  rƒ  r„  rß  s    `     @r   r…  r…  Y  sK   ù€ ð Ö)�1 §£ŠQÒ)€Eô	
ôôôôð �6˜6 6Ð)Ð)ùòc *s   ‡?™?c                 ób   — |€| j                   }t        | |«      | _        t        «       | _        | S )z5
    Add equality methods to *cls* with *attrs*.
    )r’   rz  rx  r{  ry  rÑ  s     r   Ú_add_eqrë  ‘  s0   € ð €}Ø×#Ñ#ˆä˜#˜uÓ%€C„JÜ“€C„Jà€Jr   c                 ó   — t        |d«      }t        d„ | D «       «      }|D ���ci c]  \  }}}|t        k7  sŒ|dz   |“Œ }}}}t        |d<   t        |d<   t
        |d<   g }	|D ]B  \  }}}
|
rd|z   nd|z   d	z   }|t        k(  r|›d
|›d�n
|›d
|›d|›d�}|	j                  |«       ŒD dj                  |	«      }|€d}n|dz   }ddddddddddddd|› d|› d�dd g}t        d!d"j                  |«      ||¬#«      S c c}}}w )$Nr0   c              3   ó¦   K  — | ]I  }|j                   d ur9|j                  |j                   du rt         n|j                   |j                  f–— ŒK y­w)FTN)r0   r^   r3   r´   s     r   r®   z_make_repr.<locals>.<genexpr>£  sC   è ø€ ò "àØ�6‰6˜Ñð 
�‰˜!Ÿ&™& D™.•$¨a¯f©f°q·v±vÔ>ñ"ùs   ‚AAÚ_reprr   r   r   rÌ  zgetattr(self, "z", NOTHING)z={z!r}z_repr(z)}r£   z1{self.__class__.__qualname__.rsplit(">.", 1)[-1]}z.{self.__class__.__name__}zdef __repr__(self):z  try:z:    already_repring = _compat.repr_context.already_repringz  except AttributeError:z!    already_repring = {id(self),}z:    _compat.repr_context.already_repring = already_repringz  else:z#    if id(self) in already_repring:z      return '...'z	    else:z#      already_repring.add(id(self))z    return f'ú(z)'z
  finally:z$    already_repring.remove(id(self))r   rj   )rP   )	rÏ   rD   r0   r   r   r   rl   rn   rc   )rw   rM  r‡   rÓ   Úattr_names_with_reprsr^   Úrr½  rP   Úattribute_fragmentsrs   ÚaccessorÚfragmentÚrepr_fragmentÚcls_name_fragmentrÒ   s                   r   rL  rL  ž  s~  € Ü/°°VÓ<€Oô "ñ "àô"ó Ðð -B÷ð Ù(˜d A qÀQÌ$ÃYˆˆw‰˜Ñð€Eò ô €Eˆ)ÑÜ,€EÐ
ÑÜ€Eˆ)ÑØÐØ+ò 	-‰
ˆˆa�áˆG�dŠNÐ%6¸Ñ%=ÀÑ%Mð 	ð
 ”DŠyò  ¢Ñ*â'+ªT²8Ð<ð 	ð
 	×"Ñ" 8Õ,ð	-ð —I‘IÐ1Ó2€Mà	€zØOÑàÐ!=Ñ=Ðð 	ØØDØ"Ø+ØDØØ-ØØØ-ØØ
Ð)Ð*¨!¨M¨?¸"Ð=ØØ.ð€Eô$ Ø�D—I‘I˜eÓ$ o¸Uôð ùôUs
   ¥C9¸C9c                 óF   — |€| j                   }t        ||| «      | _        | S )z%
    Add a repr method to *cls*.
    )r’   rL  r   )r‡   rM  rw   s      r   Ú	_add_reprrø  ×  s)   € ð €}Ø×#Ñ#ˆä˜e R¨Ó-€C„LØ€Jr   c                 óÌ   — t        | «      }|€t        | t        «      sd}t        |«      ‚t	        | dd«      }|€*|�t	        |dd«      }|�	|| _        |S | ›d�}t        |«      ‚|S )a*  
    Return the tuple of *attrs* attributes for a class.

    The tuple also allows accessing the fields by their names (see below for
    examples).

    :param type cls: Class to introspect.

    :raise TypeError: If *cls* is not a class.
    :raise attrs.exceptions.NotAnAttrsClassError: If *cls* is not an *attrs*
        class.

    :rtype: tuple (with name accessors) of `attrs.Attribute`

    .. versionchanged:: 16.2.0 Returned tuple allows accessing the fields
       by name.
    .. versionchanged:: 23.1.0 Add support for generic classes.
    NúPassed object must be a class.r’   ú! is not an attrs-decorated class.)r   rB   r+   r>   r„   r’   r   )r‡   Úgeneric_baserI   rw   s       r   Úfieldsrý  â  s‡   € ô& $ CÓ(€LàÐ¤J¨s´DÔ$9Ø.ˆÜ˜‹nÐä�CÐ*¨DÓ1€Eà€}ØÐ#Ü˜LÐ*;¸TÓBˆEØÐ ð ',�Ô#Ø�Ø�Ð8Ð9ˆÜ" 3Ó'Ð'à€Lr   c                 óº   — t        | t        «      sd}t        |«      ‚t        | dd«      }|€| ›d�}t	        |«      ‚|D �ci c]  }|j
                  |“Œ c}S c c}w )aX  
    Return an ordered dictionary of *attrs* attributes for a class, whose
    keys are the attribute names.

    :param type cls: Class to introspect.

    :raise TypeError: If *cls* is not a class.
    :raise attrs.exceptions.NotAnAttrsClassError: If *cls* is not an *attrs*
        class.

    :rtype: dict

    .. versionadded:: 18.1.0
    rú  r’   Nrû  )rB   r+   r>   r„   r   r^   )r‡   rI   rw   r‹   s       r   Úfields_dictrÿ    se   € ô �cœ4Ô Ø.ˆÜ˜‹nÐÜ�CÐ*¨DÓ1€EØ€}Ø�Ð8Ð9ˆÜ" 3Ó'Ð'Ø$Ö%˜!ˆA�F‰F�A‰IÒ%Ð%ùÒ%s   ÁAc           	      ó¸   — t         j                  du ryt        | j                  «      D ]/  }|j                  }|€Œ || |t        | |j                  «      «       Œ1 y)z¥
    Validate all attributes on *inst* that have a validator.

    Leaves all exceptions through.

    :param inst: Instance of a class with *attrs* attributes.
    FN)r   Ú_run_validatorsrý  rã  r/   r„   r^   )Úinstr‹   r;  s      r   r  r  %  sR   € ô ×Ñ %Ñ'Øä�D—N‘NÓ#ò .ˆØ�K‰KˆØ‰=Ùˆd�A”w˜t Q§V¡VÓ,Õ-ñ.r   c                 ó   — d| j                   v S )Nr&  )rµ   r�   s    r   Ú_is_slot_clsr  6  s   € Ø˜#Ÿ,™,Ð&Ð&r   c                 ó*   — | |v xr t        ||    «      S )z>
    Check if the attribute name comes from a slot class.
    )r  )Úa_namer›   s     r   Ú_is_slot_attrr  :  s   € ð �]Ð"ÒJ¤|°MÀ&Ñ4IÓ'JÐJr   c                 óø  — |
d uxr |
t         j                  u}|r|rd}t        |«      ‚|xs |}g }i }|D ]ƒ  }|j                  s|j                  t
        u rŒ"|j                  |«       |||j                  <   |j                  �|du rd}t        |«      ‚d}Œb|sŒe|j                  t         j                  usŒ‚d}Œ… t        | d«      }t        |||||||||	|||«      \  }}}| j                  t        j                  v r6|j                  t        j                  | j                     j                  «       |j                  t
        |dœ«       |rt         j"                  |d<   t%        |rdnd|||«      }||_        |S )Nz$Frozen classes can't use on_setattr.Tr3   )r   Ú	attr_dictrÊ   ru  r  )r   rŽ  r?   r3   r.   r   rl   r^   r;   rÏ   Ú_attrs_to_init_scriptr   ÚsysÚmodulesr)  rµ   rÐ   rÑ   rc   rŽ   )r‡   rw   Úpre_initÚpre_init_has_argsÚ	post_initr  r  r
  r›   r  Úcls_on_setattrrk  Úhas_cls_on_setattrrI   Úneeds_cached_setattrÚfiltered_attrsr	  r‹   rÓ   rO   rP   Úannotationsr3   s                          r   rm  rm  A  sŽ  € ð 	˜dÐ"ÒJ ~¼W¿]¹]Ð'Jð ñ Ñ$Ø4ˆÜ˜‹oÐà%Ò/¨ÐØ€NØ€IØò (ˆØ�vŠv˜!Ÿ)™)¤wÑ.Øà×Ñ˜aÔ Øˆ	�!—&‘&Ñà�<‰<Ð#Ø˜‰~Ø<�Ü  “oÐ%à#'Ñ Ú A§L¡L¼¿¹Ò$EØ#'Ñ ð(ô  0°°VÓ<€Oä!6ØØØØØØØØØØØØó"Ñ€FˆE�;ð ‡~�~œŸ™Ñ$à�‰”S—[‘[ §¡Ñ0×9Ñ9Ô:à	‡L�LœW°9Ñ=Ô>áô (4×';Ñ';ˆÐ#Ñ$äÙ&Ñ¨JØØØó	€Dð '€DÔà€Kr   c                 ó   — d| › d|› d�S )zJ
    Use the cached object.setattr to set *attr_name* to *value_var*.
    ú
_setattr('rÊ  rº  r   ©rt   Ú	value_varÚhas_on_setattrs      r   Ú_setattrr  �  s   € ð ˜	�{ # i [°Ð2Ð2r   c                 ó*   — d| ›dt         | fz  ›d|›d�S )zk
    Use the cached object.setattr to set *attr_name* to *value_var*, but run
    its converter first.
    r  rÊ  rï  rg   )Ú_init_converter_patr  s      r   Ú_setattr_with_converterr  —  s   � ò 	Ü˜y˜lÓ*Úðð r   c                 ó0   — |rt        | |d«      S d| › d|› �S )zo
    Unless *attr_name* has an on_setattr hook, use normal assignment. Otherwise
    relegate to _setattr.
    TrÌ  rÍ  )r  )rt   rÝ   r  s      r   Ú_assignr  £  s)   € ñ
 Ü˜	 5¨$Ó/Ð/à�9�+˜S  Ð(Ð(r   c                 óH   — |rt        | |d«      S d| ›dt        | fz  ›d|›d�S )z�
    Unless *attr_name* has an on_setattr hook, use normal assignment after
    conversion. Otherwise relegate to _setattr_with_converter.
    TrÌ  rÍ  rï  rº  )r  r  r  s      r   Ú_assign_with_converterr!  ®  s7   € ñ
 Ü& y°)¸TÓBÐBð ò 	Ü˜y˜lÓ*Úðð r   c           
      ó^  ‡— g }|r|j                  d«       |	r|j                  d«       |du r-|du rt        }t        }n(|j                  d«       ˆfd„}ˆfd„}nt        }t        }g }g }g }i }ddi}| D �]·  }|j
                  r|j                  |«       |j                  }|j                  duxs  |j                  t        j                  uxr |
}|j                  }t        |j                  t        «      }|r|j                  j                  rd	nd
}|j                  du �r|rŸt         |j                  fz  }|j"                  �D|j                   |||d|› d�z   |«      «       t$        |j                  fz  }|j"                  ||<   n |j                   |||d|› d�z   |«      «       |j                  j&                  ||<   �nö|j"                  �B|j                   ||d|› d�|«      «       t$        |j                  fz  }|j"                  ||<   �n¨|j                   ||d|› d�|«      «       �n‰|j                  t(        urœ|sš|› d|› d�}|j*                  r|j                  |«       n|j                  |«       |j"                  �<|j                   ||||«      «       |j"                  |t$        |j                  fz  <   �nö|j                   ||||«      «       �nÛ|�rI|› d�}|j*                  r|j                  |«       n|j                  |«       |j                  d|› d�«       t         |j                  fz  }|j"                  �t|j                  d ||||«      z   «       |j                  d«       |j                  d |||dz   |z   dz   |«      z   «       |j"                  |t$        |j                  fz  <   nR|j                  d ||||«      z   «       |j                  d«       |j                  d |||dz   |z   dz   |«      z   «       |j                  j&                  ||<   n�|j*                  r|j                  |«       n|j                  |«       |j"                  �;|j                   ||||«      «       |j"                  |t$        |j                  fz  <   n|j                   ||||«      «       |j                  du s�ŒU|j,                  �|j"                  €|j,                  ||<   �Œ~|j"                  €�ŒŒt/        |j"                  «      j1                  «       }|s�Œ³|||<   �Œº |rxt2        |d<   |j                  d«       |D ]Y  }d|j                  z   }d|j                  z   }|j                  d|› d|› d|j                  › d�«       |j
                  ||<   |||<   Œ[ |r|j                  d«       |r&|r|rd}nd}nd}|j                  |t4        d fz  «       |r-d!j7                  d"„ | D «       «      } |j                  d#| › d�«       d$j7                  |«      }|}!|rO||rd$nd
›d%d$j7                  |«      ›�z  }d$j7                  |D �"cg c]	  }"|"›d&|"›�‘Œ c}"«      }#|!|!rd$nd
z  }!|!|#z  }!|r
|rd'|!z  |d(<   d)|rd*nd+›d|›d,|rd-j7                  |«      nd.›d/�||fS c c}"w )0zô
    Return a script of an initializer for *attrs* and a dict of globals.

    The globals are expected by the generated script.

    If *frozen* is True, we cannot set the attributes directly so we use
    a cached ``object.__setattr__``.
    zself.__attrs_pre_init__()z$_setattr = _cached_setattr_get(self)Tz_inst_dict = self.__dict__c                 óF   •— t        | ‰«      rt        | ||«      S d| › d|› �S )Nú_inst_dict['ú'] = )r  r  ©rt   r  r  r›   s      €r   Ú
fmt_setterz)_attrs_to_init_script.<locals>.fmt_setterê  s/   ø€ Ü  ¨MÔ:Ü# I¨y¸.ÓIÐIà% i [°°i°[ÐAÐAr   c                 ób   •— |st        | ‰«      rt        | ||«      S d| ›dt        | fz  ›d|›d�S )Nr$  r%  rï  rº  )r  r  r  r&  s      €r   Úfmt_setter_with_converterz8_attrs_to_init_script.<locals>.fmt_setter_with_converterð  sG   ø€ ñ "¤]°9¸mÔ%LÜ2Ø! 9¨nóð ð &Mò Ü'¨9¨,Ó6Úðð r   ÚreturnNr   Ú Frï  rº  zattr_dict['z
'].defaultz=attr_dict['z=NOTHINGzif z is not NOTHING:rf   zelse:r   z#if _config._run_validators is True:Ú__attr_validator_Ú__attr_z(self, z, self.zself.__attrs_post_init__()z_setattr('%s', %s)z_inst_dict['%s'] = %szself.%s = %sÚNoner¼  c              3   óT   K  — | ]   }|j                   sŒd |j                  › �–— Œ" y­w)rÌ  N)r3   r^   r´   s     r   r®   z(_attrs_to_init_script.<locals>.<genexpr>¼	  s!   è ø€ ÒB¨Q¸1¿6»6˜% §¡˜xÔ(ÑBùs   ‚(”(zBaseException.__init__(self, r£   z*, ú=zself.__attrs_pre_init__(%s)r   zdef ru  r  z):
    z
    Úpassrj   )rl   r  r  r  r!  r/   r^   r;   r   rŽ  r<   rB   r.   rA   Ú
takes_selfr3   Ú_init_factory_patr4   r  rH   r   r6   r+   r
   Úget_first_param_typer   r1  rn   )$rw   r  r  r  r  r  r
  r›   r  r  r  rk  rÒ   r'  r)  ÚargsÚkw_only_argsÚattrs_to_validateÚnames_for_globalsr  r‹   rt   r  Úarg_nameÚhas_factoryÚ
maybe_selfÚinit_factory_nameÚ	conv_nameÚargÚtÚval_nameÚinit_hash_cacheÚvalsÚpre_init_argsÚkw_argÚpre_init_kw_only_argss$          `                            r   r
  r
  ½  sô  ø€ ð, €EÙØ�‰Ð0Ô1áØ�‰ð 3ô		
ð ��~Ø�D‰=Ü!ˆJÜ(?Ñ%ð �L‰LÐ5Ô6ôBõô  ˆ
Ü$:Ð!à€DØ€LØÐð ÐØ˜TÐ"€Kàó M.ˆØ�;Š;Ø×$Ñ$ QÔ'à—F‘Fˆ	ØŸ™¨TÐ1ò 
Ø�L‰L¤§¡Ð-ÒDÐ2Dð 	ð
 —7‘7ˆä  §¡¬GÓ4ˆÙ*¨q¯y©y×/CÒ/C‘VÈˆ
à�6‰6�UŠ?ÙÜ$5¸¿¹¸	Ñ$AÐ!Ø—;‘;Ð*Ø—L‘LÙ1Ø%Ø-°!°J°<¸qÐ0AÑAØ*óôô !4°q·v±v°iÑ ?�IØ34·;±;Ð% iÒ0à—L‘LÙ"Ø%Ø-°!°J°<¸qÐ0AÑAØ*óôð 89·y±y×7HÑ7HÐ!Ð"3Ó4Ø—‘Ð(Ø—‘Ù-Ø!Ø% i [°
Ð;Ø&óôô 0°1·6±6°)Ñ;�	Ø/0¯{©{Ð! )Ó,à—‘ÙØ!Ø% i [°
Ð;Ø&óöð �Y‰YœgÑ%©kØ�J˜l¨9¨+°ZÐ@ˆCØ�yŠyØ×#Ñ# CÕ(à—‘˜CÔ à�{‰{Ð&Ø—‘Ù-Ø! 8¨^óôð —K‘Kð "Ü'¨1¯6©6¨)Ñ3óð —‘™Z¨	°8¸^ÓLÖMâØ�J˜hÐ'ˆCØ�yŠyØ×#Ñ# CÕ(à—‘˜CÔ Ø�L‰L˜3˜x˜jÐ(8Ð9Ô:ä 1°Q·V±V°IÑ =ÐØ�{‰{Ð&Ø—‘ØÙ/Ø! 8¨^óñôð —‘˜WÔ%Ø—‘ØÙ/Ø!Ø)¨CÑ/°*Ñ<¸sÑBØ&óñôð —K‘Kð "Ü'¨1¯6©6¨)Ñ3òð —‘Ø™Z¨	°8¸^ÓLÑLôð —‘˜WÔ%Ø—‘ØÙ Ø!Ø)¨CÑ/°*Ñ<¸sÑBØ&óñôð 45·9±9×3DÑ3DÐÐ/Ò0à�yŠyØ×#Ñ# HÕ-à—‘˜HÔ%à�{‰{Ð&Ø—‘Ù-Ø! 8¨^óôð —K‘Kð "Ü'¨1¯6©6¨)Ñ3òð —‘™Z¨	°8¸^ÓLÔMà�6‰6�T‹>Ø�v‰vÐ! a§k¡kÐ&9Ø()¯©�˜HÓ%Ø—‘Ò(ä(¨¯©Ó5×JÑJÓL�ÛØ,-�K Ó)ð[M.ñ^ Ü'.Ð˜)Ñ$Ø�‰Ð:Ô;Ø"ò 	-ˆAØ*¨Q¯V©VÑ3ˆHØ! A§F¡FÑ*ˆIØ�L‰L˜4 ˜z¨°°¸7À1Ç6Á6À(È!ÐLÔMØ*+¯+©+Ð˜hÑ'Ø+,Ð˜iÒ(ð	-ñ Ø�‰Ð1Ô2ñ ÙÙà"6‘ð #:‘à,ˆOØ�‰�_Ô(9¸6Ð'BÑBÔCñ Ø�x‰xÑB°%ÔBÓBˆà�‰Ð4°T°F¸!Ð<Ô=à�9‰9�T‹?€DØ€MÙØÙ‰D˜bÑ Ø�I‰I�lÔ#ð
ñ 	
ˆð !%§	¡	Ø6BÖC¨Fš¡Ò'ÒCó!
Ðð 	Ù!‰D rñ	
ˆð 	Ð.Ñ.ˆáÑ%à0°=Ñ@ˆˆa‰øñ
 ",Ñ°Ñ;ÚÙ$)ˆH�M‰M˜%Ô ¨vÑ5ð		
ð 	Øð	ð 	ùò Ds   ÙZ*r^   r*  c                 ó$   — | j                  d«      S )zÅ
    The default __init__ parameter name for a field.

    This performs private-name adjustment via leading-unscore stripping,
    and is the default value of Attribute.alias if not provided.
    r½  )Úlstripr÷   s    r   rº   rº   ß	  s   € ð �;‰;�sÓÐr   c                   ó`   — e Zd ZdZdZ	 	 	 	 	 	 	 	 	 	 dd„Zd„ Zedd„«       Zd„ Z	d„ Z
d	„ Zd
„ Zy)r¸   a¶  
    *Read-only* representation of an attribute.

    .. warning::

       You should never instantiate this class yourself.

    The class has *all* arguments of `attr.ib` (except for ``factory``
    which is only syntactic sugar for ``default=Factory(...)`` plus the
    following:

    - ``name`` (`str`): The name of the attribute.
    - ``alias`` (`str`): The __init__ parameter name of the attribute, after
      any explicit overrides and default private-attribute-name handling.
    - ``inherited`` (`bool`): Whether or not that attribute has been inherited
      from a base class.
    - ``eq_key`` and ``order_key`` (`typing.Callable` or `None`): The callables
      that are used for comparing and ordering objects by this attribute,
      respectively. These are set by passing a callable to `attr.ib`'s ``eq``,
      ``order``, or ``cmp`` arguments. See also :ref:`comparison customization
      <custom-comparison>`.

    Instances of this class are frequently used for introspection purposes
    like:

    - `fields` returns a tuple of them.
    - Validators get them passed as the first argument.
    - The :ref:`field transformer <transform-fields>` hook receives a list of
      them.
    - The ``alias`` property exposes the __init__ parameter name of the field,
      with any overrides and default private-attribute handling applied.


    .. versionadded:: 20.1.0 *inherited*
    .. versionadded:: 20.1.0 *on_setattr*
    .. versionchanged:: 20.2.0 *inherited* is not taken into account for
        equality checks and hashing anymore.
    .. versionadded:: 21.1.0 *eq_key* and *order_key*
    .. versionadded:: 22.2.0 *alias*

    For the full version history of the fields, see `attr.ib`.
    )r^   r.   r/   r0   r7   r8   r9   r:   r2   r3   r5   r+   r4   r6   r”   r;   r<   Nc                 óÞ  — t        ||xs ||xs |d«      \  }}}}t        j                  | «      } |d|«        |d|«        |d|«        |d|«        |d|«        |d|«        |d|«        |d	|«        |d
|«        |d|«        |d|«        |d|	rt        j                  t        |	«      «      nt        «        |d|
«        |d|«        |d|«        |d|«        |d|«       y )NTr^   r.   r/   r0   r7   r8   r9   r:   r2   r3   r4   r5   r+   r6   r”   r;   r<   )r=   rÐ   rÑ   ÚtypesÚMappingProxyTyperý   Ú_empty_metadata_singleton)r   r^   r.   r/   r0   r1   r2   r3   r”   r5   r+   r4   r6   r7   r8   r9   r:   r;   r<   Úbound_setattrs                       r   r  zAttribute.__init__*
  s  € ô* (BØ�’˜2˜yÒ1¨E°4ó(
Ñ$ˆˆF�E˜9ô
 %×,Ñ,¨TÓ2ˆñ 	�f˜dÔ#Ù�i Ô)Ù�k 9Ô-Ù�f˜dÔ#Ù�d˜BÔÙ�h Ô'Ù�g˜uÔ%Ù�k 9Ô-Ù�f˜dÔ#Ù�f˜dÔ#Ù�k 9Ô-ÙØñ ô ×&Ñ&¤t¨H£~Ô6ä.ô	
ñ 	�f˜dÔ#Ù�i Ô)Ù�k 9Ô-Ù�l JÔ/Ù�g˜uÕ%r   c                 ó   — t        «       ‚r'   rà   rÜ   s      r   rÛ   zAttribute.__setattr__a
  s   € Ü!Ó#Ð#r   c           
      óú   — |€|j                   }n|j                   �d}t        |«      ‚t        j                  D �ci c]  }|dvr|t	        ||«      “Œ }} | d||j
                  |j                  |d ddœ|¤ŽS c c}w )Nz8Type annotation and type argument cannot both be present)r^   r/   r.   r+   r”   F)r^   r/   r.   r+   r1   r”   r   )r+   r?   r¸   r&  r„   Ú
_validatorÚ_default)r‡   r^   r²   r+   rI   r:  Ú	inst_dicts          r   r¹   zAttribute.from_counting_attrd
  s¥   € ð ˆ<Ø—7‘7‰DØ�W‰WÐ ØLˆCÜ˜S“/Ð!ô ×(Ñ(ö
àØðñð Œw�r˜1‹~Ñð
ˆ	ð 
ñ ð 
ØØ—m‘mØ—K‘KØØØñ
ð ñ
ð 	
ùò
s   »A8c                 ón   — t        j                   | «      }|j                  |j                  «       «       |S )zý
        Copy *self* and apply *changes*.

        This works similarly to `attrs.evolve` but that function does not work
        with `Attribute`.

        It is mainly meant to be used for `transform-fields`.

        .. versionadded:: 20.3.0
        )ÚcopyÚ	_setattrsr¶   )r   ÚchangesÚnews      r   r–   zAttribute.evolveƒ
  s(   € ô �i‰i˜‹oˆà�‰�g—m‘m“oÔ&àˆ
r   c                 ó@   ‡ — t        ˆ fd„‰ j                  D «       «      S )ú(
        Play nice with pickle.
        c              3   ój   •K  — | ]*  }|d k7  rt        ‰|«      nt        ‰j                  «      –— Œ, y­w)r5   N)r„   rý   r5   ©r­   r^   r   s     €r   r®   z)Attribute.__getstate__.<locals>.<genexpr>™
  s5   øè ø€ ò 
àð $(¨:Ò#5ŒG�D˜$Ô¼4ÀÇÁÓ;NÓNñ
ùs   ƒ03©rD   r&  r   s   `r   rû   zAttribute.__getstate__•
  s#   ø€ ô ó 
àŸ™ô
ó 
ð 	
r   c                 óN   — | j                  t        | j                  |«      «       y©rY  N)rU  r]  r&  )r   r^  s     r   rü   zAttribute.__setstate__ž
  s   € ð 	�‰”s˜4Ÿ>™>¨5Ó1Õ2r   c           	      óº   — t         j                  | «      }|D ]A  \  }}|dk7  r
 |||«       Œ |||rt        j                  t	        |«      «      nt
        «       ŒC y )Nr5   )rÐ   rÑ   rJ  rK  rý   rL  )r   Úname_values_pairsrM  r^   rÝ   s        r   rU  zAttribute._setattrs¤
  s\   € Ü$×,Ñ,¨TÓ2ˆØ,ò 		‰KˆD�%Ø�zÒ!Ù˜d EÕ*áØáô ×*Ñ*¬4°«;Ô7ä2õ	ñ			r   )
NNNFNNNNNNr'   )r   r   r    r!   r&  r  rÛ   r5  r¹   r–   rû   rü   rU  r   r   r   r¸   r¸   ê	  sb   „ ñ)ðV€Ið< ØØØØØØØØØó'5&òn$ð ò
ó ð
ò<ò$
ò3ór   r¸   r5   )r^   r.   r/   r0   r1   r7   r9   r2   r3   r”   r<   )rw   r”   c                   ó|   — e Zd ZdZdZg  ed„ dD «       «      ¢ eddddddddddddddd¬	«      ‘­Zd
Zd„ Z	d„ Z
d„ Zy)rG   a  
    Intermediate representation of attributes that uses a counter to preserve
    the order in which the attributes have been defined.

    *Internal* data structure of the attrs library.  Running into is most
    likely the result of a bug like a forgotten `@attr.s` decorator.
    )r¦   rQ  r0   r7   r8   r9   r:   r2   r3   r5   rP  r4   r+   r6   r;   r<   c              #   ój   K  — | ]+  }t        |t        |«      t        d dd ddddd dd dd ¬«      –— Œ- y ­w)NTF©r^   r<   r.   r/   r0   r1   r2   r3   r6   r7   r8   r9   r:   r”   r;   )r¸   rº   r   )r­   r^   s     r   r®   z_CountingAttr.<genexpr>è
  sV   è ø€ ò 
ð$ ô# ØÜ-¨dÓ3ÜØØØØØØØØØØØØ÷ð ñ
ùs   ‚13)	r¦   rQ  r0   r7   r9   r2   r3   r;   r<   r5   NTFrc  r   c                 ó2  — t         xj                  dz  c_        t         j                  | _        || _        || _        || _        || _        || _        || _        || _	        || _
        || _        || _        || _        |	| _        |
| _        || _        || _        y r°   )rG   Úcls_counterr¦   rQ  rP  r4   r0   r7   r8   r9   r:   r2   r3   r5   r+   r6   r;   r<   )r   r.   r/   r0   r1   r2   r3   r4   r5   r+   r6   r7   r8   r9   r:   r;   r<   s                    r   r  z_CountingAttr.__init__  s‹   € ô& 	×!Ò! QÑ&Õ!Ü$×0Ñ0ˆŒØˆŒØ#ˆŒØ"ˆŒØˆŒ	ØˆŒØˆŒØˆŒ
Ø"ˆŒØˆŒ	ØˆŒ	Ø ˆŒØˆŒ	ØˆŒØ$ˆŒØˆ�
r   c                 óf   — | j                   €	|| _         |S t        | j                   |«      | _         |S )zŒ
        Decorator that adds *meth* to the list of validators.

        Returns *meth* unchanged.

        .. versionadded:: 17.1.0
        )rP  rF   ©r   r€  s     r   r/   z_CountingAttr.validator?  s5   € ð �?‰?Ð"Ø"ˆDŒOð ˆô # 4§?¡?°DÓ9ˆDŒOØˆr   c                 ób   — | j                   t        ur
t        «       ‚t        |d¬«      | _         |S )zÚ
        Decorator that allows to set the default for an attribute.

        Returns *meth* unchanged.

        :raises DefaultAlreadySetError: If default has been set before.

        .. versionadded:: 17.1.0
        T)r2  )rQ  r   r   rA   rg  s     r   r.   z_CountingAttr.defaultM  s,   € ð �=‰=¤Ñ'Ü(Ó*Ð*ä °Ô6ˆŒàˆr   )r   r   r    r!   r&  rD   r¸   r’   re  r  r/   r.   r   r   r   rG   rG   Ì
  s…   „ ñð€Ið$0Ù	ñ 
ð$
ô%
ó 

ð0ñ> 	ØØØØØØØØØØØØØØØô	
ñ?0€Oðb €Kò#òJór   rG   c                   ó(   — e Zd ZdZdZdd„Zd„ Zd„ Zy)rA   aÇ  
    Stores a factory callable.

    If passed as the default value to `attrs.field`, the factory is used to
    generate a new value.

    :param callable factory: A callable that takes either none or exactly one
        mandatory positional argument depending on *takes_self*.
    :param bool takes_self: Pass the partially initialized instance that is
        being initialized as a positional argument.

    .. versionadded:: 17.1.0  *takes_self*
    ©rH   r2  c                 ó    — || _         || _        y r'   rj  )r   rH   r2  s      r   r  zFactory.__init__s  s   € ØˆŒØ$ˆ�r   c                 ó@   ‡ — t        ˆ fd„‰ j                  D «       «      S )rY  c              3   ó6   •K  — | ]  }t        ‰|«      –— Œ y ­wr'   rY  r[  s     €r   r®   z'Factory.__getstate__.<locals>.<genexpr>{  s   øè ø€ ÒD¨T”W˜T 4×(ÑDùs   ƒr\  r   s   `r   rû   zFactory.__getstate__w  s   ø€ ô ÓD°T·^±^ÔDÓDÐDr   c                 óZ   — t        | j                  |«      D ]  \  }}t        | ||«       Œ yr^  )r]  r&  r"  )r   r^  r^   rÝ   s       r   rü   zFactory.__setstate__}  s.   € ô ˜tŸ~™~¨uÓ5ò 	'‰KˆD�%Ü�D˜$ Õ&ñ	'r   N)F)r   r   r    r!   r&  r  rû   rü   r   r   r   rA   rA   b  s   „ ñð *€Ió%òEó'r   rA   )
r^   r.   r/   r0   r1   r7   r9   r2   r3   r”   c                 ó$  ‡— t        |t        «      r|}n<t        |t        t        f«      r|D �ci c]  }|t	        «       “Œ }}nd}t        |«      ‚|j                  dd«      }|j                  dd«      }	|j                  dd«      }
i Š|�‰j                  |«       |�|‰d<   |	�|	‰d<   |
�|
‰d<   t        j                  | |i ˆfd„«      }t        j                  t        t        «      5  t        j                  d«      j                   j#                  dd	«      |_        ddd«       |j                  d
d«      }t'        ||j#                  d«      |j#                  d«      d«      \  |d<   |d<    t)        dd|i|¤Ž|«      S c c}w # 1 sw Y   ŒhxY w)ap  
    A quick way to create a new class called *name* with *attrs*.

    :param str name: The name for the new class.

    :param attrs: A list of names or a dictionary of mappings of names to
        `attr.ib`\ s / `attrs.field`\ s.

        The order is deduced from the order of the names or attributes inside
        *attrs*.  Otherwise the order of the definition of the attributes is
        used.
    :type attrs: `list` or `dict`

    :param tuple bases: Classes that the new class will subclass.

    :param dict class_body: An optional dictionary of class attributes for the new class.

    :param attributes_arguments: Passed unmodified to `attr.s`.

    :return: A new class with *attrs*.
    :rtype: type

    .. versionadded:: 17.1.0 *bases*
    .. versionchanged:: 18.1.0 If *attrs* is ordered, the order is retained.
    .. versionchanged:: 23.2.0 *class_body*
    z(attrs argument must be a dict or a list.rø   Nrù   r  c                 ó&   •— | j                  ‰«      S r'   )r)  )rM  Úbodys    €r   r©   zmake_class.<locals>.<lambda>Ë  s   ø€ ¸¿	¹	À$»€ r   r   r   Ú__main__r1   r7   r9   Tr»   r   )rB   rý   rC   rD   rJ   r>   Úpopr)  rJ  Ú	new_classr  r  r   r?   r  Ú	_getframeÚ	f_globalsr¥   r   r™  rå   )r^   rw   ÚbasesÚ
class_bodyÚattributes_argumentsÚcls_dictr‹   rI   r  r  Ú	user_initÚtype_r1   rq  s                @r   Ú
make_classr}  ˜  s   ø€ ô: �%œÔØ‰Ü	�EœD¤%˜=Ô	)Ø).Ö/ A�A”v“x‘KÐ/ˆÑ/à8ˆÜ˜‹nÐà�|‰|Ð0°$Ó7€HØ—‘Ð2°DÓ9€IØ—‘˜Z¨Ó.€Ià€DØÐØ�‰�JÔØÐØ%-ˆÐ!Ñ"ØÐØ&/ˆÐ"Ñ#ØÐØ$ˆˆZÑä�O‰O˜D %¨Ó-GÓH€Eô 
×	Ñ	œ^¬ZÓ	8ñ 
ÜŸ=™=¨Ó+×5Ñ5×9Ñ9Ø˜
ó
ˆÔ÷
ð ×
"Ñ
" 5¨$Ó
/€Cô 	"ØØ× Ñ  Ó&Ø× Ñ  Ó)Øó		ñØ˜TÑ"Ø˜WÑ%ð :Œ6Ñ9˜Ð9Ð$8Ñ9¸%Ó@Ð@ùòU 0÷2
ð 
ús   ¯FÃ*5FÆF)r  r2   c                   ó$   — e Zd ZdZ e«       Zd„ Zy)Ú_AndValidatorz2
    Compose many validators to a single one.
    c                 ó:   — | j                   D ]  } ||||«       Œ y r'   )Ú_validators)r   r  r‰   rÝ   r;  s        r   Ú__call__z_AndValidator.__call__ñ  s#   € Ø×!Ñ!ò 	!ˆAÙˆd�D˜%Õ ñ	!r   N)r   r   r    r!   rJ   r�  r‚  r   r   r   r  r  é  s   „ ññ “(€Kó!r   r  c                  ó˜   — g }| D ]0  }|j                  t        |t        «      r|j                  n|g«       Œ2 t        t	        |«      «      S )zÞ
    A validator that composes multiple validators into one.

    When called on a value, it runs all wrapped validators.

    :param callables validators: Arbitrary number of validators.

    .. versionadded:: 17.1.0
    )rÎ   rB   r  r�  rD   )Ú
validatorsrB  r/   s      r   rF   rF   ö  sO   € ð €DØò 
ˆ	Ø�‰ä˜)¤]Ô3ð ×!Ò!à�õ	
ð
ô œ˜t›Ó%Ð%r   c                  ó  ‡ — ˆ fd„}‰ s!t        j                  d«      }||dœ|_        |S t        ‰ d   «      j	                  «       }|r||j                  d<   t        ‰ d   «      j                  «       }|r||j                  d<   |S )aY  
    A converter that composes multiple converters into one.

    When called on a value, it runs all wrapped converters, returning the
    *last* value.

    Type annotations will be inferred from the wrapped converters', if
    they have any.

    :param callables converters: Arbitrary number of converters.

    .. versionadded:: 20.1.0
    c                 ó&   •— ‰D ]
  } || «      } Œ | S r'   r   )rŠ  r4   Ú
converterss     €r   Úpipe_converterzpipe.<locals>.pipe_converter  s"   ø€ Ø#ò 	!ˆIÙ˜C“.‰Cð	!ð ˆ
r   ÚA)rŠ  r*  r   rŠ  rV   r*  )ÚtypingÚTypeVarrŽ   r
   r4  Úget_return_type)r‡  rˆ  r‰  r?  Úrts   `    r   rE   rE     sŽ   ø€ ôñ ä�N‰N˜3ÓˆØ12¸aÑ)@ˆÔ&ð Ðô ! ¨A¡Ó/×DÑDÓFˆÙØ45ˆN×*Ñ*¨5Ñ1ô " *¨R¡.Ó1×AÑAÓCˆÙØ79ˆN×*Ñ*¨8Ñ4àÐr   )Nr+  )T)NNNNNNNFFTFFFFFNNFFNNNTNr'   )NN)ar  rT  r"   r*  rÿ   r2  r[   r  rJ  rŠ  Úoperatorr   r+  r   r   r   r   r	   r
   r   Ú
exceptionsr   r   r   r   ÚobjectrÛ   rÐ   r  r3  r€   r1  rK  rL  r…   rE   r  r  r  ÚEnumr   r   Úintr%   rJ   rT   rc   ru   rv   r‚   rŒ   r�   rž   r    rÇ   rÕ   rÞ   rá   rã   r™  r=   r£  rw   rå   r¦  rÏ   rg  rÒ  r{  rz  r…  rë  rL  rø  rý  rÿ  r  r  rm  r  r  r  r!  r
  r}   rº   r¸   r&  Ú_ar^   r2   rG   rA   Ú_fr}  r  rF   )r^   r‹   s   00r   ú<module>r•     sö  ðó Û Û Û Û Û Û Û 
Û Û å ÷ (Ñ '÷ó ÷ó ð ×!Ñ!€Ø+Ð Ø'Ð ðÐ ð )Ð à2˜E×2Ñ2°2Ó6Ð ñ ‹H€	à%˜Ÿ™ g§o¡o°w×7GÑ7GÓHÐ ôˆt�y‰yô ð( ×
Ñ
€ðô
(˜ô (ð" ØØ	ØØ	Ø	ØØ	ØØØØØ
ØØ
óTón òò:"ñ: %Øòó
€ò0ò"ò ò#ò>%ò8jGòZ5òp ò ÷Mñ Mò`ò8((ðX .2óð6 Ø
ØØ	ØØ	Ø	Ø
ØØØØØØØØØ
ØØØØØØØó1Yðx 
€ðò/òòDDòNòò&%BòP5*óp
ò6órò'òT&ò2.ò"'òKòLò^3ò	ò)òò_ðD	 #ð ¨#ó ÷Eñ Eðl ×#Ñ#öð 	ñ ØØØØØØØØ�jÑ ØØÙ% dÓ+öò€ñ" ÙÙ�) 2Ô&ØÖ6�Q §¡¨+Ó 5ŠqÒ6ôð Ö
=�˜AŸF›F q§v¡v°Ó'<Š1Ò
=ô€	÷Pñ Pñf ™	 -Ó0Ó1€÷ 'ñ  'ð` ×!Ñ!öð 	ñ ØØØØØØØØØØöò€ñ  ‘G™I g°RÔ8ÀÔCÈ2Ô
N€ð �y¨TóJAñb ˆT˜Ô÷	!ð 	!ó ð	!ò&ó*$ùòs
ùò( 7ùâ
=ùòzs*   Æ*#J>Ç!KÇ6KÈK
ÈK
È'K
É#K