+
    i[                         R t ^ RIt^ RIt^ RIHt ^ RIHt ^ RIHt RtRtRt	Rt
RtRtRtR	tR
 tR tR tR tRR ltR# )z9Helpers for reading the Google Cloud SDK's configuration.N)_helpers)environment_vars)
exceptionsgcloudAPPDATAz$application_default_credentials.jsonz
gcloud.cmdzH764086051850-6qr4p6gpi6hn506pt8ejuq83di341hur.apps.googleusercontent.comc                 F    \         P                  \        P                  ,          #   \         d     Mi ; i\         P
                  R8w  dC   \         P                  P                  \         P                  P                  R4      R\        4      #  \         P                  P                  \         P                  \        ,          \        4      #   \         dI    \         P                  P                  RR4      p \         P                  P                  T R\        4      u # i ; i)zuReturns the absolute path the the Cloud SDK's configuration directory.

Returns:
    str: The Cloud SDK config path.
nt~z.configSystemDrivezC:\)osenvironr   CLOUD_SDK_CONFIG_DIRKeyErrornamepathjoin
expanduser_CONFIG_DIRECTORY_WINDOWS_CONFIG_ROOT_ENV_VARget)drives    i/Users/igloo/.openclaw/workspace/scratch/fb_ad_env/lib/python3.14/site-packages/google/auth/_cloud_sdk.pyget_config_pathr   -   s    zz*??@@  
ww$ww||BGG..s3Y@QRR	@77<<

78:K   	@ JJNN=$7E77<<t->??		@s   $' 55<C AD D c                 ^    \        4       p \        P                  P                  V \        4      # )zGets the path to the application default credentials file.

The path may or may not exist.

Returns:
    str: The full path to application default credentials.
)r   r   r   r   _CREDENTIALS_FILENAME)config_paths    r   (get_application_default_credentials_pathr   I   s"     "#K77<<%:;;    c                    \        \        P                  R4      ;_uu_ 4       p\        P                  ! WR7      pRRR4       V#   + '       g   i     X# ; i)zIReturn subprocess.check_output with the given command and ignores stderr.wstderrN)openr   devnull
subprocesscheck_output)commandr$   outputs   &  r   _run_subprocess_ignore_stderrr)   U   s=    	bjj#		'((A 
M 
	Ms   AA	c                 $   \         P                  R8X  d   \        p M\        p  \	        V 3\
        ,           4      p\        P                  ! V4      P                  4       pV'       d   V# R#   \        P                  \        \        3 d     R# i ; i)zUGets the project ID from the Cloud SDK.

Returns:
    Optional[str]: The project ID.
r   N)r   r   _CLOUD_SDK_WINDOWS_COMMAND_CLOUD_SDK_POSIX_COMMANDr)   %_CLOUD_SDK_CONFIG_GET_PROJECT_COMMANDr   
from_bytesstripr%   CalledProcessErrorOSErrorIOError)r'   projects     r   get_project_idr4   \   s|     
ww$,* 0J>>

 %%g.446!w+t+))7G< s   AA+ )A+ + BBc                   \         P                  R8X  d   \        pM\        p V '       d   V3\        ,           RV ,           3,           pMV3\        ,           p\
        P                  ! V\
        P                  R7      pVP                  R4      P                  4       #   \
        P                  \        \        3 d   p\        P                  ! RT4      pYChRp?ii ; i)ao  Load user access token with the ``gcloud auth print-access-token`` command.

Args:
    account (Optional[str]): Account to get the access token for. If not
        specified, the current active account will be used.

Returns:
    str: The user access token.

Raises:
    google.auth.exceptions.UserAccessTokenError: if failed to get access
        token from gcloud.
r   z
--account=r!   zutf-8zFailed to obtain access tokenN)r   r   r+   r,   $_CLOUD_SDK_USER_ACCESS_TOKEN_COMMANDr%   r&   STDOUTdecoder/   r0   r1   r2   r   UserAccessTokenError)accountr'   access_token
caught_excnew_excs   &    r   get_auth_access_tokenr>   u   s     
ww$,*&
67')+,  j#GGG!..wz?P?PQ""7+1133))7G< &11+Z
 %	&s   B A0B  C=CC)configr   r3   )authzprint-access-token)N)__doc__r   r%   google.authr   r   r   r   r   r   r,   r+   r-   r6   CLOUD_SDK_CLIENT_IDr   r   r)   r4   r>    r   r   <module>rE      sm    @ 	    ( "  (  ? # ) (D %'E $ O 
@8	<2$&r   