+
    ^eòjjc  ã                   ó`  a € RS tS0 t R tRtRt^ RIt^ RIt^ RIt^ RIt^ RIt^ RI	t	^ RI
Ht ^ RIHtHt ^ RIHt ^ RIHt ^ RIHt ^ R	IHtHtHtHtHtHt ]P2                  R
,          RT8¼  d   ^ RIHt M^ RIHt ]P2                  RU8¼  d   ^ RIHt M^ RIHt ^RIHtHtH t H!t! ]"]"]#]#]#3,          ]"]#]#]#3,          ]"]#]#]#3,          3,          t$] ^ k ]"]#]#]#]#]#]#3,          t%] ^k ]],          t&]]',          t(]])]&3,          t*R R lt+R R lt,R R lt-RVt.RP_                  ].4      t0R]0,           R,           t1RWR R llt2R R lt3R R lt4R R lt5RXt6RYR R  llt7RZt8R[R! R" llt9R# R$ lt:R%R/R& R' llt;R(]Px                  /R) R* llt=R+ R, lt>R- R. lt?R/ R0 lt@R1 R2 ltAR\R3 R4 lltBR5 R6 ltCR7 R8 ltDR9 R: ltER; R< ltFR= R> ltGR? R@ ltHRA RB ltIR]RC RD lltJRE RF ltKRG RH ltLRI RJ ltM ! RK RL4      tN] ! RM RN4      4       tO]P                    ! RO RP4      4       tQ] ! RQ RR4      4       tRR# )^z"Utility functions for PDF library.zMathieu Fenniakzbiziqe@mathieu.fenniak.netN)Ú	dataclass)ÚdatetimeÚtimezone)ÚDEFAULT_BUFFER_SIZE)ÚSEEK_CUR)ÚPattern)ÚIOÚAnyÚNoReturnÚOptionalÚUnionÚcast:Né   N)Ú	TypeAlias©ÚSelf)ÚSTREAM_TRUNCATED_PREMATURELYÚDeprecationErrorÚLimitReachedErrorÚPdfStreamErrorc                ó\   € V ^8„  d   QhR\         \        ,          R\         \        ,          /# )r   ÚtextÚreturn)r   Ústrr   )Úformats   "Úƒ/opt/data/installs/351f81cc06284494/environments/aa258815729c481f8402f54f4c368f83/venv/lib/python3.14/site-packages/pypdf/_utils.pyÚ__annotate__r   R   s#   € ÷ 9ñ 9œX¤c�]ð 9¬x¼Õ/Añ 9ó    c                 óž  € T pV '       g   R # V ^ ,          P                  4       '       d
   RV ,           p V P                  R4      '       d
   V R,          p V P                  RR4      P                  RR4      P                  RR4      p \        V P	                  R4      V P	                  R4      4      pV^ 8”  d!   V\        V 4      ^,
          8w  d
   V R	,          p R FS  p \        P                  ! W4      pV P                  R
4      '       d!   VP                  \        P                  R7      pVu # 	  \        RV 24      h  \         d     Ks  i ; i)NzD:ÚZÚzÚ0000Ú+Ú'Ú Ú-Ú00z+0000)ÚtzinfozCan not convert date: )r   r    )zD:%YzD:%Y%mzD:%Y%m%dz
D:%Y%m%d%HzD:%Y%m%d%H%MúD:%Y%m%d%H%M%SzD:%Y%m%d%H%M%S%z)ÚisdigitÚendswithÚreplaceÚmaxÚfindÚlenr   Ústrptimer   ÚutcÚ
ValueError)r   ÚorgtextÚiÚfÚds   &    r   Úparse_iso8824_dater6   R   s  € Ø€GßÙØˆA…w‡�×ÒØ�d�{ˆØ‡}�}�Z× Ò Ø��ˆØ�<‰<˜˜SÓ!×)Ñ)¨#¨sÓ3×;Ñ;¸CÀÓD€DÜˆD�I‰I�c‹N˜DŸI™I c›NÓ+€AØˆ1„u�”c˜$“i !•mÔ#Ø��ˆóˆð	Ü×!Ò! $Ó*ˆAð �}‰}˜W×%Ò%Ø—I‘I¤X§\¡\�IÓ2�ØŠHñ!ô" Ð-¨g¨YÐ7Ó
8Ð8øô ô 	Úð	ús   ÃD=Ä=EÅEc                ó0   € V ^8„  d   QhR\         R\        /# )r   Údtr   )r   r   )r   s   "r   r   r   r   s   € ÷ ñ œHð ¬ñ r   c                ó  € V P                  R4      pV P                  em   V P                  4       pVf   Q h\        VP	                  4       4      p\        \        V4      R4      w  rEV^<,          pV^ 8¼  d   RMRpW VR RVR R2,          pV# )zò
Convert a datetime object to PDF date string format.

Converts datetime to the PDF date format D:YYYYMMDDHHmmSSOHH'mm
as specified in the PDF Reference.

Args:
    dt: A datetime object to convert.

Returns:
    A date string in PDF format.
r(   i  r"   r%   Ú02dr#   )Ústrftimer'   Ú	utcoffsetÚintÚtotal_secondsÚdivmodÚabs)r8   Údate_strÚoffsetr>   ÚhoursÚ	remainderÚminutesÚsigns   &       r   Úformat_iso8824_daterG   r   s”   € ð �{‰{Ð+Ó,€HØ	‡y�yÒØ—‘“ˆØÒ!Ð!Ð!Ü˜F×0Ñ0Ó2Ó3ˆÜ!¤# mÓ"4°dÓ;ÑˆØ˜r•/ˆØ# qÔ(‰s¨cˆØ�f˜U 3˜K q¨°¨°QÐ7Õ7ˆØ€Or   c                ó<   € V ^8„  d   QhR\         R\         R\         /# )r   Úheader1Úheader2r   ©r   )r   s   "r   r   r   ‹   s!   € ÷ -ñ -¬ð -´sð -¼sñ -r   c                 ó  € Rp. pW9   d!   VP                  VP                  V 4      4       W9   d!   VP                  VP                  V4      4       \        V4      ^ 8X  d   \        RV : RV: R24      hV\	        V4      ,          # )ú%PDF-1.3zNeither z nor z are proper headers)rM   z%PDF-1.4z%PDF-1.5z%PDF-1.6z%PDF-1.7z%PDF-2.0)ÚappendÚindexr.   r1   r,   )rI   rJ   ÚversionsÚpdf_header_indicess   &&  r   Ú_get_max_pdf_version_headerrR   ‹   s…   € ð€Hð ÐØÔØ×!Ñ! (§.¡.°Ó"9Ô:ØÔØ×!Ñ! (§.¡.°Ó"9Ô:Ü
ÐÓ !Ô#Ü˜8 G¡;¨e°G±;Ð>QÐRÓSÐSØ”CÐ*Ó+Õ,Ð,r   r   ó   [ó   ]c                ó^   € V ^8„  d   QhR\         R\        \        ,          R\        R\        /# )r   ÚstreamÚ	max_bytesÚstrictr   )Ú
StreamTyper   r=   ÚboolÚbytes)r   s   "r   r   r   £   s.   € ÷ ñ ¤*ð ¼Ä#½ð ÔW[ð Ôhmñ r   c                ó4  € \        4       p V P                  ^4      pVP                  4       '       g   V\        9   g	   V'       g   MHVe;   \	        V4      V8¼  d+   V'       d   \        RV R24      h\        R\        VR7       M
W4,          pK„  \        V4      # )að  
Read non-whitespace characters and return them.

Stops upon encountering whitespace or when max_bytes is reached.

Args:
    stream: The data stream from which was read.
    max_bytes: The maximum number of bytes which are considered valid. One more byte
        will always be read from the stream.
    strict: Whether to raise an exception if the token exceeds max_bytes.
        If False, a warning is logged and only the first max_bytes are returned.

Returns:
    The data which was read.

z Token exceeds maximum length of z bytes.z4Token exceeds maximum length of %(max_bytes)d bytes.)ÚsourcerW   )	Ú	bytearrayÚreadÚisspaceÚWHITESPACESr.   r   Úlogger_warningÚ__name__r[   )rV   rW   rX   ÚtxtÚtoks   &&&  r   Úread_until_whitespacerf   £   s‚   € ô" ‹+€CØ
Ø�k‰k˜!‹nˆØ�;‰;�=Š=˜C¤;Ô.·cØØÒ ¤S¨£X°Ô%:ßÜ'Ð*JÈ9È+ÐU\Ð(]Ó^Ð^ÜØFÌxÐclõð Ø�
ŠÜ�‹:Ðr   c                ó0   € V ^8„  d   QhR\         R\        /# ©r   rV   r   )ÚBinaryStreamTyper[   )r   s   "r   r   r   Ä   s   € ÷ ñ Ô 0ð ´Uñ r   c                ód   € V P                  ^4      pV\        9   d   V P                  ^4      pK  V# )z§
Find and read the next non-whitespace character (ignores whitespace).

Args:
    stream: The data stream from which was read.

Returns:
    The data which was read.

©r_   ra   ©rV   re   s   & r   Úread_non_whitespacerm   Ä   s+   € ð �+‰+�a‹.€CØ
”Ô
Ø�k‰k˜!‹nŠØ€Jr   c                ó0   € V ^8„  d   QhR\         R\        /# rh   )rY   rZ   )r   s   "r   r   r   Õ   s   € ÷ ñ ¤ð ´ñ r   c                ó€   € V P                  ^4      p^ pV\        9   d   V^,          pV P                  ^4      pK'  V^ 8„  # )zð
Similar to read_non_whitespace, but return a boolean if at least one
whitespace character was read.

Args:
    stream: The data stream from which was read.

Returns:
    True if one or more whitespace was skipped, otherwise return False.

rk   )rV   re   Úcnts   &  r   Úskip_over_whitespacerq   Õ   s=   € ð �+‰+�a‹.€CØ
€CØ
”Ô
Øˆq�ˆØ�k‰k˜!‹nŠØ�‰7€Nr   c                ó0   € V ^8„  d   QhR\         R\        /# )r   Úvaluer   )r[   rZ   )r   s   "r   r   r   é   s   € ÷ 9ñ 9¤Eð 9¬dñ 9r   c                ój   € \         ;QJ d    R V  4       F  '       d   K   R# 	  R# ! R V  4       4      # )zÁ
Check if the given value consists of whitespace characters only.

Args:
    value: The bytes to check.

Returns:
    True if the value only has whitespace characters, otherwise return False.

c              3   ó2   "  € T F  q\         9   x € K  	  R # 5i©N)ÚWHITESPACES_AS_BYTES)Ú.0Úbs   & r   Ú	<genexpr>Ú+check_if_whitespace_only.<locals>.<genexpr>ô   s   é € Ð8±%¨QÔ(Ö(³%ùs   ‚FT)Úall)rs   s   &r   Úcheck_if_whitespace_onlyr}   é   s-   € ÷ ‹3Ñ8±%Ó8�3Œ3Ð8Š3Ð8ˆ3Ñ8±%Ó8Ó8Ð8r   c                ó<   € V ^8„  d   QhR\         R\         R\        /# )r   ÚcharÚcustom_special_charactersr   ©r   rZ   )r   s   "r   r   r     s&   € ÷ Qñ Qœ#ð Q¼#ð QÄtñ Qr   c                óÈ   a € \         ;QJ d#    V 3R l\         4       F  '       g   K   RM	  RM! V 3R l\         4       4      '       d   R# \        T;'       d    S V9   4      # )z8Check if a character is part of neutral character rangesc              3   óT   <"  € T F  w  rVSu;8*  ;'       d    V8*  Mu x € K  	  R # 5irv   © ©rx   ÚstartÚendr   s   &  €r   rz   Ú"is_char_neutral.<locals>.<genexpr>  s%   øé € Ð
KÑ2J¡J Eˆ5�D×Ô˜C×ÑÓ2Jùó   ƒ%(TF)ÚanyÚNEUTRAL_CHARACTER_RANGESrZ   )r   r€   s   f&r   Úis_char_neutralrŒ     sC   ø€ ç
ƒsÔ
KÕ2JÓ
K‡s‡s‚sÔ
KÕ2JÓ
K×KÒKÙäÐ)×OÐO¨dÐ6OÑ.OÓPÐPr   c                óH   € V ^8„  d   QhR\         R\         R\         R\        /# )r   r   Úcustom_rtl_minÚcustom_rtl_maxr   r�   )r   s   "r   r   r     s/   € ÷ bñ b”cð b¬3ð bÄSð bÔRVñ br   c                ó  a € \         ;QJ d#    V 3R l\         4       F  '       g   K   RM	  RM! V 3R l\         4       4      '       d   R# \        T;'       d%    T;'       d    VS u;8*  ;'       d
    V8*  4      # u 4      # )z4Check if a character is part of RTL character rangesc              3   óT   <"  € T F  w  rVSu;8*  ;'       d    V8*  Mu x € K  	  R # 5irv   r„   r…   s   &  €r   rz   Úis_char_rtl.<locals>.<genexpr>  s%   øé € Ð
GÑ2F¡J Eˆ5�D×Ô˜C×ÑÓ2Fùr‰   TF)rŠ   ÚRTL_CHARACTER_RANGESrZ   )r   rŽ   r�   s   f&&r   Úis_char_rtlr”     s[   ø€ ç
ƒsÔ
GÕ2FÓ
G‡s‡s‚sÔ
GÕ2FÓ
G×GÒGÙä�×`Ð` >×`Ð`°~È×7_Ô7_ÐQ_Ñ7_ÓaÐaÑ7_ÓaÐar   c                ó(   € V ^8„  d   QhR\         RR/# ©r   rV   r   N©rY   )r   s   "r   r   r     s   € ÷ Añ Aœjð A¨Tñ Ar   c                 ó¶   € V P                  ^4      pV P                  R^4       VR8X  d/   VR9  d&   V P                  ^4      pVR8X  g   K!  \        R4      hR# R# )é   ó   %r   zFile ended unexpectedly.Néÿÿÿÿ)ó   
ó   )r_   Úseekr   rl   s   & r   Úskip_over_commentrŸ     sV   € Ø
�+‰+�a‹.€CØ
‡K�K��AÔØ
ˆd„{Ø˜Ô'Ø—+‘+˜a“.ˆCØ�cŽzÜ$Ð%?Ó@Ð@ñ (ñ r   Úlimitc                óJ   € V ^8„  d   QhR\         R\        \        ,          RR/# )r   rV   r    r   N)rY   r   r=   )r   s   "r   r   r   "  s%   € ÷ ñ œzð ´X¼cµ]ð Èdñ r   c               ó
  € V P                  ^4      pV P                  \        V4      ) ^4       ^ pVR8X  dM   Ve   W18¼  d   \        RV R24      h\	        V 4       \        V 4      pV P                  R^4       V^,          pKS  R# )aÄ  
Skip consecutive leading comments and the whitespace following each one.

The stream must be positioned at the first comment, if any. If the next
character is not ``%``, the stream position is unchanged. If only whitespace
follows the last comment before EOF, leave the stream at the last whitespace
byte, preserving the existing read_object behaviour for a missing object.

Args:
    stream: The stream to read from.
    limit: The maximum number of comments to skip, or ``None`` for no limit.

Raises:
    LimitReachedError: If another comment follows after ``limit`` comments;
        the stream remains at its ``%`` without reading its body.
    PdfStreamError: If a comment ends before a line ending.

rš   Nz,Maximum number of leading comments reached: Ú.r›   )r_   rž   r.   r   rŸ   rm   )rV   r    re   Úcomment_counts   &$  r   Úskip_over_commentsr¥   "  sƒ   € ð& �+‰+�a‹.€CØ
‡K�K”�S“�	˜1ÔØ€MØ
�Œ+ØÒ Ô!7Ü#Ð&RÐSXÐRYÐYZÐ$[Ó\Ð\Ü˜&Ô!Ü! &Ó)ˆØ�‰�B˜ÔØ˜ÕŠñ r   Úlengthc                ó^   € V ^8„  d   QhR\         R\        \        ,          R\        R\        /# )r   rV   Úregexr¦   r   )rY   r   r[   r=   )r   s   "r   r   r   A  s-   € ÷ ,ñ ,¤
ð ,´7¼5µ>ð ,Ì3ð ,Ôafñ ,r   c                ó  € . p^ pRp^p V P                  V4      pV'       g   RP                  V4      # \        V4      pWH,           ;q’8¼  d   \        RV	 RV R24      hWW,           p
VP	                  V
4      pVP                  V4       Ve\   \        V4      pWL,
          VP                  4       ,           pV P                  WÔ,
          V,
          ^4       RP                  V4      RV # WH,          pVRR pVR8  g   Kõ  V^,          pEK  )a_  
Read until the regular expression pattern matched (ignore the match).
Treats EOF on the underlying stream as the end of the token to be matched.

Args:
    stream: The stream to read from.
    regex: The pattern to search for.
    length: The (approximated) maximum number of bytes to read before raising an exception.

Returns:
    The read bytes.

r   zRead stream length of z# exceeds maximum allowed length of r£   Ni    iðÿÿÿ)r_   Újoinr.   r   ÚsearchrN   r†   rž   )rV   r¨   r¦   ÚpartsÚtotal_lengthÚtailÚ
chunk_sizeÚtokenÚtoken_lengthÚcurrent_lengthÚcurrent_bufferÚsearch_matchÚoverlapÚactual_starts   $$$           r   Úread_until_regexr·   A  s  € ð €EØ€LØ€DØ€JØ
Ø—‘˜JÓ'ˆßØ—8‘8˜E“?Ð"Ü˜5“zˆØ*Õ9Ð9ˆNÔDÜ#Ø(¨Ð(8Ð8[Ð\bÐ[cÐcdÐeóð ð �ˆØ—|‘| NÓ3ˆØ�‰�UÔØÒ#Ü˜$“iˆGØ'Õ1°L×4FÑ4FÓ4HÕHˆLØ�K‰K˜Õ3°lÕBÀAÔFØ—8‘8˜E“? = LÐ1Ð1ØÕ$ˆð �S�Tˆ{ˆØ˜ÖØ˜1Õ‹Jr   c                ó<   € V ^8„  d   QhR\         R\        R\        /# )r   rV   Úto_readr   )ri   r=   r[   )r   s   "r   r   r   p  s"   € ÷ ñ Ô!1ð ¼Cð ÄEñ r   c                óÄ   € V P                  4       V8  d   \        R4      hV P                  V) \        4       V P	                  V4      pV P                  V) \        4       V# )zì
Given a stream at position X, read a block of size to_read ending at position X.

This changes the stream's position to the beginning of where the block was
read.

Args:
    stream:
    to_read:

Returns:
    The data which was read.

z!Could not read malformed PDF file)Útellr   rž   r   r_   )rV   r¹   r_   s   && r   Úread_block_backwardsr¼   p  sQ   € ð ‡{�{ƒ}�wÔÜÐ@ÓAÐAà
‡K�K��œ(Ô#Ø�;‰;�wÓ€Dà
‡K�K��œ(Ô#Ø€Kr   c                ó0   € V ^8„  d   QhR\         R\        /# rh   ©rY   r[   )r   s   "r   r   r   ‰  s   € ÷ 7(ñ 7(œzð 7(¬eñ 7(r   c                ód  € . pRpV P                  4       ^ 8X  d   \        \        4      h \        \        V P                  4       4      pV^ 8X  d   MÇ\        W4      p\        V4      ^,
          pV'       g)   V^ 8¼  d   WE,          R9  d   V^,          pK  V^ 8¼  d   RpV'       d;   VP                  WE^,           R 4       V^ 8¼  d   WE,          R9   d   V^,          pK  MVP                  V4       V^ 8¼  g   KÐ  V P                  V^,           \        4        RP                  VRRR1,          4      # )aÕ  
Given a byte stream with current position X, return the previous line.

All characters between the first CR/LF byte found before X
(or, the start of the file, if no such byte is found) and position X
After this call, the stream will be positioned one byte after the
first non-CRLF character found beyond the first CR/LF byte before X,
or, if no such byte is found, at the beginning of the stream.

Args:
    stream: StreamType:

Returns:
    The data which was read.

FTs   
Nr   r›   )r»   r   r   Úminr   r¼   r.   rN   rž   r   rª   )rV   Úline_contentÚ
found_crlfr¹   ÚblockÚidxs   &     r   Úread_previous_linerÅ   ‰  s  € ð" €LØ€JØ‡{�{ƒ}˜ÔÜÔ9Ó:Ð:Ø
ÜÔ)¨6¯;©;«=Ó9ˆØ�aŒ<Øô % VÓ5ˆÜ�%‹j˜1�nˆßð ˜”(˜u�z°Ô8Ø�q•’Ø�aŒxØ!�
ßð
 ×Ñ ¨A¥g iÐ 0Ô1à˜”(˜u�z¨WÔ4Ø�q•’øð ×Ñ Ô&Ø�!Ž8ð �K‰K˜˜a�¤Ô*Øà�8‰8�L¡ 2 Õ&Ó'Ð'r   c                ó<   € V ^8„  d   QhR\         R\         R\         /# )r   Úary   r   )ÚTransformationMatrixType)r   s   "r   r   r   Ã  s$   € ÷ ñ ÜðÜ$<ðäñr   c                 óh   a€ \         ;QJ d    . V3R  lV  4       F  NK  	  5# ! V3R  lV  4       4      # )c              3   ó¦   <a"  € T FE  o\         ;QJ d    . V3R  l\        S!   4       F  NK  	  5M! V3R  l\        S!   4       4      x € KG  	  R# 5i)c              3   ó\   <"  € T F!  p\        R  \        SV4       4       4      x € K#  	  R# 5i)c              3   ó\   "  € T F"  w  r\        V4      \        V4      ,          x € K$  	  R # 5irv   )Úfloat)rx   r3   Újs   &  r   rz   Ú6matrix_multiply.<locals>.<genexpr>.<genexpr>.<genexpr>Ç  s"   é € Ð@±-©$¨!”%˜“(œU 1›X×%Ò%³-ùs   ‚*,N)ÚsumÚzip)rx   ÚcolÚrows   & €r   rz   Ú,matrix_multiply.<locals>.<genexpr>.<genexpr>Ç  s%   øé € ÐTÉGÀSŒcÑ@´#°c¸3´-Ó@×@Ð@ËGùs   ƒ),N)ÚtuplerÑ   )rx   rÓ   ry   s   &@€r   rz   Ú"matrix_multiply.<locals>.<genexpr>Æ  s>   ùé € ð áˆC÷ 	ŒÔTÌCÐQRÊGÓT�‰ÔTÌCÐQRÊGÓT×TÐTÛùs
   „A”=A)rÕ   )rÇ   ry   s   &fr   Úmatrix_multiplyr×   Ã  s7   ø€ ÷ Œ5ô áó�5ð ˆ5ô áóó ð r   c                ó(   € V ^8„  d   QhR\         RR/# r–   r—   )r   s   "r   r   r   Ì  s   € ÷ 	ñ 	œ*ð 	¨ñ 	r   c                óX  € RpV P                  V) ^4       \        RR4      ;_uu_ 4       pVP                  V P                  V4      4       VP                  R4       VP                  V P                  V4      4       RRR4       V P                  V) ^4       R#   + '       g   i     L%; i)z5Create text file showing current location in context.iˆ  zpypdf_pdfLocation.txtÚwbs   HEREN)rž   ÚopenÚwriter_   )rV   ÚradiusÚ	output_fhs   &  r   Úmark_locationrß   Ì  s   € ð €FØ
‡K�K��˜ÔÜ	Ð% t×	,Ô	,°	Ø�‰˜Ÿ™ FÓ+Ô,Ø�‰˜Ô Ø�‰˜Ÿ™ FÓ+Ô,÷ 
-ð ‡K�K��˜Ö÷	 
-×	,ús   ªABÂB)	c                ó4   € V ^8„  d   QhR\         R\        RR/# )r   ÚmsgÚ
stacklevelr   N)r   r=   )r   s   "r   r   r   Ø  s&   € ÷ Bñ B”3ð B¤Cð B°ñ Br   c                 ó@   € \         P                  ! V \        VR 7       R# ))râ   N)ÚwarningsÚwarnÚDeprecationWarning)rá   râ   s   &&r   Ú	deprecaterç   Ø  s   € Ü‡M‚M�#Ô)°j×Ar   c                ó0   € V ^8„  d   QhR\         R\        /# )r   rá   r   ©r   r
   )r   s   "r   r   r   Ü  s   € ÷  ñ  ”Sð  œXñ  r   c                 ó   € \        V 4      hrv   )r   )rá   s   &r   Údeprecationrë   Ü  s   € Ü
˜3Ó
Ðr   c                ó@   € V ^8„  d   QhR\         R\         R\         RR/# )r   Úold_nameÚnew_nameÚ
removed_inr   NrK   )r   s   "r   r   r   à  s)   € ÷ ñ ¬ð ¼ð Ìð ÐQUñ r   c                ó0   € \        V  RV RV R2^4       R# )zFIssue a warning that a feature will be removed, but has a replacement.ú, is deprecated and will be removed in pypdf ú. Use ú	 instead.N©rç   ©rí   rî   rï   s   &&&r   Údeprecate_with_replacementrö   à  s'   € äØˆ*Ð@ÀÀÈFÐS[ÐR\Ð\eÐfØ	ör   c                óH   € V ^8„  d   QhR\         R\         R\         R\        /# )r   rí   rî   rï   r   ré   )r   s   "r   r   r   è  s)   € ÷ ñ ¬3ð ¼#ð Ì3ð ÔS[ñ r   c                ó.   € \        V  RV RV R24       R# )zMRaise an exception that a feature was already removed, but has a replacement.ú( is deprecated and was removed in pypdf rò   ró   N©rë   rõ   s   &&&r   Údeprecation_with_replacementrû   è  s"   € äØˆ*Ð<¸Z¸LÈÈxÈjÐXaÐbör   c                ó4   € V ^8„  d   QhR\         R\         RR/# )r   Únamerï   r   NrK   )r   s   "r   r   r   ï  s&   € ÷ Uñ U¤3ð U´Cð U¸Dñ Ur   c                ó*   € \        V  RV R2^4       R# )zCIssue a warning that a feature will be removed without replacement.rñ   r£   Nrô   ©rý   rï   s   &&r   Údeprecate_no_replacementr   ï  s   € ä��ÐBÀ:À,ÈaÐPÐRSÖTr   c                ó<   € V ^8„  d   QhR\         R\         R\        /# )r   rý   rï   r   ré   )r   s   "r   r   r   ô  s&   € ÷ Pñ P¤Sð P´cð P¼hñ Pr   c                ó(   € \        V  RV R24       R# )zJRaise an exception that a feature was already removed without replacement.rù   r£   Nrú   rÿ   s   &&r   Údeprecation_no_replacementr  ô  s   € ä�4�&Ð@ÀÀÈAÐNÖOr   c                ó@   € V ^8„  d   QhR\         R\         R\        RR/# ©r   Úmessager]   Úvaluesr   N©r   r	   )r   s   "r   r   r   ù  s(   € ÷ 1ñ 1œ#ð 1¬#ð 1¼ð 1Àñ 1r   c               ó®   € V'       d(   \         P                  ! V4      P                  W4       R# \         P                  ! V4      P                  V 4       R# )zÄ
Use this instead of logger.error directly.

That allows people to overwrite it more easily.

See the docs on when to use which:
https://pypdf.readthedocs.io/en/latest/user/suppress-warnings.html
N)ÚloggingÚ	getLoggerÚerror©r  r]   r  s   &$,r   Úlogger_errorr  ù  s9   € ÷ Ü×Ò˜&Ó!×'Ñ'¨Ö8ä×Ò˜&Ó!×'Ñ'¨Ö0r   c                ó@   € V ^8„  d   QhR\         R\         R\        RR/# r  r  )r   s   "r   r   r     s(   € ÷ 3ñ 3œCð 3¬Cð 3¼3ð 3À4ñ 3r   c               ó®   € V'       d(   \         P                  ! V4      P                  W4       R# \         P                  ! V4      P                  V 4       R# )aa  
Use this instead of logger.warning directly.

That allows people to overwrite it more easily.

## Exception, warnings.warn, logger_warning
- Exceptions should be used if the user should write code that deals with
  an error case, e.g. the PDF being completely broken.
- warnings.warn should be used if the user needs to fix their code, e.g.
  DeprecationWarnings
- logger_warning should be used if the user needs to know that an issue was
  handled by pypdf, e.g. a non-compliant PDF being read in a way that
  pypdf could apply a robustness fix to still read it. This applies mainly
  to strict=False mode.
N)r
  r  Úwarningr  s   &$,r   rb   rb     s;   € ÷  Ü×Ò˜&Ó!×)Ñ)¨'Ö:ô
 	×Ò˜&Ó!×)Ñ)¨'Ö2r   c          
      ó�   € V ^8„  d   QhR\         R\        \         \        3,          R\        \         \         3,          R\        RR/# )r   Ú	func_nameÚkwargsÚaliasesÚfailr   N)r   Údictr	   rZ   )r   s   "r   r   r   !  sD   € ÷  ñ  Üð Ü ¤¤c �Nð Ü59¼#¼s¸(µ^ð ÜKOð à	ñ r   c                ó&  € VP                  4        F|  w  rEWA9   g   K  V'       d   \        V RV R24      hWQ9   d   \        V  RV RV RV RV R2
4      hVP                  V4      W&   \        P
                  ! V RV R2\        ^R7       K~  	  R	# )
z‰
Helper function to deprecate arguments.

Args:
    func_name: Name of the function to be deprecated
    kwargs:
    aliases:
    fail:

z# is deprecated as an argument. Use z insteadz received both z and z as an argument. z is deprecated. Use ró   )r  Úcategoryrâ   N)Úitemsr   Ú	TypeErrorÚpoprä   rå   ræ   )r  r  r  r  Úold_termÚnew_terms   &&&&  r   Úrename_kwargsr  !  s¶   € ð &Ÿm™mžoÑˆØÖßÜ&Ø�jÐ CÀHÀ:ÈXÐVóð ð Ô!ÜØ �k °°
¸%À¸zð J$Ø$, :ð .Ø#˜* Ið/óð ð
  &Ÿz™z¨(Ó3ˆFÑÜ�MŠMà�jÐ CÀHÀ:ÈXÐVä+Ø÷ó .r   c                ó0   € V ^8„  d   QhR\         R\        /# )r   r[   r   )r=   r   )r   s   "r   r   r   D  s   € ÷ %ñ %¤ð %¬ñ %r   c                 ó„   € V R8  d   V  R2# V R8  d   V R,          R R2# V R8  d   V R,          R R2# V R,          R R2# )	é
   z Bytez.1fz kBz MBz GBiè  i@B i Êš;r„   )r[   s   &r   Ú_human_readable_bytesr#  D  s_   € Øˆu„}Ø�˜ˆÐØˆu„}Ø˜%•- Ð$ CÐ(Ð(Øˆu„}Ø˜%•- Ð$ CÐ(Ð(Ø�e�m˜CÐ  Ð$Ð$r   c                ó0   € V ^8„  d   QhR\         R\        /# rh   )rY   r=   )r   s   "r   r   r   N  s   € ÷ 	ñ 	œJð 	¬3ñ 	r   c                 ól  € \        V R 4      '       d>   V P                  4       ;_uu_ 4       p\        \        VP                  4      uuRRR4       # V P                  4       pV P                  ^ \        P                  4       V P                  4       pV P                  V4       V#   + '       g   i     Lc; i)Ú	getbufferN)	Úhasattrr&  r   r=   Únbytesr»   rž   ÚosÚSEEK_END)rV   ÚviewÚpositionÚsizes   &   r   Úget_stream_sizer.  N  sz   € Üˆv�{×#Ò#Ø×Ñ×Ô 4Üœ˜TŸ[™[Ó)÷  Òð �{‰{‹}€HØ
‡K�K�”2—;‘;ÔØ�;‰;‹=€DØ
‡K�K�ÔØ€K÷  ×ús   «B#Â#B3	c                ó0   € V ^8„  d   QhR\         R\        /# rh   r¾   )r   s   "r   r   r   Z  s   € ÷ 	ñ 	œJð 	¬5ñ 	r   c                 ól  € \        V R 4      '       d/   V P                  4       ;_uu_ 4       p\        V4      uuRRR4       # V P                  4       pV P	                  ^ \
        P                  4       V P                  R4      pV P	                  V4       \        \        V4      #   + '       g   i     Lr; i)r&  Nr›   )	r'  r&  r[   r»   rž   r)  ÚSEEK_SETr_   r   )rV   r+  r,  Údatas   &   r   Úget_stream_datar3  Z  s}   € Üˆv�{×#Ò#Ø×Ñ×Ô 4Ü˜“;÷  Òð �{‰{‹}€HØ
‡K�K�”2—;‘;ÔØ�;‰;�r‹?€DØ
‡K�K�ÔÜ”�tÓÐ÷  ×ús   «B#Â#B3	c                   ób   a € ] tR tRt o RtRV 3R lR lltRV 3R lR lltV 3R lR	 ltR
tV t	R# )Úclasspropertyi‰  z{
Decorator that converts a method with a single cls argument into a property
that can be accessed directly from the class.
Nc                ó   <€ V ^8„  d   QhRR/# )r   r   Nr„   )r   Ú__classdict__s   "€r   r   Úclassproperty.__annotate__�  s   ø€ ÷ ñ  tñ r   c                ó   € Wn         R # rv   ©Úfget©ÚselfÚmethods   &&r   Ú__init__Úclassproperty.__init__�  s   € ØŽ	r   c                ó    <€ V ^8„  d   QhRS[ /# ©r   r   )r	   )r   r7  s   "€r   r   r8  ’  s   ø€ ÷ ñ ©Sñ r   c                ó$   € V P                  V4      # rv   r:  )r=  ÚinstanceÚclss   &&&r   Ú__get__Úclassproperty.__get__’  s   € Ø�y‰y˜‹~Ðr   c                ó    <€ V ^8„  d   QhRS[ /# rB  r   )r   r7  s   "€r   r   r8  •  s   ø€ ÷ ñ ¡ñ r   c                ó   € Wn         V # rv   r:  r<  s   &&r   ÚgetterÚclassproperty.getter•  s   € ØŒ	Øˆr   r:  rv   )
rc   Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r?  rF  rJ  Ú__static_attributes__Ú__classdictcell__©r7  s   @r   r5  r5  ‰  s(   ø‡ € ñ÷
ò ÷ò ÷ö r   r5  c                   ón   a € ] tR tRt o ^RIHt Rt Rt Rt V 3R lR lt	V 3R lR	 lt
V 3R
 ltRtV tR# )ÚFileiš  )ÚIndirectObjectr$   r   Nc                ó    <€ V ^8„  d   QhRS[ /# rB  rK   )r   r7  s   "€r   r   ÚFile.__annotate__«  s   ø€ ÷ mñ m™ñ mr   c           	     óŒ   € V P                   P                   R V P                   R\        \	        V P
                  4      4       R2# )z(name=z, data: Ú))Ú	__class__rc   rý   r#  r.   r2  ©r=  s   &r   Ú__str__ÚFile.__str__«  s?   € Ø—.‘.×)Ñ)Ð*¨&°·±°¸8ÔDYÔZ]Ð^b×^gÑ^gÓZhÓDiÐCjÐjkÐlÐlr   c                ó    <€ V ^8„  d   QhRS[ /# rB  rK   )r   r7  s   "€r   r   rW  ®  s   ø€ ÷ Cñ C™#ñ Cr   c                ód   € V P                  4       R R R\        V P                  4       R2,           # )Nz, hash: rY  r›   )r\  Úhashr2  r[  s   &r   Ú__repr__ÚFile.__repr__®  s,   € Ø�|‰|‹~˜c˜rÐ" x´°T·Y±Y³Ð/@ÀÐ%BÕBÐBr   c                óN   <€ V ^8„  d   Qh/ S[ ;R&   S[;R&   S[S[,          ;R&   # )r   rý   r2  Úindirect_reference)r   r[   r   rU  )r   r7  s   "€r   r   rW  š  s0   ø‡ ‚ ñ �Nñ	 ñ Ññ ñ !¡Õ0Ñ7ò r   r„   )rc   rL  rM  rN  ÚgenericrU  rý   r2  rd  r\  ra  Ú__annotate_func__rP  rQ  rR  s   @r   rT  rT  š  sJ   ø‡ € å'à€Dðð €Dðð 48Ðð÷mð m÷Cð C÷) ƒ r   rT  c                   óž   a € ] tR tRt o ]P
                  ! R4      tV 3R lR ltV 3R lR ltV 3R lR lt	V 3R	 lR
 lt
V 3R lR ltRtV tR# )ÚVersioni²  z^(\d+)(.*)$c                ó$   <€ V ^8„  d   QhRS[ RR/# )r   Úversion_strr   NrK   )r   r7  s   "€r   r   ÚVersion.__annotate__¶  s   ø€ ÷ ;ñ ;¡Cð ;¨Dñ ;r   c                ó>   € Wn         V P                  V4      V n        R # rv   )rj  Ú_parse_versionÚ
components)r=  rj  s   &&r   r?  ÚVersion.__init__¶  s   € Ø&ÔØ×-Ñ-¨kÓ:ˆŽr   c                óL   <€ V ^8„  d   QhRS[ RS[S[S[S[ 3,          ,          /# )r   rj  r   )r   ÚlistrÕ   r=   )r   r7  s   "€r   r   rk  º  s(   ø€ ÷ !ñ !©#ð !±$±u¹SÁ#¸XµÕ2Gñ !r   c                ó2  € VP                  R 4      p. pV F}  p\        P                  P                  V4      pV'       g   VP	                  ^ V34       K?  VP                  ^4      pVP                  ^4      pVP	                  \        V4      V34       K  	  V# )r£   )Úsplitrh  ÚCOMPONENT_PATTERNÚmatchrN   Úgroupr=   )r=  rj  rn  Úparsed_componentsÚ	componentru  Úinteger_prefixÚsuffixs   &&      r   rm  ÚVersion._parse_versionº  sŠ   € Ø ×&Ñ& sÓ+ˆ
ØÐÛ#ˆIÜ×-Ñ-×3Ñ3°IÓ>ˆEßØ!×(Ñ(¨!¨Y¨Ô8ÙØ"Ÿ[™[¨›^ˆNØ—[‘[ “^ˆFØ×$Ñ$¤c¨.Ó&9¸6Ð%BÖCñ $ð !Ð r   c                ó&   <€ V ^8„  d   QhRS[ RS[/# ©r   Úotherr   )ÚobjectrZ   )r   r7  s   "€r   r   rk  Ç  s   ø€ ÷ 3ñ 3™Fð 3¡tñ 3r   c                ód   € \        V\        4      '       g   R # V P                  VP                  8H  # ©F)Ú
isinstancerh  rn  )r=  r~  s   &&r   Ú__eq__ÚVersion.__eq__Ç  s'   € Ü˜%¤×)Ò)ÙØ�‰ %×"2Ñ"2Ñ2Ð2r   c                ó    <€ V ^8„  d   QhRS[ /# rB  )r=   )r   r7  s   "€r   r   rk  Ì  s   ø€ ÷ >ñ >™#ñ >r   c                óV   € \        V P                  \        V P                  4      34      # rv   )r`  rZ  rÕ   rn  r[  s   &r   Ú__hash__ÚVersion.__hash__Ì  s   € ä�T—^‘^¤U¨4¯?©?Ó%;Ð<Ó=Ð=r   c                ó&   <€ V ^8„  d   QhRS[ RS[/# r}  )r	   rZ   )r   r7  s   "€r   r   rk  Ð  s   ø€ ÷ <ñ <™Cð <¡Dñ <r   c                ó\  € \        V\        4      '       g   \        R \        V4       24      h\	        V P
                  VP
                  4       F1  w  r#Vw  rEVw  rgWF8  d    R# WF8”  d    R# WW8  d    R# WW8”  g   K0   R# 	  \        V P
                  4      \        VP
                  4      8  # )z#Version cannot be compared against TF)r‚  rh  r1   ÚtyperÑ   rn  r.   )r=  r~  Úself_componentÚother_componentÚ
self_valueÚself_suffixÚother_valueÚother_suffixs   &&      r   Ú__lt__ÚVersion.__lt__Ð  sš   € Ü˜%¤×)Ò)ÜÐBÄ4ÈÃ;À-ÐPÓQÐQä/2°4·?±?ÀE×DTÑDTÖ/UÑ+ˆNØ&4Ñ#ˆJØ(7Ñ%ˆKàÔ'ÚØÔ'ÚàÔ)ÚØÖ)Úñ 0Vô �4—?‘?Ó#¤c¨%×*:Ñ*:Ó&;Ñ;Ð;r   )rn  rj  N)rc   rL  rM  rN  ÚreÚcompilert  r?  rm  rƒ  r‡  r’  rP  rQ  rR  s   @r   rh  rh  ²  sF   ø‡ € àŸ
š
 >Ó2Ð÷;ð ;÷!ð !÷3ð 3÷
>ð >÷<ö <r   rh  c                   ó8   a € ] tR tRt o Rt^ tRtV 3R ltRtV t	R# )Ú_TraversalStateiå  z=Sometimes we need mutable objects which just count something.Fc                ó2   <€ V ^8„  d   Qh/ S[ ;R&   S[;R&   # )r   Úentry_countÚ
has_logged)r=   rZ   )r   r7  s   "€r   r   Ú_TraversalState.__annotate__å  s   ø‡ ‚ ñ Ññ ñ Ñò	 r   r„   N)
rc   rL  rM  rN  rO  r™  rš  rf  rP  rQ  rR  s   @r   r—  r—  å  s   ø‡ € áGØ€KØ€J÷	 ƒ r   r—  c                óh   € V ^8„  d   Qh/ ^ \         9   d
   \        ;R&   ^\         9   d
   \        ;R&   # )r   rÈ   ÚCompressedTransformationMatrix)Ú__conditional_annotations__r   )r   s   "r   r   r      s8   € × (Ñ (÷Tò œ)ñ ñU )÷Zò ¤	ñ ò[ )r   )é   r"  )rŸ  é   )ó    ó   	rœ   ó   r�   ó    )NF))Ú Ú/)Ú:Ú@)u   Ù u   Ù­)u   Û°u   Û¹)u   â€€u   â�¯)u   â‚ u   â‡¿)r$   ))u   Ö�u   à£¿)u   ï¬�u   ï·¿)u   ï¹°u   ï»¿)r$   r$   )rŸ  r�  )Trž  rO  Ú
__author__Ú__author_email__Ú	functoolsr
  r)  r”  Úsysrä   Údataclassesr   r   r   Úior   r   r   Útypingr   r	   r
   r   r   r   Úversion_infor   Útyping_extensionsr   Úerrorsr   r   r   r   rÕ   rÍ   rÈ   r�  rY   r[   ri   r   ÚStrByteTyper6   rG   rR   ra   rª   rw   ÚWHITESPACES_AS_REGEXPrf   rm   rq   r}   r‹   rŒ   r“   r”   rŸ   r¥   Úmaxsizer·   r¼   rÅ   r×   rß   rç   rë   rö   rû   r   r  r  rb   r  r#  r.  r3  r5  rT  Útotal_orderingrh  r—  r   )rž  s   @r   Ú<module>r·     sC  øðö8 )Ø€
Ø/Ð ã Û Û 	Û 	Û 
Û Ý !ß 'Ý "Ý Ý ÷÷ ð ×Ñ�BÕ˜7Ô"æ å+à×Ñ�wÔÞå&÷ó ð ',Ø	ˆ%�˜Ð
Õ  e¨U°EÐ&9Õ :¸EÀ%ÈÐPUÐBUÕ<VÐVõ'Ð ó ð -2Ø	ˆ5�%˜  uÐ,õ-Ð ó ð ��W€
Ø�e•9Ð Ø�C˜�OÕ$€õ9õ@õ2-ð& :€Ø—x‘x Ó,Ð ØÐ3Õ3°dÕ:Ð ÷õBõ"õ(9ðÐ ÷QðÐ ÷bõAðÀT÷ ð>,ÐQT×Q\ÑQ\÷ ,õ^õ27(õtõ	÷Bõ õõõUõ
Põ
1õ3÷2 õF%õ	õ	÷^ñ ð" ÷Cð Có ðCð. ×Ñ÷/<ð /<ó ð/<ðd ÷ð ó òr   