+
    }i                         ^ RI Ht ^ RIHt ^ RIHtHtHt ^ RIH	t	 ^ RI
HtHt ^ RIt^ RIt^ RIt^ RIt^ RI t  ! R R]4      tR# )	    )BytesIO)BaseAdapter)PreparedRequestResponsecodes)Any)urlparseunquoteNc                   f   a a ] tR t^t oRV3R lV 3R llltV3R lR ltV3R lR ltRtVtV ;t	# )	FileAdapterc                $   < V ^8  d   QhRS[ RR/# )   set_content_lengthreturnN)bool)format__classdict__s   "h/Users/ahmad/.openclaw/workspace/my-crawler/.venv/lib/python3.14/site-packages/requests_file/__init__.py__annotate__FileAdapter.__annotate__   s     6 64 64 6    c                8   < \         \        V `  4        Wn        R # N)superr   __init___set_content_length)selfr   	__class__s   &&r   r   FileAdapter.__init__   s    k4)+#5 r   c                2   < V ^8  d   QhRS[ RS[RS[RS[/# )r   requestargskwargsr   )r   r   r   )r   r   s   "r   r   r      s/     i iO iC i3 i8 ir   c                L
   VP                   R9  d   \        RVP                   ,          4      h\        4       p VP                  f>   \	        \
        P                  \        P                  ! \
        P                  4      R4      h\        VP                  4      pVP                  '       d   VP                  R8w  d   \        R4      hWn        VP                  e   VP                  Vn        VP                  P                  R4       Uu. uF  p\        V4      NK  	  ppV'       d#   V^ ,          '       g   VP                  ^ 4       K*  \         ;QJ d    R V 4       F  '       g   K   RM	  R	M! R V 4       4      '       d=   \	        \
        P                  \        P                  ! \
        P                  4      4      hV'       d   V^ ,          P#                  R
4      '       g   V^ ,          P#                  R4      '       d`   VP                  ^ 4      pVP#                  R
4      '       d   VRR R,           pV'       d#   V^ ,          '       g   VP                  ^ 4       K*  MRpV\        P$                  ,           \        P                  P&                  ! V!  ,           p	V'       d]   \        P                  P)                  V	4      '       g8   \        P$                  \        P                  P&                  ! V.VO5!  ,           p	\*        P,                  ! V	R4      Vn        VP.                  P0                  VP.                  n        \4        P6                  Vn        \        P:                  ! VP.                  P=                  4       4      p
\>        P@                  ! V
PB                  4      '       d5   V PD                  '       d#   \G        V
PH                  4      VPJ                  R&   V# u upi   \         Ed1   pTP
                  \
        PL                  8X  d   \4        PN                  Tn        MJTP
                  \
        P                  8X  d   \4        PP                  Tn        M\4        PR                  Tn        \G        T4      PU                  \V        PX                  ! R	4      4      p\[        T4      Tn        \G        T4      Tn.        T PD                  '       d"   \G        \_        T4      4      TPJ                  R&   TP.                  P0                  TP.                  n         Rp?T# Rp?ii ; i)zWraps a file, described in request, in a Response object.

:param request: The PreparedRequest` being "sent".
:returns: a Response object containing the file
zInvalid request method %sNNone	localhostz5file: URLs with hostname components are not permitted/c              3   H   "   T F  p\         P                  V9   x  K  	  R # 5ir   )ossep).0ps   & r   	<genexpr>#FileAdapter.send.<locals>.<genexpr>=   s     3
1266Q;
s    "TF|: rbzContent-Length)GETHEAD)0method
ValueErrorr   urlIOErrorerrnoENOENTr)   strerrorr	   netlocr!   pathsplitr
   popanyendswithr*   join
splitdriveioopenrawcloserelease_connr   okstatus_codefstatfilenostatS_ISREGst_moder   strst_sizeheadersEACCES	forbidden	not_foundbad_requestencodelocalegetpreferredencodingr   reasonlen)r   r!   r"   r#   resp	url_partsr,   
path_parts
path_driver>   	resp_stateresp_strs   &&*,         r   sendFileAdapter.send   sr    >>087>>IJJz
W	H{{"ellBKK,EvNN !-I I$4$4$C !XYY"L{{&";; /8nn.B.B3.GH.G'!*.GJH Z]]q! s3
3sss3
333ellBKK,EFF 1&&s++z!}/E/Ec/J/J'^^A.
&&s++!+CR3!6J ANN1%

 &z)BBD "''"4"4T":":vvZ E* EE wwtT*DH$(HHNNDHH!*  %xxD !23I||I--..43K3K3K14Y5F5F1G-.M IV  	3ww%,,&#(?? ELL(#(?? #(#4#4 
 1v}}V%@%@%GHHx(DHa&DK'''14S]1C-. %)HHNNDHH!! 7	3s|   CO' 	O"	O' 'O' 6O' O' (O' AO' O' %O' 'O' +O' ?O' AO' &$O' A8O' "O' 'T#3D%TT#c                   < V ^8  d   QhRR/# )r   r   N )r   r   s   "r   r   r   }   s      t r   c                    R # r   rg   )r   s   &r   rH   FileAdapter.close}   s    r   )r   )T)
__name__
__module____qualname____firstlineno__r   rd   rH   __static_attributes____classdictcell____classcell__)r   r   s   @@r   r   r      s+     6 6i iV  r   r   )rE   r   requests.adaptersr   requestsr   r   r   typingr   urllib.parser	   r
   r:   r)   rN   rY   r   rg   r   r   <module>ru      s4     ) 5 5  *  	   	q+ qr   