Ë
    ûmxi	  ã                   óô   — d Z ddlmZ ddlZddlZ ej
                  e«      ZdZej                  j                  ej                  j                  ej                  j                  e«      «      d«      Zd„ Zd„ Zy)z+Caching utility for the discovery document.é    )Úabsolute_importNi€Q Ú	documentsc                  óÜ   — dt         j                  v r	 ddlm}  | j                  S 	 ddlm} |j                  S # t
        $ r Y Œw xY w# t
        $ r t        j                  dd¬«       Y yw xY w)	zÎDetects an appropriate cache module and returns it.

    Returns:
      googleapiclient.discovery_cache.base.Cache, a cache object which
      is auto detected, or None if no cache object is available.
    ÚGAE_ENVé   )Úappengine_memcache)Ú
file_cachez4file_cache is only supported with oauth2client<4.0.0F)Úexc_infoN)	ÚosÚenvironÚ r   ÚcacheÚ	Exceptionr	   ÚLOGGERÚinfo)r   r	   s     ú_/home/htdocs/ttos/venv/lib/python3.12/site-packages/googleapiclient/discovery_cache/__init__.pyÚ
autodetectr      sw   € ð ”B—J‘JÑð	Ý,à%×+Ñ+Ð+ðÝ à×ÑÐøô ò 	Ùð	ûô ò Ü�‰ØBÈUð 	ô 	
ñ ð	ús    ”9 §A ¹	AÁAÁ A+Á*A+c                 óø   — d}dj                  | |«      }	 t        t        j                  j	                  t
        |«      d«      5 }|j                  «       }ddd«       |S # 1 sw Y   |S xY w# t        $ r Y |S w xY w)až  Retrieves the discovery document from the directory defined in
    DISCOVERY_DOC_DIR corresponding to the serviceName and version provided.

    Args:
        serviceName: string, name of the service.
        version: string, the version of the service.

    Returns:
        A string containing the contents of the JSON discovery document,
        otherwise None if the JSON discovery document was not found.
    Nz
{}.{}.jsonÚr)ÚformatÚopenr   ÚpathÚjoinÚDISCOVERY_DOC_DIRÚreadÚFileNotFoundError)ÚserviceNameÚversionÚcontentÚdoc_nameÚfs        r   Úget_static_docr"   7   s}   € ð €GØ×"Ñ" ;°Ó8€HðÜ”"—'‘'—,‘,Ô0°(Ó;¸SÓAð 	ÀQØ—f‘f“hˆG÷	ð €N÷	ð €Nûô	 ò àà€Nð	ús/   –.A, ÁAÁA, ÁA)Á$A, Á)A, Á,	A9Á8A9)Ú__doc__Ú
__future__r   Úloggingr   Ú	getLoggerÚ__name__r   ÚDISCOVERY_DOC_MAX_AGEr   r   ÚdirnameÚrealpathÚ__file__r   r   r"   © ó    r   ú<module>r.      si   ðñ 2å &ã Û 	à	ˆ×	Ñ	˜8Ó	$€à$Ð Ø—G‘G—L‘LØ‡G�G‡O�O�B—G‘G×$Ñ$ XÓ.Ó/°óÐ ò
ó2r-   