
    u@h                        S SK r S SKrS SKrS SKrS SKJrJrJrJrJ	r	  SSK
Jr  \" \5      rS rSqSqSqS["        \R$                  " S	5      4-  qSqS
 rS rS rS rS rS rSS jr\S:X  a  \R:                  " \" 5       5        gg)    N)basenamedirnameexistsjoinrelpath   )__version__c                     [         R                  " SS9n U R                  5       nUR                  SSSS9  UR                  SSSS9  UR                  S	S[         R                  S9  UR                  S
SSS9  U R                  SSSSS9  U $ )z,Configure the given argparse parser instancez"The anaconda-anon-usage installer.)descriptionz--enable
store_truez|Install the anaconda_anon_usage patch. This is used by the pre-install and activate scripts to ensure the package is active.)actionhelpz	--disablezRemove the the anaconda_anon_usage patch. This is used by the pre-unlink script. It is not useful in normal operation; to disable the telemetry, use conda config --set anaconda_anon_usage false.z--expectz--statusz+Print the anaconda_anon_usage patch status.z--quietquietz+Silent mode; disables all non-error output.)destr   r   )argparseArgumentParseradd_mutually_exclusive_groupadd_argumentSUPPRESS)pgs     ;  /croot/anaconda-anon-usage_1749054771823/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho/lib/python3.13/site-packages/anaconda_anon_usage/install.pyconfigure_parserr      s    ,PQA	&&(ANNL   NNK   NN:l9J9JNKNN:  
 NN:	   H    Ts   anaconda_anon_usagesp  
# %s %s
# The following code hooks anaconda-anon-usage into the conda
# context system. It augments the request header data that conda
# delivers to package servers during index and package
# requests without revealing personally identifying information.
#
# More information about anaconda-anon-usage can be found on:
# https://github.com/Anaconda-Platform/anaconda-anon-usage

try:
    from anaconda_anon_usage import patch
    patch.main()
except Exception as exc:
    import os, sys
    print("Error loading anaconda_anon_usage:", exc, file=sys.stderr)
    if os.environ.get('ANACONDA_ANON_USAGE_RAISE'):
        raise
zutf-8c                  L    [         c  [        R                  " 5       S   q [         $ )Npurelib)__sp_dir	sysconfig	get_paths r   r   _sp_dirr!   U   s     &&(3Or   c                 V    SU ;   nUSU;   :w  a  U(       a  SOSnUR                   " U6 nU$ )N   
)   
r#   )r#   r$   )replace)textptextwineolargss       r   	_eolmatchr*   \   s6    _F'U"##)/?t$Lr   c                     [        U 5      (       d  g[        U S5       nUR                  5       nS S S 5        [        WU5      nUR	                  U5      (       a  SnXE4$ X$;   a  SnXE4$ SnXE4$ ! , (       d  f       ND= f)N)NNOT PRESENTrbENABLEDNEEDS UPDATEDISABLED)r   openreadr*   endswith)pfile
patch_text
patch_namefpr&   statuss         r   _readr9   d   s    %=="	eT	bwwy 
4,J}}Z  
 <	 
	 < < 
	s   A--
A;c                 D    U R                  SU-   5      nUS:  a  U S U n U $ )Ns   # r   )find)r&   r6   ndxs      r   _stripr=   s   s,    
))EJ&
'C
axDSzKr   c                     [         (       a   [        S[        U[        5       5       35        [	        XU5      u  pE[         (       a  [        SU 35        U R
                  (       a'  US:w  a!  [        S5        [        R                  " S5        US:X  a  g US:X  a  SnU R                  (       a  S	OS
nO?US:X  a  SnS	nO4U R                  (       a  US:H  nSnOU R                  (       a  US:H  nS	nOSnU(       d  g [         (       a  [        SU S3SS9  Sn [        XC5      n[        US-   S5       nUR                  U5        US	:w  a  [        XB5      nUR                  U5        S S S 5        US-   n	[        U	5      (       a  [        R                   " U	5        [        R"                  " X5        Sn[        R"                  " US-   U5        [         (       a  [        S5        [	        XU5      u  pE[         (       a  [        SU 35        g g ! , (       d  f       N= f! [$         a]  n
[         (       a  SnOS[        U[        5       5       3n[        U SU
 35        U(       a  [        R"                  " W	U5         S n
A
NS n
A
ff = f)Nzpatch target: ...z
| status: r.   z exiting due to unexpected statusr,   r/   TremovingupdatingzNEEDS REMOVALr0   applyingFz| z	 patch... )endz.newwbz.origsuccessfailedzfailed to patch z: z| new status: )verboseprintr   r!   r9   expectsysexitdisableenabler=   r1   writer*   r   osunlinkrename	Exception)r)   r4   r5   r6   r&   r8   need_changerenamedr7   
pfile_origexcwhats               r   _patchrY   z   s   w!'%";!<=>J7LDw
6(#${{v*01	>	!#||	?	"	
*		)w6()$"-G)d' %&.$'2HHTN#&t8
$	 (
 W_
*IIj!
		%$
		%&.%(7) J7LDwvh'( - ('  )7D%geWY&?%@ADbIIj%()s2   H -4H!A;H 
HH 
I= AI88I=c                     [         (       a  [        S[        R                  5        [	        [        5       SSS5      n[        X[        [        5        g )Nzconda prefix:condabasez
context.py)	rH   rI   rK   prefixr   r!   rY   
PATCH_TEXT
PATCH_NAME)r)   r4   s     r   manage_patchr`      s5     woszz*GV\:E
4
J/r   c                     [        5       nU c  S[        R                  S'   UR                  U 5      n U R                  (       a  U R
                  (       d  Sq[        (       a}  [        [        [        5      5      nUS-   n[        U5        S[        U5      -  n[        U5        [        [        R                  5      S::  a  S[        R                  S'   [        U5        g[        U 5        [        (       a  [        W5        g)Nzanaconda-anon-usager   Fz
 installer-r   )r   rK   argv
parse_argsr   r8   rH   r   r   __file__rI   lenr`   )r)   r   pkg_namemsgs       r   mainri      s     	A|+<<Dzz$++wGH-.%c
CHnc
sxx=A/CHHQK#Jwc
r   __main__)N)r   rP   rK   r   os.pathr   r   r   r   r   rC   r	   re   THIS_DIRr   rF   rH   r_   encoder^   r   r!   r*   r9   r=   rY   r`   ri   __name__rL   r    r   r   <module>ro      s     	 
  < < 8B 
 $
& w%
. :)z0: zHHTV r   