+
    Nj*
                    z    R t ^ RIHt ^ RIt]P
                  '       d   ^ RIHt ^ RIHt ^ RIH	t	  ! R R4      t
R# )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                  6    ] tR t^,tRtRR R lltR R ltRtR# )	DispatcherMiddlewarea2  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               $    V ^8  d   QhRRRRRR/# )   appr   mountsz!dict[str, WSGIApplication] | NonereturnNone )formats   "`/data/cameron/venvs/serve_omidlab/lib/python3.14/site-packages/werkzeug/middleware/dispatcher.py__annotate__!DispatcherMiddleware.__annotate__6   s(     # ## 2# 
	#    c                	4    Wn         T;'       g    / V n        R # Nr
   r   )selfr
   r   s   &&&r   __init__DispatcherMiddleware.__init__6   s    
 llr   c               $    V ^8  d   QhRRRRRR/# )r	   environr   start_responser   r   zt.Iterable[bytes]r   )r   s   "r   r   r   >   s$     , ,&,8E,	,r   c                	V   VP                  R R4      pRpRV9   dB   W0P                  9   d   V P                  V,          pMBVP                  R^4      w  r6RV V 2pKH  V P                  P                  W0P                  4      pVP                  RR4      pWs,           VR&   WAR &   V! W4      # )	PATH_INFO /SCRIPT_NAME)getr   rsplitr
   )r   r   r   script	path_infor
   	last_itemoriginal_script_names   &&&     r   __call__DispatcherMiddleware.__call__>   s     ["-	Vm$kk&) &c1 5FI;yk2I++//&((3C&{{="=!5!>(7++r   r   r   )__name__
__module____qualname____firstlineno____doc__r   r(   __static_attributes__r   r   r   r   r   ,   s    #, ,r   r   )r.   
__future__r   typingtTYPE_CHECKING_typeshed.wsgir   r   r   r   r   r   r   <module>r5      s/   B # ???,..%, %,r   