+
    :1j                    *   ^ RI Ht ^ RIt^ RIt^ RIt^ RIt^ RIHt ^ RIH	t	 ]	'       d   ^RI
Ht R$R R lltR R	 ltR
 R ltR R lt]P                   ! R]P"                  R7      tR R lt]P                   ! R]P"                  R7      tR R ltR$R R llt]P                   ! R]P"                  R7      tR R lt]P                   ! R]P"                  R7      tR R lt]P                   ! R]P"                  R7      tR R ltR  R! ltR" R# ltR# )%    )annotationsN)partial)TYPE_CHECKING)PathTypec               (    V ^8  d   QhRRRRRRRR/# 	   pathr   prefixzPathType | Nonecygdriveboolreturnstr )formats   ":lib/python3.14/site-packages/conda/common/path/_cygpath.py__annotate__r      s/     A. A.h A. A.4 A.TW A.    c                >  aaa \         P                  ! V 4      p S'       d   \         P                  ! S4      MRo\        P                  V 9   dI   \        P                  P                  VVV3R lV P                  \        P                  4       4       4      # V '       g   V # ^ p\        P                  ! V 4      '       g   V R9   d   S'       dg   \        P                  ! V 4      pV R,          R9   d   V\        P                  ,          p\        S4      P                  \        V4      w  rCV'       d   Tp V'       g   \        P                  \        V 4      w  rV'       g&   \        P!                  \#        \$        SR7      V 4      p \'        V \        P                  4      # )a  
A fallback implementation of `cygpath --unix`.

Args:
    path: The path to convert.
    prefix: The Windows style prefix directory to use for the conversion.
          If not provided, no checks for root paths will be made.
    cygdrive: Whether to use the Cygwin-style drive prefix.
Nc              3  V   <"   T F  p\        VSS4      ;o'       g   K  Sx  K   	  R # 5iN)nt_to_posix).0r
   	convertedr   r   s   & r   	<genexpr>nt_to_posix.<locals>.<genexpr>   s.      &
2(vx@@	@ I2s   )
)z/\)r   )zC:zc:)osfspathntpathpathsep	posixpathjoinsplitisabsnormpathsep_get_RE_WIN_ROOTsubn_to_unix_rootRE_WIN_MOUNT_to_unix_mountRE_WIN_DRIVEsubr   _to_unix_drive_resolve_path)r
   r   r   subs	norm_pathr   s   &ff  @r   r   r      s!    99T?D"(RYYvdF~~  %% &


6>>2&
 
 	
 " D ||DT\1-IBx5 VZZ'	.v6;;M9UOI  %**>4@JD ##GNX$NPTUDy}}--r   c                    V ^8  d   QhRRRR/# )r	   r   r   r   r   )r   s   "r   r   r   T   s     * *c *c *r   c                \    \         P                  ! V 4      p \         P                  ! V R 4      # )Library)r    r&   r#   )r   s   &r   	_get_rootr6   T   s#    __V$F ;;vy))r   c                    V ^8  d   QhRRRR/# )r	   r   r   r   z
re.Patternr   )r   s   "r   r   r   b   s     
 
S 
Z 
r   c                    \        V 4      p\        P                  ! R \        P                  ! V4       R2\        P                  R7      # )z
        ^
        z)
        (?P<path>.*)?
        $
        flags)r6   recompileescapeVERBOSE)r   roots   & r   r(   r(   b   sC    VD::		4 		 jj r   c                    V ^8  d   QhRRRR/# r	   matchre.Matchr   r   r   )r   s   "r   r   r   o   s     & & &c &r   c                8    V P                  R 4      ;'       g    R# )r
   /group)rB   s   &r   r*   r*   o   s    ;;v%%#%r   zW
    ^
    [/\\]{2}(
        (?P<mount>[^/\\]+)
        (?P<path>.*)?
    )?
    $
    r9   c                    V ^8  d   QhRRRR/# rA   r   )r   s   "r   r   r      s      ( s r   c                |    V P                  R 4      ;'       g    RpV P                  R4      ;'       g    RpRV V 2# )mount r
   z//rF   rB   rJ   r
   s   &  r   r,   r,      s?    KK &&BE;;v$$"Dwtfr   zB
    ^
    (?P<drive>[A-Za-z]):
    (?P<path>[/\\]+.*)?
    $
    c               $    V ^8  d   QhRRRRRR/# )r	   rB   rC   r   r   r   r   r   )r   s   "r   r   r      s!     > >( >d >s >r   c                    V P                  R 4      P                  4       pV P                  R4      ;'       g    RpV'       d   RMR RV V 2# )driver
   rK   z	/cygdriverE   )rG   lower)rB   r   rO   r
   s   &&  r   r/   r/      sI    KK &&(E;;v$$"D%k2.awtf==r   c               (    V ^8  d   QhRRRRRRRR/# r   r   )r   s   "r   r   r      s)     5+ 5+h 5+ 5+4 5+TW 5+r   c                  a \         P                  ! V 4      p S'       d   \         P                  ! S4      MRo\        P                  V 9   dG   \        P                  P                  V3R lV P                  \        P                  4       4       4      # V '       g   R# \        P                  ! V 4      '       d   ^ p\        P                  \        V 4      w  rV'       g   \        P                  \        V 4      w  rS'       d9   V'       g1   \        S4      p\        P                  \!        \"        VR7      V 4      p \%        V \        P&                  4      # )a8  
A fallback implementation of `cygpath --windows`.

Args:
    path: The path to convert.
    prefix: The Windows style prefix directory to use for the conversion.
          If not provided, no checks for root paths will be made.
    cygdrive: Unused. Present to keep the signature consistent with `nt_to_posix`.
Nc              3  <   <"   T F  p\        VS4      x  K  	  R # 5ir   )posix_to_nt)r   r
   r   s   & r   r   posix_to_nt.<locals>.<genexpr>   s      #
2O$Kf%%2O   .)r?   )r   r   r"   r!   r    r#   r$   r%   RE_UNIX_DRIVEr)   _to_win_driveRE_UNIX_MOUNT_to_win_mountr6   RE_UNIX_ROOTr.   r   _to_win_rootr0   r'   )r
   r   r   r1   r?   s   &f&  r   rT   rT      s     99T?D"(RYYvdFD ~~"" #
26**Y=N=N2O#
 
 	

 " t #''t<
 &++M4@JD $V$D##GLt$DdKDvzz**r   zR
    ^
    (/cygdrive)?
    /(?P<drive>[A-Za-z])
    (/+(?P<path>.*)?)?
    $
    c                    V ^8  d   QhRRRR/# rA   r   )r   s   "r   r   r      s       c r   c                    V P                  R 4      P                  4       pV P                  R4      ;'       g    RpV RV 2# )rO   r
   rK   z:\)rG   upper)rB   rO   r
   s   &  r   rY   rY      s@    KK &&(E;;v$$"DWCvr   zS
    ^
    /{2}(
        (?P<mount>[^/]+)
        (?P<path>/+.*)?
    )?
    $
    c                    V ^8  d   QhRRRR/# rA   r   )r   s   "r   r   r      s          c  r   c                |    V P                  R 4      ;'       g    RpV P                  R4      ;'       g    RpRV V 2# )rJ   rK   r
   z\\rF   rL   s   &  r   r[   r[      s?    KK &&BE;;v$$"D%r   z#
    ^
    (?P<path>/.*)
    $
    c               $    V ^8  d   QhRRRRRR/# )r	   rB   rC   r?   r   r   r   )r   s   "r   r   r      s!         r   c                0    V P                  R 4      pV V 2# )r
   rF   )rB   r?   r
   s   && r   r]   r]      s    ;;vDVD6?r   c               $    V ^8  d   QhRRRRRR/# )r	   r
   r   r'   r   r   )r   s   "r   r   r     s&     I I I# I# Ir   c                    R p\         P                  ! RV 4      ;p'       d   VP                  4       w  r \         P                  ! V4      p\         P                  ! RW4      \         P                  ! RW4      ,           # )rK   z^([/\\]+)(.*)$z[/\\]z[/\\]+)r;   rB   groupsr=   r.   )r
   r'   leadingrB   s   &&  r   r0   r0     sY    G*D11u1
))C.C66(C)BFF9c,HHHr   c               (    V ^8  d   QhRRRRRRRR/# )r	   pathsr   r!   r'   r   r   )r   s   "r   r   r     s.     S S Ss S S Sr   c                X   a VP                  V3R  lV P                  V4       4       4      # )c              3  <   <"   T F  p\        VS4      x  K  	  R # 5ir   )r0   )r   r
   r'   s   & r   r    resolve_paths.<locals>.<genexpr>  s     R=QTdC00=QrV   )r#   r$   )rj   r!   r'   s   &&fr   resolve_pathsrn     s!    <<RU[[=QRRRr   )F)
__future__r   r    r   r"   r;   	functoolsr   typingr   rK   r   r   r6   r(   r*   r<   r>   r+   r,   r-   r/   rT   rX   rY   rZ   r[   r\   r]   r0   rn   r   r   r   <module>rr      s    #  	  	   A.H*
& zz **
 zz **>5+p 

 **	 

 **
  zz
 **
ISr   