o
    ûT·j�æ ã                =   @   s¦	  U d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlZd dl	Z	d dl
Z
d dlZd dlZd dlmZmZmZmZmZmZmZmZmZ d dl mZmZmZmZ d dlmZ d dlmZmZ d dl m!Z!m"Z" d dl#m$Z$m%Z%m&Z&m'Z'm(Z(m)Z) d dl*Z*d dl+m,Z, d d	l-m.Z. d d
l/m0Z0 d dl1m2Z2m3Z3m4Z4 d dl5m6Z6m7Z7 d dl8m9Z9m:Z:m;Z;m<Z< d dl=m>Z>m?Z?m@Z@mAZAmBZBmCZCmDZDmEZEmFZF d dlGmHZH d dlImJZJmKZKmLZLmMZMmNZN d dlOmPZPmQZQmRZRmSZSmTZT d dlUmVZVmWZW d dlXmYZYmZZZm[Z[m\Z\ d dl]m^Z^ d dl_m`Z` d dlambZbmcZc d dldmeZemfZf d dlgmhZhmiZimjZj d dlkmlZl d dlmmnZn d dlompZpmqZqmrZrmsZsmtZt d dlumvZvmwZwmxZxmyZymzZz d dlum{Z{ d dl|m}Z} d dl~mZm€Z€m�Z�m‚Z‚mƒZƒm„Z„ d d l…m†Z† d d!l‡mˆZˆ d"eengees esB f d#e€fd$d%„Z‰d"ee†ged f d#e€fd&d'„ZŠe(d(ƒZ‹G d)d*„ d*ee‹ ƒZŒd+ee%gee%e%e%f f d#ee%gee% f fd,d-„Z�d.e�e% d/e�e% d#e�e% fd0d1„ZŽG d2d3„ d3ƒZ�i Z�e‘e’eJf e“d4< d"e%d#eJfd5d6„Z”dddd7d8d8d8d7dd8d9œ
d:e2dB d;e%d<eWdB d=eWdB d>e•d?e•d@e•dAe•dBe•dCeJdB dDe•d#e%fdEdF„Z–dGe9dHe‘e—e%f dBe•d#e%fdIdJ„Z˜dKe’dB dLe%d#e‘e—e%f fdMdN„Z™dde6epƒdddd7d8d8d8dd8e6d7ƒdd8fdGe9dOe2dB dKe’dB dPešes e7B dQe2dB dReWdB dSeWdB dTe•dUe•dVe•dWe•dXe%dB dYe•dZe•e7B d[e2dB d\e•d#eengee%e%esf f f"d]d^„Z›		8dÉdGe9dXe%dB dYe•d#ee†gee%e%e%f f fd_d`„ZœG dadb„ dbe^j�ƒZždcZŸddZ deZ¡dfZ¢dgZ£edhddi�Z¤ee%dB  e“dj< e¥ƒ Z¦dÊdkdl„Z§dme—dnedoe%f dpee0j¨ d#e©e9eªe2 e•f fdqdr„Z«G dsdt„ dte'ƒZ¬dueƒd#e‘e—e%f fdvdw„Z­dueƒdxeƒd#dfdydz„Z®dueƒd#e%dB fd{d|„Z¯dueƒd#e%dB fd}d~„Z°dueƒd#e’dB fdd€„Z±dueƒd�e—d‚e%d#dfdƒd„„Z²G d…d†„ d†e'ƒZ³e6dƒdddddd‡dddddddd7d8d8d8d7e6epƒddde6eZƒe6d7ƒddˆœd‰e³dme—dŠedoe%f d‹e%dKe’dB dŒeªe—e!B  dB dpee0j¨ dB d�e—dB dŽe—dB d�e—d�e‘e’e—B e‘e—e%f f dB d‘e•dB d’e—dB d“e´e— eªe— B dB d”e—dB dReWdB dSeWdB dTe•dUe•dVe•dWe•d•e•dPešes e7B dXe%dB d–eªev dB d—e‘e—e%f dB d˜ee%ge—f e7B dZe•e7B d™e%dB d#df<dšd›„ZµG dœd�„ d�e^j¶ƒZ·eG dždŸ„ dŸƒƒZ¸eG d d¡„ d¡ƒƒZ¹ed7d¢�G d£d¤„ d¤ƒƒZºeG d¥d¦„ d¦evƒƒZ»d§eev d#eev fd¨d©„Z¼d§eeveºB  d#eeº fdªd«„Z½d§eev d#ee©eve¹dB f  fd¬d­„Z¾dme—d#e—fd®d¯„Z¿d°e—dme—d#e—fd±d²„ZÀdme—d#e’fd³d´„ZÁdme—ejÂe— B d#e—fdµd¶„ZÃd·e—ejÂe— B d¸e•e&d¹ B d#e•fdºd»„ZÄG d¼d½„ d½e}ƒZÅd¾e—d#ee©e—eÆf  fd¿dÀ„ZÇdueƒd#e•fdÁdÂ„ZÈG dÃdÄ„ dÄevƒZÉG dÅdÆ„ dÆevƒZÊG dÇdÈ„ dÈe^jËƒZÌdS )Ëé    N)	ÚAsyncIteratorÚ	AwaitableÚCallableÚ
CollectionÚ	CoroutineÚ	GeneratorÚIteratorÚMappingÚSequence)ÚAbstractAsyncContextManagerÚAbstractContextManagerÚAsyncExitStackÚasynccontextmanager)Ú
ContextVar)Ú	dataclassÚfield)ÚEnumÚIntEnum)Ú	AnnotatedÚAnyÚLiteralÚProtocolÚTypeVarÚcast)ÚDoc)ÚObjectReceiveStream)Úparams)Ú
ModelFieldÚ	UndefinedÚlenient_issubclass)ÚDefaultÚDefaultPlaceholder)Ú	DependantÚ_is_async_gen_callableÚ_is_coroutine_callableÚ_is_gen_callable)	ÚSolvedDependencyÚ_get_body_fieldÚ_get_flat_body_paramsÚ_should_embed_body_fieldsÚget_dependantÚget_parameterless_sub_dependantÚget_stream_item_typeÚget_typed_return_annotationÚsolve_dependencies)Újsonable_encoder)ÚEndpointContextÚFastAPIErrorÚRequestValidationErrorÚResponseValidationErrorÚWebSocketRequestValidationError)Ú_PING_INTERVALÚKEEPALIVE_COMMENTÚEventSourceResponseÚServerSentEventÚformat_sse_event)ÚDecoratedCallableÚIncEx)Úcreate_model_fieldÚgenerate_unique_idÚget_value_or_defaultÚis_body_allowed_for_status_code)Úrouting)Úwrap_app_handling_exceptions)Úget_route_pathÚis_async_callable)Úiterate_in_threadpoolÚrun_in_threadpool)ÚURLÚFormDataÚURLPath)ÚHTTPException)ÚRequest)ÚJSONResponseÚPlainTextResponseÚRedirectResponseÚResponseÚStreamingResponse)Ú	BaseRouteÚMatchÚNoMatchFoundÚcompile_pathÚget_name)ÚMount)ÚStaticFiles)ÚAppTypeÚASGIAppÚLifespanÚReceiveÚScopeÚSend©Ú	WebSocket)Ú
deprecatedÚfuncÚreturnc                    s:   t | ƒr| nt t| ¡‰ dtdtdtddf‡ fdd„}|S )zi
    Takes a function or coroutine `func(request) -> response`,
    and returns an ASGI application.
    ÚscopeÚreceiveÚsendra   Nc                 “   sJ   �t | ||ƒ‰ dtdtdtdd f‡‡ fdd„}t|ˆ ƒ| ||ƒI d H  d S )Nrb   rc   rd   ra   c              
   “   s¾   �d}t ƒ 4 I d H šB}|| d< t ƒ 4 I d H š}|| d< ˆ ˆƒI d H }W d   ƒI d H  n1 I d H s2w   Y  || ||ƒI d H  d}W d   ƒI d H  n1 I d H sRw   Y  |s]tdƒ‚d S )NFÚfastapi_inner_astackÚfastapi_function_astackTar  Response not awaited. There's a high chance that the application code is raising an exception and a dependency with yield has a block with a bare except, or a block with except Exception, and is not raising the exception again. Read more about it in the docs: https://fastapi.tiangolo.com/tutorial/dependencies/dependencies-with-yield/#dependencies-with-yield-and-except)r   r1   )rb   rc   rd   Úresponse_awaitedÚrequest_stackÚfunction_stackÚresponse)ÚfÚrequest© úR/home/dinkstrade/pdmp-scanner/venv/lib/python3.10/site-packages/fastapi/routing.pyÚapp‰   s    €(þ(ùÿÿz*request_response.<locals>.app.<locals>.app)rJ   r[   rZ   r\   rA   ©rb   rc   rd   ro   ©rk   )rl   rn   ro   †   s   € zrequest_response.<locals>.app)rC   Ú	functoolsÚpartialrE   r[   rZ   r\   ©r`   ro   rm   rq   rn   Úrequest_responsey   s   	ÿ
ýru   c                    s"   dt dtdtddf‡ fdd„}|S )zM
    Takes a coroutine `func(session)`, and returns an ASGI application.
    rb   rc   rd   ra   Nc                 “   sL   �t | ||d�‰ dtdtdtdd f‡‡ fdd„}t|ˆ ƒ| ||ƒI d H  d S )N)rc   rd   rb   rc   rd   ra   c              
   “   sš   �t ƒ 4 I d H š8}|| d< t ƒ 4 I d H š}|| d< ˆ ˆƒI d H  W d   ƒI d H  n1 I d H s0w   Y  W d   ƒI d H  d S 1 I d H sFw   Y  d S )Nre   rf   )r   )rb   rc   rd   rh   ri   )r`   Úsessionrm   rn   ro   °   s   €*þ.þz+websocket_session.<locals>.app.<locals>.app)r^   r[   rZ   r\   rA   rp   ©r`   )rv   rn   ro   ­   s   € zwebsocket_session.<locals>.app)r[   rZ   r\   rt   rm   rw   rn   Úwebsocket_session¥   s   rx   Ú_Tc                	   @   sd   e Zd ZdZdee ddfdd„Zdefdd„Zd	ee	 dB d
e	dB de
jdB dedB fdd„ZdS )Ú_AsyncLiftContextManagerzˆ
    Wraps a synchronous context manager to make it async.

    This is vendored from Starlette to avoid importing private symbols.
    Úcmra   Nc                 C   ó
   || _ d S ©N)Ú_cm)Úselfr{   rm   rm   rn   Ú__init__È   ó   
z!_AsyncLiftContextManager.__init__c                 Ã   s   �| j  ¡ S r}   )r~   Ú	__enter__©r   rm   rm   rn   Ú
__aenter__Ë   s   €
z#_AsyncLiftContextManager.__aenter__Úexc_typeÚ	exc_valueÚ	tracebackc                 Ã   s   �| j  |||¡S r}   )r~   Ú__exit__)r   r…   r†   r‡   rm   rm   rn   Ú	__aexit__Î   s   €z"_AsyncLiftContextManager.__aexit__)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   ry   r€   r„   ÚtypeÚBaseExceptionÚtypesÚTracebackTypeÚboolr‰   rm   rm   rm   rn   rz   Á   s    
þýüûrz   Úlifespan_contextc                    s2   t  | ¡‰ t ˆ ¡dtdtt f‡ fdd„ƒ}|S )z™
    Wrap a generator-based lifespan context into an async context manager.

    This is vendored from Starlette to avoid importing private symbols.
    ro   ra   c                    s   t ˆ | ƒƒS r}   )rz   ©ro   ©Úcmgrrm   rn   Úwrapperâ   s   z+_wrap_gen_lifespan_context.<locals>.wrapper)Ú
contextlibÚcontextmanagerrr   Úwrapsr   rz   )r“   r—   rm   r•   rn   Ú_wrap_gen_lifespan_contextØ   s   
r›   Úoriginal_contextÚnested_contextc                    s0   t dtdttttf d B  f‡ ‡fdd„ƒ}|S )Nro   ra   c              
     s®   �ˆ| ƒ4 I d H šA}ˆ | ƒ4 I d H š"}|d u r|d u rd V  ni |p#i ¥|p'i ¥V  W d   ƒI d H  n1 I d H s:w   Y  W d   ƒI d H  d S 1 I d H sPw   Y  d S r}   rm   )ro   Úmaybe_original_stateÚmaybe_nested_state©r�   rœ   rm   rn   Úmerged_lifespanì   s   €€*ü.ÿz0_merge_lifespan_context.<locals>.merged_lifespan)r   rW   r   r	   Ústrr   )rœ   r�   r¡   rm   r    rn   Ú_merge_lifespan_contexté   s   ÿþ
r£   c                   @   sL   e Zd ZdZddd„Zddd	„Zd
eddfdd„Zdededefdd„Z	dS )Ú_DefaultLifespanaX  
    Default lifespan context manager that runs on_startup and on_shutdown handlers.

    This is a copy of the Starlette _DefaultLifespan class that was removed
    in Starlette. FastAPI keeps it to maintain backward compatibility with
    on_startup and on_shutdown event handlers.

    Ref: https://github.com/Kludex/starlette/pull/3117
    ÚrouterÚ	APIRouterra   Nc                 C   r|   r}   )Ú_router)r   r¥   rm   rm   rn   r€     r�   z_DefaultLifespan.__init__c                 Ã   ó   �| j  ¡ I d H  d S r}   )r§   Ú_startuprƒ   rm   rm   rn   r„     ó   €z_DefaultLifespan.__aenter__Úexc_infoc                 Ç   r¨   r}   )r§   Ú	_shutdown)r   r«   rm   rm   rn   r‰     rª   z_DefaultLifespan.__aexit__r   ro   c                 C   s   | S r}   rm   )r   ro   rm   rm   rn   Ú__call__  ó   z_DefaultLifespan.__call__)r¥   r¦   ra   N©ra   N)
rŠ   r‹   rŒ   r�   r€   r„   Úobjectr‰   ry   r­   rm   rm   rm   rn   r¤   ú   s    


r¤   Ú_endpoint_context_cachec                 C   sš   t | ƒ}|tv rt| S z.i }t | ¡ }dur||d< t | ¡d  }dur+||d< t| ddƒ }dur9||d< W n tyF   tƒ }Y nw |t|< |S )zAExtract endpoint context with caching to avoid repeated file I/O.NÚfileé   ÚlinerŠ   Úfunction)Úidr±   ÚinspectÚgetsourcefileÚgetsourcelinesÚgetattrÚ	Exceptionr0   )r`   Úfunc_idÚctxÚsource_fileÚline_numberÚ	func_namerm   rm   rn   Ú_extract_endpoint_context  s"   €
ÿrÁ   TF)
r   ÚincludeÚexcludeÚby_aliasÚexclude_unsetÚexclude_defaultsÚexclude_noneÚis_coroutineÚendpoint_ctxÚ	dump_jsonr   Úresponse_contentrÂ   rÃ   rÄ   rÅ   rÆ   rÇ   rÈ   rÉ   rÊ   c              	   Ã   s†   �| r?|r| j |i dd�\}}nt| j |i dd�I d H \}}|r,|	p$tƒ }t|||d�‚|
r1| jn| j}||||||||d�S t|ƒS )N©rj   ©Úloc©ÚerrorsÚbodyrÉ   ©rÂ   rÃ   rÄ   rÅ   rÆ   rÇ   )ÚvalidaterE   r0   r3   Úserialize_jsonÚ	serializer/   )r   rË   rÂ   rÃ   rÄ   rÅ   rÆ   rÇ   rÈ   rÉ   rÊ   ÚvaluerÐ   r½   Ú
serializerrm   rm   rn   Úserialize_response-  s2   €
ÿ
ýùrØ   Ú	dependantÚvaluesc                 Ã   sF   �| j d us
J dƒ‚|r| j di |¤ŽI d H S t| j fi |¤ŽI d H S )Nú!dependant.call must be a functionrm   )ÚcallrE   ©rÙ   rÚ   rÈ   rm   rm   rn   Úrun_endpoint_functionX  s
   €rÞ   Ústatus_codeÚsolved_resultc                 C   sB   d|j i}| r	| n|jj}|d ur||d< |jjr|jj|d< |S )NÚ
backgroundrß   )Úbackground_tasksrj   rß   )rß   rà   Úresponse_argsÚcurrent_status_coderm   rm   rn   Ú_build_response_argse  s   ÿÿrå   Ú
body_fieldÚresponse_classÚresponse_fieldÚresponse_model_includeÚresponse_model_excludeÚresponse_model_by_aliasÚresponse_model_exclude_unsetÚresponse_model_exclude_defaultsÚresponse_model_exclude_noneÚdependency_overrides_providerÚembed_body_fieldsÚstrict_content_typeÚstream_item_fieldÚis_json_streamc                    s¤   ˆj d us	J dƒ‚tˆj ƒ‰ˆotˆjtjƒ‰tˆ
tƒr ˆ
j‰ nˆ
‰ tˆ t	ƒ‰	t|tƒr0|j‰n|‰dt
dtf‡ ‡‡‡‡‡‡‡‡‡	‡
‡‡‡‡‡‡‡‡‡fdd„}|S )NrÛ   rl   ra   c                 “   sj  �d }| j  d¡}t|tƒsJ dƒ‚ˆ	jrtˆ	jƒntƒ ‰ˆ	jr7| j  dd¡ d¡}| j	› d|› ˆ	j› �ˆd< z_d }ˆr•ˆrL|  
¡ I d H }| |j¡ nI|  ¡ I d H }|r•t}| j d¡}|siˆsh|  ¡ I d H }n#tj ¡ }||d< | ¡ d	krŒ| ¡ }	|	d
ks…|	 d¡rŒ|  ¡ I d H }|tkr“|}n|}W n@ tjy» }
 ztdd|
jfdi d|
jidœg|
jˆd�}||
‚d }
~
w tyÂ   ‚  tyÖ }
 z	tddd�}||
‚d }
~
ww g }| j  d¡}t|tƒsèJ dƒ‚t| ˆ	tt t!t"f t#B t$B d B |ƒˆ
|ˆd�I d H }|j%}ˆ	j�sJ ‚|�s¢dt"dt$f‡‡‡‡‡‡‡‡fdd„‰ ˆ�rœˆ	jd;i |j&¤Ž‰dt"dt$f‡ fdd„‰t'ˆ	jƒ�rBˆ (¡ ‰nt)ˆƒ‰t*dt+t,t$  f‡‡fdd „ƒ}| -|ƒ ¡I d H }| |j.¡ d!t,t$ dt+t$ fd"d#„}||ƒ}t/ˆ|d$�}t0|fd%d&i|¤Ž}d'|jd(< d)|jd*< |jj1 2|j3jj1¡ �nˆ�róˆ	jd;i |j&¤Ž‰dt"dt$f‡ fd+d,„‰t'ˆ	jƒ�rÉdt+t$ f‡‡fd-d.„}|ƒ }ndt4t$ f‡‡fd/d0„}|ƒ }t/ˆ|d$�}t0|fd%d1i|¤Ž}|jj1 2|j3jj1¡ n¯t'ˆ	jƒ�sÿt5ˆ	jƒ�r9ˆ	jd;i |j&¤Ž‰t'ˆ	jƒ�rd2t+t" dt+t" fd3d4„}|ˆƒ‰t/ˆ|d$�}ˆd;d5ˆi|¤Ž}|jj1 2|j3jj1¡ nit6ˆ	|j&ˆd6�I d H }t|t7ƒ�rW|j8d u �rT|j9|_8|}nKt/ˆ|d$�}ˆd u�oftˆt:ƒ}t;ˆ|ˆˆˆˆˆˆˆˆ|d7�I d H }|�r‡t7d;|d8d9œ|¤Ž}nˆ|fi |¤Ž}t<|j=ƒ�s˜d:|_|jj1 2|j3jj1¡ |�r®t||ˆd�}|‚|�s³J ‚|S )<NÚfastapi_middleware_astackz4fastapi_middleware_astack not found in request scopeÚ	root_pathÚ ú/ú Úpathúcontent-typeÚapplicationÚjsonz+jsonÚjson_invalidrÑ   zJSON decode errorÚerror)rŽ   rÎ   ÚmsgÚinputr½   )rÑ   rÉ   i�  z#There was an error parsing the body)rß   Údetailre   ú/fastapi_inner_astack not found in request scope)rl   rÙ   rÑ   rï   Úasync_exit_stackrð   Údatara   c              	      sd   ˆr&ˆj | i dd�\}}|rˆ ptƒ }t|| |d�‚ˆj|ˆˆˆˆˆˆd�S t| ƒ} t | ¡ d¡S )NrÌ   rÍ   rÏ   rÒ   úutf-8)rÓ   r0   r3   rÔ   r/   rü   ÚdumpsÚencode)r  rÖ   Úerrors_r½   )rÉ   rë   rê   rí   rî   rì   ré   rò   rm   rn   Ú_serialize_dataï  s,   
ÿ
ýù
z9get_request_handler.<locals>.app.<locals>._serialize_dataÚitemc                    s‚   t | tƒr7| jd ur| j}n| jd ur(t| jdƒr| j ¡ }nt t| jƒ¡}nd }t	|| j
| j| j| jd�S t	ˆ | ƒ d¡d�S )NÚmodel_dump_json)Údata_strÚeventr¶   ÚretryÚcommentr  )r  )Ú
isinstancer8   Úraw_datar  Úhasattrr  rü   r  r/   r9   r  r¶   r  r  Údecode)r
  r  ©r	  rm   rn   Ú_serialize_sse_item  s$   


û
ÿz=get_request_handler.<locals>.app.<locals>._serialize_sse_itemc               	     s²   �t jt dd�\‰‰ d‡‡‡fdd„} t jt dd�\‰}d‡ ‡fdd„}t  ¡ 4 I d H š}| | ¡ | |¡ |V  |j ¡  W d   ƒI d H  d S 1 I d H sRw   Y  d S )	Nr³   )Úmax_buffer_sizera   c               	   “   sh   �ˆ4 I d H š  ˆ2 z3 d H W } ˆ  ˆ | ƒ¡I d H  q
6 W d   ƒI d H  d S 1 I d H s-w   Y  d S r}   )rd   )Úraw_item)r  Úsend_streamÚ	sse_aiterrm   rn   Ú	_producerD  s   €ÿ.ÿzMget_request_handler.<locals>.app.<locals>._sse_producer_cm.<locals>._producerc               
   “   s  �ˆ4 I dH šm ˆ 4 I dH šP z:	 z&t  t¡� ˆ  ¡ I dH } W d  ƒ n1 s)w   Y  ˆ | ¡I dH  W n tyH   ˆ t¡I dH  Y nw q t jyS   Y nw W d  ƒI dH  n1 I dH sdw   Y  W d  ƒI dH  dS 1 I dH szw   Y  dS )zrRead from the producer and forward to the output,
                        inserting keepalive comments on timeout.N)ÚanyioÚ
fail_afterr5   rc   rd   ÚTimeoutErrorr6   ÚEndOfStream)r  )Úreceive_streamÚsend_keepaliverm   rn   Ú_keepalive_inserterM  s$   €ÿÿûÿXözWget_request_handler.<locals>.app.<locals>._sse_producer_cm.<locals>._keepalive_inserterr¯   )r  Úcreate_memory_object_streamÚbytesÚcreate_task_groupÚ
start_soonÚcancel_scopeÚcancel)r  Úreceive_keepaliver!  Útg)r  r  )r  r   r  rn   Ú_sse_producer_cm.  s    €ÿ
þÿ

.üz:get_request_handler.<locals>.app.<locals>._sse_producer_cmÚstreamc                 S  ó0   �| 2 z3 d H W }|V  t  d¡I d H  q6 d S ©Nr   ©r  Úsleep)r+  r  rm   rm   rn   Ú_sse_with_checkpointsm  s
   €ûz?get_request_handler.<locals>.app.<locals>._sse_with_checkpoints)rß   rà   Ú
media_typeztext/event-streamzno-cachezCache-ControlÚnozX-Accel-Bufferingc                    s   ˆ | ƒd S )Nó   
rm   ©r
  r  rm   rn   Ú_serialize_item‹  ó   z9get_request_handler.<locals>.app.<locals>._serialize_itemc                    s4   �ˆ2 z3 d H W } ˆ | ƒV  t  d¡I d H  q6 d S r-  r.  r4  ©r5  Úgenrm   rn   Ú_async_stream_jsonl�  s
   €
üz=get_request_handler.<locals>.app.<locals>._async_stream_jsonlc                  3   s   � ˆD ]} ˆ | ƒV  qd S r}   rm   r4  r7  rm   rn   Ú_sync_stream_jsonlœ  s   €ÿz<get_request_handler.<locals>.app.<locals>._sync_stream_jsonlzapplication/jsonlÚ	async_genc                 S  r,  r-  r.  )r;  Úchunkrm   rm   rn   Ú_async_stream_raw²  s
   €üz;get_request_handler.<locals>.app.<locals>._async_stream_rawÚcontentrÝ   )r   rË   rÂ   rÃ   rÄ   rÅ   rÆ   rÇ   rÈ   rÉ   rÊ   zapplication/json)r>  r1  ó    rm   )>rb   Úgetr  r   rÜ   rÁ   r0   rù   ÚrstripÚmethodÚformÚpush_async_callbackÚcloserÑ   r   Úheadersrü   ÚemailÚmessageÚMessageÚget_content_maintypeÚget_content_subtypeÚendswithÚJSONDecodeErrorr2   Úposrÿ   ÚdocrI   r»   r.   r   Údictr¢   r   rG   r#  rÐ   rÚ   r#   Ú	__aiter__rD   r   r   r   Úenter_async_contextÚacloserå   rO   ÚrawÚextendrj   r   r%   rÞ   rN   rá   râ   r!   rØ   r?   rß   )rl   rj   Ú
file_stackÚ
mount_pathrÑ   Ú
body_bytesÚ	json_bodyÚcontent_type_valuerH  ÚsubtypeÚeÚvalidation_errorÚ
http_errorrÐ   r  rà   r*  Ússe_receive_streamr0  Ússe_stream_contentrã   r9  Újsonl_stream_contentr:  r=  Úraw_responseÚuse_dump_jsonr>  ©Úactual_response_classÚactual_strict_content_typeræ   rÙ   rï   rð   Úis_body_formrÈ   ró   Úis_sse_streamrç   rè   rë   rê   rí   rî   rì   ré   rß   rò   )r	  r5  r  rÉ   r8  r  rn   ro   –  s‚  €ÿÿý€
€ûÿ	õ€ÿ€üÿú$
ÿ7
ÿÿ
þÿÿÿþý

ÿÿÿþýÿÿ
þ	ÿýÿÿõþýÿ
z get_request_handler.<locals>.app)rÜ   r$   r  Ú
field_infor   ÚFormr!   rÖ   r   r7   rJ   rN   )rÙ   ræ   rß   rç   rè   ré   rê   rë   rì   rí   rî   rï   rð   rñ   rò   ró   ro   rm   rd  rn   Úget_request_handlerw  s   



<  erk  c                    s   dt dd f‡ ‡‡fdd„}|S )NÚ	websocketra   c                 “   s¾   �ˆ j r	tˆ j ƒntƒ }ˆ jr#| j dd¡ d¡}d|› ˆ j› �|d< | j d¡}t|tƒs2J dƒ‚t	| ˆ ˆ|ˆd�I d H }|j
rHt|j
|d	�‚ˆ j d usQJ d
ƒ‚ˆ j di |j¤ŽI d H  d S )Nrõ   rö   r÷   zWS rù   re   r  ©rl   rÙ   rï   r  rð   )rÉ   rÛ   rm   )rÜ   rÁ   r0   rù   rb   r@  rA  r  r   r.   rÐ   r4   rÚ   )rl  rÉ   rW  r  rà   ©rÙ   rï   rð   rm   rn   ro     s4   €ÿýÿûþzget_websocket_app.<locals>.appr]   )rÙ   rï   rð   ro   rm   rn  rn   Úget_websocket_appü  s   ro  c                       st   e Zd Zddddœdededef dedB deej dB dedB d	dfd
d„Z	de
d	eee
f f‡ fdd„Z‡  ZS )ÚAPIWebSocketRouteN)ÚnameÚdependenciesrï   rù   Úendpoint.rq  rr  rï   ra   c                C   s~   || _ || _|d u rt|ƒn|| _t|pg ƒ| _t|ƒ\| _| _| _	t
| j| j| jd�\| _}| _tt| j|| jd�ƒ| _d S )N©rù   rÜ   rr  rn  )rù   rs  rT   rq  Úlistrr  rS   Ú
path_regexÚpath_formatÚparam_convertorsÚ0_build_dependant_with_parameterless_dependenciesrÙ   Ú_embed_body_fieldsrx   ro  ro   )r   rù   rs  rq  rr  rï   Ú_rm   rm   rn   r€   "  s*   	ýüý
ÿzAPIWebSocketRoute.__init__rb   c                    s*   t ƒ  |¡\}}|tjkr| |d< ||fS ©NÚroute)ÚsuperÚmatchesrQ   ÚNONE)r   rb   ÚmatchÚchild_scope©Ú	__class__rm   rn   r  A  s   
zAPIWebSocketRoute.matches)rŠ   r‹   rŒ   r¢   r   r   r
   r   ÚDependsr€   r[   ÚtuplerQ   r  Ú__classcell__rm   rm   rƒ  rn   rp  !  s$    ùþ
ýûúù
ø&rp  ÚfastapiÚeffective_route_contextÚfrontend_pathÚfrontend_specificityÚincluded_routerÚfastapi_effective_route_context)ÚdefaultÚ_effective_route_context_varc                   C   s   d S r}   rm   rm   rm   rm   rn   Ú_frontend_dependency_endpointS  r®   r�  rù   rÜ   .rr  c                 C   sR   t | |dd�}|d d d… D ]}|j dt|| d�¡ qt|ƒ}t|ƒ}|||fS )Nrµ   )rù   rÜ   rb   éÿÿÿÿr   )Údependsrù   )r*   rr  Úinsertr+   r(   r)   )rù   rÜ   rr  rÙ   r’  Úbody_paramsrð   rm   rm   rn   ry  W  s   
þ
ry  c                   @   s   e Zd ZU eed< dS )Ú_RouteWithPathrù   N)rŠ   r‹   rŒ   r¢   Ú__annotations__rm   rm   rm   rn   r•  h  s   
 r•  rb   c                 C   s   |   ti ¡}t|tƒsJ ‚|S r}   )Ú
setdefaultÚ_FASTAPI_SCOPE_KEYr  rP  )rb   Úfastapi_scoperm   rm   rn   Ú_get_fastapi_scopel  s   rš  r‚  c                 C   sL   |  t¡}| ¡ D ]\}}|tkr|| |< q	t|tƒr$t| ƒ |¡ d S d S r}   )r@  r˜  Úitemsr  rP  rš  Úupdate)rb   r‚  Úfastapi_child_scopeÚkeyrÖ   rm   rm   rn   Ú_update_scoper  s   
€
ÿrŸ  c                 C   ó   |   ti ¡  t¡S r}   )r@  r˜  Ú$_FASTAPI_EFFECTIVE_ROUTE_CONTEXT_KEY©rb   rm   rm   rn   Ú"_get_scope_effective_route_context{  ó   r£  c                 C   r   r}   )r@  r˜  Ú_FASTAPI_INCLUDED_ROUTER_KEYr¢  rm   rm   rn   Ú_get_scope_included_router  r¤  r¦  c                 C   s$   |   ti ¡  t¡}t|tƒr|S d S r}   )r@  r˜  Ú!_FASTAPI_FRONTEND_SPECIFICITY_KEYr  Úint)rb   Úspecificityrm   rm   rn   Ú_frontend_scope_specificityƒ  s   ÿ
rª  rž  Úpreviousc                 C   s<   |   t¡}t|tƒsd S |tu r| |d ¡ d S |||< d S r}   )r@  r˜  r  rP  Ú_SCOPE_MISSINGÚpop)rb   rž  r«  r™  rm   rm   rn   Ú_restore_fastapi_scope_keyŒ  s   

r®  c                   @   sê  e Zd ZU eed< edef ed< edB ed< eed< edB ed< eed< edB ed	< edB ed
< edB ed< edB ed< eed< eed< eed< eed< eed< e	e
 eB ed< edB ed< ee dB ed< eeef dB ed< eegef eB ed< eeB ed< eeeB  ed< eeeB eeef f ed< eed< eed< eed< eeef ed< ee ed< eed< edB ed < edB ed!< edB ed"< eej ed#< eed$< eeeB ef ed%< eed&< eed'< edB ed(< eed)< eed*< dS )+Ú_APIRouteLikerù   .rs  NÚstream_item_typeÚresponse_modelÚsummaryÚresponse_descriptionr_   Úoperation_idré   rê   rë   rì   rí   rî   Úinclude_in_schemarç   rï   Ú	callbacksÚopenapi_extraÚgenerate_unique_id_functionrñ   ÚtagsÚ	responsesrq  rv  rw  rx  ÚmethodsÚ	unique_idrß   rè   rò   rr  ÚdescriptionÚresponse_fieldsrÙ   rz  ræ   rh  ró   )rŠ   r‹   rŒ   r¢   r–  r   r   r’   r;   rŽ   rN   r!   ru  rP   rP  r   r¨  Úsetr   r   r…  r"   rm   rm   rm   rn   r¯  –  sR   
 r¯  úSuccessful Response)r±  rß   r¹  rr  r²  r½  r³  rº  r_   rq  r»  r´  ré   rê   rë   rì   rí   rî   rµ  rç   rï   r¶  r·  r¸  rñ   r°  r}  rs  r±  r¹  r²  r½  r³  rº  r_   rq  r»  r´  rµ  r¶  r·  r¸  r°  c          )      C   sH  || _ || _|| _|| _|	| _|| _|| _|| _|| _|| _	|| _
|| _|| _|| _|| _|| _|| _|| _|| _|| _|p?g | _|
pDi | _|d u rNt|ƒn|| _t|ƒ\| _| _| _|d u rbdg}dd„ |D ƒ| _t|tƒrs|j}n|}| jp{|| ƒ| _ t|t!ƒr†t"|ƒ}|| _#t$|p�g ƒ| _%|pšt& '| jj(p™d¡| _)| j) *d¡d  +¡ | _)i }| j ,¡ D ]4\}} t| t-ƒs»J dƒ‚|  .d¡}!|!rât/|ƒsÎJ d	|› d
�ƒ‚d|› d| j › �}"t0|"|!dd�}#|#||< q®|ré|| _1ni | _1t2|ƒsôJ dƒ‚t3| j| j| j%d�\| _4}$| _5t6|$| j | j5d�| _7t8| j4j9ƒ�pt:| j4j9ƒ}%|%�o!t;|t<ƒ| _=|%�o*t|tƒ| _>t|tƒ�ret?|ƒ}&t;|&t@ƒ�r?d }n&tA|&ƒ}'|'d u�rc|%�rct|tƒ�sWt;|t<ƒ�r`t;|'tBƒ�s`|'| _d }n|&}|| _C| jC�rˆt/|ƒ�syJ d	|› d
�ƒ‚d| j  }"t0|"| jCdd�| _Dnd | _D| j�rŸd| j  }(t0|(| jdd�| _Ed S d | _Ed S )NÚGETc                 S   s   h | ]}|  ¡ ’qS rm   )Úupper)Ú.0rB  rm   rm   rn   Ú	<setcomp>ý  s    z,_populate_api_route_state.<locals>.<setcomp>rö   úr   z%An additional response must be a dictÚmodelzStatus code z must not have a response bodyÚ	Response_r{  Úserialization)rq  Útype_ÚmodezAn endpoint must be a callablert  )r”  rq  rð   ÚStreamItem_)Frù   rs  r°  r²  r³  r_   r´  ré   rê   rë   rì   rí   rî   rµ  rç   rï   r¶  r·  r¸  rñ   r¹  rº  rT   rq  rS   rv  rw  rx  r»  r  r!   rÖ   r¼  r   r¨  rß   ru  rr  r·   Úcleandocr�   r½  ÚsplitÚstripr›  rP  r@  r?   r<   r¾  Úcallablery  rÙ   rz  r'   ræ   r#   rÜ   r%   r   r7   rh  ró   r-   rN   r,   r8   r±  rè   rò   ))r}  rù   rs  r±  rß   r¹  rr  r²  r½  r³  rº  r_   rq  r»  r´  ré   rê   rë   rì   rí   rî   rµ  rç   rï   r¶  r·  r¸  rñ   r°  Úcurrent_generate_unique_idr¾  Úadditional_status_coderj   rÆ  Úresponse_namerè   r”  Úis_generatorÚreturn_annotationÚstream_itemÚstream_item_namerm   rm   rn   Ú_populate_api_route_stateÁ  sä   "


ÿ



ÿÿ€ýüýÿÿÿÿþý
ÿ

ý
ý
r×  c                9       sX  e Zd ZU edB ed< eed< edB ed< eed< edB ed< edB ed< edB ed< edB ed	< eed
< eed< eed< eed< eed< ee	 e
B ed< edB ed< ee dB ed< eeef dB ed< eegef e
B ed< ee
B ed< eeeB  ed< eeeB eeef f ed< eed< edB ed< edB ed< edB ed< eej ed< eed< eeeB ef ed< eed< eed< edB ed < eed!< eed"< edƒdddddd#dddddddd$d%d%d%d$eeƒdddeeƒed$ƒd&œd'ed(ed)ef dededB deeeB  dB deej dB dedB dedB dedeeeB eeef f dB dedB d*edB d+ee ee B dB dedB dedB d	edB d
edededededee	 e
B dedB dee dB deeef dB ded gef e
B dee
B d,df8d-d.„Zd,eegeeee	f f fd/d0„Zd1ed,ee ef f‡ fd2d3„Z!d1ed4e"d5e#d,df‡ fd6d7„Z$‡  Z%S )8ÚAPIRouteNr°  r±  r²  r³  r_   r´  ré   rê   rë   rì   rí   rî   rµ  rç   rï   r¶  r·  r¸  rñ   r¹  rº  r¼  rß   rè   rò   rr  r½  r¾  rÙ   rz  ræ   rh  ró   rÀ  TF)r±  rß   r¹  rr  r²  r½  r³  rº  r_   rq  r»  r´  ré   rê   rë   rì   rí   rî   rµ  rç   rï   r¶  r·  r¸  rñ   rù   rs  .rq  r»  ra   c                C   s¾   t tt| ƒ||fi d|“d|“d|“d|“d|“d|“d|	“d|
“d	|“d
|“d|“d|“d|“d|“d|“d|“d|“d|“d|“d|“d|“d|“d|“d|“d|“Ž t|  ¡ ƒ| _d S )Nr±  rß   r¹  rr  r²  r½  r³  rº  r_   rq  r»  r´  ré   rê   rë   rì   rí   rî   rµ  rç   rï   r¶  r·  r¸  rñ   )r×  r   r¯  ru   Úget_route_handlerro   )r   rù   rs  r±  rß   r¹  rr  r²  r½  r³  rº  r_   rq  r»  r´  ré   rê   rë   rì   rí   rî   rµ  rç   rï   r¶  r·  r¸  rñ   rm   rm   rn   r€   ‰  sp    ýüûúùø	÷
öõôóòñðïîíìëêéèçæåäzAPIRoute.__init__c                 C   s¸   t t| ƒ}t ¡ }|d ur|j| u rt t|ƒ}tdi d|j“d|j“d|j“d|j	“d|j
“d|j“d|j“d|j“d	|j“d
|j“d|j“d|j“d|j“d|j“d|j“d|j“ŽS )NrÙ   ræ   rß   rç   rè   ré   rê   rë   rì   rí   rî   rï   rð   rñ   rò   ró   rm   )r   r¯  r�  r@  Úoriginal_routerk  rÙ   ræ   rß   rç   rè   ré   rê   rë   rì   rí   rî   rï   rz  rñ   rò   ró   )r   r}  Úeffective_contextrm   rm   rn   rÙ  É  sJ   

ÿþýüûúùø	÷
öõôóòñðzAPIRoute.get_route_handlerrb   c                    sT   t |ƒ}|d ur|j| u r| |¡\}}ntƒ  |¡\}}|tjkr&| |d< ||fS r|  )r£  rÚ  r  r~  rQ   r€  )r   rb   rÛ  r�  r‚  rƒ  rm   rn   r  ã  s   
zAPIRoute.matchesrc   rd   c           
   	   ƒ   sÚ   �t |ƒ}|d ur`|j| u r`|j}|r<|d |vr<dd |¡i}d|v r*td|d�‚tdd|d�}||||ƒI d H  d S t |¡}zt|  	¡ ƒ}	W t 
|¡ nt 
|¡ w |	|||ƒI d H  d S tƒ  |||¡I d H  d S )NrB  ÚAllowz, ro   é•  )rß   rF  zMethod Not Allowed)r£  rÚ  r»  ÚjoinrI   rL   r�  r¿  ru   rÙ  Úresetr~  Úhandle)
r   rb   rc   rd   rÛ  r»  rF  rj   Útokenro   rƒ  rm   rn   rà  í  s(   €ÿ
zAPIRoute.handle)&rŠ   r‹   rŒ   r   r–  r¢   r’   r;   rŽ   rN   r!   ru  rP   rP  r   r   r¨  r   r   r…  r"   r    rK   r=   r
   r¿  r€   rJ   r   rÙ  r[   r†  rQ   r  rZ   r\   rà  r‡  rm   rm   rƒ  rn   rØ  f  sò   
 âþ
ýûúùø	÷
öõôóòñðïîíìëêé
èç
æåÿäâ
á"@&
rØ  c                   @   sè  e Zd ZU ded< dZeed< eed�Zeee	B  ed< eed�Z
eej ed< edd	„ d�Zee eB ed
< eed�ZeeeB eeef f ed< eed�Zee ed< dZedB ed< dZeed< edd	„ d�Zeegef eB ed< edd	„ d�ZeeB ed< dZedB ed< eddde e!ƒdddde e"ƒdœ	dddddedeee	B  dB de#ej dB d
ee eB deeeB eeef f dB dee dB dedB dedeegef eB dd fdd„ƒZ$		 		 d!dd„Z%de&defdd „Z'dS )"Ú_RouterIncludeContextr¦   rŒ  rö   Úprefix©Údefault_factoryr¹  rr  c                   C   ó   t tƒS r}   ©r    rK   rm   rm   rm   rn   Ú<lambda>  ó    z_RouterIncludeContext.<lambda>Údefault_response_classrº  r¶  Nr_   Trµ  c                   C   ræ  r}   ©r    r=   rm   rm   rm   rn   rè    ré  r¸  c                   C   ó   t dƒS ©NT©r    rm   rm   rm   rn   rè    ré  rñ   rï   ©	rã  r¹  rr  rê  rº  r¶  r_   rµ  r¸  Úparent_routerra   c                C   s~   | ||j | g |j¢|pg ¢g |j¢|pg ¢t||jƒi |j¥|p"i ¥g |j¢|p*g ¢|	p/|j|jo3|
t||j	ƒ|j
|jd�S ©N)rŒ  rã  r¹  rr  rê  rº  r¶  r_   rµ  r¸  rñ   rï   )rã  r¹  rr  r>   rê  rº  r¶  r_   rµ  r¸  rñ   rï   )Úclsrð  rŒ  rã  r¹  rr  rê  rº  r¶  r_   rµ  r¸  rm   rm   rn   Úfor_include  s$   ÿÿðz!_RouterIncludeContext.for_includeÚchild_contextc                 C   sŠ   t |j| j|j g | j¢|j¢g | j¢|j¢t|j| jƒi | j¥|j¥g | j¢|j¢| j	p/|j	| j
o4|j
t|j| jƒt|j| jƒ| jd�S rñ  )râ  rŒ  rã  r¹  rr  r>   rê  rº  r¶  r_   rµ  r¸  rñ   rï   )r   rô  rm   rm   rn   Úcombine?  s,   
ÿ
þÿìz_RouterIncludeContext.combiner}  c                 C   s   | j |j S r}   ©rã  rù   ©r   r}  rm   rm   rn   Úpath_forY  r6  z_RouterIncludeContext.path_for)rô  râ  ra   râ  )(rŠ   r‹   rŒ   r–  rã  r¢   r   ru  r¹  r   rr  r   r…  rê  rŽ   rN   r!   rP  rº  r¨  r   r¶  rP   r_   r’   rµ  r¸  r   rØ  rñ   rï   Úclassmethodr    rK   r=   r
   ró  rõ  r•  rø  rm   rm   rm   rn   râ    s€   
 ÿ&ÿÿÿðýüûúù
øõ
ôóòÿñï%ÿ
þrâ  c                   @   s\  e Zd ZU eed< dZedB ed< dZeed< dZeed< dZ	e
def dB ed< dZedB ed	< dZeed
< dZedB ed< dZeed< dZedB ed< dZedB ed< dZedB ed< dZedB ed< dZeed< dZeed< dZeed< dZeed< dZeed< edd„ d�Zee eB ed< dZ edB ed< dZ!e"e dB ed< dZ#e$eef dB ed< ed d„ d�Z%e
egef eB ed!< ed"d„ d�Z&eeB ed#< ee"d�Z'e"ee(B  ed$< ee$d�Z)e$e*eB e$eef f ed%< dZ+eed&< dZ,eed'< dZ-eed(< ee$d�Z.e$eef ed)< ee/d�Z0e/e ed*< dZ1eed+< dZ2e*dB ed,< dZ3e4dB ed-< dZ5e4dB ed.< ee"d�Z6e"e7j8 ed/< dZ9eed0< ee$d�Z:e$e*eB e4f ed1< dZ;e<dB ed2< dZ=eed3< dZ>e4dB ed4< dZ?eed5< dZ@eed6< eAdeBd7eCd8d fd9d:„ƒZDeAdd;d7eCd8d fd<d=„ƒZEd>eFd8eGeHeFf fd?d@„ZId&edAed8efdBdC„ZJdS )DÚ_EffectiveRouteContextrÚ  NÚstarlette_routerö   Úfrontend_prefixrù   .rs  r°  r±  r²  rÀ  r³  r_   r´  ré   rê   Trë   Frì   rí   rî   rµ  c                   C   ræ  r}   rç  rm   rm   rm   rn   rè  r  ré  z_EffectiveRouteContext.<lambda>rä  rç   rï   r¶  r·  c                   C   ræ  r}   rë  rm   rm   rm   rn   rè  x  ré  r¸  c                   C   rì  rí  rî  rm   rm   rm   rn   rè  {  ré  rñ   r¹  rº  rq  rv  rw  rx  r»  r¼  rß   rè   rò   rr  r½  r¾  rÙ   rz  ræ   rh  ró   Úinclude_contextra   c                C   sh  t t|ƒ}| |d�}tt t|ƒ| |¡|jfi d|j“d|j“dg |j¢|j¢“dg |j¢|j¢“d|j	“d|j
“d|j“d	i |j¥|j¥“d
|jpL|j“d|j“d|j“d|j“d|j“d|j“d|j“d|j“d|j“d|jos|j“dt|j|jj|jƒ“d|j“d|j“dg |j¢|jp�g ¢“d|j“dt|j|jj|jƒ“dt|j |jj |j ƒ“d|j!“Ž |S )N)rÚ  r±  rß   r¹  rr  r²  r½  r³  rº  r_   r»  r´  ré   rê   rë   rì   rí   rî   rµ  rç   rq  rï   r¶  r·  r¸  rñ   r°  )"r   r¯  r×  rø  rs  r±  rß   r¹  rr  r²  r½  r³  rº  r_   r»  r´  ré   rê   rë   rì   rí   rî   rµ  r>   rç   rŒ  rê  rq  rï   r¶  r·  r¸  rñ   r°  )rò  rÚ  rý  r}  Úcontextrm   rm   rn   Úfrom_api_route‘  s–   

ýüûúùø	÷
öõ
€ôóòñðïîíì€êýéäãâá ýà%ýÛ*Ö,z%_EffectiveRouteContext.from_api_routeÚ_FrontendRouteGroupc                C   s@   g |j ¢|j ¢}| ||j||jd�}tdt|d�\|_}|_|S )N)rÚ  rü  rr  rï   rö   rt  )rr  rã  rï   ry  r�  rÙ   rz  )rò  rÚ  rý  rr  rþ  r{  rm   rm   rn   Úfrom_frontend_route_groupÈ  s"   ü
ýüz0_EffectiveRouteContext.from_frontend_route_grouprb   c           
      C   sø   t | jtƒr| j || j¡S t | jtƒs!| jd usJ ‚| j |¡S |d dkr,tj	i fS t
|ƒ}| j |¡}|s=tj	i fS | ¡ }| ¡ D ]\}}| j|  |¡||< qEt| di ¡ƒ}| |¡ | j|dœ}| j}	|	rw|d |	vrwtj|fS tj|fS )NrŽ   ÚhttpÚpath_params)rs  r  rB  )r  rÚ  r   Úmatches_with_prefixrü  rØ  rû  r  rQ   r€  rB   rv  r�  Ú	groupdictr›  rx  ÚconvertrP  r@  rœ  rs  r»  ÚPARTIALÚFULL)
r   rb   Ú
route_pathr�  Úmatched_paramsrž  rÖ   r  r‚  r»  rm   rm   rn   r  á  s*   




z_EffectiveRouteContext.matchesr  c                K   s’   t | jtƒs| jd usJ ‚| jj|fi |¤ŽS t| ¡ ƒ}| j}t| ¡ ƒ}|| jks/||kr5t	 
||¡‚t	 | j||¡\}}|rCJ ‚t|dd�S )Nr  )rù   Úprotocol)r  rÚ  rØ  rû  Úurl_path_forr¿  Úkeysrx  rq  r@   rR   Úreplace_paramsrw  rH   )r   rq  r  Úseen_paramsrx  Úexpected_paramsrù   Úremaining_paramsrm   rm   rn   r  ø  s   ÿz#_EffectiveRouteContext.url_path_for)KrŠ   r‹   rŒ   rP   r–  rû  rü  r¢   rù   rs  r   r   r°  r±  r²  r³  r_   r’   r´  ré   r;   rê   rë   rì   rí   rî   rµ  r   rç   rŽ   rN   r!   rï   r¶  ru  r·  rP  r¸  rñ   r¹  r   rº  r¨  rq  rv  rw  rx  r¿  r»  r¼  rß   rè   r   rò   rr  r   r…  r½  r¾  rÙ   r"   rz  ræ   rh  ró   rù  rØ  râ  rÿ  r  r[   r†  rQ   r  r  rm   rm   rm   rn   rú  ]  sˆ   
 ÿÿÿ&ýüû6ýüûrú  )Úfrozenc                   @   sâ   e Zd ZU eed< eddd�ZedB ed< edefdd„ƒZ	edeeB fd	d
„ƒZ
ededB fdd„ƒZededB fdd„ƒZededB fdd„ƒZedee dB fdd„ƒZededef dB fdd„ƒZdedefdd„ZdS )ÚRouteContextr}  NF)rŽ  ÚreprÚ_route_contextra   c                 C   s   | j d ur	| j jS | jS r}   )r  rÚ  r}  rƒ   rm   rm   rn   rÚ    s   
zRouteContext.original_routec                 C   s   | j d ur| j S | jS r}   )r  r}  rƒ   rm   rm   rn   Ú_effective_route  s   
zRouteContext._effective_routec                 C   ó   t | jdd ƒS )Nrù   ©rº   r  rƒ   rm   rm   rn   rù     ó   zRouteContext.pathc                 C   r  )Nrw  r  rƒ   rm   rm   rn   rw    r  zRouteContext.path_formatc                 C   r  )Nrq  r  rƒ   rm   rm   rn   rq  !  r  zRouteContext.namec                 C   r  )Nr»  r  rƒ   rm   rm   rn   r»  %  r  zRouteContext.methods.c                 C   r  )Nrs  r  rƒ   rm   rm   rn   rs  )  r  zRouteContext.endpointrq  c                 C   s   t | j|ƒS r}   r  )r   rq  rm   rm   rn   Ú__getattr__-  r6  zRouteContext.__getattr__)rŠ   r‹   rŒ   rP   r–  r   r  rú  ÚpropertyrÚ  r  r¢   rù   rw  rq  r¿  r»  r   r   rs  r  rm   rm   rm   rn   r    s$   
 r  c                	   @   sX  e Zd ZU ded< eed< eejddd�Ze	ed< ee
d�Ze
d ed	< d
Zed
B ed< ee
d�Ze
d ed< d
Zed
B ed< de
d fdd„Zde
d fdd„Zdeded
B fdd„Zdedeeeed
B ed
B f fdd„Zdedeeef fdd„Zdedededd
fdd„Zdedededd
fd d!„Zdee fd"d#„Zd$e d%e	de	fd&d'„Z!d
S )(Ú_IncludedRouterr¦   Úoriginal_routerrý  F)rå  r  ÚcompareÚ_effective_routes_lockrä  z(_EffectiveRouteContext | _IncludedRouterÚ_effective_candidatesNÚ_effective_candidates_versionrú  Ú_effective_low_priority_routesÚ&_effective_low_priority_routes_versionra   c                 C   sÜ   | j  ¡ }|| jkr| jS | j�T | j  ¡ }|| jkr%| jW  d   ƒ S g }| j jD ])}t|tƒrF| j 	|j¡}t|j |d�}| 
|¡ q+|  |¡}|d urT| 
|¡ q+|| _|| _|W  d   ƒ S 1 sgw   Y  d S ©N©r  rý  )r  Ú_get_routes_versionr!  r   r  Úroutesr  r  rý  rõ  ÚappendÚ_build_effective_context)r   Úroutes_versionÚeffective_candidatesr}  rô  Úchild_branchÚroute_contextrm   rm   rn   r+  A  s4   



ý
þ


€$íz$_IncludedRouter.effective_candidatesc                 C   sì   | j  ¡ }|| jkr| jS | j�\ | j  ¡ }|| jkr%| jW  d   ƒ S g }| j jD ]}|  |¡}|d ur;| |¡ q+| j jD ]}t	|t
ƒr\| j |j¡}t
|j |d�}| | ¡ ¡ q@|| _|| _|W  d   ƒ S 1 sow   Y  d S r$  )r  r&  r#  r"  r  Ú_low_priority_routesr)  r(  r'  r  r  rý  rõ  rU  Úeffective_low_priority_routes)r   r*  r/  r}  r-  rô  r,  rm   rm   rn   r/  Z  s:   



ý

€
þÿ€$ëz-_IncludedRouter.effective_low_priority_routesr}  c                 C   s   t |tƒrtj|| jd�S t |tƒrtj|| jd�S t |tjƒr<tj| j 	|¡|j
t|jp.g ƒ|j|jd�}t||d�S t |tƒr_t| j 	|¡|j
|jg | jj¢|j¢| jjd�}t||d�S t |tjƒrytj| j 	|¡|j
|jd�}t||d�S t |tjƒr¡t |¡}| j 	|¡ d¡|_t|jd ƒ\|_|_|_t||d�S t |tjƒrÎ| jjr»tjtj| jj|jd�gd	�}n|j}tj|j||jd
�}t||d�S d S )N)rÚ  rý  )rs  r»  rq  rµ  )rÚ  rû  ©rs  rq  rr  rï   ©rq  r÷   z/{path:path}r”   )r'  )ro   rq  ) r  rØ  rú  rÿ  rý  r   r  r@   ÚRouterø  rs  ru  r»  rq  rµ  rp  rr  rï   ÚWebSocketRouterU   ÚcopyrA  rù   rS   rv  rw  rx  ÚHostrã  ÚRouterro   Úhost)r   r}  rû  Úprefixed_apprm   rm   rn   r)  u  sˆ   
þ
þ
ûþ

ú	þÿþ
üþÿ
ÿþz(_IncludedRouter._build_effective_contextrb   c           
      C   s  d }|   ¡ D ]o}t|tƒr| |¡\}}|}d }nAt|jtƒrK|}t|ƒ}| tt	¡}	||t< z|j |¡\}}W t
|t|	ƒ nt
|t|	ƒ w |j}n|}| |¡\}}|jpY|j}|tjkrg||||f  S |tjkru|d u ru|||f}q|d ur†|\}}}tj|||fS tji d d fS r}   )r+  r  r  r  rÚ  rØ  rš  r@  r¡  r¬  r®  rû  rQ   r  r  r€  )
r   rb   rs   Ú	candidater�  r‚  r}  r-  r™  Úprevious_contextrm   rm   rn   Ú_matchÀ  sB   
ÿÿÿ

€
z_IncludedRouter._matchc              
   C   sR   t |ƒ}| tt¡}| |t< z| j |¡\}}|i fW t|t|ƒ S t|t|ƒ w r}   )rš  r@  r¥  r¬  r  r  r®  )r   rb   r™  Úprevious_routerr�  r{  rm   rm   rn   r  ä  s   ÿÿÿz_IncludedRouter.matchesrc   rd   c                 Ã   s(   �| t |ƒt< | j |||¡I d H  d S r}   )rš  r¥  r  rà  )r   rb   rc   rd   rm   rm   rn   rà  ò  s   €z_IncludedRouter.handlec           	      Ã   sÈ   �|   |¡\}}}}|tjks|d u r | j |||¡I d H  d S | |¡ t|tƒr6| |||¡I d H  d S |d urX|t	|ƒt
< |j}t|tƒrX||d< | |||¡I d H  d S | |||¡I d H  d S r|  )r;  rQ   r€  r  rŽ  rœ  r  r  rà  rš  r¡  rÚ  rØ  )	r   rb   rc   rd   r�  r‚  r}  rÛ  rÚ  rm   rm   rn   Ú_handle_selectedö  s$   €


ÿ
z _IncludedRouter._handle_selectedc                 c   s4   � |   ¡ D ]}t|tƒr| ¡ E d H  q|V  qd S r}   )r+  r  r  Úeffective_route_contexts)r   r9  rm   rm   rn   r>    s   €
üz(_IncludedRouter.effective_route_contextsrq  r  c             	   K   sF   |   ¡ D ]}z|j|fi |¤ŽW   S  tjy   Y qw t ||¡‚r}   )r>  r  r@   rR   )r   rq  r  r-  rm   rm   rn   r    s   ÿz_IncludedRouter.url_path_for)"rŠ   r‹   rŒ   r–  râ  r   Ú	threadingÚLockr  r   ru  r   r!  r¨  r"  r#  r+  r/  rP   rú  r)  r[   r†  rQ   r;  r  rZ   r\   rà  r=  r   r>  r¢   r  rm   rm   rm   rn   r  1  sN   
 ÿÿÿÿ
þKÿ
þ$ÿÿÿ
þr  r'  c                 c   s:   � t | ƒD ]\}}|d ur|jd ur|jV  q|V  qd S r}   )Ú_iter_routes_with_contextrû  ©r'  r}  r-  rm   rm   rn   Ú_iter_included_route_candidates  s   €
ürC  c                 c   sV   � | D ]%}t |tƒr|V  qt|gƒD ]\}}|d u r!t|ƒV  qt||ƒV  qqd S r}   )r  r  rA  )r'  r}  rÚ  r-  rm   rm   rn   Úiter_route_contexts$  s   €
üürD  c                 c   s@   � | D ]}t |tƒr| ¡ D ]}|j|fV  qq|d fV  qd S r}   )r  r  r>  rÚ  rB  rm   rm   rn   rA  2  s   €
ÿûrA  c                 C   s4   | st dƒ‚|  d¡st dƒ‚| dkr|  d¡} | S )NzA frontend path cannot be emptyr÷   z#A frontend path must start with '/')ÚAssertionErrorÚ
startswithrA  ©rù   rm   rm   rn   Ú_normalize_frontend_path=  s   

rH  rã  c                 C   s   | s|S |dkr
| S | | S )Nr÷   rm   rö  rm   rm   rn   Ú_join_frontend_pathsG  s
   rI  c                 C   s   | dkrdS t | ƒS )Nr÷   r   )ÚlenrG  rm   rm   rn   Ú_frontend_path_specificityO  s   rK  c                 C   s   t j t  | ¡¡S r}   )Úosrù   ÚrealpathÚfspathrG  rm   rm   rn   Ú_get_resolved_absolute_pathU  r¤  rO  Ú	directoryÚ	check_dirÚautoc                 C   sP   |dkr|S t j d¡dkrdS t j | ¡s&tjd| › dt| ƒ› d�dd	� d
S )NrR  ÚFASTAPI_ENVÚdevelopmentTúFrontend directory 'ú+' does not exist. Resolved absolute path: 'ú'é   )Ú
stacklevelF)rL  Úenvironr@  rù   ÚisdirÚwarningsÚwarnrO  ©rP  rQ  rm   rm   rn   Ú_resolve_frontend_check_dirY  s   ÿýr_  c                       s  e Zd Zdeeje B ded dB deddf‡ fdd„Zdeddfd	d
„Z	defdd„Z
dedefdd„Zdedefdd„Zdededefdd„ZdedeeejdB f fdd„Zdedeeejef dB fdd„Zdedefdd„Zdedededefdd„Z‡  ZS )Ú_FrontendStaticFilesrP  Úfallback©rR  ú
index.htmlú404.htmlNrQ  ra   c                   sf   || _ |rtj |¡std|› dt|ƒ› d�ƒ‚tƒ j|d|dd� |r/|dv r1|  |¡ d S d S d S )NrU  rV  rW  TF)rP  ÚhtmlrQ  Úfollow_symlink>   rd  rc  )	ra  rL  rù   r[  ÚRuntimeErrorrO  r~  r€   Ú_check_fallback_file)r   rP  ra  rQ  rƒ  rm   rn   r€   l  s    ÿÿüÿz_FrontendStaticFiles.__init__c                 C   sH   |   |¡\}}|d u st |j¡s"td|› d| j› d|  ¡ › d�ƒ‚d S )NúFrontend fallback file 'ú' does not exist in directory 'ú!'. Resolved absolute directory: 'rW  )Úlookup_pathÚstatÚS_ISREGÚst_moderg  rP  Ú_get_resolved_directory©r   ra  r{  Ústat_resultrm   rm   rn   rh  ‚  s   ÿþÿÿz)_FrontendStaticFiles._check_fallback_filec                 C   s   | j d usJ ‚t| j ƒS r}   )rP  rO  rƒ   rm   rm   rn   rp  ‹  s   
z,_FrontendStaticFiles._get_resolved_directoryrb   c                 C   s8   t |ƒ td¡}t|tƒsJ ‚tj tjj| 	d¡Ž ¡S )Nrö   r÷   )
rš  r@  Ú_FASTAPI_FRONTEND_PATH_KEYr  r¢   rL  rù   ÚnormpathrÞ  rÍ  )r   rb   rù   rm   rm   rn   Úget_path�  s   z_FrontendStaticFiles.get_pathc                 Ã   s4   �| j s|  ¡ I d H  d| _ |  |  |¡|¡I d H S rí  )Úconfig_checkedÚcheck_configÚget_responseru  ©r   rb   rm   rm   rn   Úget_response_for_scope”  s
   €z+_FrontendStaticFiles.get_response_for_scoperù   c                 Ã   s  �|d dvr|   |¡I d H d urtdd�‚tdd�‚|   |¡I d H }|d urO|\}}}|rH|d  d¡sHt|d�}|j|jd d	�}t|d
�S |  |||¡S | jdks^| jdkri|  	d¡ri| j
d|dd�I d H S | jdksx| jdkr‡|  	d¡r‡t|ƒr‡| j
d|dd�I d H S tdd�‚)NrB  )rÁ  ÚHEADrÝ  ©rß   é”  rù   r÷   r¢  rG  ©Úurlrd  rR  rc  éÈ   )Ú_lookup_static_resourcerI   rL  rF   Úreplacerù   rM   Úfile_responsera  Ú_fallback_file_existsÚ_fallback_responseÚ_is_frontend_navigation_request)r   rù   rb   Ústatic_resourceÚ	full_pathrr  Úis_directory_indexr  rm   rm   rn   rx  š  s,   €






ÿ
z!_FrontendStaticFiles.get_responsec              
   Ã   s|   �z
t | j|ƒI d H W S  ty   tdd�d ‚ ty1 } z|jtjkr+tdd�d ‚|‚d }~w ty=   tdd�d ‚w )Ni‘  r|  r}  )rE   rl  ÚPermissionErrorrI   ÚOSErrorÚerrnoÚENAMETOOLONGÚ
ValueError)r   rù   Úexcrm   rm   rn   Ú_lookup_path¶  s   €€ÿz!_FrontendStaticFiles._lookup_pathc                 Ã   sˆ   �|   |¡I d H \}}|d u rd S t |j¡r||dfS t |j¡rBtj |d¡}|   |¡I d H \}}|d urBt |j¡rB||dfS d S )NFrc  T)r�  rm  rn  ro  ÚS_ISDIRrL  rù   rÞ  )r   rù   rˆ  rr  Ú
index_pathrm   rm   rn   r�  Â  s   €

z,_FrontendStaticFiles._lookup_static_resourcec                 C   s"   |   |¡\}}|d uot |j¡S r}   )rl  rm  rn  ro  rq  rm   rm   rn   r„  Ñ  s   z*_FrontendStaticFiles._fallback_file_existsrß   c                Ã   s`   �t | j|ƒI d H \}}|d u st |j¡s'td|› d| j› d|  ¡ › d�ƒ‚| j||||d�S )Nri  rj  rk  rW  r|  )	rE   rl  rm  rn  ro  rg  rP  rp  rƒ  )r   ra  rb   rß   rˆ  rr  rm   rm   rn   r…  Õ  s   €ÿþÿÿz'_FrontendStaticFiles._fallback_response)rŠ   r‹   rŒ   r¢   rL  ÚPathLiker   r’   r€   rh  rp  r[   ru  rN   rz  rx  r†  rr  r�  r�  r„  r¨  r…  r‡  rm   rm   rƒ  rn   r`  k  s>    ý
üûú	 ÿ
þÿÿÿþr`  Úacceptc              	   c   s€   � |   d¡D ]7}tj ¡ }| ¡ |d< | d¡}d}t|tƒr/zt|ƒ}W n	 t	y.   Y nw | 
¡ › d| ¡ › �|fV  qd S )Nú,rú   Úqg      ð?r÷   )rÍ  rG  rH  rI  rÎ  Ú	get_paramr  r¢   ÚfloatrŽ  rJ  rK  )r”  Ú	raw_valuerH  r–  Úqualityrm   rm   rn   Ú_iter_accept_media_typesä  s    €


ÿþör›  c                 C   s>   t | ƒ}t|j dd¡ƒD ]\}}|dv r|dkr dS qdS )Nr”  rö   >   ú	text/htmlúapplication/xhtml+xmlr   TF)rJ   r›  rF  r@  )rb   rl   r1  rš  rm   rm   rn   r†  õ  s   ÿ€r†  c                   @   sÄ   e Zd Zddœdedeeje B ded dB ded	df
d
d„Zde	d	e
ee	f fdd„Zde	ded	e
ee	f fdd„Zdeded	edB fdd„Zde	deded	dfdd„Zdeded	efdd„ZdS )Ú_FrontendRouterR  ©ra  rù   rP  ra  rb  NrQ  ra   c                C   s8   |dvrt dƒ‚t|ƒ| _ddh| _t|||d�| _d S )N>   NrR  rd  rc  z:fallback must be 'auto', 'index.html', '404.html', or NonerÁ  r{  ©rP  ra  rQ  )rE  rH  rù   r»  r`  ro   ©r   rù   rP  ra  rQ  rm   rm   rn   r€      s   ÿ

ÿz_FrontendRoute.__init__rb   c                 C   s   |   || j¡S r}   )Úmatches_with_pathrù   ry  rm   rm   rn   r    s   z_FrontendRoute.matchesc                 C   sn   |d dkrt ji fS |  |t|ƒ¡}|d u rt ji fS tt|tt|ƒii}|d | jvr2t j	|fS t j
|fS )NrŽ   r  rB  )rQ   r€  Ú_get_frontend_pathrB   r˜  rs  r§  rK  r»  r  r  )r   rb   rù   rŠ  r‚  rm   rm   rn   r¢    s   

þÿ

z _FrontendRoute.matches_with_pathr	  c                 C   sD   |dkr	|  d¡S ||krdS |d }| |¡r |t|ƒd … S d S )Nr÷   rö   )ÚlstriprF  rJ  )r   rù   r	  rã  rm   rm   rn   r£  %  s   

z!_FrontendRoute._get_frontend_pathrc   rd   c                 Ã   s*   �| j  |¡I d H }||||ƒI d H  d S r}   )ro   rz  )r   rb   rc   rd   rj   rm   rm   rn   rà  /  s   €z_FrontendRoute.handlerq  r  c                K   ó
   t ||ƒ‚r}   ©rR   ©r   rq  r  rm   rm   rn   r  3  r�   z_FrontendRoute.url_path_for)rŠ   r‹   rŒ   r¢   rL  r“  r   r’   r€   r[   r†  rQ   r  r¢  r£  rZ   r\   rà  r   rH   r  rm   rm   rm   rn   rž  ÿ  s$    ûþü
ûú
ù
rž  c                   @   s,  e Zd Zdddœdeej dB dedB ddfdd„Zdd	œd
edee	j
e B ded dB deddf
dd„Zdedeeef fdd„Zdededeeef fdd„ZdededeeeedB f fdd„Zdedededdfdd„Zdededefdd „Zedededed!ededB d"edee fd#d$„ƒZdS )%r   N©rr  rï   rr  rï   ra   c                C   s8   g | _ t|pg ƒ| _|| _tdt| jd�\| _}| _d S )Nrö   rt  )r'  ru  rr  rï   ry  r�  rÙ   rz  )r   rr  rï   r{  rm   rm   rn   r€   8  s   ýüz_FrontendRouteGroup.__init__rR  rŸ  rù   rP  ra  rb  rQ  c                C   s   | j  t||||d�¡ d S )Nr   )r'  r(  rž  r¡  rm   rm   rn   Úadd_frontend_routeK  s   üÿz&_FrontendRouteGroup.add_frontend_routerb   c                 C   s   | j |dd�\}}}||fS )Nrö   ©rã  ©r;  )r   rb   r�  r‚  r{  rm   rm   rn   r  \  ó   z_FrontendRouteGroup.matchesrã  c                 C   s   | j ||d�\}}}||fS )Nrª  r«  )r   rb   rã  r�  r‚  r{  rm   rm   rn   r  `  r¬  z'_FrontendRouteGroup.matches_with_prefixc                C   sÒ   d }d }| j D ]=}t||jƒ}| ||¡\}}t|ƒ}	|tjkr0|d u s*|	|d kr/|||	f}q|tjkrD|d u s?|	|d krD|||	f}q|d urT|\}}}
tj||fS |d urc|\}}}
tj||fS tji d fS )Né   )	r'  rI  rù   r¢  rK  rQ   r  r  r€  )r   rb   rã  Úfullrs   r}  rù   r�  r‚  r©  r{  rm   rm   rn   r;  d  s*   


€

€

z_FrontendRouteGroup._matchrc   rd   c              	   Ã   sN  �t |ƒ}t|tƒr|j| u r|j}|j}|j}|j}nd}| j}| j}| j}| j||d�\}	}
}|	t	j
ks:|d u r?tdd�‚t||
ƒ |	t	jkr›|r›|jr›| j||||||d�4 I d H š1}|j |¡I d H }|jd u rp|j|_|jj |jjj¡ ||||ƒI d H  W d   ƒI d H  d S 1 I d H s”w   Y  d S | |||¡I d H  d S )Nrö   rª  r}  r|  rn  )r£  r  rú  rÚ  rü  rÙ   rï   rz  r;  rQ   r€  rI   rŸ  r  rr  Ú_solve_dependenciesro   rz  rá   râ   rF  rT  rU  rj   rà  )r   rb   rc   rd   rÛ  rã  rÙ   rï   rð   r�  r‚  r}  rà   rj   rm   rm   rn   rà  {  sL   €ÿ
ÿ

ú
ôóz_FrontendRouteGroup.handlerq  r  c                K   r¥  r}   r¦  r§  rm   rm   rn   r  ¡  r�   z _FrontendRouteGroup.url_path_forrÙ   rð   c             
   C  s\  �t |||ƒ}| dt¡}| dt¡}	z{tƒ 4 I d H šG}
|
|d< tƒ 4 I d H š&}||d< t||||
|d�I d H }|jr@t|jƒ‚|V  W d   ƒI d H  n1 I d H sSw   Y  W d   ƒI d H  n1 I d H shw   Y  W |tu ry| dd ¡ n||d< |	tu r‰| dd ¡ d S |	|d< d S |tu rš| dd ¡ n||d< |	tu r©| dd ¡ w |	|d< w )Nre   rf   rm  )rJ   r@  r¬  r   r.   rÐ   r2   r­  )r   rb   rc   rd   rÙ   rï   rð   rl   Úprevious_inner_astackÚprevious_function_astackrh   ri   rà   rm   rm   rn   r¯  §  sD   €û
*õ(þ€ùz'_FrontendRouteGroup._solve_dependencies)rŠ   r‹   rŒ   r
   r   r…  r   r€   r¢   rL  r“  r   r’   r©  r[   r†  rQ   r  r  rž  r;  rZ   r\   rà  rH   r  r   r"   r   r&   r¯  rm   rm   rm   rn   r   7  sb    üýü
ûûþü
ûú
ùÿÿ
þ&þýüúùø	÷r   c                9       s~  e Zd ZdZdddeeƒddddddedddddeeƒedƒdœdee	e
dƒf deee	eB  dB e
d	ƒf d
eeej dB e
dƒf deee e
dƒf deeee	B ee	ef f dB e
dƒf deee dB e
dƒf deee dB e
dƒedƒf deee
dƒf deedB e
dƒf deedB e
dƒf deee e
dƒf deeeg ef  dB e
dƒf deeeg ef  dB e
d ƒf d!eee dB e
d"ƒf d#eedB e
d$ƒf d%eee
d&ƒf d'eeege	f e
d(ƒf d)eee
d*ƒf d+df&‡ fd,d-„Zd·d.d/„Zd¸d0ee dB d+efd1d2„Z	d¸d3d d0ee dB d+efd4d5„Z			d¹d6e	d7ee ge!e eB f d8e"e	 dB d9e	dB d%ed+df‡ fd:d;„Z#	d¸d6e	d7ee$ge!d f d9e	dB d+df‡ fd<d=„Z%d>d>d?œd6ee	e
d@ƒf dAee	e&j'e	 B e
dBƒf dCee(dD dB e
dEƒf dFeee(d> B e
dGƒf d+df
dHdI„Z)dJe*dKe+dLe,d+dfdMdN„Z-dJe*dKe+dLe,d+dfdOdP„Z.dJe*d+e/e0e*f fdQdR„Z1d+e2ee3B  fdSdT„Z4dJe*d+e/e0e*edB e3dB f fdUdV„Z5dWe*dXe*d+efdYdZ„Z6			d¹d6e	d8e"e	 dB d9e	dB d%ed+ee7ge7f f
d[d\„Z8edƒdddddd]dddddddd^d^d^deeƒddddeeƒedƒd_œd6e	d7ed`ef daedbedB dee	eB  dB d
eej dB dce	dB dde	dB dee	deee	B ee	ef f dB d#edB d8ee	 ee	 B dB dfe	dB dge9dB dhe9dB diedjedkedled%edmee e:B d9e	dB dnee dB dee dB doee	ef dB d'eege	f e:B d)ee:B d+df8dpdq„Z;edƒdddddd]dddddddd^d^d^deeƒdddeeƒdrœd6e	daedbedB dee	eB  dB d
eej dB dce	dB dde	dB dee	deee	B ee	ef f dB d#edB d8ee	 dB dfe	dB dge9dB dhe9dB diedjedkedled%edmee d9e	dB dee dB doee	ef dB d'eege	f d+ee7ge7f f2dsdt„Z<	d¸dduœd6e	d7ed`ef d9e	dB d
eej dB d+df
dvdw„Z=	d¸dduœd6ee	e
dxƒf d9ee	dB e
dyƒf d
eeej dB e
dzƒf d+ee7ge7f fd{d|„Z>	d¸d6e	d9e	dB d+ee7ge7f fd}d~„Z?dddeeƒddddeeƒdœ	d3ed e
d€ƒf dee	e
dƒf deee	eB  dB e
d	ƒf d
eeej dB e
dƒf deee e
dƒf deeee	B ee	ef f dB e
dƒf deee dB e
dƒf d#eedB e
d$ƒf d%eee
d�ƒf d'eeege	f e
d(ƒf d+dfd‚dƒ„Z@edƒdddddd]ddddddd^d^d^deeƒdddeeƒd„œd6ee	e
d…ƒf daeee
d†ƒf dbeedB e
d‡ƒf deee	eB  dB e
dˆƒf d
eeej dB e
d‰ƒf dcee	dB e
dŠƒf ddee	dB e
d‹ƒf deee	e
dŒƒf deeee	B ee	ef f dB e
d�ƒf d#eedB e
dŽƒf dfee	dB e
d�ƒf dgee9dB e
d�ƒf dhee9dB e
d‘ƒf dieee
d’ƒf djeee
d“ƒf dkeee
d”ƒf dleee
d•ƒf d%eee
d–ƒf dmeee e
d—ƒf d9ee	dB e
d˜ƒf deee dB e
d™ƒf doeee	ef dB e
dšƒf d'eeege	f e
d(ƒf d+ee7ge7f f0d›dœ„ZAedƒdddddd]ddddddd^d^d^deeƒdddeeƒd„œd6ee	e
d…ƒf daeee
d†ƒf dbeedB e
d‡ƒf deee	eB  dB e
dˆƒf d
eeej dB e
d‰ƒf dcee	dB e
dŠƒf ddee	dB e
d‹ƒf deee	e
dŒƒf deeee	B ee	ef f dB e
d�ƒf d#eedB e
dŽƒf dfee	dB e
d�ƒf dgee9dB e
d�ƒf dhee9dB e
d‘ƒf dieee
d’ƒf djeee
d“ƒf dkeee
d”ƒf dleee
d•ƒf d%eee
d–ƒf dmeee e
d—ƒf d9ee	dB e
d˜ƒf deee dB e
d™ƒf doeee	ef dB e
dšƒf d'eeege	f e
d(ƒf d+ee7ge7f f0d�dž„ZBedƒdddddd]ddddddd^d^d^deeƒdddeeƒd„œd6ee	e
d…ƒf daeee
d†ƒf dbeedB e
d‡ƒf deee	eB  dB e
dˆƒf d
eeej dB e
d‰ƒf dcee	dB e
dŠƒf ddee	dB e
d‹ƒf deee	e
dŒƒf deeee	B ee	ef f dB e
d�ƒf d#eedB e
dŽƒf dfee	dB e
d�ƒf dgee9dB e
d�ƒf dhee9dB e
d‘ƒf dieee
d’ƒf djeee
d“ƒf dkeee
d”ƒf dleee
d•ƒf d%eee
d–ƒf dmeee e
d—ƒf d9ee	dB e
d˜ƒf deee dB e
d™ƒf doeee	ef dB e
dšƒf d'eeege	f e
d(ƒf d+ee7ge7f f0dŸd „ZCedƒdddddd]ddddddd^d^d^deeƒdddeeƒd„œd6ee	e
d…ƒf daeee
d†ƒf dbeedB e
d‡ƒf deee	eB  dB e
dˆƒf d
eeej dB e
d‰ƒf dcee	dB e
dŠƒf ddee	dB e
d‹ƒf deee	e
dŒƒf deeee	B ee	ef f dB e
d�ƒf d#eedB e
dŽƒf dfee	dB e
d�ƒf dgee9dB e
d�ƒf dhee9dB e
d‘ƒf dieee
d’ƒf djeee
d“ƒf dkeee
d”ƒf dleee
d•ƒf d%eee
d–ƒf dmeee e
d—ƒf d9ee	dB e
d˜ƒf deee dB e
d™ƒf doeee	ef dB e
dšƒf d'eeege	f e
d(ƒf d+ee7ge7f f0d¡d¢„ZDedƒdddddd]ddddddd^d^d^deeƒdddeeƒd„œd6ee	e
d…ƒf daeee
d†ƒf dbeedB e
d‡ƒf deee	eB  dB e
dˆƒf d
eeej dB e
d‰ƒf dcee	dB e
dŠƒf ddee	dB e
d‹ƒf deee	e
dŒƒf deeee	B ee	ef f dB e
d�ƒf d#eedB e
dŽƒf dfee	dB e
d�ƒf dgee9dB e
d�ƒf dhee9dB e
d‘ƒf dieee
d’ƒf djeee
d“ƒf dkeee
d”ƒf dleee
d•ƒf d%eee
d–ƒf dmeee e
d—ƒf d9ee	dB e
d˜ƒf deee dB e
d™ƒf doeee	ef dB e
dšƒf d'eeege	f e
d(ƒf d+ee7ge7f f0d£d¤„ZEedƒdddddd]ddddddd^d^d^deeƒdddeeƒd„œd6ee	e
d…ƒf daeee
d†ƒf dbeedB e
d‡ƒf deee	eB  dB e
dˆƒf d
eeej dB e
d‰ƒf dcee	dB e
dŠƒf ddee	dB e
d‹ƒf deee	e
dŒƒf deeee	B ee	ef f dB e
d�ƒf d#eedB e
dŽƒf dfee	dB e
d�ƒf dgee9dB e
d�ƒf dhee9dB e
d‘ƒf dieee
d’ƒf djeee
d“ƒf dkeee
d”ƒf dleee
d•ƒf d%eee
d–ƒf dmeee e
d—ƒf d9ee	dB e
d˜ƒf deee dB e
d™ƒf doeee	ef dB e
dšƒf d'eeege	f e
d(ƒf d+ee7ge7f f0d¥d¦„ZFedƒdddddd]ddddddd^d^d^deeƒdddeeƒd„œd6ee	e
d…ƒf daeee
d†ƒf dbeedB e
d‡ƒf deee	eB  dB e
dˆƒf d
eeej dB e
d‰ƒf dcee	dB e
dŠƒf ddee	dB e
d‹ƒf deee	e
dŒƒf deeee	B ee	ef f dB e
d�ƒf d#eedB e
dŽƒf dfee	dB e
d�ƒf dgee9dB e
d�ƒf dhee9dB e
d‘ƒf dieee
d’ƒf djeee
d“ƒf dkeee
d”ƒf dleee
d•ƒf d%eee
d–ƒf dmeee e
d—ƒf d9ee	dB e
d˜ƒf deee dB e
d™ƒf doeee	ef dB e
dšƒf d'eeege	f e
d(ƒf d+ee7ge7f f0d§d¨„ZGedƒdddddd]ddddddd^d^d^deeƒdddeeƒd„œd6ee	e
d…ƒf daeee
d†ƒf dbeedB e
d‡ƒf deee	eB  dB e
dˆƒf d
eeej dB e
d‰ƒf dcee	dB e
dŠƒf ddee	dB e
d‹ƒf deee	e
dŒƒf deeee	B ee	ef f dB e
d�ƒf d#eedB e
dŽƒf dfee	dB e
d�ƒf dgee9dB e
d�ƒf dhee9dB e
d‘ƒf dieee
d’ƒf djeee
d“ƒf dkeee
d”ƒf dleee
d•ƒf d%eee
d–ƒf dmeee e
d—ƒf d9ee	dB e
d˜ƒf deee dB e
d™ƒf doeee	ef dB e
dšƒf d'eeege	f e
d(ƒf d+ee7ge7f f0d©dª„ZHd·d«d¬„ZId·d­d®„ZJd¯e	d°eg ef d+dfd±d²„ZKed³ƒd¯ee	e
d´ƒf d+ee7ge7f fdµd¶„ƒZL‡  ZMS )ºr¦   a£  
    `APIRouter` class, used to group *path operations*, for example to structure
    an app in multiple files. It would then be included in the `FastAPI` app, or
    in another `APIRouter` (ultimately included in the app).

    Read more about it in the
    [FastAPI docs for Bigger Applications - Multiple Files](https://fastapi.tiangolo.com/tutorial/bigger-applications/).

    ## Example

    ```python
    from fastapi import APIRouter, FastAPI

    app = FastAPI()
    router = APIRouter()


    @router.get("/users/", tags=["users"])
    async def read_users():
        return [{"username": "Rick"}, {"username": "Morty"}]


    app.include_router(router)
    ```
    rö   NT)rã  r¹  rr  rê  rº  r¶  r'  Úredirect_slashesrŽ  rï   Úroute_classÚ
on_startupÚon_shutdownÚlifespanr_   rµ  r¸  rñ   rã  z'An optional path prefix for the router.r¹  a‚  
                A list of tags to be applied to all the *path operations* in this
                router.

                It will be added to the generated OpenAPI (e.g. visible at `/docs`).

                Read more about it in the
                [FastAPI docs for Path Operation Configuration](https://fastapi.tiangolo.com/tutorial/path-operation-configuration/).
                rr  a‘  
                A list of dependencies (using `Depends()`) to be applied to all the
                *path operations* in this router.

                Read more about it in the
                [FastAPI docs for Bigger Applications - Multiple Files](https://fastapi.tiangolo.com/tutorial/bigger-applications/#include-an-apirouter-with-a-custom-prefix-tags-responses-and-dependencies).
                rê  a
  
                The default response class to be used.

                Read more in the
                [FastAPI docs for Custom Response - HTML, Stream, File, others](https://fastapi.tiangolo.com/advanced/custom-response/#default-response-class).
                rº  a*  
                Additional responses to be shown in OpenAPI.

                It will be added to the generated OpenAPI (e.g. visible at `/docs`).

                Read more about it in the
                [FastAPI docs for Additional Responses in OpenAPI](https://fastapi.tiangolo.com/advanced/additional-responses/).

                And in the
                [FastAPI docs for Bigger Applications](https://fastapi.tiangolo.com/tutorial/bigger-applications/#include-an-apirouter-with-a-custom-prefix-tags-responses-and-dependencies).
                r¶  ao  
                OpenAPI callbacks that should apply to all *path operations* in this
                router.

                It will be added to the generated OpenAPI (e.g. visible at `/docs`).

                Read more about it in the
                [FastAPI docs for OpenAPI Callbacks](https://fastapi.tiangolo.com/advanced/openapi-callbacks/).
                r'  a  
                **Note**: you probably shouldn't use this parameter, it is inherited
                from Starlette and supported for compatibility.

                ---

                A list of routes to serve incoming HTTP and WebSocket requests.
                a5  
                You normally wouldn't use this parameter with FastAPI, it is inherited
                from Starlette and supported for compatibility.

                In FastAPI, you normally would use the *path operation methods*,
                like `router.get()`, `router.post()`, etc.
                r²  z�
                Whether to detect and redirect slashes in URLs when the client doesn't
                use the same format.
                rŽ  z€
                Default function handler for this router. Used to handle
                404 Not Found errors.
                rï   zÐ
                Only used internally by FastAPI to handle dependency overrides.

                You shouldn't need to use it. It normally points to the `FastAPI` app
                object.
                r³  a4  
                Custom route (*path operation*) class to be used by this router.

                Read more about it in the
                [FastAPI docs for Custom Request and APIRoute class](https://fastapi.tiangolo.com/how-to/custom-request-and-route/#custom-apiroute-class-in-a-router).
                r´  zý
                A list of startup event handler functions.

                You should instead use the `lifespan` handlers.

                Read more in the [FastAPI docs for `lifespan`](https://fastapi.tiangolo.com/advanced/events/).
                rµ  a  
                A list of shutdown event handler functions.

                You should instead use the `lifespan` handlers.

                Read more in the
                [FastAPI docs for `lifespan`](https://fastapi.tiangolo.com/advanced/events/).
                r¶  a'  
                A `Lifespan` context manager handler. This replaces `startup` and
                `shutdown` functions with a single context manager.

                Read more in the
                [FastAPI docs for `lifespan`](https://fastapi.tiangolo.com/advanced/events/).
                r_   aa  
                Mark all *path operations* in this router as deprecated.

                It will be added to the generated OpenAPI (e.g. visible at `/docs`).

                Read more about it in the
                [FastAPI docs for Path Operation Configuration](https://fastapi.tiangolo.com/tutorial/path-operation-configuration/).
                rµ  a³  
                To include (or not) all the *path operations* in this router in the
                generated OpenAPI.

                This affects the generated OpenAPI (e.g. visible at `/docs`).

                Read more about it in the
                [FastAPI docs for Query Parameters and String Validations](https://fastapi.tiangolo.com/tutorial/query-params-str-validations/#exclude-parameters-from-openapi).
                r¸  aÜ  
                Customize the function used to generate unique IDs for the *path
                operations* shown in the generated OpenAPI.

                This is particularly useful when automatically generating clients or
                SDKs for your API.

                Read more about it in the
                [FastAPI docs about how to Generate Clients](https://fastapi.tiangolo.com/advanced/generate-clients/#custom-generate-unique-id-function).
                rñ   aÃ  
                Enable strict checking for request Content-Type headers.

                When `True` (the default), requests with a body that do not include
                a `Content-Type` header will **not** be parsed as JSON.

                This prevents potential cross-site request forgery (CSRF) attacks
                that exploit the browser's ability to send requests without a
                Content-Type header, bypassing CORS preflight checks. In particular
                applicable for apps that need to be run locally (in localhost).

                When `False`, requests without a `Content-Type` header will have
                their body parsed as JSON, which maintains compatibility with
                certain clients that don't send `Content-Type` headers.

                Read more about it in the
                [FastAPI docs for Strict Content-Type](https://fastapi.tiangolo.com/advanced/strict-content-type/).
                ra   c                   s  |d u r	t | ƒ}nt |¡rt|ƒ}nt |¡rt|ƒ}n|}|| _tƒ j|||	|d� |r@| 	d¡s7J dƒ‚| 
d¡r@J dƒ‚|d u rFg nt|ƒ| _|d u rQg nt|ƒ| _|| _|p\g | _t|pbg ƒ| _|| _|| _|pni | _|psg | _|
| _|| _|| _|| _|| _d| _g | _d | _d S )N)r'  r²  rŽ  r¶  r÷   ú!A path prefix must start with '/'úFA path prefix must not end with '/', as the routes will start with '/'r   )r¤   r·   Úisasyncgenfunctionr   Úisgeneratorfunctionr›   r“   r~  r€   rF  rL  ru  r´  rµ  rã  r¹  rr  r_   rµ  rº  r¶  rï   r³  rê  r¸  rñ   Ú_routes_versionr.  Ú_frontend_routes)r   rã  r¹  rr  rê  rº  r¶  r'  r²  rŽ  rï   r³  r´  rµ  r¶  r_   rµ  r¸  rñ   r“   rƒ  rm   rn   r€   ê  sN    p




üÿÿÿ



zAPIRouter.__init__c                 C   s   |  j d7  _ d S )Nr³   )r»  rƒ   rm   rm   rn   Ú_mark_routes_changed

  r¤  zAPIRouter._mark_routes_changedÚseenc                 C   s^   |d u rt ƒ }t| ƒ}||v r| jS | |¡ | j}| jD ]}t|tƒr,||j |¡7 }q|S r}   )	r¿  r¶   r»  Úaddr'  r  r  r  r&  )r   r¾  Ú	router_idÚversionr}  rm   rm   rn   r&  
  s   


€zAPIRouter._get_routes_versionr¥   c                 C   sl   |d u rt ƒ }t| ƒ}||v rdS | |¡ | jD ]}t|tƒs!q|j|u r) dS |j ||¡r3 dS qdS )NFT)r¿  r¶   r¿  r'  r  r  r  Ú_contains_router)r   r¥   r¾  rÀ  r}  rm   rm   rn   rÂ  
  s   



ÿzAPIRouter._contains_routerrù   rs  r»  rq  c                    s"   t ƒ j|||||d� |  ¡  d S ©N)r»  rq  rµ  )r~  Ú	add_router½  )r   rù   rs  r»  rq  rµ  rƒ  rm   rn   rÄ  ,
  s   ûzAPIRouter.add_routec                    s   t ƒ j|||d� |  ¡  d S ©Nr1  )r~  Úadd_websocket_router½  )r   rù   rs  rq  rƒ  rm   rn   rÆ  =
  s   zAPIRouter.add_websocket_routerR  )ra  rQ  z`
                The URL path prefix where the frontend build should be served.
                rP  z\
                The directory containing the static frontend build output.
                ra  rb  zX
                The fallback file behavior for missing frontend paths.
                rQ  a`  
                Check that the frontend directory exists when the app is created. When
                set to `"auto"`, skip the check with a warning when `FASTAPI_ENV` is
                `"development"`, and check it otherwise. The `fastapi dev` command
                sets `FASTAPI_ENV` to `"development"` if it is not already set.
                c                C   sf   t ||d�}t|ƒ}| jdu rt| j| jd�| _| j | j¡ | jjt	| j
|ƒ|||d� |  ¡  dS )uh  
        Serve a static frontend build as low-priority routes.

        Use this for frontend tools that build static files into a directory,
        such as `dist`. **FastAPI** path operations are checked first, and
        the frontend files are checked only if no normal route matched.

        A typical project could look like this:

        ```text
        .
        â”œâ”€â”€ pyproject.toml
        â”œâ”€â”€ app
        â”‚   â”œâ”€â”€ __init__.py
        â”‚   â””â”€â”€ main.py
        â””â”€â”€ dist
            â”œâ”€â”€ index.html
            â””â”€â”€ assets
                â””â”€â”€ app.js
        ```

        Then in `app/main.py`:

        ```python
        from fastapi import APIRouter, FastAPI

        app = FastAPI()
        router = APIRouter()
        router.frontend("/", directory="dist")
        app.include_router(router)
        ```
        r^  Nr¨  r   )r_  rH  r¼  r   rr  rï   r.  r(  r©  rI  rã  r½  )r   rù   rP  ra  rQ  Únormalized_pathrm   rm   rn   ÚfrontendF
  s"   Gÿ
þ
üzAPIRouter.frontendrb   rc   rd   c                 Ã   s4  �|d dv s	J ‚d|vr| |d< |d dkr#|   |||¡I d H  d S d }| jD ]-}| |¡\}}|tjkrH| |¡ | |||¡I d H   d S |tjkrU|d u rU||f}q(|d uro|\}}| |¡ | |||¡I d H  d S t|ƒ}|d dkrÅ| j	rÅ|dkrÅt
|ƒ}	| d¡r“|	d  d¡|	d< n|	d d |	d< | jD ]&}| |	¡\}}
|tjkrÄt|	d�}tt|ƒd	�}||||ƒI d H   d S qž|  |¡\}}}}|tjk�r|d u�rt||ƒ |d u�r|t|ƒt< |j}t|tƒ�r||d
< | |||¡I d H  d S | |||¡I d H  d S |  |||¡I d H  d S )NrŽ   )r  rl  r¶  r¥   r¶  r  r÷   rù   r¢  r~  r}  )r¶  r'  r  rQ   r  rœ  rà  r  rB   r²  rP  rL  rA  r€  rF   rM   r¢   Ú_match_low_priorityrŸ  rš  r¡  rÚ  r  rØ  rŽ  )r   rb   rc   rd   rs   r}  r�  r‚  r	  Úredirect_scoper{  Úredirect_urlrj   Úlow_priority_matchÚlow_priority_scopeÚlow_priority_routeÚlow_priority_contextrÚ  rm   rm   rn   ro   Ÿ
  sn   €


€




üû


ÿzAPIRouter.appc                 Ã   sN   �t |ƒ}t|tƒr|j| u r| |||¡I d H  d S |  |||¡I d H  d S r}   )r¦  r  r  r  r=  ro   )r   rb   rc   rd   rŒ  rm   rm   rn   rà  ß
  s   €ÿ
zAPIRouter.handlec                 C   s@   t |ƒ}t|tƒr|j| u r| |¡\}}}}||fS tji fS r}   )r¦  r  r  r  r;  rQ   r€  )r   rb   rŒ  r�  r‚  r{  rm   rm   rn   r  é
  s   ÿ

zAPIRouter.matchesc                 c   s6   � | j E d H  | jD ]}t|tƒr| ¡ E d H  q
d S r}   )r.  r'  r  r  r/  r÷  rm   rm   rn   Ú_iter_low_priority_routesó
  s   €

€þz#APIRouter._iter_low_priority_routesc                 C   s\  d }d }|   ¡ D ]~}t|tƒrN|}|j}t|tƒrAt|ƒ}| tt¡}||t< z| 	|¡\}	}
W t
|t|ƒ nt
|t|ƒ w |}n| 	|¡\}	}
|jpL|}nd }| 	|¡\}	}
|}|	tjkrp|d u sj|  |
|d ¡ro|
||f}q|	tjkr†|d u s�|  |
|d ¡r†|
||f}q|d ur—|\}
}}tj|
||fS |d ur§|\}
}}tj|
||fS tji d d fS r-  )rÐ  r  rú  rÚ  rØ  rš  r@  r¡  r¬  r  r®  rû  rQ   r  Ú _frontend_match_is_more_specificr  r€  )r   rb   r®  rs   r9  r-  rÚ  r™  r:  r�  r‚  r}  rm   rm   rn   rÉ  û
  s`   

ÿýý
ÿ
€
ÿ
€

zAPIRouter._match_low_priorityr‚  Úprevious_child_scopec                 C   s,   t |ƒ}t |ƒ}|d u s|d u rdS ||kS ©NF)rª  )r   r‚  rÒ  r©  Úprevious_specificityrm   rm   rn   rÑ  -  s
   z*APIRouter._frontend_match_is_more_specificc                    s"   dt dt f‡ ‡‡‡‡fdd„}|S )Nr`   ra   c                    s   ˆj ˆ| ˆˆˆ d� | S rÃ  )rÄ  rw   ©rµ  r»  rq  rù   r   rm   rn   Ú	decorator=  s   ûz"APIRouter.route.<locals>.decorator©r:   )r   rù   r»  rq  rµ  rÖ  rm   rÕ  rn   r}  6  s   
zAPIRouter.routerÀ  F)r±  rß   r¹  rr  r²  r½  r³  rº  r_   r»  r´  ré   rê   rë   rì   rí   rî   rµ  rç   rq  Úroute_class_overrider¶  r·  r¸  rñ   .r±  rß   r²  r½  r³  r´  ré   rê   rë   rì   rí   rî   rç   rØ  r·  c          $      C   s®  |p| j }|
pi }
i | j¥|
¥}t|| jƒ}| j ¡ }|r"| |¡ | j ¡ } |r.|  |¡ | j ¡ }!|r:|! |¡ t|| j	ƒ}"|| j
| fi d|“d|“d|“d|“d| “d|“d|“d|	“d	|“d
|pg| j“d|“d|“d|“d|“d|“d|“d|“d|“d|o®| j“d|“d|“d| j“d|!“d|“d|"“dt|| jƒ“Ž}#| j |#¡ |  ¡  d S “d|“d|“d| j“d|!“d|“d|"“dt|| jƒ“Ž}#| j |#¡ |  ¡  d S )Nrs  r±  rß   r¹  rr  r²  r½  r³  rº  r_   r»  r´  ré   rê   rë   rì   rí   rî   rµ  rç   rq  rï   r¶  r·  r¸  rñ   )r³  rº  r>   rê  r¹  r4  rU  rr  r¶  r¸  rã  r_   rµ  rï   rñ   r'  r(  r½  )$r   rù   rs  r±  rß   r¹  rr  r²  r½  r³  rº  r_   r»  r´  ré   rê   rë   rì   rí   rî   rµ  rç   rq  rØ  r¶  r·  r¸  rñ   r³  Úcombined_responsesÚcurrent_response_classÚcurrent_tagsÚcurrent_dependenciesÚcurrent_callbacksrÐ  r}  rm   rm   rn   Úadd_api_routeI  sÄ   
 ÿ





ÿÿþýüûúùø	÷
ö€õôóòñðïîí
ìëêéèçæÿåôìëêéèçæÿåzAPIRouter.add_api_route)r±  rß   r¹  rr  r²  r½  r³  rº  r_   r»  r´  ré   rê   rë   rì   rí   rî   rµ  rç   rq  r¶  r·  r¸  c                   sJ   dt dt f‡ ‡‡‡‡‡‡‡‡‡	‡
‡‡‡‡‡‡‡‡‡‡‡‡‡‡fdd„}|S )Nr`   ra   c                    sž   ˆj ˆ
| fi dˆ“dˆ“dˆ“dˆ“dˆ“dˆ“dˆ“dˆ“d	ˆ“d
ˆ“dˆ	“dˆ“dˆ“dˆ“dˆ“dˆ“dˆ“dˆ“dˆ“dˆ“dˆ “dˆ“dˆ“Ž | S )Nr±  rß   r¹  rr  r²  r½  r³  rº  r_   r»  r´  ré   rê   rë   rì   rí   rî   rµ  rç   rq  r¶  r·  r¸  )rÞ  rw   ©r¶  rr  r_   r½  r¸  rµ  r»  rq  r·  r´  rù   rç   r³  r±  rë   rê   rí   rî   rì   ré   rº  r   rß   r²  r¹  rm   rn   rÖ  »  sf   þýüûúùø	÷
öõôóòñðïîíìëêéèçz&APIRouter.api_route.<locals>.decoratorr×  )r   rù   r±  rß   r¹  rr  r²  r½  r³  rº  r_   r»  r´  ré   rê   rë   rì   rí   rî   rµ  rç   rq  r¶  r·  r¸  rÖ  rm   rß  rn   Ú	api_route�  s   FzAPIRouter.api_route)rr  c                C   sJ   | j  ¡ }|r| |¡ t| j| |||| jd�}| j |¡ |  ¡  d S )Nr0  )	rr  r4  rU  rp  rã  rï   r'  r(  r½  )r   rù   rs  rq  rr  rÜ  r}  rm   rm   rn   Úadd_api_websocket_routeÛ  s   

ûz!APIRouter.add_api_websocket_routez1
                WebSocket path.
                zQ
                A name for the WebSocket. Only used internally.
                a  
                A list of dependencies (using `Depends()`) to be used for this
                WebSocket.

                Read more about it in the
                [FastAPI docs for WebSockets](https://fastapi.tiangolo.com/advanced/websockets/).
                c                   s    dt dt f‡ ‡‡‡fdd„}|S )a¡  
        Decorate a WebSocket function.

        Read more about it in the
        [FastAPI docs for WebSockets](https://fastapi.tiangolo.com/advanced/websockets/).

        **Example**

        ## Example

        ```python
        from fastapi import APIRouter, FastAPI, WebSocket

        app = FastAPI()
        router = APIRouter()

        @router.websocket("/ws")
        async def websocket_endpoint(websocket: WebSocket):
            await websocket.accept()
            while True:
                data = await websocket.receive_text()
                await websocket.send_text(f"Message text was: {data}")

        app.include_router(router)
        ```
        r`   ra   c                    s   ˆj ˆ| ˆˆ d� | S )N)rq  rr  )rá  rw   ©rr  rq  rù   r   rm   rn   rÖ  ,  s   ÿz&APIRouter.websocket.<locals>.decoratorr×  )r   rù   rq  rr  rÖ  rm   râ  rn   rl  ñ  s   ;zAPIRouter.websocketc                    s   dt dt f‡ ‡‡fdd„}|S )Nr`   ra   c                    s   ˆj ˆ| ˆ d� | S rÅ  )rÆ  rw   ©rq  rù   r   rm   rn   rÖ  7  s   z,APIRouter.websocket_route.<locals>.decoratorr×  )r   rù   rq  rÖ  rm   rã  rn   Úwebsocket_route4  s   zAPIRouter.websocket_routerï  zThe `APIRouter` to include.zÛ
                Include (or not) all the *path operations* in this router in the
                generated OpenAPI schema.

                This affects the generated OpenAPI (e.g. visible at `/docs`).
                c       	         C   sR  | |usJ dƒ‚|  | ¡rJ dƒ‚|r&| d¡sJ dƒ‚| d¡r%J dƒ‚nCt|jƒD ]=\}}|du r@t|ddƒ}t|dd	ƒ}n|jdurTt|jddƒ}t|jdd	ƒ}n|j}|j}|durh|sht	d
|› d�ƒ‚q+t
j| |||||||||	|
d�}| j t||d�¡ |  ¡  |jD ]}|  d|¡ qŠ|jD ]}|  d|¡ q–t| j|jƒ| _dS )a|  
        Include another `APIRouter` in the same current `APIRouter`.

        Read more about it in the
        [FastAPI docs for Bigger Applications](https://fastapi.tiangolo.com/tutorial/bigger-applications/).

        ## Example

        ```python
        from fastapi import APIRouter, FastAPI

        app = FastAPI()
        internal_router = APIRouter()
        users_router = APIRouter()

        @users_router.get("/users/")
        def read_users():
            return [{"name": "Rick"}, {"name": "Morty"}]

        internal_router.include_router(users_router)
        app.include_router(internal_router)
        ```
        zcCannot include the same APIRouter instance into itself. Did you mean to include a different router?zsCannot include an APIRouter instance that already includes this router. Did you mean to include a different router?r÷   r·  r¸  Nrù   rq  Úunknownz6Prefix and path cannot be both empty (path operation: ú))rð  rŒ  rã  r¹  rr  rê  rº  r¶  r_   rµ  r¸  r%  ÚstartupÚshutdown)rÂ  rF  rL  rA  r'  rº   rû  rù   rq  r1   râ  ró  r(  r  r½  r´  Úadd_event_handlerrµ  r£   r“   )r   r¥   rã  r¹  rr  rê  rº  r¶  r_   rµ  r¸  r}  r-  rù   rq  rý  Úhandlerrm   rm   rn   Úinclude_router=  sf    
ÿÿÿ

ÿ€õ
ÿ


þzAPIRouter.include_router)r±  rß   r¹  rr  r²  r½  r³  rº  r_   r´  ré   rê   rë   rì   rí   rî   rµ  rç   rq  r¶  r·  r¸  z§
                The URL path to be used for this *path operation*.

                For example, in `http://example.com/items`, the path is `/items`.
                a’  
                The type to use for the response.

                It could be any valid Pydantic *field* type. So, it doesn't have to
                be a Pydantic model, it could be other things, like a `list`, `dict`,
                etc.

                It will be used for:

                * Documentation: the generated OpenAPI (and the UI at `/docs`) will
                    show it as the response (JSON Schema).
                * Serialization: you could return an arbitrary object and the
                    `response_model` would be used to serialize that object into the
                    corresponding JSON.
                * Filtering: the JSON sent to the client will only contain the data
                    (fields) defined in the `response_model`. If you returned an object
                    that contains an attribute `password` but the `response_model` does
                    not include that field, the JSON sent to the client would not have
                    that `password`.
                * Validation: whatever you return will be serialized with the
                    `response_model`, converting any data as necessary to generate the
                    corresponding JSON. But if the data in the object returned is not
                    valid, that would mean a violation of the contract with the client,
                    so it's an error from the API developer. So, FastAPI will raise an
                    error and return a 500 error code (Internal Server Error).

                Read more about it in the
                [FastAPI docs for Response Model](https://fastapi.tiangolo.com/tutorial/response-model/).
                aM  
                The default status code to be used for the response.

                You could override the status code by returning a response directly.

                Read more about it in the
                [FastAPI docs for Response Status Code](https://fastapi.tiangolo.com/tutorial/response-status-code/).
                ac  
                A list of tags to be applied to the *path operation*.

                It will be added to the generated OpenAPI (e.g. visible at `/docs`).

                Read more about it in the
                [FastAPI docs for Path Operation Configuration](https://fastapi.tiangolo.com/tutorial/path-operation-configuration/#tags).
                a[  
                A list of dependencies (using `Depends()`) to be applied to the
                *path operation*.

                Read more about it in the
                [FastAPI docs for Dependencies in path operation decorators](https://fastapi.tiangolo.com/tutorial/dependencies/dependencies-in-path-operation-decorators/).
                aL  
                A summary for the *path operation*.

                It will be added to the generated OpenAPI (e.g. visible at `/docs`).

                Read more about it in the
                [FastAPI docs for Path Operation Configuration](https://fastapi.tiangolo.com/tutorial/path-operation-configuration/).
                a  
                A description for the *path operation*.

                If not provided, it will be extracted automatically from the docstring
                of the *path operation function*.

                It can contain Markdown.

                It will be added to the generated OpenAPI (e.g. visible at `/docs`).

                Read more about it in the
                [FastAPI docs for Path Operation Configuration](https://fastapi.tiangolo.com/tutorial/path-operation-configuration/).
                z¡
                The description for the default response.

                It will be added to the generated OpenAPI (e.g. visible at `/docs`).
                z½
                Additional responses that could be returned by this *path operation*.

                It will be added to the generated OpenAPI (e.g. visible at `/docs`).
                z¡
                Mark this *path operation* as deprecated.

                It will be added to the generated OpenAPI (e.g. visible at `/docs`).
                a€  
                Custom operation ID to be used by this *path operation*.

                By default, it is generated automatically.

                If you provide a custom operation ID, you need to make sure it is
                unique for the whole API.

                You can customize the
                operation ID generation with the parameter
                `generate_unique_id_function` in the `FastAPI` class.

                Read more about it in the
                [FastAPI docs about how to Generate Clients](https://fastapi.tiangolo.com/advanced/generate-clients/#custom-generate-unique-id-function).
                a\  
                Configuration passed to Pydantic to include only certain fields in the
                response data.

                Read more about it in the
                [FastAPI docs for Response Model - Return Type](https://fastapi.tiangolo.com/tutorial/response-model/#response_model_include-and-response_model_exclude).
                aW  
                Configuration passed to Pydantic to exclude certain fields in the
                response data.

                Read more about it in the
                [FastAPI docs for Response Model - Return Type](https://fastapi.tiangolo.com/tutorial/response-model/#response_model_include-and-response_model_exclude).
                a|  
                Configuration passed to Pydantic to define if the response model
                should be serialized by alias when an alias is used.

                Read more about it in the
                [FastAPI docs for Response Model - Return Type](https://fastapi.tiangolo.com/tutorial/response-model/#response_model_include-and-response_model_exclude).
                aÜ  
                Configuration passed to Pydantic to define if the response data
                should have all the fields, including the ones that were not set and
                have their default values. This is different from
                `response_model_exclude_defaults` in that if the fields are set,
                they will be included in the response, even if the value is the same
                as the default.

                When `True`, default values are omitted from the response.

                Read more about it in the
                [FastAPI docs for Response Model - Return Type](https://fastapi.tiangolo.com/tutorial/response-model/#use-the-response_model_exclude_unset-parameter).
                a¹  
                Configuration passed to Pydantic to define if the response data
                should have all the fields, including the ones that have the same value
                as the default. This is different from `response_model_exclude_unset`
                in that if the fields are set but contain the same default values,
                they will be excluded from the response.

                When `True`, default values are omitted from the response.

                Read more about it in the
                [FastAPI docs for Response Model - Return Type](https://fastapi.tiangolo.com/tutorial/response-model/#use-the-response_model_exclude_unset-parameter).
                a~  
                Configuration passed to Pydantic to define if the response data should
                exclude fields set to `None`.

                This is much simpler (less smart) than `response_model_exclude_unset`
                and `response_model_exclude_defaults`. You probably want to use one of
                those two instead of this one, as those allow returning `None` values
                when it makes sense.

                Read more about it in the
                [FastAPI docs for Response Model - Return Type](https://fastapi.tiangolo.com/tutorial/response-model/#response_model_exclude_none).
                a‹  
                Include this *path operation* in the generated OpenAPI schema.

                This affects the generated OpenAPI (e.g. visible at `/docs`).

                Read more about it in the
                [FastAPI docs for Query Parameters and String Validations](https://fastapi.tiangolo.com/tutorial/query-params-str-validations/#exclude-parameters-from-openapi).
                ae  
                Response class to be used for this *path operation*.

                This will not be used if you return a response directly.

                Read more about it in the
                [FastAPI docs for Custom Response - HTML, Stream, File, others](https://fastapi.tiangolo.com/advanced/custom-response/#redirectresponse).
                zW
                Name for this *path operation*. Only used internally.
                aÃ  
                List of *path operations* that will be used as OpenAPI callbacks.

                This is only for OpenAPI documentation, the callbacks won't be used
                directly.

                It will be added to the generated OpenAPI (e.g. visible at `/docs`).

                Read more about it in the
                [FastAPI docs for OpenAPI Callbacks](https://fastapi.tiangolo.com/advanced/openapi-callbacks/).
                ah  
                Extra metadata to be included in the OpenAPI schema for this *path
                operation*.

                Read more about it in the
                [FastAPI docs for Path Operation Advanced Configuration](https://fastapi.tiangolo.com/advanced/path-operation-advanced-configuration/#custom-openapi-path-operation-schema).
                c                C   óž   | j di d|“d|“d|“d|“d|“d|“d|“d|“d	|	“d
|
“ddg“d|“d|“d|“d|“d|“d|“d|“d|“d|“d|“d|“d|“d|“ŽS )ax  
        Add a *path operation* using an HTTP GET operation.

        ## Example

        ```python
        from fastapi import APIRouter, FastAPI

        app = FastAPI()
        router = APIRouter()

        @router.get("/items/")
        def read_items():
            return [{"name": "Empanada"}, {"name": "Arepa"}]

        app.include_router(router)
        ```
        rù   r±  rß   r¹  rr  r²  r½  r³  rº  r_   r»  rÁ  r´  ré   rê   rë   rì   rí   rî   rµ  rç   rq  r¶  r·  r¸  Nrm   ©rà  ©r   rù   r±  rß   r¹  rr  r²  r½  r³  rº  r_   r´  ré   rê   rë   rì   rí   rî   rµ  rç   rq  r¶  r·  r¸  rm   rm   rn   r@  ú  óf     
`ÿþýüûúùø	÷
öõôóòñðïîíìëêéèzAPIRouter.getc                C   rì  )a%  
        Add a *path operation* using an HTTP PUT operation.

        ## Example

        ```python
        from fastapi import APIRouter, FastAPI
        from pydantic import BaseModel

        class Item(BaseModel):
            name: str
            description: str | None = None

        app = FastAPI()
        router = APIRouter()

        @router.put("/items/{item_id}")
        def replace_item(item_id: str, item: Item):
            return {"message": "Item replaced", "id": item_id}

        app.include_router(router)
        ```
        rù   r±  rß   r¹  rr  r²  r½  r³  rº  r_   r»  ÚPUTr´  ré   rê   rë   rì   rí   rî   rµ  rç   rq  r¶  r·  r¸  Nrm   rí  rî  rm   rm   rn   Úputs  óf     
eÿþýüûúùø	÷
öõôóòñðïîíìëêéèzAPIRouter.putc                C   rì  )aÿ  
        Add a *path operation* using an HTTP POST operation.

        ## Example

        ```python
        from fastapi import APIRouter, FastAPI
        from pydantic import BaseModel

        class Item(BaseModel):
            name: str
            description: str | None = None

        app = FastAPI()
        router = APIRouter()

        @router.post("/items/")
        def create_item(item: Item):
            return {"message": "Item created"}

        app.include_router(router)
        ```
        rù   r±  rß   r¹  rr  r²  r½  r³  rº  r_   r»  ÚPOSTr´  ré   rê   rë   rì   rí   rî   rµ  rç   rq  r¶  r·  r¸  Nrm   rí  rî  rm   rm   rn   Úpostñ  rò  zAPIRouter.postc                C   rì  )a†  
        Add a *path operation* using an HTTP DELETE operation.

        ## Example

        ```python
        from fastapi import APIRouter, FastAPI

        app = FastAPI()
        router = APIRouter()

        @router.delete("/items/{item_id}")
        def delete_item(item_id: str):
            return {"message": "Item deleted"}

        app.include_router(router)
        ```
        rù   r±  rß   r¹  rr  r²  r½  r³  rº  r_   r»  ÚDELETEr´  ré   rê   rë   rì   rí   rî   rµ  rç   rq  r¶  r·  r¸  Nrm   rí  rî  rm   rm   rn   Údeleteo  rï  zAPIRouter.deletec                C   rì  )a€  
        Add a *path operation* using an HTTP OPTIONS operation.

        ## Example

        ```python
        from fastapi import APIRouter, FastAPI

        app = FastAPI()
        router = APIRouter()

        @router.options("/items/")
        def get_item_options():
            return {"additions": ["Aji", "Guacamole"]}

        app.include_router(router)
        ```
        rù   r±  rß   r¹  rr  r²  r½  r³  rº  r_   r»  ÚOPTIONSr´  ré   rê   rë   rì   rí   rî   rµ  rç   rq  r¶  r·  r¸  Nrm   rí  rî  rm   rm   rn   Úoptionsè  rï  zAPIRouter.optionsc                C   rì  )a0  
        Add a *path operation* using an HTTP HEAD operation.

        ## Example

        ```python
        from fastapi import APIRouter, FastAPI
        from pydantic import BaseModel

        class Item(BaseModel):
            name: str
            description: str | None = None

        app = FastAPI()
        router = APIRouter()

        @router.head("/items/", status_code=204)
        def get_items_headers(response: Response):
            response.headers["X-Cat-Dog"] = "Alone in the world"

        app.include_router(router)
        ```
        rù   r±  rß   r¹  rr  r²  r½  r³  rº  r_   r»  r{  r´  ré   rê   rë   rì   rí   rî   rµ  rç   rq  r¶  r·  r¸  Nrm   rí  rî  rm   rm   rn   Úheada  rò  zAPIRouter.headc                C   rì  )a
  
        Add a *path operation* using an HTTP PATCH operation.

        ## Example

        ```python
        from fastapi import APIRouter, FastAPI
        from pydantic import BaseModel

        class Item(BaseModel):
            name: str
            description: str | None = None

        app = FastAPI()
        router = APIRouter()

        @router.patch("/items/")
        def update_item(item: Item):
            return {"message": "Item updated in place"}

        app.include_router(router)
        ```
        rù   r±  rß   r¹  rr  r²  r½  r³  rº  r_   r»  ÚPATCHr´  ré   rê   rë   rì   rí   rî   rµ  rç   rq  r¶  r·  r¸  Nrm   rí  rî  rm   rm   rn   Úpatchß  rò  zAPIRouter.patchc                C   rì  )aô  
        Add a *path operation* using an HTTP TRACE operation.

        ## Example

        ```python
        from fastapi import APIRouter, FastAPI
        from pydantic import BaseModel

        class Item(BaseModel):
            name: str
            description: str | None = None

        app = FastAPI()
        router = APIRouter()

        @router.trace("/items/{item_id}")
        def trace_item(item_id: str):
            return None

        app.include_router(router)
        ```
        rù   r±  rß   r¹  rr  r²  r½  r³  rº  r_   r»  ÚTRACEr´  ré   rê   rë   rì   rí   rî   rµ  rç   rq  r¶  r·  r¸  Nrm   rí  rî  rm   rm   rn   Útrace]  rò  zAPIRouter.tracec                 Ã   ó.   �| j D ]}t|ƒr|ƒ I dH  q|ƒ  qdS )zø
        Run any `.on_startup` event handlers.

        This method is kept for backward compatibility after Starlette removed
        support for on_startup/on_shutdown handlers.

        Ref: https://github.com/Kludex/starlette/pull/3117
        N)r´  rC   ©r   rê  rm   rm   rn   r©   Ü  ó   €
	üzAPIRouter._startupc                 Ã   rþ  )zù
        Run any `.on_shutdown` event handlers.

        This method is kept for backward compatibility after Starlette removed
        support for on_startup/on_shutdown handlers.

        Ref: https://github.com/Kludex/starlette/pull/3117
        N)rµ  rC   rÿ  rm   rm   rn   r¬   ì  r   zAPIRouter._shutdownÚ
event_typer`   c                 C   s4   |dv sJ ‚|dkr| j  |¡ dS | j |¡ dS )a	  
        Add an event handler function for startup or shutdown.

        This method is kept for backward compatibility after Starlette removed
        support for on_startup/on_shutdown handlers.

        Ref: https://github.com/Kludex/starlette/pull/3117
        )rç  rè  rç  N)r´  r(  rµ  )r   r  r`   rm   rm   rn   ré  ü  s   zAPIRouter.add_event_handlerzÌ
        on_event is deprecated, use lifespan event handlers instead.

        Read more about it in the
        [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/).
        zM
                The type of event. `startup` or `shutdown`.
                c                    s   dt dt f‡ ‡fdd„}|S )a  
        Add an event handler for the router.

        `on_event` is deprecated, use `lifespan` event handlers instead.

        Read more about it in the
        [FastAPI docs for Lifespan Events](https://fastapi.tiangolo.com/advanced/events/#alternative-events-deprecated).
        r`   ra   c                    s   ˆ  ˆ | ¡ | S r}   )ré  rw   ©r  r   rm   rn   rÖ  +  s   z%APIRouter.on_event.<locals>.decoratorr×  )r   r  rÖ  rm   r  rn   Úon_event  s   zAPIRouter.on_eventr¯   r}   )NNT)NrŠ   r‹   rŒ   r�   r    rK   rØ  r=   r   r¢   r   ru  r   r
   r   r…  rŽ   rN   rP  r¨  r   rP   r_   r’   rX   r   rY   r€   r½  r¿  r&  rÂ  rJ   r   r   rÄ  r^   rÆ  rL  r“  r   rÈ  r[   rZ   r\   ro   rà  r†  rQ   r  r   rú  rÐ  rÉ  rÑ  r:   r}  r;   r!   rÞ  rà  rá  rl  rä  rë  r@  rñ  rô  rö  rø  rù  rû  rý  r©   r¬   ré  r  r‡  rm   rm   rƒ  rn   r¦   Ï  s¸   		 �“ýÿÿÿüÿÿÿîÿÿÿâ)ÿÿÿ×9
ÿÿÿÇG
ÿ
ÿõÿ¹]ÿÿÿ£fÿÿÿšoÿÿÿ‘zÿÿÿ† ÿÿÿ �ú ÿÿÿ �î !
ÿÿÿ �ß -ÿÿÿ �Ó :ÿÿÿ �Æ Hÿÿÿ �¸ Wÿÿÿ �© n �’  
"ÿÿ
ÿ
þúþý
üûúùüþýüû#Ûÿÿÿþÿÿÿõ
ÿÿÿí
ÿÿÿå&
ÚY@



þÿ
þ2ÿÿ
þûþ
ýüû
úâþ
ýûúùø	÷
öõôóòñðïîíìëê
éè
ç
æåÿäâ
áXÿæþüûúùø	÷
öõô
óòñðïîíìëêé
èçæ
ãBüúþ
ýüú
ù'ïâÿÿÿþ
ÿÿÿöÿÿÿí
áDÿÿÿ
þ’þüÿÿÿûÿÿÿíÿÿÿá*ÿÿÿÖ:
ÿÿÿÆHÿÿÿ¸Uÿÿÿ«`ÿÿÿ o
‘ l


 � �´ÿÿÿþÿÿÿó/ÿÿÿÑ<ÿÿÿÄIÿÿÿ·Uÿÿÿ«bÿÿÿžtÿÿÿŒ~ÿÿÿ‚ 	ÿÿÿ �÷ ÿÿÿ �í 'ÿÿÿ �Ù 3ÿÿÿ �Í ?ÿÿÿ �Á Kÿÿÿ �µ ]ÿÿÿ �£ nÿÿÿ �’ ÿÿÿ ��  ÿÿÿ � �ó  ÿÿÿ � �æ  "
ÿÿÿ � �Þ  2ÿÿÿ � �Î  >ÿÿÿ � �Â  M � �
³   *


 � �´ÿÿÿþÿÿÿó/ÿÿÿÑ<ÿÿÿÄIÿÿÿ·Uÿÿÿ«bÿÿÿžtÿÿÿŒ~ÿÿÿ‚ 	ÿÿÿ �÷ ÿÿÿ �í 'ÿÿÿ �Ù 3ÿÿÿ �Í ?ÿÿÿ �Á Kÿÿÿ �µ ]ÿÿÿ �£ nÿÿÿ �’ ÿÿÿ ��  ÿÿÿ � �ó  ÿÿÿ � �æ  "
ÿÿÿ � �Þ  2ÿÿÿ � �Î  >ÿÿÿ � �Â  M � �
³   /


 � �´ÿÿÿþÿÿÿó/ÿÿÿÑ<ÿÿÿÄIÿÿÿ·Uÿÿÿ«bÿÿÿžtÿÿÿŒ~ÿÿÿ‚ 	ÿÿÿ �÷ ÿÿÿ �í 'ÿÿÿ �Ù 3ÿÿÿ �Í ?ÿÿÿ �Á Kÿÿÿ �µ ]ÿÿÿ �£ nÿÿÿ �’ ÿÿÿ ��  ÿÿÿ � �ó  ÿÿÿ � �æ  "
ÿÿÿ � �Þ  2ÿÿÿ � �Î  >ÿÿÿ � �Â  M � �
³   /


 � �´ÿÿÿþÿÿÿó/ÿÿÿÑ<ÿÿÿÄIÿÿÿ·Uÿÿÿ«bÿÿÿžtÿÿÿŒ~ÿÿÿ‚ 	ÿÿÿ �÷ ÿÿÿ �í 'ÿÿÿ �Ù 3ÿÿÿ �Í ?ÿÿÿ �Á Kÿÿÿ �µ ]ÿÿÿ �£ nÿÿÿ �’ ÿÿÿ ��  ÿÿÿ � �ó  ÿÿÿ � �æ  "
ÿÿÿ � �Þ  2ÿÿÿ � �Î  >ÿÿÿ � �Â  M � �
³   *


 � �´ÿÿÿþÿÿÿó/ÿÿÿÑ<ÿÿÿÄIÿÿÿ·Uÿÿÿ«bÿÿÿžtÿÿÿŒ~ÿÿÿ‚ 	ÿÿÿ �÷ ÿÿÿ �í 'ÿÿÿ �Ù 3ÿÿÿ �Í ?ÿÿÿ �Á Kÿÿÿ �µ ]ÿÿÿ �£ nÿÿÿ �’ ÿÿÿ ��  ÿÿÿ � �ó  ÿÿÿ � �æ  "
ÿÿÿ � �Þ  2ÿÿÿ � �Î  >ÿÿÿ � �Â  M � �
³   *


 � �´ÿÿÿþÿÿÿó/ÿÿÿÑ<ÿÿÿÄIÿÿÿ·Uÿÿÿ«bÿÿÿžtÿÿÿŒ~ÿÿÿ‚ 	ÿÿÿ �÷ ÿÿÿ �í 'ÿÿÿ �Ù 3ÿÿÿ �Í ?ÿÿÿ �Á Kÿÿÿ �µ ]ÿÿÿ �£ nÿÿÿ �’ ÿÿÿ ��  ÿÿÿ � �ó  ÿÿÿ � �æ  "
ÿÿÿ � �Þ  2ÿÿÿ � �Î  >ÿÿÿ � �Â  M � �
³   /


 � �´ÿÿÿþÿÿÿó/ÿÿÿÑ<ÿÿÿÄIÿÿÿ·Uÿÿÿ«bÿÿÿžtÿÿÿŒ~ÿÿÿ‚ 	ÿÿÿ �÷ ÿÿÿ �í 'ÿÿÿ �Ù 3ÿÿÿ �Í ?ÿÿÿ �Á Kÿÿÿ �µ ]ÿÿÿ �£ nÿÿÿ �’ ÿÿÿ ��  ÿÿÿ � �ó  ÿÿÿ � �æ  "
ÿÿÿ � �Þ  2ÿÿÿ � �Î  >ÿÿÿ � �Â  M � �
³   /


 � �´ÿÿÿþÿÿÿó/ÿÿÿÑ<ÿÿÿÄIÿÿÿ·Uÿÿÿ«bÿÿÿžtÿÿÿŒ~ÿÿÿ‚ 	ÿÿÿ �÷ ÿÿÿ �í 'ÿÿÿ �Ù 3ÿÿÿ �Í ?ÿÿÿ �Á Kÿÿÿ �µ ]ÿÿÿ �£ nÿÿÿ �’ ÿÿÿ ��  ÿÿÿ � �ó  ÿÿÿ � �æ  "
ÿÿÿ � �Þ  2ÿÿÿ � �Î  >ÿÿÿ � �Â  M � �
³   

þ
ý
üÿÿÿÿþ
ör¦   rÓ  r¯   )Ír˜   r4  Úemail.messagerG  rŒ  rr   r·   rü   rL  rm  r?  r�   r\  Úcollections.abcr   r   r   r   r   r   r   r	   r
   r   r   r   r   Úcontextvarsr   Údataclassesr   r   Úenumr   r   Útypingr   r   r   r   r   r   r  Úannotated_docr   Ú	anyio.abcr   rˆ  r   Úfastapi._compatr   r   r   Úfastapi.datastructuresr    r!   Úfastapi.dependencies.modelsr"   r#   r$   r%   Úfastapi.dependencies.utilsr&   r'   r(   r)   r*   r+   r,   r-   r.   Úfastapi.encodersr/   Úfastapi.exceptionsr0   r1   r2   r3   r4   Úfastapi.sser5   r6   r7   r8   r9   Úfastapi.typesr:   r;   Úfastapi.utilsr<   r=   r>   r?   Ú	starletter@   Ústarlette._exception_handlerrA   Ústarlette._utilsrB   rC   Ústarlette.concurrencyrD   rE   Ústarlette.datastructuresrF   rG   rH   Ústarlette.exceptionsrI   Ústarlette.requestsrJ   Ústarlette.responsesrK   rL   rM   rN   rO   Ústarlette.routingrP   rQ   rR   rS   rT   rU   Ústarlette.staticfilesrV   Ústarlette.typesrW   rX   rY   rZ   r[   r\   Ústarlette.websocketsr^   Útyping_extensionsr_   ru   rx   ry   rz   r›   r£   r¤   r±   rP  r¨  r–  rÁ   r’   rØ   r¢   rÞ   rå   rŽ   rk  ro  r3  rp  r˜  r¡  rs  r§  r¥  r�  r°   r¬  r�  r…  r†  ru  ry  r•  rš  rŸ  r£  r¦  rª  r®  r¯  r¿  r×  r2  rØ  râ  rú  r  r  rC  rD  rA  rH  rI  rK  r“  rO  r_  r`  r˜  r›  r†  rž  r   r6  r¦   rm   rm   rm   rn   Ú<module>   s´  
 , 	, ÿ
þ,ÿ
þÿ
þÿÿ
þôþýüûúùø	÷
öõô
ó+ÿ
ÿÿ
þÿÿ

þðÿþý
üûúùø	÷
öõôóòñð
ï   
ýÿþý
ü%'ÿ
þ
ýü
û		
0ÿàÿþ
ýûúùø	÷
öõôóòñðïîíìëêé
èç
æåäá à!
ß & X +( k
ÿ
þÿ
þ
þ
ý
üy
8 