
                            S r SSKJr  SSKJr  SSKJr  SSKJr  SSKrSSKrSSKr\R                  r
\
R                  S:w  d   \
R                  S:  d  \
R                  S	:  a6  \R                  " S
R                  \
R                  \
R                  5      5        \R                  R                  S:X  a  SrOSrS rS r\R$                  R'                  \R$                  R)                  \R$                  R+                  \5      5      5      r\(       d  \" S5        \R$                  R1                  \S5      r\R$                  R1                  \S5      rSr\R8                  " S\SS9  \R8                  " S\SS9  SSSSSSSSS S!S"S#S$S%\4S&S'S(S)S*S+S,S-S.S/S0/r\R$                  R1                  \S5      r\ H  u  rr \R$                  RC                  \R$                  R1                  \\5      5      (       d  \" S1\< S2\< S335        \R$                  RE                  S\R$                  R1                  \\\ 5      5        M     \R$                  R1                  \S4\5      r#\R$                  R1                  \S55      r$ SSK%r%S7 r+\,S8:X  a  \+" 5         gg! \& aG    S6\'" \RP                  5      RS                  5       ;   a  \$O\#r*\R$                  RE                  S\*5         N^f = f)9zGWrapper module for running gslib.__main__.main() from the command line.    )absolute_import)print_function)division)unicode_literalsN   	      a  Error: gsutil requires Python version 3.9-3.13, but a different version is installed.
You are currently running Python {}.{}
Follow the steps below to resolve this issue:
	1. Switch to Python 3.9-3.13 using your Python version manager or install an appropriate version.
	2. If you are unsure how to manage Python versions, visit [https://cloud.google.com/storage/docs/gsutil_install#specifications] for detailed instructions.   python2python3c                 t    [         R                  R                  SU -  5        [         R                  " S5        g )Nz%s
   )sysstderrwriteexit)messages    platform/gsutil/gsutil.pyOutputAndExitr   .   s$    **6G#$((1+    c                  z    S[         R                  ;  a  gSSKn U R                  [         R                  S   5        g)a  Reloads the google module to prefer our third_party copy.

When Python is not invoked with the -S option, it may preload the google module via .pth file.
This leads to the "site_packages" version being preferred over gsutil "third_party" version.
To force the "third_party" version, insert the path at the start of sys.path and reload the google module.

This is a hacky. Reloading is required for the rare case that users have
google-auth already installed in their Python environment.
Note that this reload may cause an issue for Python 3.5.3 and lower
because of the weakref issue, fixed in Python 3.5.4:
https://github.com/python/cpython/commit/9cd7e17640a49635d1c1f8c2989578a8fc2c1de6.
googleNr   )r   modules	importlibreload)r   s    r   _fix_google_moduler   3   s-     S[[ 
3;;x()r   zYUnable to determine where gsutil is installed. Sorry, cannot run correctly without this.
third_partyvendoredFignorez%.* httplib2 was already imported from)categoryr   z).* oauth2client was already imported from)argcomplete )mockr"   )funcsigsr"   )zgoogle-reauth-pythonr"   )pyu2fr"   )pyasn1r"   )zpyasn1-modulesr"   )rsar"   )apitoolsr"   )zgcs-oauth2-boto-pluginr"   )	fastenersr"   )	monotonicr"   )	pyparsingr"   httplib2)zretry-decoratorr"   )sixr"   )
cachetoolssrc)urllib3r/   )charset_normalizerr"   )chardetr"   )certifir"   )idnar"   )requestsr/   )zgoogle-auth-library-pythonr"   )z#google-auth-library-python-httplib2r"   zThere is no z1 library under the gsutil third-party directory (z).
The gsutil command cannot work properly when installed this way.
Please re-install gsutil per the installation instructions.crcmod
crcmod_osxdarwinc                  |    [        5         SS Kn [        R                  " U R                  R                  5       5        g )Nr   )r   gslib.__main__r   r   __main__main)gslibs    r   RunMainr>      s$    ((5>> !r   r;   )-__doc__
__future__r   r   r   r   osr   warningsversion_infovermajorminorr   formatsubmodule_pyversr   r   pathdirnameabspathrealpath__file__
GSUTIL_DIRjoinTHIRD_PARTY_DIRVENDORED_DIRMEASURING_TIME_ACTIVEfilterwarningsUserWarningTHIRD_PARTY_LIBSlibdirsubdirisdirinsertCRCMOD_PATHCRCMOD_OSX_PATHr6   ImportErrorstrplatformlowerlocal_crcmod_pathr>   __name__ r   r   <module>rc      s    N & %  ' 	 
  
99>SYY]cii"n((c dj  dj  kn  kt  kt  vy  v  v  d@ Q
*& WW__RWW__RWW-=-=h-GHI
 7 8
 '',,z=9ww||OZ8   	  !, HJ 	  !, LN  "!"&/3 D '',,z=9&NFF	rww||OV<	=	= 
	"#
 ((//!RWW\\/66BC ' ggll?H6FG'',,=	(" z	) !  ( +3c#,,6G6M6M6O*O' ((//!&'(s   9J A
KK