
    h                        S SK Jr  SSKJrJrJr  SSKJr  SSKJ	r
  SS jr " S S\R                  5      r\R                  " \R                  \\5        \R                   " \R                  S	5        g
)    )annotations   )BmpImagePluginImage	ImageFile)i16le)i32lec                $    U R                  S5      $ )Ns      )
startswith)prefixs    D/var/www/html/env/lib/python3.13/site-packages/PIL/CurImagePlugin.py_acceptr      s    [))    c                  &    \ rS rSrSrSrSS jrSrg)CurImageFile$   CURzWindows Cursorc                   U R                   R                  5       nU R                   R                  S5      n[        U5      (       d  Sn[	        U5      eSn[        [        US5      5       HG  nU R                   R                  S5      nU(       d  UnM)  US   US   :  d  M7  US   US   :  d  ME  UnMI     U(       d  Sn[        U5      eU R                  [        US	5      U-   5        U R                  S   U R                  S   S
-  4U l        U R                  S   u  pgp[        R                  " USU R                  -   X5      U R                  S'   g )N   znot a CUR filer         r   r   zNo cursors were found      )r   r   )fptellreadr   SyntaxErrorrangei16	TypeError_bitmapi32size_sizetiler   _Tile)
selfoffsetsmsgmideoas
             r   _openCurImageFile._open(   s    GGLLOqzz"Cc"" s1ay!AR A1!1! " )CC.  	SBZ&() YYq\499Q<1#44
YYq\
a q&499*<aC		!r   )r$   N)returnNone)__name__
__module____qualname____firstlineno__formatformat_descriptionr1   __static_attributes__ r   r   r   r   $   s    F)Dr   r   z.curN)r   bytesr3   bool)
__future__r    r   r   r   _binaryr   r   r	   r"   r   BmpImageFiler   register_openr9   register_extensionr<   r   r   <module>rE      s`   $ # . . ! !*D>.. DJ   L''w ?   ,,f 5r   