
    &Th                         d dl mZmZ d dlmZ d dlmZ d Z G d dej                        Z
 ej                  e
j                  e
e        ej                  e
j                  d       y)	   )BmpImagePluginImage)i16le)i32lec                     | d d dk(  S )N   s       )prefixs    Z/home/stella.sw7ft.com/public_html/venv/lib/python3.12/site-packages/PIL/CurImagePlugin.py_acceptr      s    "1:$$    c                       e Zd ZdZdZd Zy)CurImageFileCURzWindows Cursorc                 X   | j                   j                         }| j                   j                  d      }t        |      sd}t	        |      d}t        t        |d            D ]<  }| j                   j                  d      }|s|}#|d   |d   kD  s/|d   |d   kD  s;|}> |sd}t        |      | j                  t        |d	      |z          | j                  d   | j                  d   d
z  f| _        | j                  d   \  }}}}	|d| j                  z   ||	f| j                  d<   y )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tile)
selfoffsetsmsgmideoas
             r   _openzCurImageFile._open&   s    GGLLOqz"Cc"" s1ay! 	AR A1!1!	 )CC.  	SBZ&() YYq\499Q<1#44
YYq\
1a&499,a2		!r   N)__name__
__module____qualname__formatformat_descriptionr-   r	   r   r   r   r   "   s    F)r   r   z.curN) r   r   _binaryr   r   r   r   r   BmpImageFiler   register_openr1   register_extensionr	   r   r   <module>r8      s\   $ $ ! !%!>.. !N   L''w ?   ,,f 5r   