
    &g                        d dl Z d dlmZ d dlmZ d dlmZ ddgZ G d dej                  Zej	        
                                Z	e	                    ej        j         e            i           ej        
                                Ze                    ej        j         e            i            G d	 d
ej                  Z G d dej                  Z e            ZdefdZdS )    N)error)encoder)univEncoderencodec                   $    e Zd Zed             ZdS )
SetEncoderc                 r   | \  }|}n|}|j         t          j        j         k    r|j        s|                                j        S fd|j        j        D             }t          |          dk    r*t          j	        t          |          rdpdd          ||d                  j        S |j        S )zeSort SET components by tag

        Sort depending on the actual Choice value (dynamic sort)
        Nc                 0    g | ]}|j         v |j         S  )name).0	namedType	components     J/var/www/api/venv/lib/python3.11/site-packages/pyasn1/codec/der/encoder.py
<listcomp>z0SetEncoder._componentSortKey.<locals>.<listcomp>#   s1     9 9 9I%Ni77 #777       z	Multiple zNone z components for Choice at r   )
typeIdr   ChoicetagSetgetComponentcomponentType
namedTypeslenr   PyAsn1Error)componentAndTypeasn1SpeccompTypenamesr   s       @r   _componentSortKeyzSetEncoder._componentSortKey   s     /	8 HHH?dk0000 --//669 9 9 99O9Z 9 9 9u::??+<?JJ<V;<aZa<a<aclclmo o o  a)00 ?"r   N)__name__
__module____qualname__staticmethodr!   r   r   r   r	   r	      s-        # # \# # #r   r	   c                       e Zd ZdZdZeZeZdS )SingleItemEncoderTr   N)r"   r#   r$   fixedDefLengthModefixedChunkSizeTAG_MAPTYPE_MAPr   r   r   r'   r'   ?   s#        NGHHHr   r'   c                       e Zd ZeZdS )r   N)r"   r#   r$   r'   SINGLE_ITEM_ENCODERr   r   r   r   r   G   s        +r   attrc                     ddd                     |           x}r4t          j        |  d| dt                     t	                      |         S t          |           )Nr*   r+   )tagMaptypeMapz is deprecated. Please use z	 instead.)getwarningswarnDeprecationWarningglobalsAttributeError)r.   newAttrs     r   __getattr__r9   z   sf    &:>>BB4HHHw "LL'LLLN`aaayy!!


r   )r3   pyasn1r   pyasn1.codec.cerr   pyasn1.typer   __all__r	   r*   copyupdateSetr   r+   r   r'   r   r   strr9   r   r   r   <module>rB      s          $ $ $ $ $ $      h
# # # # ## # # #@ /


 
  HOZZ\\   
   "" HOZZ\\       1   , , , , ,go , , ,b 
c      r   