
    NgN                         d e de fdZdS )datareturnc                 z   d}d}|t          |           k     r| |         }|dk    rn|dk    rI|dk     rCt          |dz   |dz   |dz   z             D ]}|t          | |         f          z  }|dz   |dz   z   }|dk    r,t          | |dz            f          d|z
  z  }||z  }|dz   dz   }|t          |           k     |S )a  
    RunLength decoder (Adobe version) implementation based on PDF Reference
    version 1.4 section 3.3.4:
        The RunLengthDecode filter decodes data that has been encoded in a
        simple byte-oriented format based on run length. The encoded data
        is a sequence of runs, where each run consists of a length byte
        followed by 1 to 128 bytes of data. If the length byte is in the
        range 0 to 127, the following length + 1 (1 to 128) bytes are
        copied literally during decompression. If length is in the range
        129 to 255, the following single byte is to be copied 257 - length
        (2 to 128) times during decompression. A length value of 128
        denotes EOD.
                  i  )lenrangebytes)r   decodedilengthjruns         N/var/www/html/ai-engine/env/lib/python3.11/site-packages/pdfminer/runlength.pyrldecoder   	   s     G	A
c$ii--aS==Q;;6C<<1q51q5VaZ"899 - -5$q',,,Q6A:&AC<<a!e''3<8CsNGQ!A c$ii-- Nr   N)r   r    r   r   <module>r      s1   5 U      r   