+
    UBi0                       ^ RI Ht ^ RIt^RIHtHtHt ^RIHt ]P                  ! R4      t
R R lt ! R R	]P
                  4      t ! R
 R]P                  4      t]P                  ! ]P                   ]]4       ]P"                  ! R]4       ]P$                  ! ]P                   R4       ]P&                  ! ]P                   R4       R# )    )annotationsN)Image	ImageFileImagePalette)o8s$   "([0-9]*) ([0-9]*) ([0-9]*) ([0-9]*)c                    V ^8  d   QhRRRR/# )   prefixbytesreturnbool )formats   "7/usr/lib/python3.14/site-packages/PIL/XpmImagePlugin.py__annotate__r      s     + +E +d +    c                $    V P                  R 4      # )s	   /* XPM */)
startswith)r
   s   &r   _acceptr      s    \**r   c                  6    ] tR t^#tRtRtR R ltR R ltRtR# )	XpmImageFileXPMzX11 Pixel Mapc                   V ^8  d   QhRR/# )r	   r   Noner   )r   s   "r   r   XpmImageFile.__annotate__'   s     AW AWt AWr   c                	   V P                   f   Q h\        V P                   P                  ^	4      4      '       g   Rp\        V4      h V P                   P	                  4       pV'       g   Rp\        V4      h\
        P                  V4      pV'       g   KO   \        TP                  ^4      4      \        TP                  ^4      4      3T n	        \        TP                  ^4      4      p\        TP                  ^4      4      p/ p\        T4       EF6  pT P                   P	                  4       P                  4       pT^T^,            pY%^,           R P                  4       p	\        ^ \        T	4      ^4       F  p
Y,          R8X  g   K  Y^,           ,          pTR8X  d   YP                  R&   MTP                  R4      '       de   \        TR,          ^4      p\!        T^,	          ^,          4      \!        T^,	          ^,          4      ,           \!        T^,          4      ,           Yh&   MRp\#        T4      h EK*  	  Rp\#        T4      h	  TR	8  d   R
T n        YV3pM[RT n        \&        P(                  ! R
RP+                  TP-                  4       4      4      T n        T\1        TP3                  4       4      3p\4        P6                  ! RRT P8                  ,           T P                   P;                  4       T4      .T n        R # )Nznot an XPM filezbroken XPM file   cs   Nonetransparency   #:   NNzcannot read this XPM file   RGBPr   xpm)r   r   )fpr   readSyntaxErrorreadlinexpm_headmatchintgroup_sizerangerstripsplitleninfor   r   
ValueError_moder   rawjoinvaluespalettetuplekeysr   _Tilesizetelltile)selfmsglinempalette_lengthbppr9   _csirgbrgb_intargss   &             r   _openXpmImageFile._open'   s]   ww"""tww||A''#Cc"" 77##%D'!#&&t$Aq_c!''!*o5
QWWQZ!''!*o
 ~&A77##%,,.DQq!A1Wr"((*A1c!fa(44<E(Cg~45		.1--"%c"gr"2245 'Q,#!567 3/0  
 :(o-# )* 2 o%9 '> CDJ>DDJ'++E388GNN<L3MNDLw||~./D__UFTYY,>PTUV	r   c                    V ^8  d   QhRRRR/# )r	   
read_bytesr,   r   r   r   )r   s   "r   r   r   j   s     	 	C 	E 	r   c                	    V P                   w  r#V P                  f   Q h\        V4       Uu. uF5  q@P                  P                  4       ^V^,            P	                  V4      NK7  	  ppRP                  V4      # u upi )Nr   )r=   r&   r/   r)   ljustr7   )r@   rP   xsizeysizerI   rH   s   &&    r   	load_readXpmImageFile.load_readj   sl     yyww"""EJ5\R\WWEAI.44U;\Rxx{ Ss   ;A:)r5   r.   r9   r?   N)	__name__
__module____qualname____firstlineno__r   format_descriptionrM   rU   __static_attributes__r   r   r   r   r   #   s    F(AWF	 	r   r   c                  &    ] tR t^vtRtR R ltRtR# )
XpmDecoderTc                    V ^8  d   QhRRRR/# )r	   bufferz$bytes | Image.SupportsArrayInterfacer   ztuple[int, int]r   )r   s   "r   r   XpmDecoder.__annotate__y   s      A o r   c                	   V P                   f   Q h\        4       pV P                  w  r4V P                  P                  V P                  P
                  ,          pV P                  R8X  d
   V^,          pRp\        V4      V8  d   V P                   P                  4       pV'       g   MVP                  4       R8X  d   V'       g   RpKT  RP                  VP                  R4      ^R 4      p\        ^ \        V4      V4       FP  pWxW,            p	V P                  R8X  d   W$V	,          ,          pK/  V\        VP                  V	4      4      ,          pKR  	  K  V P                  \!        V4      4       R# )Nr"   Fs   /* pixels */T   ")rd   r   )fd	bytearrayrL   staterS   rT   moder2   r)   r0   r7   r1   r/   r   index
set_as_rawr   )
r@   r`   datarE   r9   dest_lengthpixel_headerrB   rI   keys
   &&        r   decodeXpmDecoder.decodey   s!   ww"""{yyjj&&)9)99991K$i+%77##%D{{}/#99TZZ-a34D1c$i-qw'99%CL(DBw}}S122D . 	d$r   r   N)rW   rX   rY   rZ   	_pulls_fdro   r\   r   r   r   r^   r^   v   s    I r   r^   r$   z.xpmz	image/xpm)
__future__r   re r   r   r   _binaryr   compiler*   r   r   	PyDecoderr^   register_openr   register_decoderregister_extensionregister_mimer   r   r   <module>r|      s     # 	 , ,  ::=>+P9&& Pf$$ D   L''w ?   uj )   ,,f 5   L'' 5r   