ó
    pñ:i*
  ã                  óv   • S r SSKJr  SSKr\R
                  (       a  SSKJr  SSKJr  SSKJ	r	   " S S5      r
g)	aY  
Application Dispatcher
======================

This middleware creates a single WSGI application that dispatches to
multiple other WSGI applications mounted at different URL paths.

A common example is writing a Single Page Application, where you have a
backend API and a frontend written in JavaScript that does the routing
in the browser rather than requesting different pages from the server.
The frontend is a single HTML and JS file that should be served for any
path besides "/api".

This example dispatches to an API app under "/api", an admin app
under "/admin", and an app that serves frontend files for all other
requests::

    app = DispatcherMiddleware(serve_frontend, {
        '/api': api_app,
        '/admin': admin_app,
    })

In production, you might instead handle this at the HTTP server level,
serving files or proxying to application servers based on location. The
API and admin apps would each be deployed with a separate WSGI server,
and the static files would be served directly by the HTTP server.

.. autoclass:: DispatcherMiddleware

:copyright: 2007 Pallets
:license: BSD-3-Clause
é    )ÚannotationsN)ÚStartResponse)ÚWSGIApplication)ÚWSGIEnvironmentc                  óH   • \ rS rSrSr S     SS jjr      S	S jrSrg)
ÚDispatcherMiddlewareé,   a2  Combine multiple applications as a single WSGI application.
Requests are dispatched to an application based on the path it is
mounted under.

:param app: The WSGI application to dispatch to if the request
    doesn't match a mounted path.
:param mounts: Maps path prefixes to applications for dispatching.
Nc                ó0   • Xl         U=(       d    0 U l        g ©N©ÚappÚmounts)Úselfr   r   s      Úa/srv/projetos/modelo_ml_acdoc/venv/lib/python3.13/site-packages/werkzeug/middleware/dispatcher.pyÚ__init__ÚDispatcherMiddleware.__init__6   s   € ð
 ŒØ—l ˆ�ó    c                óN  • UR                  SS5      nSnSU;   aB  X0R                  ;   a  U R                  U   nOHUR                  SS5      u  p6SU U 3nSU;   a  MB  U R                  R                  X0R                  5      nUR                  SS5      nXs-   US'   XAS'   U" X5      $ )NÚ	PATH_INFOÚ Ú/é   ÚSCRIPT_NAME)Úgetr   Úrsplitr   )r   ÚenvironÚstart_responseÚscriptÚ	path_infor   Ú	last_itemÚoriginal_script_names           r   Ú__call__ÚDispatcherMiddleware.__call__>   s°   € ð —‘˜[¨"Ó-ˆØˆ	à�V‹mØŸ™Ó$Ø—k‘k &Ñ)�Øà &§¡¨c°1Ó 5ÑˆFØ˜I˜; y kÐ2ˆIð �V�mð —+‘+—/‘/ &¯(©(Ó3ˆCà&Ÿ{™{¨=¸"Ó=ÐØ!5Ñ!>ˆ�ÑØ(�ÑÙ�7Ó+Ð+r   r   r   )r   r   r   z!dict[str, WSGIApplication] | NoneÚreturnÚNone)r   r   r   r   r$   zt.Iterable[bytes])Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   r"   Ú__static_attributes__© r   r   r   r   ,   sJ   † ñð 59ð#àð#ð 2ð#ð 
õ	#ð,Ø&ð,Ø8Eð,à	÷,r   r   )r*   Ú
__future__r   ÚtypingÚtÚTYPE_CHECKINGÚ_typeshed.wsgir   r   r   r   r,   r   r   Ú<module>r2      s-   ðñõB #ã à‡?‡?Ý,Ý.Ý.÷%,ò %,r   