
    g                     ~   d Z ddlZddlmZ ddlZddlZddlmZ ddl	Z	ddl
Z
ddlZddlZddlmZ ddlZddlmZ ddlmZ ddlmZ ddlmZ dd	lmZ d
ZdZdZdZdZdZ G d de      Zd Zd Z d Z!di fdZ"e G d d             Z# G d dejH                        Z% G d de%      Z& G d dejN                        Z'y) a	  AWS Credentials and AWS Signature V4 Request Signer.

This module provides credentials to access Google Cloud resources from Amazon
Web Services (AWS) workloads. These credentials are recommended over the
use of service account credentials in AWS as they do not involve the management
of long-live service account private keys.

AWS Credentials are initialized using external_account arguments which are
typically loaded from the external credentials JSON file.

This module also provides a definition for an abstract AWS security credentials supplier.
This supplier can be implemented to return valid AWS security credentials and an AWS region
and used to create AWS credentials. The credentials will then call the
supplier instead of using pre-defined methods such as calling the EC2 metadata endpoints.

This module also provides a basic implementation of the
`AWS Signature Version 4`_ request signing algorithm.

AWS Credentials use serialized signed requests to the
`AWS STS GetCallerIdentity`_ API that can be exchanged for Google access tokens
via the GCP STS endpoint.

.. _AWS Signature Version 4: https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html
.. _AWS STS GetCallerIdentity: https://docs.aws.amazon.com/STS/latest/APIReference/API_GetCallerIdentity.html
    N)	dataclass)Optional)urljoin)_helpers)environment_vars)
exceptions)external_accountzAWS4-HMAC-SHA256aws4_requestzx-amz-security-tokenz
x-amz-datezNhttps://sts.{region}.amazonaws.com?Action=GetCallerIdentity&Version=2011-06-15300c                   "    e Zd ZdZd Zdi fdZy)RequestSignerzImplements an AWS request signer based on the AWS Signature Version 4 signing
    process.
    https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html
    c                     || _         y)zInstantiates an AWS request signer used to compute authenticated signed
        requests to AWS APIs based on the AWS Signature Version 4 signing process.

        Args:
            region_name (str): The AWS region to use.
        N)_region_name)selfregion_names     l/var/www/html/FastMealFinder_FlaskServer-InitialRelease/venv/lib/python3.12/site-packages/google/auth/aws.py__init__zRequestSigner.__init__R   s     (     c           
         |xs i }t         j                  j                  |      }t         j                  j                  t        |t	        j
                  |j                                    }|j                  r|j                  dk7  rt        j                  d      t        |j                  |j                  xs dt        |j                        || j                  |||      }|j                  d      |j                  d}	d|v r|j                  d      |	t         <   |D ]
  }
||
   |	|
<    |j"                  |j"                  |	t$        <   |||	d}|r||d	<   |S )
a;  Generates the signed request for the provided HTTP request for calling
        an AWS API. This follows the steps described at:
        https://docs.aws.amazon.com/general/latest/gr/sigv4_signing.html

        Args:
            aws_security_credentials (AWSSecurityCredentials): The AWS security credentials.
            url (str): The AWS service URL containing the canonical URI and
                query string.
            method (str): The HTTP method used to call this API.
            request_payload (Optional[str]): The optional request payload if
                available.
            additional_headers (Optional[Mapping[str, str]]): The optional
                additional headers needed for the requested AWS API.

        Returns:
            Mapping[str, str]: The AWS signed request dictionary object.
        httpszInvalid AWS service URL/)hostcanonical_uricanonical_querystringmethodregionaws_security_credentialsrequest_payloadadditional_headersauthorization_header)Authorizationr   amz_dateurlr   headersdata)urllibparseurlparser   	posixpathnormpathpathhostnameschemer   InvalidResource#_generate_authentication_header_map_get_canonical_querystringqueryr   get_AWS_DATE_HEADERsession_token_AWS_SECURITY_TOKEN_HEADER)r   r   r%   r   r   r    urinormalized_uri
header_mapr&   keysigned_requests               r   get_request_optionsz!RequestSigner.get_request_options\   sN   4 052ll##C(  ..C++CHH56
 ||szzW4,,-FGG8(--4"<SYY"G$$%=+1	

 (^^,BCLL

 #(2z(BG$%% 	3C-c2GCL	3 $11=2J2X2XG./!$7K%4N6"r   N)__name__
__module____qualname____doc__r   r=    r   r   r   r   L   s    
( Cr   r   c                    t         j                  j                  |       }i }|D ]x  }t         j                  j                  |d      }g ||<   ||   D ]5  }||   j	                  t         j                  j                  |d             7 ||   j                          z t        |j                               }|j                          g }|D ]-  }||   D ]#  }|j	                  dj                  ||             % / dj                  |      S )a  Generates the canonical query string given a raw query string.
    Logic is based on
    https://docs.aws.amazon.com/general/latest/gr/sigv4-create-canonical-request.html

    Args:
        query (str): The raw query string.

    Returns:
        str: The canonical query string.
    z-_.~)safez{}={}&)
r(   r)   parse_qsquoteappendsortlistkeysformatjoin)r3   querystringquerystring_encoded_mapr;   	quote_keyitemsorted_keysquerystring_encoded_pairss           r   r2   r2      s    ,,''.K  
2LL&&s&8	-/	*$ 	D#I.55""4f"5	 	 	*//1
2 .3356K " H+C0 	HD%,,W^^C-FG	HH 88-..r   c                     t        j                  | |j                  d      t        j                        j                         S )zCreates the HMAC-SHA256 hash of the provided message using the provided
    key.

    Args:
        key (str): The HMAC-SHA256 key to use.
        msg (str): The message to hash.

    Returns:
        str: The computed hash bytes.
    utf-8)hmacnewencodehashlibsha256digest)r;   msgs     r   _signr]      s-     88CG,gnn=DDFFr   c                     t        d| z   j                  d      |      }t        ||      }t        ||      }t        |d      }|S )a  Calculates the signing key used to calculate the signature for
    AWS Signature Version 4 based on:
    https://docs.aws.amazon.com/general/latest/gr/sigv4-calculate-signature.html

    Args:
        key (str): The AWS secret access key.
        date_stamp (str): The '%Y%m%d' date format.
        region_name (str): The AWS region.
        service_name (str): The AWS service name, eg. sts.

    Returns:
        str: The signing key bytes.
    AWS4rU   r
   )r]   rX   )r;   
date_stampr   service_namek_datek_region	k_service	k_signings           r   _get_signing_keyrf      sI     FSL((1:>FV[)Hh-Ii0Ir   r   c           
      X   | j                  d      d   }t        j                         }	|	j                  d      }
|	j                  d      }i }|D ]  }||   ||j	                         <    |j
                  |j
                  |t        <   | |d<   d|vr	|
|t        <   d}t        |j                               }|j                          |D ]  }dj                  ||||         } d	j                  |      }t        j                  |xs dj                  d
            j!                         }dj                  ||||||      }dj                  |||t"              }dj                  t$        |
|t        j                  |j                  d
            j!                               }t'        |j(                  |||      }t+        j,                  ||j                  d
      t        j                        j!                         }dj                  t$        |j.                  |||      }d|i}d|vr|
|d<   |S )a  Generates the authentication header map needed for generating the AWS
    Signature Version 4 signed request.

    Args:
        host (str): The AWS service URL hostname.
        canonical_uri (str): The AWS service URL path name.
        canonical_querystring (str): The AWS service URL query string.
        method (str): The HTTP method used to call this API.
        region (str): The AWS region.
        aws_security_credentials (AWSSecurityCredentials): The AWS security credentials.
        request_payload (Optional[str]): The optional request payload if
            available.
        additional_headers (Optional[Mapping[str, str]]): The optional
            additional headers needed for the requested AWS API.

    Returns:
        Mapping[str, str]: The AWS authentication header dictionary object.
            This contains the x-amz-date and authorization header information.
    .r   z%Y%m%dT%H%M%SZz%Y%m%dr   dater   z{}{}:{}
;rU   z{}
{}
{}
{}
{}
{}z{}/{}/{}/{}z{}
{}
{}
{}z3{} Credential={}/{}, SignedHeaders={}, Signature={}r!   r#   )splitr   utcnowstrftimelowerr6   r7   r5   rJ   rK   rI   rL   rM   rY   rZ   rX   	hexdigest_AWS_REQUEST_TYPE_AWS_ALGORITHMrf   secret_access_keyrV   rW   access_key_id)r   r   r   r   r   r   r   r    ra   current_timer#   r`   full_headersr;   canonical_headersheader_keyssigned_headerspayload_hashcanonical_requestcredential_scopestring_to_signsigning_key	signaturer!   authentication_headers                            r   r1   r1      sX   > ::c?1%L??$L$$%56H&&x0J L! <$6s$;SYY[!<  --9 %22 	&	

  L
 \!)1%& |((*+K 
'..sL$5

 XXk*N>>?#8b"@"@"IJTTVL 177 %++FL*;
 &,,(//89CCE	N # 22JK ^**73W^^ik 
 QWW .. 45IJ\!,4j)  r   c                   :    e Zd ZU dZeed<   eed<   dZee   ed<   y)AwsSecurityCredentialsa  A class that models AWS security credentials with an optional session token.

        Attributes:
            access_key_id (str): The AWS security credentials access key id.
            secret_access_key (str): The AWS security credentials secret access key.
            session_token (Optional[str]): The optional AWS security credentials session token. This should be set when using temporary credentials.
    rs   rr   Nr6   )r>   r?   r@   rA   str__annotations__r6   r   rB   r   r   r   r   [  s#     #'M8C='r   r   c                   X    e Zd ZdZej
                  d        Zej
                  d        Zy)AwsSecurityCredentialsSupplieraC  Base class for AWS security credential suppliers. This can be implemented with custom logic to retrieve
    AWS security credentials to exchange for a Google Cloud access token. The AWS external account credential does
    not cache the AWS security credentials, so caching logic should be added in the implementation.
    c                     t        d      )a  Returns the AWS security credentials for the requested context.

        .. warning: This is not cached by the calling Google credential, so caching logic should be implemented in the supplier.

        Args:
            context (google.auth.externalaccount.SupplierContext): The context object
                containing information about the requested audience and subject token type.
            request (google.auth.transport.Request): The object used to make
                HTTP requests.

        Raises:
            google.auth.exceptions.RefreshError: If an error is encountered during
                security credential retrieval logic.

        Returns:
            AwsSecurityCredentials: The requested AWS security credentials.
        r   NotImplementedErrorr   contextrequests      r   get_aws_security_credentialsz;AwsSecurityCredentialsSupplier.get_aws_security_credentialsp  s    & ""%%r   c                     t        d      )a&  Returns the AWS region for the requested context.

        Args:
            context (google.auth.externalaccount.SupplierContext): The context object
                containing information about the requested audience and subject token type.
            request (google.auth.transport.Request): The object used to make
                HTTP requests.

        Raises:
            google.auth.exceptions.RefreshError: If an error is encountered during
                region retrieval logic.

        Returns:
            str: The AWS region.
        r   r   r   s      r   get_aws_regionz-AwsSecurityCredentialsSupplier.get_aws_region  s    " ""%%r   N)r>   r?   r@   rA   abcabstractmethodr   r   rB   r   r   r   r   j  s;    
 	& &( 	& &r   r   )	metaclassc                       e Zd ZdZd Z ej                  e      d        Z ej                  e      d        Z	d Z
d Zd Zy)	&_DefaultAwsSecurityCredentialsSupplierzDefault implementation of AWS security credentials supplier. Supports retrieving
    credentials and region via EC2 metadata endpoints and environment variables.
    c                     |j                  d      | _        |j                  d      | _        |j                  d      | _        y )N
region_urlr%   imdsv2_session_token_url)r4   _region_url_security_credentials_url_imdsv2_session_token_url)r   credential_sources     r   r   z/_DefaultAwsSecurityCredentialsSupplier.__init__  s>    ,00>):)>)>u)E&):)>)>&*
&r   c                    t         j                  j                  t        j                        }t         j                  j                  t        j
                        }t         j                  j                  t        j                        }|r|rt        |||      S | j                  |      }| j                  ||      }| j                  |||      }t        |j                  d      |j                  d      |j                  d            S )NAccessKeyIdSecretAccessKeyToken)osenvironr4   r   AWS_ACCESS_KEY_IDAWS_SECRET_ACCESS_KEYAWS_SESSION_TOKENr   _get_imdsv2_session_token_get_metadata_role_name"_get_metadata_security_credentials)	r   r   r   env_aws_access_key_idenv_aws_secret_access_keyenv_aws_session_tokenimdsv2_session_token	role_namecredentialss	            r   r   zC_DefaultAwsSecurityCredentialsSupplier.get_aws_security_credentials  s    
 !#

/?/Q/Q R$&JJNN22%
! !#

/?/Q/Q R %>)%'@BW   $==gF00:NO	 ==Y 4
 &OOM*OO-.OOG$
 	
r   c                 j   t         j                  j                  t        j                        }||S t         j                  j                  t        j
                        }||S | j                  st        j                  d      d }| j                  |      }|d|i} || j                  d|      }t        |j                  d      r|j                  j                  d      n|j                  }|j                  t        j                  k7  r$t        j                  dj!                  |            |d d S )	NzUnable to determine AWS regionX-aws-ec2-metadata-tokenGETr$   decoderU   z!Unable to retrieve AWS region: {})r   r   r4   r   
AWS_REGIONAWS_DEFAULT_REGIONr   r   RefreshErrorr   hasattrr'   r   statushttp_clientOKrL   )r   r   r   env_aws_regionr&   r   responseresponse_bodys           r   r   z5_DefaultAwsSecurityCredentialsSupplier.get_aws_region  s   
 (8(C(CD%!!(8(K(KL%!!))*JKK#==gF+13GHGt//wO
 x}}h/ MM  ) 	 ??knn,))3::=I  Sb!!r   c                    || j                   tdt        i} || j                   d|      }|j                  t        j                  k7  r.t        j                  dj                  |j                              |j                  S y )Nz$X-aws-ec2-metadata-token-ttl-secondsPUTr$   z(Unable to retrieve AWS Session Token: {})	r   !_IMDSV2_SESSION_TOKEN_TTL_SECONDSr   r   r   r   r   rL   r'   )r   r   r&   imdsv2_session_token_responses       r   r   z@_DefaultAwsSecurityCredentialsSupplier._get_imdsv2_session_token  s    4#A#A#M68YG -4225'-) -33{~~E -->EE5::  1555r   c                    ddi}|||d<    |dj                  | j                  |      d|      }t        |j                  d      r|j                  j	                  d      n|j                  }|j
                  t        j                  k7  r$t        j                  d	j                  |            t        j                  |      }|S )
aJ  Retrieves the AWS security credentials required for signing AWS
        requests from the AWS metadata server.

        Args:
            request (google.auth.transport.Request): A callable used to make
                HTTP requests.
            role_name (str): The AWS role name required by the AWS metadata
                server security_credentials endpoint in order to return the
                credentials.
            imdsv2_session_token (str): The AWS IMDSv2 session token to be added as a
                header in the requests to AWS metadata endpoint.

        Returns:
            Mapping[str, str]: The AWS metadata server security credentials
                response.

        Raises:
            google.auth.exceptions.RefreshError: If an error occurs while
                retrieving the AWS security credentials.
        zContent-Typezapplication/jsonr   z{}/{}r   r$   r   rU   z/Unable to retrieve AWS security credentials: {})rL   r   r   r'   r   r   r   r   r   r   jsonloads)r   r   r   r   r&   r   r   credentials_responses           r   r   zI_DefaultAwsSecurityCredentialsSupplier._get_metadata_security_credentials  s    . "#56+2FG./t==yI
 x}}h/ MM  ) 	 ??knn,))AHHW   $zz-8##r   c                 ~   | j                   t        j                  d      d}|d|i} || j                   d|      }t        |j                  d      r|j                  j                  d      n|j                  }|j                  t        j                  k7  r$t        j                  dj                  |            |S )	a  Retrieves the AWS role currently attached to the current AWS
        workload by querying the AWS metadata server. This is needed for the
        AWS metadata server security credentials endpoint in order to retrieve
        the AWS security credentials needed to sign requests to AWS APIs.

        Args:
            request (google.auth.transport.Request): A callable used to make
                HTTP requests.
            imdsv2_session_token (str): The AWS IMDSv2 session token to be added as a
                header in the requests to AWS metadata endpoint.

        Returns:
            str: The AWS role name.

        Raises:
            google.auth.exceptions.RefreshError: If an error occurs while
                retrieving the AWS role name.
        NzIUnable to determine the AWS metadata server security credentials endpointr   r   r$   r   rU   z#Unable to retrieve AWS role name {})
r   r   r   r   r'   r   r   r   r   rL   )r   r   r   r&   r   r   s         r   r   z>_DefaultAwsSecurityCredentialsSupplier._get_metadata_role_name0  s    & ))1))[  +13GHG..ug
 x}}h/ MM  ) 	 ??knn,))5<<]K  r   N)r>   r?   r@   rA   r   r   copy_docstringr   r   r   r   r   r   rB   r   r   r   r     sa    
 X;<
 =
: X;<$" =$"L*/$b,r   r   c                        e Zd ZdZej
                  ddf fd	Zd Z fdZd Z	 fdZ
e fd       Ze fd	       Z xZS )
CredentialszAWS external account credentials.
    This is used to exchange serialized AWS signature v4 signed requests to
    AWS STS GetCallerIdentity service for Google access tokens.
    Nc                 l   t        t        | 
  |||||d| ||t        j                  d      ||t        j                  d      |r|| _        t        | _        n|j                  d      xs d}t        |      | _        |j                  d      | _        t        j                  d|      }	|	r|	j                         \  }
}nd	\  }
}|
d
k7  s| j                  t        j                  d      |t        |      dk7  r$t        j                  dj                  |            || _        d| _        y)u	  Instantiates an AWS workload external account credentials object.

        Args:
            audience (str): The STS audience field.
            subject_token_type (str): The subject token type based on the Oauth2.0 token exchange spec.
                Expected values include::

                    “urn:ietf:params:aws:token-type:aws4_request”

            token_url (Optional [str]): The STS endpoint URL. If not provided, will default to "https://sts.googleapis.com/v1/token".
            credential_source (Optional [Mapping]): The credential source dictionary used
                to provide instructions on how to retrieve external credential to be exchanged for Google access tokens.
                Either a credential source or an AWS security credentials supplier must be provided.

                Example credential_source for AWS credential::

                    {
                        "environment_id": "aws1",
                        "regional_cred_verification_url": "https://sts.{region}.amazonaws.com?Action=GetCallerIdentity&Version=2011-06-15",
                        "region_url": "http://169.254.169.254/latest/meta-data/placement/availability-zone",
                        "url": "http://169.254.169.254/latest/meta-data/iam/security-credentials",
                        imdsv2_session_token_url": "http://169.254.169.254/latest/api/token"
                    }

            aws_security_credentials_supplier (Optional [AwsSecurityCredentialsSupplier]): Optional AWS security credentials supplier.
                This will be called to supply valid AWS security credentails which will then
                be exchanged for Google access tokens. Either an AWS security credentials supplier
                or a credential source must be provided.
            args (List): Optional positional arguments passed into the underlying :meth:`~external_account.Credentials.__init__` method.
            kwargs (Mapping): Optional keyword arguments passed into the underlying :meth:`~external_account.Credentials.__init__` method.

        Raises:
            google.auth.exceptions.RefreshError: If an error is encountered during
                access token retrieval logic.
            ValueError: For invalid parameters.

        .. note:: Typically one of the helper constructors
            :meth:`from_file` or
            :meth:`from_info` are used instead of calling the constructor directly.
        )audiencesubject_token_type	token_urlr   NzPA valid credential source or AWS security credentials supplier must be provided.z]AWS credential cannot have both a credential source and an AWS security credentials supplier.environment_idr   regional_cred_verification_urlz^(aws)([\d]+)$)NNawsz)No valid AWS 'credential_source' provided   z7aws version '{}' is not supported in the current build.)superr   r   r   InvalidValue"_aws_security_credentials_supplier1_DEFAULT_AWS_REGIONAL_CREDENTIAL_VERIFICATION_URL_cred_verification_urlr4   r   rematchgroupsr0   intrL   _target_resource_request_signer)r   r   r   r   r   !aws_security_credentials_supplierargskwargsr   matchesenv_idenv_version	__class__s               r   r   zCredentials.__init__e  sx   d 	k4)
 	 1/		
 	
 $)J)R))b  )1=))o  -6WD3 B ' /223CDJN6\!7D3 +<*?*?0+D'
 hh0.AG&-nn&6#&2#$"="="E 00?  $K(8A(= --MTT#  !)#r   c                    | j                   E| j                  j                  | j                  |      | _        t        | j                        | _         | j                  j                  | j                  |      }| j                   j                  || j                  j                  d| j                        d      }|j                  d      }| j                  |d<   i }|j                  d      |d<   |j                  d      |d<   g |d<   |j                         D ]  }|d   j                  |||   d        t        j                  j!                  t#        j$                  |dd	
            S )ai  Retrieves the subject token using the credential_source object.
        The subject token is a serialized `AWS GetCallerIdentity signed request`_.

        The logic is summarized as:

        Retrieve the AWS region from the AWS_REGION or AWS_DEFAULT_REGION
        environment variable or from the AWS metadata server availability-zone
        if not found in the environment variable.

        Check AWS credentials in environment variables. If not found, retrieve
        from the AWS metadata server security-credentials endpoint.

        When retrieving AWS credentials from the metadata server
        security-credentials endpoint, the AWS role needs to be determined by
        calling the security-credentials endpoint without any argument. Then the
        credentials can be retrieved via: security-credentials/role_name

        Generate the signed request to AWS STS GetCallerIdentity action.

        Inject x-goog-cloud-target-resource into header and serialize the
        signed request. This will be the subject-token to pass to GCP STS.

        .. _AWS GetCallerIdentity signed request:
            https://cloud.google.com/iam/docs/access-resources-aws#exchange-token

        Args:
            request (google.auth.transport.Request): A callable used to make
                HTTP requests.
        Returns:
            str: The retrieved subject token.
        z{region}POSTr&   zx-goog-cloud-target-resourcer%   r   )r;   value),:T)
separators	sort_keys)r   r   r   _supplier_context_regionr   r   r=   r   replacer4   r   rK   rH   r(   r)   rG   r   dumps)r   r   r   request_optionsrequest_headersaws_signed_reqr;   s          r   retrieve_subject_tokenz"Credentials.retrieve_subject_token  sd   F 'BBQQ&&DL $1#>D  $(#J#J#g#g""G$
 
 ..BB$''//
DLLI
" *--i8
 ;?:O:O67  / 3 3E :u#2#6#6x#@x $&y!"'') 	C9%,,oc&:;	
 ||!!JJ~*M
 	
r   c                 `    t         t        |          }d|d<   | j                         rd|d<   |S )Nr   sourceprogrammatic)r   r   _create_default_metrics_options_has_custom_supplier)r   metrics_optionsr   s     r   r   z+Credentials._create_default_metrics_options&  s8    TRT$)!$$&(6OH%r   c                     | j                   d u S )N)_credential_source)r   s    r   r   z Credentials._has_custom_supplier-  s    &&$..r   c                     t         t        |          }| j                         r|j	                  d| j
                  i       |S )Nr   )r   r   _constructor_argsr   updater   )r   r   r   s     r   r   zCredentials._constructor_args0  sA    [$9;$$&KK79`9`
 r   c                 t    |j                  d      }|j                  d|i       t        t        |   |fi |S )a  Creates an AWS Credentials instance from parsed external account info.

        Args:
            info (Mapping[str, str]): The AWS external account info in Google
                format.
            kwargs: Additional arguments to pass to the constructor.

        Returns:
            google.auth.aws.Credentials: The constructed credentials.

        Raises:
            ValueError: For invalid parameters.
        r   )r4   r   r   r   	from_info)clsinfor   r   r   s       r   r   zCredentials.from_info;  sG     -1HH/-
) 	02ST	
 [#0@@@r   c                 ,    t        t        | 
  |fi |S )aH  Creates an AWS Credentials instance from an external account json file.

        Args:
            filename (str): The path to the AWS external account json file.
            kwargs: Additional arguments to pass to the constructor.

        Returns:
            google.auth.aws.Credentials: The constructed credentials.
        )r   r   	from_file)r   filenamer   r   s      r   r  zCredentials.from_fileR  s     [#0DVDDr   )r>   r?   r@   rA   r	   _DEFAULT_TOKEN_URLr   r   r   r   r   classmethodr   r  __classcell__)r   s   @r   r   r   _  sb     #55*.h$TU
n/	 A A, 
E 
Er   r   )(rA   r   dataclassesr   rY   rV   http.clientclientr   r   r   r+   r   typingr   r(   urllib.parser   google.authr   r   r   r	   rq   rp   r7   r5   r   r   objectr   r2   r]   rf   r1   r   ABCMetar   r   r   rB   r   r   <module>r     s   4  !   !  	  	       ( " ( $ # 3   U 2 %* !SF Sl!/HG8 o!d ( ( (,&s{{ ,&^C-K CL~E".. ~Er   