Mc@s8dZddlmZmZddlmZedZiBd^d6d_d 6d`d 6dad 6dbd6dcd6ddd6ded6dfd6dgd6dhd6did6djd6dkd6dld6dmd6dnd6dod 6dpd!6dqd"6drd$6dsd%6dtd'6dud(6dvd)6dwd*6dxd+6dyd,6dzd-6d{d.6d|d/6d}d06d~d16dd26dd36dd46dd56dd66dd76dd96dd;6dd>6dd?6dd@6ddA6ddB6ddC6ddE6ddF6ddG6ddI6ddJ6ddK6ddM6ddN6ddO6ddP6ddQ6ddR6ddS6ddT6ddU6ddV6ddW6ddX6ddY6ZdZdZe fd[YZ ed\Z d]S(sPlural form definitions.i(tdefault_localetLocale(t itemgettertLC_CTYPEis(n != 1)tafisM(n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n>=3 && n<=10 ? 3 : n>=11 && n<=99 ? 4 : 5)tartbgtbnit0tbotcaisR(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)tcstcvis/(n==1 ? 1 : n==2 ? 2 : n==3 ? 3 : n==6 ? 4 : 0)tcytdatdetdzteltenteotestetteutfatfis(n > 1)tfrtfurs(n==1 ? 0 : n==2 ? 1 : 2)tgatglthathethithrthuthytistittjatkatkgtkmtkotkutlosG(n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n%100<10 || n%100>=20) ? 1 : 2)tlts+(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : 2)tlvisQ(n==1 ? 0 : n==0 || ( n%100>1 && n%100<11) ? 1 : (n%100>10 && n%100<20 ) ? 2 : 3)tmttnbtnltnntnotpasB(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)tpltpttpt_BRs8(n==1 ? 0 : (n==0 || (n%100 > 0 && n%100 < 20)) ? 1 : 2)trotrutsks<(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3)tsltsrtsttsvtthttrtuktvetvitxhtzh_CNtzh_HKtzh_TWt _PluralTuplecBsbeZdZd ZeedddZeedddZedddZdZ RS( s A tuple with plural information.itdocs. The number of plurals used by the locale.is. The plural expression used by the locale.cCsd|S(Nsnpurals=%s; plural=%s((tx((s:/usr/lib/python2.7/site-packages/babel/messages/plurals.pytss9 The plural expression used by the catalog or locale.cCs|jS(N(t plural_forms(tself((s:/usr/lib/python2.7/site-packages/babel/messages/plurals.pyt__str__s(( t__name__t __module__t__doc__t __slots__tpropertyRt num_pluralst plural_exprRKRM(((s:/usr/lib/python2.7/site-packages/babel/messages/plurals.pyRGs    cCsltj|}ytt|}Wn<tk rayt|j}Wqbtk r]t}qbXnXt|S(sA tuple with the information catalogs need to perform proper pluralization. The first item of the tuple is the number of plural forms, the second the plural expression. >>> get_plural(locale='en') (2, '(n != 1)') >>> get_plural(locale='ga') (3, '(n==1 ? 0 : n==2 ? 1 : 2)') The object returned is a special tuple with additional members: >>> tup = get_plural("ja") >>> tup.num_plurals 1 >>> tup.plural_expr '0' >>> tup.plural_forms 'npurals=1; plural=0' Converting the tuple into a string prints the plural forms for a gettext catalog: >>> str(tup) 'npurals=1; plural=0' (RtparsetPLURALStstrtKeyErrortlanguagetDEFAULT_PLURALRG(tlocalettup((s:/usr/lib/python2.7/site-packages/babel/messages/plurals.pyt get_plurals  N(is(n != 1)(isM(n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n>=3 && n<=10 ? 3 : n>=11 && n<=99 ? 4 : 5)(is(n != 1)(is(n != 1)(iR(is(n != 1)(isR(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)(iR(is/(n==1 ? 1 : n==2 ? 2 : n==3 ? 3 : n==6 ? 4 : 0)(is(n != 1)(is(n != 1)(iR(is(n != 1)(is(n != 1)(is(n != 1)(is(n != 1)(is(n != 1)(is(n != 1)(iR(is(n != 1)(is(n > 1)(is(n > 1)(is(n==1 ? 0 : n==2 ? 1 : 2)(is(n != 1)(is(n != 1)(is(n != 1)(is(n != 1)(isR(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)(iR(iR(is(n != 1)(is(n != 1)(iR(iR(is(n != 1)(iR(iR(is(n != 1)(iR(isG(n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n%100<10 || n%100>=20) ? 1 : 2)(is+(n%10==1 && n%100!=11 ? 0 : n != 0 ? 1 : 2)(isQ(n==1 ? 0 : n==0 || ( n%100>1 && n%100<11) ? 1 : (n%100>10 && n%100<20 ) ? 2 : 3)(is(n != 1)(is(n != 1)(is(n != 1)(is(n != 1)(is(n != 1)(isB(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)(is(n != 1)(is(n > 1)(is8(n==1 ? 0 : (n==0 || (n%100 > 0 && n%100 < 20)) ? 1 : 2)(isR(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)(isR(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)(is<(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3)(isR(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)(is(n != 1)(is(n != 1)(iR(iR(isR(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)(is(n != 1)(iR(is(n != 1)(iR(iR(iR(is(n != 1)( RPt babel.coreRRt babel.utilRRRVRZttupleRGR](((s:/usr/lib/python2.7/site-packages/babel/messages/plurals.pyts