+
    Nj                    P   ^ RI Ht ^ RIt^ RIt^RIHt ^RIHt ^RIH	t	 ^RIH
t
 ]P                  '       d   ^ RIHt ^RIHt ^R	IHt ^R
IHt ^RIHt  ! R R]4      t ! R R]]4      t ! R R]4      t ! R R]4      t ! R R]]4      t ! R R]4      t ! R R]4      tR# )    )annotationsN)
BadRequest)HTTPException)cached_property)redirect)WSGIEnvironment)Request)Response)
MapAdapter)Rulec                      ] tR t^tRtRtR# )RoutingExceptionzlSpecial exceptions that require the application to redirect, notifying
about missing urls, etc.

:internal:
 N__name__
__module____qualname____firstlineno____doc____static_attributes__r       ]/data/cameron/venvs/serve_omidlab/lib/python3.14/site-packages/werkzeug/routing/exceptions.pyr   r      s    r   r   c                  F   a  ] tR t^tRtRtR V 3R lltRR R lltRtV ;t	# )	RequestRedirectzRaise if the map requests a redirect. This is for example the case if
`strict_slashes` are activated and an url that requires a trailing slash.

The attribute `new_url` contains the absolute destination url.
i4  c                    V ^8  d   QhRRRR/# )   new_urlstrreturnNoner   )formats   "r   __annotate__RequestRedirect.__annotate__%   s        r   c                	2   < \         SV `  V4       Wn        R # N)super__init__r   )selfr   	__class__s   &&r   r'   RequestRedirect.__init__%   s    !r   c               $    V ^8  d   QhRRRRRR/# )r   environz WSGIEnvironment | Request | Nonescopezdict[str, t.Any] | Noner   r
   r   )r!   s   "r   r"   r#   )   s(     1 111 '1 
	1r   c                	B    \        V P                  V P                  4      # r%   )r   r   code)r(   r,   r-   s   &&&r   get_responseRequestRedirect.get_response)   s    
 dii00r   )r   )NN)
r   r   r   r   r   r/   r'   r0   r   __classcell__r)   s   @r   r   r      s#     D 1 1r   r   c                  6   a  ] tR t^1tRtRtR V 3R lltRtV ;t# )RequestPathzInternal exception.c                    V ^8  d   QhRRRR/# )r   	path_infor   r   r    r   )r!   s   "r   r"   RequestPath.__annotate__6   s     # ## #$ #r   c                	0   < \         SV `  4        Wn        R # r%   )r&   r'   r7   )r(   r7   r)   s   &&r   r'   RequestPath.__init__6   s    "r   )r7   )	r   r   r   r   r   	__slots__r'   r   r2   r3   s   @r   r5   r5   1   s    I# #r   r5   c                  2   a  ] tR t^;tRtR V 3R lltRtV ;t# )RequestAliasRedirectzAThis rule is an alias and wants to redirect to the canonical URL.c               $    V ^8  d   QhRRRRRR/# )r   matched_valuest.Mapping[str, t.Any]endpointt.Anyr   r    r   )r!   s   "r   r"   !RequestAliasRedirect.__annotate__>   s#     ! !'< ! !RV !r   c                	<   < \         SV `  4        Wn        W n        R # r%   )r&   r'   r?   rA   )r(   r?   rA   r)   s   &&&r   r'   RequestAliasRedirect.__init__>   s    , r   )rA   r?   )r   r   r   r   r   r'   r   r2   r3   s   @r   r=   r=   ;   s    K! !r   r=   c                  d   a  ] tR t^DtRtRR V 3R lllt]R R l4       tR R ltR R	 lt	R
t
V ;t# )
BuildErrorzWRaised if the build system cannot find a URL for an endpoint with the
values provided.
c          
     ,    V ^8  d   QhRRRRRRRRR	R
/# )r   rA   rB   valuesr@   methodz
str | NoneadapterMapAdapter | Noner   r    r   )r!   s   "r   r"   BuildError.__annotate__I   s<       & 	
 # 
r   c                	X   < \         SV `  WV4       Wn        W n        W0n        W@n        R # r%   )r&   r'   rA   rI   rJ   rK   )r(   rA   rI   rJ   rK   r)   s   &&&&&r   r'   BuildError.__init__I   s(     	62 r   c                   V ^8  d   QhRR/# )r   r   Rule | Noner   )r!   s   "r   r"   rM   W   s     / /; /r   c                	8    V P                  V P                  4      # r%   )closest_rulerK   )r(   s   &r   	suggestedBuildError.suggestedV   s      ..r   c                    V ^8  d   QhRRRR/# )r   rK   rL   r   rQ   r   )r!   s   "r   r"   rM   Z   s      $5 + r   c                	   a  R  V 3R llpV'       d>   VP                   P                  '       d"   \        VP                   P                  VR7      # R# )c                    V ^8  d   QhRRRR/# )r   ruler   r   floatr   )r!   s   "r   r"   -BuildError.closest_rule.<locals>.__annotate__[   s     	 	d 	u 	r   c           
       < \        R \        P                  ! R\        V P                  4      \        SP                  4      4      P                  4       ,          R\        \        SP                  ;'       g    R4      P                  V P                  4      4      ,          R\        V P                  ;'       d    SP                  V P                  9   4      ,          .4      # )g\(\?Ng{Gz?r   )sumdifflibSequenceMatcherr   rA   ratioboolsetrI   issubset	argumentsmethodsrJ   )rY   r(   s   &r   _score_rule,BuildError.closest_rule.<locals>._score_rule[   s    --DMM*DMM*	
 eg 4DKK$5$52 6 ? ? OPP4 L L1LMM
 r   )keyN)map_rulesmax)r(   rK   rf   s   f& r   rS   BuildError.closest_ruleZ   s;    	 	 w{{)))w{{)){;;r   c                   V ^8  d   QhRR/# )r   r   r   r   )r!   s   "r   r"   rM   o   s          r   c                	B   R V P                   : 2.pV P                  '       d!   VP                  RV P                  : R24       V P                  '       d)   VP                  R\	        V P                  4      : 24       VP                  R4       V P
                  '       Edo   V P                   V P
                  P                   8X  Ed   V P                  '       dq   V P
                  P                  eY   V P                  V P
                  P                  9  d4   VP                  R\	        V P
                  P                  4      : R24       V P
                  P                  P                  \        V P
                  P                  ;'       g    R4      4      \        V P                  P                  4       4      ,
          pV'       d    VP                  R\	        V4      : R24       M*VP                  RV P
                  P                   : R	24       R
P                  V4      # )z!Could not build url for endpoint z ()z with values .z Did you mean to use methods ?z" Did you forget to specify values z Did you mean z	 instead? r   )rA   rJ   appendrI   sortedrT   re   rd   unionrb   defaultskeysjoin)r(   messagemissing_valuess   &  r   __str__BuildError.__str__o   s   6t}}6GHI;;;NNRa01;;;NN]6$+++>*ABCs>>>}} 7 77KKK..:4>>+A+AANN"4>>#9#9:=Q@ "&!9!9!?!?//5526"((*+", "NN<VN=S<VVWX 0G0G/J)TUwwwr   )rK   rA   rJ   rI   r%   )r   r   r   r   r   r'   r   rT   rS   r{   r   r2   r3   s   @r   rG   rG   D   s5      / /*   r   rG   c                      ] tR t^tRtRtR# )WebsocketMismatchzyThe only matched rule is either a WebSocket and the request is
HTTP, or the rule is HTTP and the request is a WebSocket.
r   Nr   r   r   r   r~   r~      s    r   r~   c                  &    ] tR t^tRtR R ltRtR# )NoMatchc               $    V ^8  d   QhRRRRRR/# )r   have_match_forzset[str]websocket_mismatchra   r   r    r   )r!   s   "r   r"   NoMatch.__annotate__   s!     5 5x 5T 5d 5r   c                	    Wn         W n        R # r%   r   r   )r(   r   r   s   &&&r   r'   NoMatch.__init__   s    ,"4r   r   N)r   r   r   r   r;   r'   r   r   r   r   r   r      s    8I5 5r   r   )
__future__r   r^   typingt
exceptionsr   r   utilsr   r   TYPE_CHECKING_typeshed.wsgir   wrappers.requestr	   wrappers.responser
   ri   r   rulesr   	Exceptionr   r   r5   r=   LookupErrorrG   r~   r   r   r   r   <module>r      s    "   # & # ???.*,y 1m%5 1*#" #!+ !F !; F R
 5i 5r   