[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@3.15.4.5: ~ $
�

>�Dg�?����ddlZddlZddlmZddlmZmZmZmZmZm	Z	m
Z
ddlZddlm
Z
mZmZmZmZddlmZerzddlmZddlmZddlmZdd	lmZdd
lmZddlmZddlmZdd
lmZddlmZddlmZddlm Z ddlm!Z!m"Z"ee#efZ$eeee#efge e!e#ffZ%e e#e&fZ'er
ddl(m)Z)m*Z*m+Z+eZ,nddl-m)Z)m*Z*m+Z+e#e.fZ,dZ/dZ0dZ1dZ2gZ3d�Z4Gd�de5��Z6dd�Z7dS)�N)�datetime)�AnnotatedValue�capture_internal_exception�disable_capture_event�format_timestamp�
json_dumps�	safe_repr�strip_string)�	text_type�PY2�string_types�number_types�	iteritems)�MYPY)�	timedelta)�
TracebackType)�Any)�Callable)�ContextManager)�Dict)�List)�Optional)�Tuple)�Type)�Union)�NotImplementedType�Event)�Mapping�Sequence�Seti@B��
z<cyclic>c�:�t�|��dS�N)�global_repr_processors�append)�	processors �L/opt/imunify360/venv/lib64/python3.11/site-packages/sentry_sdk/serializer.py�add_global_repr_processorr)Os���!�!�)�,�,�,�,�,�c�*�eZdZdZd�Zd�Zd�Zd�ZdS)�Memo��_ids�_objsc�"�i|_g|_dSr$r-)�selfs r(�__init__z
Memo.__init__Ws����	���
�
�
r*c�:�|j�|��|Sr$)r/r&�r1�objs  r(�memoizezMemo.memoize\s���
���#�����r*c�~�|jd}t|��|jvrdS||jt|��<dS)N���TF)r/�idr.r4s  r(�	__enter__zMemo.__enter__as<���j��n��
�c�7�7�d�i����4�!$�D�I�b��g�g���5r*c��|j�t|j�����d��dSr$)r.�popr9r/)r1�ty�value�tbs    r(�__exit__z
Memo.__exit__js4��	
�	�
�
�b�����)�)�*�*�D�1�1�1�1�1r*N)�__name__�
__module__�__qualname__�	__slots__r2r6r:r@�r*r(r,r,TsU������!�I����
���
���2�2�2�2�2r*r,Fc	����
���
�������t���g�g�g���fd��
�fd����fd��					d
����fd�	�
�
fd���
���
�����f	d�����fd�}tjd��	�
|fi|��}�r t|t��r�d	|d
<t���}�r�|d	kr�t
|�d��pg��}|tj	j
z}||kr[t
t|����}|tz
}	|	d	kr/||||	���r t|t��r�d	|d
<|tjd��S#tjd��wxYw)Nc���t���t���kr�	�t���dz
}�d�t|��i��}n#t$ri}YnwxYw��|��t���t���k���d�di���|��dS)N�r8�)�len�
setdefaultr�
IndexErrorr&�update)�meta�segment�node�
meta_stack�paths   ��r(�	_annotatezserialize.<locals>._annotate{s�����*�o�o��T���*�*�
��s�:����2�3��!�"�~�0�0��7�1C�1C�R�H�H�����
�
�
�����
����
���d�#�#�#��*�o�o��T���*�*�	�2��!�!�"�b�)�)�0�0��6�6�6�6�6s�AA%�%A4�3A4c����	�d}|dkr�ddkr�ddkrdS|dvr2�dd	kr&�ddkr�d
dkr�ddkrdSn#t$rYdSwxYwd
S)a�
        By default non-serializable objects are going through
        safe_repr(). For certain places in the event (local vars) we
        want to repr() even things that are JSON-serializable to
        make their type more apparent. For example, it's useful to
        see the difference between a unicode-string and a bytestring
        when viewing a stacktrace.

        For container-types we still don't do anything different.
        Generally we just try to make the Sentry UI present exactly
        what a pretty-printed repr would look like.

        :returns: `True` if we are somewhere in frame variables, and `False` if
            we are in a position where we will never encounter frame variables
            when recursing (for example, we're in `event.extra`). `None` if we
            are not (yet) in frame variables, but might encounter them when
            recursing (e.g.  we're in `event.exception`)
        r�
stacktracerH�frames��varsT)�threads�	exception�values��NF�rL)�p0rRs �r(�_should_repr_stringsz'serialize.<locals>._should_repr_strings�s����(	��a��B��\�!�!�d�1�g��&9�&9�d�1�g��>O�>O��t��.�.�.���G�x�'�'���G�|�+�+���G�x�'�'���G�v�%�%��t����	�	�	��4�4�	�����us�&A"�4A"�"
A0�/A0c����	���}|dvr|S�d}|dkr�ddkrdS|dkr�ddkr
�d	dS|d
krdSn#t$rYdSwxYwdS)
z�
        A databag is any value that we need to trim.

        :returns: Works like `_should_repr_strings()`. `True` for "yes",
            `False` for :"no", `None` for "maybe soon".
        )TNr�requestrH�dataT�breadcrumbsr[��extraNFr^)�rvr_r`rRs  ��r(�_is_databagzserialize.<locals>._is_databag�s����	�%�%�'�'�B��\�!�!��	��a��B��Y���4��7�f�#4�#4��t��]�"�"�t�A�w�(�':�':��Q����t��W�}�}��t����	�	�	��4�4�	�����us!�A�A�A�A�
A"�!A"c�j��|��
�|��	��|��5}|r?tcddd��|�*�
����	t	�
��dzd�=SS�|||||���cddd��|�*�
����	t	�
��dzd�=SS#1swxYwYn�#t
$r�t
tj����|r0Y|�+�
����	t	�
��dzd�=dSdSY|�+�
����	t	�
��dzd�=dSdSwxYw	|�+�
����	t	�
��dzd�=dSdS#|�)�
����	t	�
��dzd�=wxYw)NrH)�
is_databag�should_repr_strings�remaining_depth�remaining_breadthz=<failed to serialize, use init(debug=True) to see error logs>)	r&r6�CYCLE_MARKERr<rJ�
BaseExceptionr�sys�exc_info)r5rjrkrOrmrl�result�_serialize_node_impl�memorQrRs       ����r(�_serialize_nodez"serialize.<locals>._serialize_node�sj������K�K�� � � �	0����c�"�"�

�f��(�'�

�

�

�

�

�

�

�&�"����
�
�
��s�4�y�y�1�}���/�/�#�,�+��)�(;�$3�&7����	

�

�

�

�

�

�

�&�"����
�
�
��s�4�y�y�1�}���/�/�#�'

�

�

�

����

�

�

�

�

���	�	�	�&�s�|�~�~�6�6�6��
X�W��"����
�
�
��s�4�y�y�1�}���/�/�/�#�"���"����
�
�
��s�4�y�y�1�}���/�/�/�#�"�	����

�&�"����
�
�
��s�4�y�y�1�}���/�/�/�#�"��w�"����
�
�
��s�4�y�y�1�}���/�/�/�/�/s]�C�	B9�C�1B9�C�9B=�=C�B=�C�F�,E�1F�!F�E�F�-F2c�Z��t|t��r�di|j��|j}|S)NrE)�
isinstancer�metadatar>)r5rSs �r(�_flatten_annotatedz%serialize.<locals>._flatten_annotated�s9����c�>�*�*�	��I�%�%���%�%�%��)�C��
r*c���	�|�
���}|�
���}|r	|�t}|r	|�t}�|��}|�>|dkr8�ddgg���|r%�tt|������SdS|r8tr1�|d�}tD]$}|||��}|t
ur
�|��cS�%|�t
|ttf��rP|s=t
|t��r7tj|��stj|��rt|��S|St
|t��r-|stt|����nt|��St
|t ��r�t#t%|����}i}d}	t%|��D]Y\}
}|�!|	|kr�t'|�����n2t|
��}�|||||�|dz
nd|���}|||<|	dz
}	�Z|St
|t(��s�t
|t*t,f��rgg}
t/|��D]S\}	}|�!|	|kr�t'|�����n,|
��||	|||�|dz
nd|������T|
S|rt|��}nOt
|t2��r|�d	d
��}t
|t6��st|��}�rOt'���dkr<�ddkr0�d
dkr$��t'|����|S�t|����S)Nrz!limit�x)�rem)rtrl)rJrH)rOrkrjrlrmzutf-8�replacerW�spansr8�description)�MAX_DATABAG_DEPTH�MAX_DATABAG_BREADTHr
r	r%�NotImplementedrw�boolr�float�math�isinf�isnanrrrr�dictrrJ�serializable_str_typesr r�	enumerater&�bytes�decoder
)r5rjrkrlrm�hintsr'rr�rv_dict�i�k�v�str_k�rv_listrSryrhrur`rtrR�smart_transaction_trimming�span_description_bytess              ���������r(rsz'serialize.<locals>._serialize_node_impl�s<����&�"6�"6�"8�"8����$����J��	0�/�1�/�O��	4�+�3� 3�� � ��%�%���&�?�a�+?�+?��I�H�c�?�+�,�,�,�,��
H�)�)�,�y��~�~�*F�*F�G�G�G��4��	6�0�	6�!�o�F�F�E�3�
6�
6�	�"��3��.�.����/�/�-�-�f�5�5�5�5�5�0��;�*�S�4��*>�?�?�;�"�
��3��&�&�
�,0�J�s�O�O�
�?C�z�#���
�!��~�~�%��
�
��X�
&�
&�;	�+�$�	�*�3�/�/�0�0�0��s�^�^�
���W�
%�
%�4	��y��~�~�&�&�C��G��A�!�#���
�
���1�$�0�Q�:K�5K�5K��I�#�c�(�(�+�+�+�+��E�!�!����#�O��!�(;�)�&�2�%4�a�$7�$7��&7�	�	�	��"#�����Q�����N��C�!7�8�8�	�Z��#�x��>
�>
�	��G�!�#���
�
���1�$�0�Q�:K�5K�5K��I�#�c�(�(�+�+�+�+��E����#�O�� !�,?�#-�*�6�)8�!�(;�(;�!�*;�	�	�	������N��	%��C�.�.�C�C��#�u�%�%�
5��j�j��)�4�4���c�<�0�0�
%���n�n��
'�	��D�	�	�Q����Q��7�"�"��R��M�)�)�"�)�)�#�c�(�(�3�3�3��J�!�!�,�s�"3�"3�4�4�4r*c�2���d}�fd�}�
�d��tt|�d��pg��|���D]�\}}|�d��pd}t	|��|kr�0|t	|��|z
z}�
�|dg���t
||�����|d<�
dd	�=�	t	�
��d
zd	�=|dkrn���
����	t	�
��d
zd	�=d	S)a�
        Modifies serialized_event in-place trying to remove excess_bytes from
        span descriptions. The original event is used read-only to access the
        span timestamps (represented as RFC3399-formatted strings in
        serialized_event).

        It uses heuristics to prioritize preserving the description of spans
        that might be the most interesting ones in terms of understanding and
        optimizing performance.
        r"c���|\}}�	d|}tj��}|�d��p|}|�d��p|}||z
}|�d��pd}|t|��fS)Nr~�start_timestamp�	timestamprrI)r�utcnow�getrJ)
�argsr��serialized_span�span�now�start�end�durationr�events
         �r(�+shortest_duration_longest_description_firstzcserialize.<locals>._truncate_span_descriptions.<locals>.shortest_duration_longest_description_first�s����!%��A����>�!�$�D��/�#�#�C��H�H�.�/�/�6�3�E��(�(�;�'�'�.�3�C��U�{�H�)�-�-�m�<�<�B��K��s�;�/�/�/�0�0r*r~)�keyrrI)�
max_length���NrHr)r&�sortedr�r�rJ�extendr
r<)�serialized_eventr��excess_bytes�
min_lengthr�r�r�rryrQrRs `      ���r(�_truncate_span_descriptionsz.serialize.<locals>._truncate_span_descriptionsssb�����
�		1�		1�		1�		1�		1�	
���G������&�*�*�7�3�3�9�r�:�:�;�
�
�
�	�	�G�A�t��(�(�=�1�1�7�R�K��;���:�-�-���C��,�,�z�9�9�L��K�K��M�*�+�+�+�#5�"4��[�Z�@�@�@�#�#�D����R�S�S�	��3�t�9�9�q�=�?�?�+��q� � ���!����
�
�
��s�4�y�y�1�}���'�'�'r*Tr�_metar~F)NNNNN)
r,r�setrwr��sumrJr��
sentry_sdk�utils�MAX_STRING_LENGTHr�MAX_EVENT_BYTES)r�r��kwargsr�rg�sum_span_description_bytes�
span_count�descriptions_budget_bytes�original_bytesr�rSryrhrursr`rtrQrRr�s `        @@@@@@@@@@r(�	serializer�ts���������������6�6�D�
�D��J���7�7�7�7�7�7�$�$�$�$�$�L������>� ����
"0�"0�"0�"0�"0�"0�"0�"0�"0�H�����{5�{5�{5�{5�{5�{5�{5�{5�{5�{5�{5�{5�{5�z4(�4(�4(�4(�4(�4(�4(�l��d�#�#�#�%)�
�_�U�
-�
-�f�
-�
-���	(�*�R��.�.�	(�$�Q�-�B�w�K�%(�)?�%@�%@�"�%�	4�*D�q�*H�*H��U�Y�Y�w�/�/�5�2�6�6�J�
)3�Z�5E�5W�(W�%�*�,E�E�E�!$�Z��^�^�!4�!4��-��?���!�#�#�0�/��E�<�H�H�H�"�4�j��T�&:�&:�4�&0��m��7����!�%�(�(�(�(���!�%�(�(�(�(���s
�-CE�E4)F)8rpr�r�sentry_sdk.utilsrrrrrr	r
r��sentry_sdk._compatrrr
rr�sentry_sdk._typesrr�typesr�typingrrrrrrrrrrr�str�Span�
ReprProcessor�int�Segment�collectionsrrr r��collections.abcr�r�r�r�rnr%r)�objectr,r�rEr*r(�<module>r�s���
�
�
�
���������������������������������T�T�T�T�T�T�T�T�T�T�T�T�T�T�"�"�"�"�"�"���"�"�"�"�"�"�#�#�#�#�#�#�������������%�%�%�%�%�%�������������������������������������;�;�;�;�;�;�;�;���S��>�D��c�4��S��>�2�E�:L�c�:Q�4R�R�S�M��C��H�o�G��
*�3�2�2�2�2�2�2�2�2�2�)���
7�6�6�6�6�6�6�6�6�6�"�5�\������������-�-�-�
2�2�2�2�2�6�2�2�2�@[)�[)�[)�[)�[)�[)r*

Filemanager

Name Type Size Permission Actions
__init__.cpython-311.pyc File 992 B 0644
_compat.cpython-311.pyc File 3.78 KB 0644
_functools.cpython-311.pyc File 2.44 KB 0644
_queue.cpython-311.pyc File 11.64 KB 0644
_types.cpython-311.pyc File 1.79 KB 0644
api.cpython-311.pyc File 6.54 KB 0644
attachments.cpython-311.pyc File 2.29 KB 0644
client.cpython-311.pyc File 16.67 KB 0644
consts.cpython-311.pyc File 3.09 KB 0644
debug.cpython-311.pyc File 2.44 KB 0644
envelope.cpython-311.pyc File 12.58 KB 0644
hub.cpython-311.pyc File 25.07 KB 0644
scope.cpython-311.pyc File 16.48 KB 0644
serializer.cpython-311.pyc File 16.5 KB 0644
sessions.cpython-311.pyc File 8.71 KB 0644
tracing.cpython-311.pyc File 27.45 KB 0644
transport.cpython-311.pyc File 16.72 KB 0644
utils.cpython-311.pyc File 32.93 KB 0644
worker.cpython-311.pyc File 7.23 KB 0644