+
    @i                        ^ RI Ht ^ RIHtHtHtHt ^ RIHtH	t	H
t
 ^ RIHtHt ^ RIHtHt ^ RIHt ^ RIHt ^ RIHt ^ R	IHt ^ R
IHtHt ^ RIHtHtHtH t H!t!H"t" ]
! RRR7      t#]	! R4      t$ ! R R4      t%R# )    )annotations)	AwaitableCallableMappingSequence)Any	ParamSpecTypeVar)StateURLPath)
Middleware_MiddlewareFactory)ServerErrorMiddleware)ExceptionMiddleware)Request)Response)	BaseRouteRouter)ASGIAppExceptionHandlerLifespanReceiveScopeSendAppType	Starlette)boundPc                      ] tR t^tRtRR R lltR R lt]R R l4       tR	 R
 lt	R R lt
RR R lltRR R lltR R ltR R ltRR R lltRtR# )r   z!Creates an Starlette application.Nc               4    V ^8  d   QhRRRRRRRRR	R
RRRR/# )   selfr   debugboolrouteszSequence[BaseRoute] | None
middlewarezSequence[Middleware] | Noneexception_handlersz%Mapping[Any, ExceptionHandler] | NonelifespanzLifespan[AppType] | NonereturnNone )formats   "T/var/www/html/photoedit/myenv/lib/python3.14/site-packages/starlette/applications.py__annotate__Starlette.__annotate__   sO     !5 !5!5!5 +!5 0	!5
 B!5 +!5 
!5    c                    Wn         \        4       V n        \        W%R7      V n        Vf   / M
\        V4      V n        Vf   . M
\        V4      V n        RV n	        R# )a  Initializes the application.

Parameters:
    debug: Boolean indicating if debug tracebacks should be returned on errors.
    routes: A list of routes to serve incoming HTTP and WebSocket requests.
    middleware: A list of middleware to run for every request. A starlette
        application will always automatically include two middleware classes.
        `ServerErrorMiddleware` is added as the very outermost middleware, to handle
        any uncaught errors occurring anywhere in the entire stack.
        `ExceptionMiddleware` is added as the very innermost middleware, to deal
        with handled exception cases occurring in the routing or endpoints.
    exception_handlers: A mapping of either integer status codes,
        or exception class types onto callables which handle the exceptions.
        Exception handler callables should be of the form
        `handler(request, exc) -> response` and may be either standard functions, or
        async functions.
    lifespan: A lifespan context function, which can be used to perform
        startup and shutdown tasks. This is a newer style that replaces the
        `on_startup` and `on_shutdown` handlers. Use one or the other, not both.
)r(   N)
r#   r   stater   routerdictr'   listuser_middlewaremiddleware_stack)r"   r#   r%   r&   r'   r(   s   &&&&&&r-   __init__Starlette.__init__   sO    8 
W
V7(:(B"M_H`%/%7rT*=M04r0   c                   V ^8  d   QhRR/# )r!   r)   r   r+   )r,   s   "r-   r.   r/   9   s       r0   c                	d   V P                   pR p/ pV P                  P                  4        F  w  rEVR\        39   d   TpK  WSV&   K  	  \	        \
        W!R7      .V P                  ,           \	        \        W1R7      .,           pV P                  p\        V4       F  w  rp
V! V.V	O5/ V
B pK  	  V# )Ni  )handlerr#   )handlersr#   )
r#   r'   items	Exceptionr   r   r6   r   r3   reversed)r"   r#   error_handlerr'   keyvaluer&   appclsargskwargss   &          r-   build_middleware_stack Starlette.build_middleware_stack9   s    

:<11779JCsI&& %*/3'	 : -}RS""#-8JXYZ 	 kk!)*!5Cvc+D+F+C "6
r0   c                   V ^8  d   QhRR/# )r!   r)   zlist[BaseRoute]r+   )r,   s   "r-   r.   r/   P   s     " " "r0   c                	.    V P                   P                  # N)r3   r%   )r"   s   &r-   r%   Starlette.routesO   s    {{!!!r0   c               $    V ^8  d   QhRRRRRR/# )r!   namestrpath_paramsr   r)   r   r+   )r,   s   "r-   r.   r/   S   s!     = = = = =r0   c               	<    V P                   P                  ! V3/ VB # rL   )r3   url_path_for)r"   rO   rQ   s   "",r-   rS   Starlette.url_path_forS   s    {{''<<<r0   c               (    V ^8  d   QhRRRRRRRR/# )	r!   scoper   receiver   sendr   r)   r*   r+   )r,   s   "r-   r.   r/   V   s(     : :E :G :4 :D :r0   c                	   "   WR &   V P                   f   V P                  4       V n         V P                  WV4      G Rj  xL
  R#  L5i)rD   N)r7   rH   )r"   rV   rW   rX   s   &&&&r-   __call__Starlette.__call__V   s?     e  ($($?$?$AD!##ED999s   =AA Ac               (    V ^8  d   QhRRRRRRRR/# )	r!   pathrP   rD   r   rO   
str | Noner)   r*   r+   )r,   s   "r-   r.   r/   \   s(     4 4# 4G 4: 4 4r0   c                	@    V P                   P                  WVR 7       R# )rD   rO   N)r3   mount)r"   r]   rD   rO   s   &&&&r-   ra   Starlette.mount\   s    $d3r0   c               (    V ^8  d   QhRRRRRRRR/# )	r!   hostrP   rD   r   rO   r^   r)   r*   r+   )r,   s   "r-   r.   r/   _   s(     3 3 37 3* 3 3r0   c                	@    V P                   P                  WVR 7       R# r`   )r3   rd   )r"   rd   rD   rO   s   &&&&r-   rd   Starlette.host_   s    T2r0   c               (    V ^8  d   QhRRRRRRRR/# )	r!   middleware_classz_MiddlewareFactory[P]rF   zP.argsrG   zP.kwargsr)   r*   r+   )r,   s   "r-   r.   r/   b   s1     V V/D VV V_g Vlp Vr0   c                	    V P                   e   \        R4      hV P                  P                  ^ \	        V.VO5/ VB 4       R # )Nz6Cannot add middleware after an application has started)r7   RuntimeErrorr6   insertr   )r"   rh   rF   rG   s   &&*,r-   add_middlewareStarlette.add_middlewareb   s@      ,WXX##Az2B'TT'TV'TUr0   c               $    V ^8  d   QhRRRRRR/# )r!   exc_class_or_status_codezint | type[Exception]r<   r   r)   r*   r+   )r,   s   "r-   r.   r/   g   s-     D D"7D "D 
	Dr0   c                	"    W P                   V&   R # rL   )r'   )r"   ro   r<   s   &&&r-   add_exception_handlerStarlette.add_exception_handlerg   s    
 =D 89r0   c               0    V ^8  d   QhRRRRRRRRR	R
RR/# )r!   r]   rP   routez3Callable[[Request], Awaitable[Response] | Response]methodszlist[str] | NonerO   r^   include_in_schemar$   r)   r*   r+   )r,   s   "r-   r.   r/   n   sO     l ll Cl "	l
 l  l 
lr0   c                	B    V P                   P                  WW4VR 7       R# ))ru   rO   rv   N)r3   	add_route)r"   r]   rt   ru   rO   rv   s   &&&&&&r-   rx   Starlette.add_routen   s     	d7Yjkr0   )r#   r'   r7   r3   r2   r6   )FNNNNrL   )NNT)__name__
__module____qualname____firstlineno____doc__r8   rH   propertyr%   rS   rZ   ra   rd   rl   rq   rx   __static_attributes__r+   r0   r-   r   r      sP    +!5F, " "=:43V
Dl lr0   N)&
__future__r   collections.abcr   r   r   r   typingr   r	   r
   starlette.datastructuresr   r   starlette.middlewarer   r   starlette.middleware.errorsr   starlette.middleware.exceptionsr   starlette.requestsr   starlette.responsesr   starlette.routingr   r   starlette.typesr   r   r   r   r   r   r   r   r   r+   r0   r-   <module>r      sR    " B B * * 3 ? = ? & ( / U U
);
/cNcl clr0   