
    Cj                         S r SSKrSSKrSSKJr  SS/0r/ SQrS\S.S	 jrS
S\S.S jr	SS\4S jr
S\4S jrS\4S jrS\4S jrg)z#
Thin wrappers around `itertools`.
    N   )tqdmzgithub.com/	casperdcl)chainproductpermutationscombinationscombinations_with_replacementbatched)total
tqdm_classc                     U c   [        [        [        U5      5      n U" [
        R                  " U6 4SU 0UD6$ ! [        [        4 a     N.f = f)z Equivalent of `itertools.chain`.r   )summaplen	TypeErrorAttributeError	itertoolsr   )r   r   	iterableskwargss       h/home/rurouni/.local/share/pipx/venvs/strix-agent/lib/python3.13/site-packages/tqdm/contrib/itertools.pyr   r      sV    }	C+,E iooy1II&II >* 		s   : AA   )repeatr   r   c              /      #    Uc3   [        [        [        U5      5      n[        R                  " U5      U -  nU" [        R                  " USU 064SU0UD6 Sh  vN   g! [
        [        4 a     N:f = f N7f)z"Equivalent of `itertools.product`.Nr   r   )	listr   r   mathprodr   r   r   r   )r   r   r   r   r   lenss         r   r   r      s|     }	.C+,D IIdOv-E)++YFvF^e^W]^^^	 >* 		 _s3   A9A! ;A9A7A9!A41A93A44A9c                     Uc2   [        U 5      nUc  UOUnX:  a  SnO[        R                  " XQ5      n U" [
        R                  " X5      4SU0UD6$ ! [        [        4 a     N1f = f)z'Equivalent of `itertools.permutations`.r   r   )r   r   permr   r   r   r   iterablerr   r   r   ns         r   r   r   $   sr    }		(HA YAAu		!i,,X9QQ&QQ >* 		s   A A('A(c                     Uc+   [        U 5      nX:  a  SnO[        R                  " XQ5      n U" [
        R                  " X5      4SU0UD6$ ! [        [        4 a     N1f = f)z'Equivalent of `itertools.combinations`.r   r   )r   r   combr   r   r   r	   r!   s         r   r	   r	   4   sg    }	(HA u		!i,,X9QQ&QQ >* 		s   A A! A!c                    UcH   [        U 5      nSn[        XQ-   S-
  US-
  S5       H  nX&-  nM	     [        SUS-   5       H  nX&-  nM	     U" [        R
                  " X5      4SU0UD6$ ! [        [        4 a     N1f = f)z8Equivalent of `itertools.combinations_with_replacement`.r   r   )r   ranger   r   r   r
   )r"   r#   r   r   r   r$   is          r   r
   r
   C   s    }		HA E13q5!A#r*
 +1ac] #i==hJbRWb[abb >* 		s   A+ +A>=A>c                     Uc   [        U 5      nU" [        R                  " X5      4UUb
  X!-   S-
  U-  OSS.UD6$ ! [        [        4 a     N?f = f)z"Equivalent of `itertools.batched`.Nr   )
unit_scaler   )r   r   r   r   r   )r"   r$   r   r   r   s        r   r   r   S   sn    }	ME i''4  050AUWQY1,t     >* 		s   = AA)__doc__r   r   autor   	tqdm_auto
__author____all__r   r   r   r	   r
   r        r   <module>r4      sz      $k]+
d !Y J  ! 	_ ") R  %)Y R 6:i c   $	 	 r3   