ÿØÿà JFIF    ÿÛ „ !.%+&8&+/1555$;@;4?.451 4,$,44444444444414444444444444444444444444444444444444ÿÀ  á á" ÿÄ     ÿÄ ?    !1AQaq"2‘¡±ÁðBRbrÑá#‚’¢²3S CñÿÄ   ÿÄ !    !1QAa‘2ÿÚ   ? 5˜Z¯V¦cø)›t/? z¨±>Õ5€¶‹Á¤·¼z¼Ü¬+ñ®v¤¨_ˆR­BFn©—˜ý®ç̝P8gýt·ÉSTŦˆìät?þé¼íìN/Þa)ì–í6ô… Ï¿øÃj´¿KÇü]ÿ ªô¹-eKànëÕHTx}ýSÜ›ÿ ”7Ø×&µ<¦  ¥ÑO¶[Ù¯ä¨ÞÃÿ PZ-¬;#õ|•oaÿ ©CìÞz3˜öː/¤­ñTûIØ}š^ mÓ%ªxˆ¥ÉŸu=Z+ISe¿45™¼u;ú&WØ÷€æßQ™®{|íx*TC“#ZŠìZ§²‹ 6pv…³¿¡äª*áZÐ%ÒOáˆo"x«OHk w±æ+¬V(kMúŸ5Vö«$ ÁrÏbàb57/luR ¸ÑÛj Òµì`Мq­û žICÀÊ•©4€Âcà¨Ï€O´<èÐ:›ù(Ë^L8þ‘ÍÌ#¸Ð_Ì©ÙK(Öz 4¬û+¸;ü’V’84‘¬ÃŽ:[â‡ÔÌáõp¢~§ªlæ£ö{®G>J¼"°‡7¯ÆÉèßû ‹É‹§ÁòÃýâßî ^ƾÙõ‹×óH#«LP½ïX=xÑÍ$|W?•~• îëÔ©ª‹ {ÝT…Kÿ ”hûâá)J*ö˜–ÔU;iÇ€/ ÆþjóZ\ýwØ=Ìm ºèËL9 ýèÆð/¨’¥öo=nË.%Îì ŽÕ¯È|{Oj²ƒE6e/ßdÄõ²Ìâ1O®ò×TsəԸhOMýíMˆ¿¼H˜l²,7Â¥#MF/Úf°Ö½± ¸–dr‹NýÊ íjqx{œÉ ä-È ¦ øÄër¨q°ð †nцýÑÄÆ’mä…n<0È™;ÁÝá¯ÁZƒ7FÀmì­ É&9ˆîéi¶ùN§Y• ÃZãAâ?•‡©‰ , ó¾IŸŠc1 4â&y­&pŠ­6;M À 0¹qç»p.á …ŸÅáK@%6·y6ƒ‰3?”úºŽ‰éX5ªPT §µ!=Mž«Ú½‹ÅgÂSâÉaþÓoö–¯ÁÔìR>5éÿ üs¶ÆUcÌ kÇR ]ÿ ù¬¼«VŽ;Â|‡~¢¦”ÏŰæ {L™Õ°Óv¹ò¸írޡעCÃ!íVÕ {¶»sŒNPg/ "uÕbkm²“$ďå¿é¹§°½æz¯6 †s¿!s–wÚÝ“™Œ °.ûj>·+™Òa…©Œ&rÝÎtÛë긪Ît’LAVp%c Úý[ÄzJ¾ÇàXXç@˜ó<êL]·T˜¾¥1Ó©V‡g´æ½¦Ý@¹óø!_@´ÞâSÁ —S3™•& ]@JHÚý©ZŽ €×æÔr»Áf!‡yÞ4Mv*èÓã_{‘åóUuљØ«Oïé*®EvÑ Œ÷‡U \"㪒ÍK+À 4“M¡ï:0¥5í!'<@î´”>Ç»&Z–ïCCV˜Ì5Šo&îhè.žû |ÓK©h$s6KìŒëã)¹hI¦GïOåóI;ììü#É$Š0…Ææ¥TØ.5­¾gn´ “ÂÖ\:hœ89G)J@„}œ:’Ò{/Š"¦_Æ×7Æ3VÇŠÊa]ÚŒÙ€Ä–=®uÁßâACZƒ§§£ Qnâ:«,×{tyø¬iÛcœÜÄ€H½ÄÍCk´÷šß .W'b¤Íåh]÷€=,Žv×cÚEÚHXJX¶îo¨FÒtèöŸ>ªª6[J®Fµ£sGÁeqõfe\íjÒÐïÄÐGˆe1Ø‹.Ø”‘Ëuø Y­ˆÜ ŽG|zùªüMpDnQWÄ”%JŠ™)â*p@Örš«ÕT2Ð%ˆG#ª„ ·¤!°ŸOTÂT¸aÚ%4&h™LµšØüÐ.F¿²ÐÞ_Ç‚¾ÅÃaÜ÷09Æ q€öy˜v‡85õN÷]¬äѼóS{°_MެúÔ#°Ç¸0åÞè2ëôPcvÆw9®ií1Ä8F™˜à‰´+‰Ik1òÝ7“Ñ×ÒsÝ\x‚h`ÞÑ`ó"|µEcý£n˜h`}GÞ !±ù²Ápü²ß6 0ïi󜵩SÈÇ7˜-ÕURO˜¦´f$ªž-Í6(œ}<„ éc øs]ŽŽ„*—¾ ìdŽ„)méª\¿êÎIg¾ØÞ~I#C/¼¼´EÁÈŽi8“©õådô·>euä ƒ'Ê×लR1ÉJE1ÐAát`t;ÇР%Ý<‡¥„ÍÆ`×Oyó)õiI€ñQaŸ4Ûù\áàaÃÔ¹HÃu¹*k€¦<„e S‡&õÏ B!ŽhüÞ`yj}mªf×\¿ Ç~æ­9‡û\՞Ǖg²1Žû5V7 !àöšm° c`ܬøÇìµÒ'P"?…´Ö,"§^•õލsÔ)6˜sæéÍR¼ ò|Sl”‹7 nPW Gòú÷½§O¯‡„l¡kSÞŒr½PÊ@æ¢pŽ-mÿ #Ÿ˜Àº¶Áä¦;ïÔæ$1££`“Õ>„—·ž)ßð³ñ#Ï Ô$¶œ‰ÊE‹À;÷º ¯«P:Ñ”8–IÊtpÞ3ª“>ê“þës4ò2OÏÕ­±zô†Õ§‰.÷ä¸;¿˜“'œ›žª}«Œ{ª±Ì 9ÔóÞÕ‡0 $íWV3Üì¬ —@kÝ4@¿r¼±½¬™›?øØæ´'Áé®CË3-g$˜ö‡×auÚi´Žp/êÛ æF›Ú2v‹ã¿¿,nB1̨ƃqÞa5͝@&Æû“él÷ \C²½UÍc ¯k×¢U ÖéQå™—-r wô ÞÏ<Ò=&=ÿ Ôê Òêˈt,i—;LîÜ á¸*ÚÃ1$êL•LÍ <É)ýÐà’ ;F™{ƒ™˜€&'}‚ãÄK`¡ÞT@I;®žZóè‚s’7®°›+§O­Åq©é»²9<Ô J ¼9O’HL»Ùïì¸rk¼Ž_ý‘TŸu[²ßÚŒ·ü÷B%¯E ŸÔX5êO´ Ç•€’I0 ÉJX` ñ¹õ%;µŸD‘«´€àwÒ™U ûئžÖö\×®×´8 ½‡ºÐÆÓ§?Àkmœ=;d5*@-ì0F Rªýš[Ü6âö̃ڸr*KA9· u*µæ£?U¸Âêí†8@¦X4 e-ò„0s{ HâUpU?¼mñRa°®a%Ð'tÉ×’\¾ÊÉ]t›h>·(Ë@R¼¡Ãt h}’O÷au<+nT…Ö…MӐ??Óe95 q>í/;&JSû °¯ÊéÞ øƒ*Ã2½Ài&:nôUl=¾¿5eˆ3”ñc|Ú2V”>„»&eE;«ÚäC p¢Û úy 9š[ŒÌx¼擼A&DåÒ¯ˆ¤ÀÌ;"˜ ÏQä¸åhÊ}Ûq«Û0WžÒ|»€ø®öCm5•\ÇÀ§Pe3£]0ÃàLDÉ‰1øªxjgwT‚÷¿LΨK‹›ùs—xˆÜ±µ kæ¸f‰‰ÜGk/LÛØ6d9ò¶ùA{ƒA3š/¬D¬khÓk‰`˜"㯒r¿±Óã jx‡°e}<Ñø\3y:'À•/h½Í€Ç4~g ?Û(¼]v‘ªlKÎâ~?O‚W%{Ì:“'©úNq¾›úo(X’¥¯ˆ nFê{Ç€ü?º'ë ø‹ì Þ09ŒÌç9Æ —ËC`j@ÓÄ(+a‹un¸#ÂꟋ{K`‘ÑÍÍ'à´»/Û,KW;Þ4²þð ï Nm|~fGÏ(…³Ã)«1ö­Õ ¥‡¨©ƒÃ™ü-s=à=U66Ï«Ýc蓦W¹íž®›nÔ%êÇìŒ<#Ü×84ån®Ð ÒåOC` ñânÑs‡¢ç 1õ%Îhì½Ã½® e:ݼUZo™`  ÅZŸŒÊ«ê1ÏÄo$q¹Þ€©ˆhÐÉä¯ñ[!…Ú˜àJ:x2$Íß&PåT£6ç— ‡Í*4Ýšçjÿ ‰É nófÐ ó(L5C•åÆ\rMÒ@ò }y-W}™üýVù—ú¢=Ù”c®‘< M ž ´Phr ¦©TD ‘ù.$´÷O‡‘V2Æò.=IUŒ=ž‡â¬i™aþÓåÙ?òUø'ØÖ•.~* šTŒ!•-×áºTâ®ä#õü'´ eýlYÅÓeÕKÂrT"CÚ@u!Óxƒ{š3€}1¿(r}%«nËamjÑ%ÑNEò v ˜à  σöK³,*º.àzù¨™Ó ÚçâU¦*¿ 9{%Ö¹ njûdaXöb) kÛÆ±ûÓ\°M7ˆÂ=û›ç¿Ã‚­V»Cg–8ÙêE- j)k$º`Ã-ùEýeBÆÇ]c¡°ñty&Òd0nõ'¡W+ƒ*|–øµFa\GQªEAÔp5\Ǽ·¼Ç8·õ -â§Ú[ ‡ uZeÖ 3}×d'+¹:ð+K†Û®s!Ï$úe€<Û”x)1»a­¡LC]¸µík…ÚàA»AYº{†ªS[¦5HÒ7ù --,ísòDØ€èk ÞÀîÜ ò@â( ËNˆë›4ô½•/¦o‡€Û7 ê•ÆêòðÜy'Án½µ á˜ݦ ndeo…[ì¶Ê,¥R³Ä=À±—–ß;£™´ñSâ*g§”ïaið‘Jå~™ÓÞ ß³Õ¢»8x埒²52>AÊb&-÷\7´éÄù€T˜,w;3{ï˜k…à¹ÄqÀ«œ{€\ ˆ¾[´¨јr &Úé„Ívˆ±8†¿]|¬ņ4I×pÞS1ÈÖz‰#Ìv‡G!YNògñ:màTz¢Ý1ô©^O=~ë|5Bã™ç•¼µõ•bÆ@úÕS¬ÈŒ#¬zünrŸ û” Z²•èðV"ÁHÚý©wÝ €7¼Ìu1hÑa3Éä û f$o¿É ™Ú›ÝçnpÒ3äÌ3†Í§,Äï]$‰/pê †«À¼¸e9­Æê_C]žƒ·ý·frÁN«, E=›Çq -‰öŒ:aÏ¿±í&£Í:-} 84‘ÿ eƒQÑeëSsuiA ³g㟥ú£?ÿ ʼn*”“÷aühe:ÊWa@ÒÞk±eØ] F Ô—r.åä˜ @ö¥ªZoÐýYL·¥S²G/‡ñ <~*ZÆ´è>JlòàÛÆ½ÿ 窘ìGN¢:I®KšJp/`íIÁÀõ#Ä-€ö­šµŒoF4|ÆQØÆ@Ì|£Ô…¢À{9˜è½Üó›€ôYÒÎYsið;ís¤€à²ˆ‚4qÉVŒI$ ‰"° æµ8cXGjœˏ¡Aâý•ËÜ¢ûï e·çLx']á"oÅÎê3¯Ç—¹”ó0nå‚âg{Œñ> S´˜îè°g238‚ãköÝfÚd´6Ò€;ò÷±¢™¼›º ¢Æ'¥Ðx'e¬ç ]bÈÆV¢ó‹kýBO ðÊâ$Ÿ!×T 3Mýמ žìٍàÌü‘8÷€àæØ8æ©6‰©L´«…oãpð„~Çk‰!ñ;‹”ÛžÍ àž±z Ÿôû øŸÝužÏ;ÿ #|u6™Þ¬ÚˆÐõA4¶â|ôl|Ê2ŽÇ¤ÝÅÇY.<#Aí.k§hóF‚”Y; M½Ö4hŸ4&›­¿tès´%FìL¥£Ãk‰ÇT¤haÁ¤ÚxfÉ`ÑìË›>i 3t‚:,–+^÷´–{Û–Nxi"x‘Ûg î¨>¥Õ܁ùZH,2Û“:8xÊ¢Çí9.É-Ìâã-=çjwµS˜dütžçwýGòú®®ûº_ˆýx$–¡ãøO EÚÛÏ÷R„×w+3£Á£öUMyR²¹âŒ°š›¸Ñãò9§Ó_Dl+Ùßc›úšGÅÌc†Ž!Ko=¶.‘Îÿ c²(2®V mª.ÿ ¹B›¹å ù„öŸSV>™ü¯$y:G¢Z×àøúdî¹û­·ýÇ´:•c LÍõi_‹ö+ÎæGÊè>OŠ•äž´§Þ{X}¨1ÚTc›»Qþ•êô°t¿OP?eæ~É{5]•ÙR£r5†nZ\ã@ &îJõ ¾àC°þV>fé¥/ü5ñÊIº_é5 ;e­h<@ Ä&æÃëE%;X,ÒãÆÞ`Oò¦kŸm#˜!ÀyÄ¢| óLšò¥Ä` ¶R=|ÈCâh5ò3DˆïF†ðÒ#ÅìÛœ?¸yhBãœí ZxßÎÄhºRK„`Þödvײ™ÀÈÑÒgŒuY w³%†ƒÓzõ ÖÏp‚dH®¦A´ù§»ÓÇMæ~)ˆð‡û:ù&Ä •vGD´À n ݇¼Ö8Fö óáà£~Ë¥x`oK|Ä?fxiØü%pìR>éò+Û±éÎ>núlFŤ'tq8LZÏvÃ?„¡ß±È⽆¯³íü@x|PöUäèØã¡ð‚ŒAìÏ"vÍwóŸÍ{ ý0.z È•Ö{,N¡£¡ŸKÕÙž>Ýœþ ÍÀ°<×EA!Å‚D™IúOÍ¡>ôG}Â` ÍßkÜL™Ž Þð™ {IøF²¹òQ3&!ÃÂÞz.d&Ï-sH¸,Ôõ˜ŽP€ 77ˆÝ¼ÊëÜw =cÕ Ú,ØÐ5ÎYÐ)ì´öœgŒ[¤ßv㙑8心>h]§µháYš£²ºÑ.{Ï7Sð•?´~×SÃKýJÛ˜ ™Íäiúu<µX¶1õ^kâçIÑ£sZ4h>j*ÔšD:4­¿_ ÷¸ Õxæÿ ¸?Mù _•­ÊÐ ä ÷ý ÑwL œ­ïnTkÛUÍN©ë:¦fV ¶ÜÔÜMªÅâA½–¿R×TXš-%iTÊT•‡Ù‚JôϐZxWÑè‰f‰òG º ×Õû2aZ7OU3[“×AT–ÞŒ…-‘¤”Ì ì&(ˆ¿­•ƒkï’:ðY¦W‘ Å)“†‘˜³Åtcø˜ñTÂwÚÇ4|üLÇªí–v- qˆèU qPE.†â‘˜µ Æ,ÐÅs]8¾„oúÑ i>ÜxxÈó)ƒ ´æÁâØ$À‰vžŸf$Ž |ãw;ÀÁIJ»b` {¦Ó¤Ú$©YÀ‘n@Óïž«9J¼êG m¤ ܯ¹ÌW4€ÐÒÅÛ‡#褕Ÿn-?í|с¥÷Ú¹¬'´ÞÜ9ÓK `hê£SÄSà?7—Wí_´…óB›»:=Ãïq`<8ñÓŒÑlú2d¬ê³£hÖ[l|$vÝro~'R®‰§°ñmY ͧäP |PUª¹·:3Œ[Û{Xÿ ºâ@‚W–Äé u‚ ¯´*=íή.pûÒdt @G‰¬ s¸ ëÉücr ÞæÑ¨Ê@>¤¢Ö±. Þ'¯°ÌME[YéïĵÂCå½ Ué©Áû'Ê9%eÔðNU”ë‘ÌsD3/®+UI˜9h.WC”빓$#:pz:YÓ ¿xž* ³$Í +$kñAŠ‹†¢ Uê>¸)_š¬÷©ßAÂÔb9ÇU ¯¾á•9¯ÏÏ÷O÷¼¼Fähal1‰3Ì[Ïr•´UCksNÐ] R‘¸¥H+§Šé†c©vÖÞ0iÓ76s†î!§=ß ¼~Ô'°Ãmäoäš³ªøi1úÉ)³yV8 CLÄØÁ‘WYïi€H6ÖÑiámø^ÈY´°Ñ7¥Û*—Ñ©L«Qƒï—Ùrÿ ›£Ð*š¸ˆL©ˆ$ˆ ÷¾D§9È®«qbqC)–ˆïv´çñsÑVT­Ø, <àïºÀO«Jý·õ àfPìð .wFšir´þ’2_Y *Æ€x\« ì€9š@ Ž|F⇥ˆkZ@hÖÄ0t¿-<“‹qµ¾*ZL¤Ú)&BJpÓF5=$„at*Zš$’ÑtdûÝRI1 2މ$€$I$#‰SÞ’Hë¬ï;Á$¡t$’`<(ñÇt)$‡Ð.Êf¢X’Kt=Éé$‚ˆªè¢oÝëòI%Rgcª÷ŠyI%¡‰ÿ !ñ)´õ $¤ Ô’IIGÿÙ )hdZddlZddlZddlZddlZddlZddlmZddlm Z ddl m Z ddl m Z ddl mZddl mZdd l mZd d lmZd d lmZd d lmZd dlmZd dlmZd dlmZd dlmZd dlmZd dlmZd dlmZd dlmZd dlm Z d dlm!Z!ej"r/ddl#Z$d dl%m&Z&d dl'm(Z(d dlm)Z)d dl*m+Z+Gdde$j,Z-ej.dej/dej0f Z1ej.d!Z2ej.d"Z3d#e3d$e3fd%Z4 dd&d'd(ej5ej6e7e8fd)ej5ej/ej0gej0fd*ej5ej0d$ej/ej0gej0ff d+Z9 dd&d'd(ej5ej6e7e8fd)ej5ej/ej0gej0fd$ej/ej0gej:ej0ffd,Z;d-ej5ej6e7e8fd$ej:ej6e7e8ffd.Ze7ej0fej?ej@e7ej0ffd$e7fd1ZAe dd2d3d4e7d5e7d6e7d7ej5e8d$e7f d8ZBd4e7d$e7fd9ZCd4e7d$e7fd:ZDd#ej6ej>e2e3fefd$ejEej@e2e3ffd;ZFejGde7ej0fd@eJd$e7fdAZKd4e7d$e7fdBZLejGdCZMd4e7d$e7fdDZN dd#ej>e2e3fdGeJdHdIdJeJd$ej:ej@e2e3ff dKZOe dd&d'd#dLdJeJdGeJd(ej5ej6e7e8fd$dMf dNZPe dd&d'd#dLdGeJd(ej5ej6e7e8fd$dOf dPZQd&d'd#dLdQdRdGeJd(ej5ej6e7e8fd$dSf dTZRe dd&d'd#dLdGeJd(ej5ej6e7e8fd$dSf dUZSe dd&d'd#dLdGeJd(ej5ej6e7e8fd$dSf dVZT dd#e3dXe3dYeJd$e3fdZZUe dd2d3d#ej?d?e7d(ej5ej6e7e8fd$e7f d[ZVeeV dd2d3d#ej6ejWej?fd?e7d(ej5ej6e7e8fd$e7f d\ZXdd#e7d^e8d$e7fd_ZYe ddaZZeeZ ddcZ[e ddeZ\eddiZ]dd#ej6e7e^e8fdjeJd$e7fdkZ_d#ej0d$e7fdlZ`ejGdmZae dd2d3d#e7dnej5e8doeJdpej5e7dqej5e7drej5ej?e7d$e7fdsZb dd4e7d^ej6e8e7fdueJdveJd$e7f dwZce ddzd'd4e7d{e8d|eJd}e7d~ej5e8d$e7fdZde dd&d'd4e7d^e8deJdej5e7deJd$e7fdZeejGdZfd4e7d$e8fdZgd d#ej0d*e8de8d$e8fdZhd d#ej0d*e^d$e^fdZid#e7dej0dej0d$e7fdZjdd#e7dej5e7d$e7fdZkd#d/d$e7fdZl dd#dde8ddd$dfdZmeem dd#dbde8dej5ej0d$dfdZn dd#dLde8ddd$dfdZo d d#e^de8ddd$e^fdZpGddejqZre d d&d'd#dLd(ej6e7e8fd*ej5ej0dGeJd$df dZsees d d&d'd#dbd(ej6e7e8fd*ej5ej0dGeJd$df dZte d d&d'ddLd(ej5ej6e7e8fde3d$e3f dZueeu d d&d'ddbd(ej5ej6e7e8fde3d$e3f dZvddZweewddZxd#e7d$efdZyd#e7d$e7fdZzej{d#e7d$e7fdZ|ej{ddZ|d#ej6e7ej?e3fd$ej6e7ej?e3ffdZ|ed&d'dej0de7d$ej6eej0ffdZ}ej{dfdgd#ej?de7dej0dej0d$ej?f dZ~ej{ddddfdgd#ej?d(e7d*ej5ej0d$ej?f dZ~edfdgd#ej?dej0dej0d$ej?f dZ~ej{dfdgd#ej6ejWej?fde7dej0dej0d$ej?f dZej{ddddfdgd#ej6ejWej?fd(e7d*ej5ej0d$ej?f dZee~dfdgd#ej6ejWej?fdej0dej0d$ejWf dZedfdgd#dLdej0dej0d$dOf dZeedfdgd#dbdej0dej0d$df dZedfdgd#dLdej0dej0d$dOf dZeedfdgd#dbdej0dej0d$df dZedfdgd#dLdej0dej0d$dOf dZeedfdgd#dbdej0dej0d$df dZedfdgd#dLdej0dej0d$dOf dZeedfdgd#dbdej0dej0d$df d„Ze dd2d3d#ej0dej5e8d$efdĄZdfdgdej@deje7ej0fd$ej/ej0gej0ffdńZdfdgdej@deje7ej0fdej/ej0gej0fdeJd$ej/ej0gej0ff dȄZdfdgd#dLdej@deje7ej0fdej/ej0gej0fdeJd$dOfdɄZdfdgd#dbdej@deje7ej0fdej/ej0gej0fdeJd$dfdʄZided-e}deodeLdeYd7ed?eUd*eUdeOdedede_due[deide=dejdetidecdehdeXde\d{edexdeDdeFdedeSdeTde`de]dededeBdJe|idepdeydededendePdedeldevdeNdekdeddeQdeCdeAdebdegeeeKedZdS(z7Built-in template filters used with the ``|`` operator.N)abc)getattr_static)chain)groupby)escapeMarkup)soft_str) async_variant) auto_aiter) auto_await auto_to_list)FilterArgumentError) Undefined)htmlsafe_json_dumps) pass_context)pass_environment)pass_eval_contextpformat url_quote)urlize) Environment) EvalContext)Context)SandboxedEnvironmentceZdZdefdZdS)HasHTMLreturncdSNselfs 0/usr/lib/python3/dist-packages/jinja2/filters.py__html__zHasHTML.__html__&s DN)__name__ __module__ __qualname__strr)r%r*r(r!r!%s/ c      r*r!F.)boundKVvaluer"ct|tr,tjt|S|S)zxFor use as a postprocessor for :func:`make_attrgetter`. Converts strings to lowercase and returns other types as-is.) isinstancer.tcastr2lowerr3s r( ignore_caser:/s5%(va''' Lr* environmentr attribute postprocessdefaultcnt|dtjdtjffd }|S)zReturns a callable that looks up the given attribute from a passed object with the rules of the environment. Dots are allowed to access attributes of attributes. Integer parts in paths are looked up as integers. itemr"cD]1}||}t|tr}2 |}|Sr$)getitemr5r)r@partr>r;partsr=s r( attrgetterz#make_attrgetter..attrgetterEs\  D&&tT22D"z$ 'B'B"  ";t$$D r*)_prepare_attribute_partsr6Any)r;r<r=r>rErDs` `` @r(make_attrgetterrH8s\ %Y / /E  15          r*ct|tr|d}n|g}d|Ddtjdtjtjffd }|S)aReturns a callable that looks up the given comma separated attributes from a passed object with the rules of the environment. Dots are allowed to access attributes of each attribute. Integer parts in paths are looked up as integers. The value returned by the returned callable is a list of extracted attribute values. Examples of attribute: "attr1,attr2", "attr1.inner1.0,attr2.inner2.0", etc. ,c,g|]}t|Sr%)rF.0r@s r( z)make_multi_attrgetter..hs! > > > %d + + > > >r*r@r"cdgtz}tD]4\}}|}|D]}||} |}|||<5|Sr$)len enumeraterB) r@itemsiattribute_partitem_irCr;rDr=s r(rEz)make_multi_attrgetter..attrgetterjsU#!*5!1!1   A~F& ; ;$,,VT::&$V,,E!HH r*)r5r.splitr6rGList)r;r<r=rVrErDs` ` @r(make_multi_attrgetterrXTs)S!!5>__S5I5I  > > > > >E16!%= r*attrcx|gSt|trd|dDS|gS)NcXg|]'}|rt|n|(Sr%)isdigitint)rMxs r(rNz,_prepare_attribute_parts..s/FFF!))++,A1FFFr*.)r5r.rV)rYs r(rFrF}sF | $GFFdjjooFFFF 6Mr*zt.Union[str, HasHTML]ct|dr'tjd|}t t |S)zCEnforce HTML escaping. This will probably double escape variables.r)r!)hasattrr6r7r)rr.r9s r(do_forceescaperbsEuj!!4y%((1133 #e**  r*ct|tst|tjst |St|t r|}n|}dd|DS)a3Quote data for use in a URL path or query using UTF-8. Basic wrapper around :func:`urllib.parse.quote` when given a string, or :func:`urllib.parse.urlencode` for a dict or iterable. :param value: Data to quote. A string will be quoted directly. A dict or iterable of ``(key, value)`` pairs will be joined as a query string. When given a string, "/" is not quoted. HTTP servers treat "/" and "%2F" equivalently in paths. If you need quoted slashes, use the ``|replace("/", "%2F")`` filter. .. versionadded:: 2.7 &c3fK|],\}}t|ddt|dV-dS)T)for_qs=Nr)rMkvs r( zdo_urlencode..s_GKq!9Qt $ $ $BBy4'@'@'@BBr*)r5r.rIterablerdictrRjoin)r3rRs r( do_urlencoderns$% Zs|%D%D %16 88OT  r*eval_ctxrsoldnewcountc|d}|js>t|t|t||St|ds t|dr t|dst |}nt |}|t |t ||S)aReturn a copy of the value with all occurrences of a substring replaced with a new one. The first argument is the substring that should be replaced, the second is the replacement string. If the optional third argument ``count`` is given, only the first ``count`` occurrences are replaced: .. sourcecode:: jinja {{ "Hello World"|replace("Hello", "Goodbye") }} -> Goodbye World {{ "aaaaargh"|replace("a", "d'oh, ", 2) }} -> d'oh, d'oh, aaargh Nr)) autoescaper.replacerarr )rorprqrrrss r( do_replacerxs$ }  91vv~~c#hhC%888 Z   3 # #:&& 1II QKK 99Xc]]HSMM5 9 99r*cDt|S)zConvert a value to uppercase.)r upperrps r(do_upperr| A;;    r*cDt|S)zConvert a value to lowercase.)r r8r{s r(do_lowerrr}r*c#Kt|trdSt|tjst d|Ed{VdS)aOReturn an iterator over the ``(key, value)`` items of a mapping. ``x|items`` is the same as ``x.items()``, except if ``x`` is undefined an empty iterator is returned. This filter is useful if you expect the template to be rendered with an implementation of Jinja in another programming language that does not have a ``.items()`` method on its mapping type. .. code-block:: html+jinja
{% for key, value in my_dict|items %}
{{ key }}
{{ value }} {% endfor %}
.. versionadded:: 3.1 Nz'Can only get item pairs from a mapping.)r5rrMapping TypeErrorrRr9s r(do_itemsrsi*%## eS[ ) )CABBB{{}}r*z[\s/>=])flagsTd autospacecg}|D]~\}}|t|trt|t d||t|dt|dd|}|r|rd|z}|j rt|}|S)aCreate an SGML/XML attribute string based on the items in a dict. **Values** that are neither ``none`` nor ``undefined`` are automatically escaped, safely allowing untrusted user input. User input should not be used as **keys** to this filter. If any key contains a space, ``/`` solidus, ``>`` greater-than sign, or ``=`` equals sign, this fails with a ``ValueError``. Regardless of this, user input should never be used as keys to this filter, or must be separately validated first. .. sourcecode:: html+jinja ... Results in something like this: .. sourcecode:: html
    ...
As you can see it automatically prepends a space in front of the item if the filter returned something unless the second parameter is false. Nz%Invalid character in attribute name: z="" ) rRr5r _attr_key_research ValueErrorappendrrmrvr )rorrrRkeyr3rvs r( do_xmlattrrsB Eggii99 U =Jui88=    s # # /LSLLMM M s 77ve}}7778888 %BR 2X BZZ Ir*cDt|S)zYCapitalize a value. The first character will be uppercase, all others lowercase. )r capitalizer{s r( do_capitalizer8s A;; ! ! # ##r*z ([-\s({\[<]+)cddtt|DS)zReturn a titlecased version of the value. I.e. words will start with uppercase letters, all remaining characters are lowercase. cg|];}||d|ddz.GsQ    GMMOOd122hnn.. .   r*)rm_word_beginning_split_rerVr r{s r(do_titlerBsJ 77  066x{{CC     r*Frcase_sensitivebyzte.Literal["key", "value"]reversec|dkrdn|dkrdntddtjtjtjfdtjffd }t ||| S) afSort a dict and yield (key, value) pairs. Python dicts may not be in the order you want to display them in, so sort them first. .. sourcecode:: jinja {% for key, value in mydict|dictsort %} sort the dict by key, case insensitive {% for key, value in mydict|dictsort(reverse=true) %} sort the dict by key, case insensitive, reverse order {% for key, value in mydict|dictsort(true) %} sort the dict by key, case sensitive {% for key, value in mydict|dictsort(false, 'value') %} sort the dict by value, case insensitive rrr3r z,You can only sort by either "key" or "value"r@r"c:|}st|}|Sr$)r:)r@r3rposs r( sort_funczdo_dictsort..sort_funcms&S  '&&E r*rr)rr6TuplerGsortedrR)r3rrrrrs ` @r( do_dictsortrOs. U{{ w!"PQQQqu -!% %++--Y @ @ @@r* t.Iterable[V] t.List[V]c\t|||stnd}t|||S)a-Sort an iterable using Python's :func:`sorted`. .. sourcecode:: jinja {% for city in cities|sort %} ... {% endfor %} :param reverse: Sort descending instead of ascending. :param case_sensitive: When sorting strings, sort upper and lower case separately. :param attribute: When sorting objects or dicts, an attribute or key to sort by. Can use dot notation like ``"address.city"``. Can be a list of attributes like ``"age,name"``. The sort is stable, it does not change the relative order of elements that compare equal. This makes it is possible to chain sorts on different attributes and ordering. .. sourcecode:: jinja {% for user in users|sort(attribute="name") |sort(reverse=true, attribute="age") %} ... {% endfor %} As a shortcut to chaining when the direction is the same for all attributes, pass a comma separate list of attributes. .. sourcecode:: jinja {% for user in users|sort(attribute="age,name") %} ... {% endfor %} .. versionchanged:: 2.11.0 The ``attribute`` parameter can be a comma separated list of attributes, e.g. ``"age,name"``. .. versionchanged:: 2.6 The ``attribute`` parameter was added. Nr=r)rXr:r)r;r3rrr<key_funcs r(do_sortrxsAd%Y~,WKKSWH %Xw 7 7 77r*z t.Iterator[V]c#Kt|||stnd}t}|D]*}||}||vr|||V+dS)aReturns a list of unique items from the given iterable. .. sourcecode:: jinja {{ ['foo', 'bar', 'foobar', 'FooBar']|unique|list }} -> ['foo', 'bar', 'foobar'] The unique items are yielded in the same order as their first occurrence in the iterable passed to the filter. :param case_sensitive: Treat upper and lower case strings as distinct. :param attribute: Filter objects with unique values for this attribute. Nr)rHr:setadd)r;r3rr<getterseenr@rs r( do_uniquers(Y~,WKKSWF 55DfTll d?? HHSMMMJJJ r*funczt.Callable[..., V]t.Union[V, Undefined]ct|} t|}n%#t$r|dcYSwxYwt |||st nd}|t |g||S)Nz'No aggregated item, sequence was empty.rr)iternext StopIteration undefinedrHr:r)r;r3rrr<itfirstrs r( _min_or_maxrs eBPR PPP$$%NOOOOOPY~,WKKSWH 4ugr"" 1 1 11s!AAc2t||t||S)aReturn the smallest item from the sequence. .. sourcecode:: jinja {{ [1, 2, 3]|min }} -> 1 :param case_sensitive: Treat upper and lower case strings as distinct. :param attribute: Get the object with the min value of this attribute. )rminr;r3rr<s r(do_minr" {E3 J JJr*c2t||t||S)aReturn the largest item from the sequence. .. sourcecode:: jinja {{ [1, 2, 3]|max }} -> 3 :param case_sensitive: Treat upper and lower case strings as distinct. :param attribute: Get the object with the max value of this attribute. )rmaxrs r(do_maxrrr*r default_valuebooleanc<t|ts|r|s|S|S)a`If the value is undefined it will return the passed default value, otherwise the value of the variable: .. sourcecode:: jinja {{ my_variable|default('my_variable is not defined') }} This will output the value of ``my_variable`` if the variable was defined, otherwise ``'my_variable is not defined'``. If you want to use default with variables that evaluate to false you have to set the second parameter to `true`: .. sourcecode:: jinja {{ ''|default('the string was empty', true) }} .. versionchanged:: 2.11 It's now possible to configure the :class:`~jinja2.Environment` with :class:`~jinja2.ChainableUndefined` to make the `default` filter work on nested elements and attributes that may contain undefined values in the chain without getting an :exc:`~jinja2.UndefinedError`. )r5r)r3rrs r( do_defaultr s/6%## Lr*cP|#tt|j||}|js5t |tt|St |dst|}d}t|D]*\}}t |drd}t |||<+|rt|}nt |}||St|tt|S)a#Return a string which is the concatenation of the strings in the sequence. The separator between elements is an empty string per default, you can define it with the optional parameter: .. sourcecode:: jinja {{ [1, 2, 3]|join('|') }} -> 1|2|3 {{ [1, 2, 3]|join }} -> 123 It is also possible to join certain attributes of an object: .. sourcecode:: jinja {{ users|join(', ', attribute='username') }} .. versionadded:: 2.6 The `attribute` parameter was added. Nr)FT) maprHr;rvr.rmralistrQrr )ror3rr< do_escapeidxr@s r( sync_do_joinr.s8OH$8)DDeLL  ,1vv{{3sE??+++ 1j ! !U  "5)) ' 'ICtZ(( '  YYc  q AAAAvve}} A;;  C%00 1 11r*cPKt|t|d{V||Sr$)rr)ror3rr<s r(do_joinrhs6  U(;(;";";";";";";Q J JJr*PwidthcFt||S)z.Centers the value in a field of a given width.)r center)r3rs r( do_centerrrs E?? ! !% ( ((r*seqc tt|S#t$r|dcYSwxYw)z$Return the first item of a sequence."No first item, sequence was empty.)rrrrr;rs r( sync_do_firstrwsT KDII KKK$$%IJJJJJKsAA*t.Union[t.AsyncIterable[V], t.Iterable[V]]cK t|d{VS#t$r|dcYSwxYw)Nr)r __anext__StopAsyncIterationrrs r(do_firstrspK__..000000000 KKK$$%IJJJJJKs&+A  A t.Reversible[V]c ttt|S#t$r|dcYSwxYw)zReturn the last item of a sequence. Note: Does not work with generators. You may want to explicitly convert it to a list: .. sourcecode:: jinja {{ data | selectattr('name', '==', 'Jinja') | list | last }} z!No last item, sequence was empty.)rrreversedrrrs r(do_lastrs^JD#''((( JJJ$$%HIIIIIJs(+A  A contextr t.Sequence[V]c tj|S#t$r|jdcYSwxYw)z'Return a random item from the sequence.z#No random item, sequence was empty.)randomchoice IndexErrorr;r)rrs r( do_randomrsUT}S!!! TTT",,-RSSSSSTs $==binarycBt|}|rdnd}|rdnd|rdnd|rdnd|rd nd |rd nd |rd nd|rdnd|rdndg}|dkrdS||krt|dSt|D]#\}}||dzz}||kr||z|z dd|cS$||z|z dd|S)zFormat the value like a 'human-readable' file size (i.e. 13 kB, 4.1 MB, 102 Bytes, etc). Per default decimal prefixes are used (Mega, Giga, etc.), if the second parameter is set to `True` the binary prefixes are used (Mebi, Gibi). iiKiBkBMiBMBGiBGBTiBTBPiBPBEiBEBZiBZBYiBYBr z1 Bytez Bytesz.1fr)floatr]rQ)r3rbytesbaseprefixesrSprefixunits r(do_filesizeformatrs0 %LLE #44tD "d "d "d "d "d "d "d "d H zzx e**$$$$"8,, = =IAvAE?Dt||,-<<>r*z^([\w.+-]{2,}:(/){0,2})$trim_url_limitnofollowtargetrel extra_schemesc|jj}t|pd}|r|d||dpddt|pd}||d}| |dpd}|D].} t | t| d /t||||| } |j rt| } | S) a0Convert URLs in text into clickable links. This may not recognize links in some situations. Usually, a more comprehensive formatter, such as a Markdown library, is a better choice. Works on ``http://``, ``https://``, ``www.``, ``mailto:``, and email addresses. Links with trailing punctuation (periods, commas, closing parentheses) and leading punctuation (opening parentheses) are recognized excluding the punctuation. Email addresses that include header fields are not recognized (for example, ``mailto:address@example.com?cc=copy@example.com``). :param value: Original text containing URLs to link. :param trim_url_limit: Shorten displayed URL values to this length. :param nofollow: Add the ``rel=nofollow`` attribute to links. :param target: Add the ``target`` attribute to links. :param rel: Add the ``rel`` attribute to links. :param extra_schemes: Recognize URLs that start with these schemes in addition to the default behavior. Defaults to ``env.policies["urlize.extra_schemes"]``, which defaults to no extra schemes. .. versionchanged:: 3.0 The ``extra_schemes`` parameter was added. .. versionchanged:: 3.0 Generate ``https://`` links for URLs without a scheme. .. versionchanged:: 3.0 The parsing rules were updated. Recognize email addresses with or without the ``mailto:`` scheme. Validate IP addresses. Ignore parentheses and brackets in more cases. .. versionchanged:: 2.8 The ``target`` parameter was added. rrz urlize.relrNz urlize.targetzurlize.extra_schemesr%z" is not a valid URI scheme prefix.)rrrr )r;policiesrrVrupdatermr_uri_scheme_re fullmatchrrrvr ) ror3rrrrr r  rel_partsschemers r( do_urlizers7^#,HSYB%%''((I" j!!! h|,299;;<<< ((6)$$ % % -C ~/* !78>B WW  # #F + + 3%&U&U&UVV V 4  % #    B BZZ Ir*rblankct|tr|nd|zd}t|trtt|}||z }|r+|z|}nR|}|d}|r'|||fd|Dzz }|r|z}|S)aReturn a copy of the string with each line indented by 4 spaces. The first line and blank lines are not indented by default. :param width: Number of spaces, or a string, to indent by. :param first: Don't skip indenting the first line. :param blank: Don't skip indenting empty lines. .. versionchanged:: 3.0 ``width`` can be a string. .. versionchanged:: 2.10 Blank lines are not indented by default. Rename the ``indentfirst`` argument to ``first``. r rc3*K|] }|r|zn|VdSr$r%)rMline indentions r(rjzdo_indent..JsC))7;D2 D  d))))))r*)r5r.r rm splitlinespop)rprrrnewlinerlinesrs @r( do_indentr$s $%  %K G!V"9%% //LA  ! ' '  7 7  YYq\\   'GLL))))?D))) B  ^ Ir*...envlength killwordsendleewayc| |jd}|t|ksJdt|d||dks Jd|t|||zkr|S|r|d|t|z |zS|d|t|z ddd}||zS) aReturn a truncated copy of the string. The length is specified with the first parameter which defaults to ``255``. If the second parameter is ``true`` the filter will cut the text at length. Otherwise it will discard the last word. If the text was in fact truncated it will append an ellipsis sign (``"..."``). If you want a different ellipsis sign than ``"..."`` you can specify it using the third parameter. Strings that only exceed the length by the tolerance margin given in the fourth parameter will not be truncated. .. sourcecode:: jinja {{ "foo bar baz qux"|truncate(9) }} -> "foo..." {{ "foo bar baz qux"|truncate(9, True) }} -> "foo ba..." {{ "foo bar baz qux"|truncate(11) }} -> "foo bar baz qux" {{ "foo bar baz qux"|truncate(11, False, '...', 0) }} -> "foo bar..." The default leeway on newer Jinja versions is 5 and was 0 before but can be reconfigured globally. Nztruncate.leewayzexpected length >= z, got rzexpected leeway >= 0, got rr )r rPrsplit)r rpr!r"r#r$results r( do_truncater(Ts@~/0 SXX   MSXXMMVMM    Q;;;=V==;;; 1vv&  ,$6CHH$$%++ "#c(("" # * *3 2 21 5F C<r*Obreak_long_words wrapstringbreak_on_hyphenscddl|jfd|DS)aWrap a string to the given width. Existing newlines are treated as paragraphs to be wrapped separately. :param s: Original text to wrap. :param width: Maximum length of wrapped lines. :param break_long_words: If a word is longer than ``width``, break it across lines. :param break_on_hyphens: If a word contains hyphens, it may be split across lines. :param wrapstring: String to join each wrapped line. Defaults to :attr:`Environment.newline_sequence`. .. versionchanged:: 2.11 Existing newlines are treated as paragraphs wrapped separately. .. versionchanged:: 2.11 Added the ``break_on_hyphens`` parameter. .. versionchanged:: 2.7 Added the ``wrapstring`` parameter. rNc lg|]0}|dd1S)F)r expand_tabsreplace_whitespacer*r,)rmwrap)rMrr*r,textwraprr+s r(rNzdo_wordwrap..sa  OO  %',%5%5    r*)r2newline_sequencermr)r;rprr*r+r,r2s ````@r( do_wordwrapr4s|<OOO 1 ??     r*z\w+cjttt|S)zCount the words in that string.)rP_word_refindallr r{s r( do_wordcountr8s$ x ,, - --r* rc  t|trt||St|S#ttf$r; tt |cYS#ttf$r|cYcYSwxYwwxYw)aConvert the value into an integer. If the conversion doesn't work it will return ``0``. You can override this default using the first parameter. You can also override the default base (10) in the second parameter, which handles input with prefixes such as 0b, 0o and 0x for bases 2, 8 and 16 respectively. The base is ignored for decimal numbers and non-string values. )r5r.r]rrr)r3r>rs r(do_intr;s  eS ! ! $ud## #5zz z " uU||$$ $ $ $:&   NNNNN  s1$66BA&#B&A>9B=A>>BcT t|S#ttf$r|cYSwxYw)zConvert the value into a floating point number. If the conversion doesn't work it will return ``0.0``. You can override this default using the first parameter. )rrr)r3r>s r(do_floatr>s< U|| z "s ''argskwargscP|r|rtdt||p|zS)aApply the given values to a `printf-style`_ format string, like ``string % values``. .. sourcecode:: jinja {{ "%s, %s!"|format(greeting, name) }} Hello, World! In most cases it should be more convenient and efficient to use the ``%`` operator or :meth:`str.format`. .. code-block:: text {{ "%s, %s!" % (greeting, name) }} {{ "{}, {}!".format(greeting, name) }} .. _printf-style: https://docs.python.org/library/stdtypes.html #printf-style-string-formatting z>can't handle positional and keyword arguments at the same time)rr )r3r?r@s r( do_formatrBs?(   ! L    E??fn --r*charscFt||S)z=Strip leading and trailing characters, by default whitespace.)r strip)r3rCs r(do_trimrFs E??  ' ''r*ct|dr'tjd|}t t |S)zAStrip SGML/XML tags and replace adjacent whitespace by one space.r)r!)rar6r7r)r r. striptagsr9s r( do_striptagsrIsQuj!!4y%((1133 #e**   ' ' ) ))r*zt.Collection[V]slices fill_withz t.Optional[V]zt.Iterator[t.List[V]]c#Kt|}t|}||z}||z}d}t|D]K}|||zz} ||kr|dz }||dz|zz} || | } |||kr| || VLdS)aFSlice an iterator and return a list of lists containing those items. Useful if you want to create a div containing three ul tags that represent columns: .. sourcecode:: html+jinja
{%- for column in items|slice(3) %}
    {%- for item in column %}
  • {{ item }}
  • {%- endfor %}
{%- endfor %}
If you pass it a second argument it's used to fill missing values on the last iteration. rr N)rrPranger) r3rJrKrr!items_per_sliceslices_with_extraoffset slice_numberstartr#tmps r( sync_do_slicerTs, u++C XXF&O Ff   77 + + + aKF q(O;;%)n  \5F%F%F JJy ! ! !   r*cNKtt|d{V||Sr$)rTr)r3rJrKs r(do_slicerV9s4 |E22222222FI F FFr* linecountc#Kg}|D]0}t||kr|Vg}||1|r4|,t||kr||g|t|z zz }|VdSdS)a  A filter that batches items. It works pretty much like `slice` just the other way round. It returns a list of lists with the given number of items. If you provide a second parameter this is used to fill up missing items. See this example: .. sourcecode:: html+jinja {%- for row in items|batch(3, ' ') %} {%- for column in row %} {%- endfor %} {%- endfor %}
{{ column }}
N)rPr)r3rWrKrSr@s r(do_batchrYBs*C s88y IIIC 4   SXX %9%9 I;)c#hh"67 7C r*common precisionmethodz%te.Literal["common", "ceil", "floor"]c|dvrtd|dkrt||Stt|}t jt ||d|zzd|zz S)aRound the number to a given precision. The first parameter specifies the precision (default is ``0``), the second the rounding method: - ``'common'`` rounds either up or down - ``'ceil'`` always rounds up - ``'floor'`` always rounds down If you don't specify a method ``'common'`` is used. .. sourcecode:: jinja {{ 42.55|round }} -> 43.0 {{ 42.55|round(1, 'floor') }} -> 42.5 Note that even if rounded to 0 precision, a float is returned. If you need a real integer, pipe it through `int`: .. sourcecode:: jinja {{ 42.55|round|int }} -> 43 >ceilfloorrZz$method must be common, ceil or floorrZr9)rroundgetattrmathr6r7r)r3r[r\rs r(do_roundrcgsw<000!"HIII UI&&& 4 D 6%er9}566"i-H I IIr*cPeZdZUejed<ejed<defdZdefdZ dS) _GroupTuplegrouperrr"c6t|Sr$)tuple__repr__r&s r(riz_GroupTuple.__repr__s~~d###r*c6t|Sr$)rh__str__r&s r(rkz_GroupTuple.__str__s}}T"""r*N) r+r,r-r6rG__annotations__rWr.rirkr%r*r(reresb UNNN &LLL$#$$$$#######r*rezt.List[_GroupTuple]ct|||stnd|}dtt|||D}|s t|||fd|D}|S)aqGroup a sequence of objects by an attribute using Python's :func:`itertools.groupby`. The attribute can use dot notation for nested access, like ``"address.city"``. Unlike Python's ``groupby``, the values are sorted first so only one group is returned for each unique value. For example, a list of ``User`` objects with a ``city`` attribute can be rendered in groups. In this example, ``grouper`` refers to the ``city`` value of the group. .. sourcecode:: html+jinja
    {% for city, items in users|groupby("city") %}
  • {{ city }}
      {% for user in items %}
    • {{ user.name }} {% endfor %}
  • {% endfor %}
``groupby`` yields namedtuples of ``(grouper, list)``, which can be used instead of the tuple unpacking above. ``grouper`` is the value of the attribute, and ``list`` is the items with that value. .. sourcecode:: html+jinja
    {% for group in users|groupby("city") %}
  • {{ group.grouper }}: {{ group.list|join(", ") }} {% endfor %}
You can specify a ``default`` value to use if an object in the list does not have the given attribute. .. sourcecode:: jinja
    {% for city, items in users|groupby("city", default="NY") %}
  • {{ city }}: {{ items|map(attribute="name")|join(", ") }}
  • {% endfor %}
Like the :func:`~jinja-filters.sort` filter, sorting and grouping is case-insensitive by default. The ``key`` for each group will have the case of the first item in that group of values. For example, if a list of users has cities ``["CA", "NY", "ca"]``, the "CA" group will have two values. This can be disabled by passing ``case_sensitive=True``. .. versionchanged:: 3.1 Added the ``case_sensitive`` parameter. Sorting and grouping is case-insensitive by default, matching other filters that do comparisons. .. versionchanged:: 3.0 Added the ``default`` parameter. .. versionchanged:: 2.6 The attribute supports dot notation for nested access. Nr=r>cNg|]"\}}t|t|#Sr%)rerrMrvaluess r(rNz#sync_do_groupby..s<    C Cf&&   r*rr>cTg|]$\}}t|d|%SrrerM_rq output_exprs r(rNz#sync_do_groupby..5PPPyq&{;;vay116::PPPr*)rHr:rrr;r3r<r>rexproutrxs @r(sync_do_groupbyr}sB '5?KK4    D   "6%T#:#:#:DAA   C Q%k9gNNN PPPPCPPP Jr*c Kt|||stnd|}dttt |d{V||Dd{V}|s t|||fd|D}|S)Nrnc^Kg|](\}}t|t|d{V)Sr$)rerrps r(rNzdo_groupby..sT    C C|F3333333344   r*rrrcTg|]$\}}t|d|%Srtrurvs r(rNzdo_groupby..ryr*)rHr:rrrrzs @r( do_groupbyrs '5?KK4    D   "6 U0C0C*C*C*C*C*C*C#N#N#NPTUU         C Q%k9gNNN PPPPCPPP Jr*iterablerRcb|tt|||}t||S)aReturns the sum of a sequence of numbers plus the value of parameter 'start' (which defaults to 0). When the sequence is empty it returns start. It is also possible to sum up only certain attributes: .. sourcecode:: jinja Total: {{ items|sum(attribute='price') }} .. versionchanged:: 2.6 The ``attribute`` parameter was added to allow summing up over attributes. Also the ``start`` parameter was moved on to the right. )rrHsum)r;rr<rRs r( sync_do_sumr s3*{I>>II x  r*cK|}|t||}ndtdtfd}t|23d{V}|||z }6|S)Nr^r"c|Sr$r%r^s r(rzdo_sum..func3Hr*)rHr2r )r;rr<rRrrr@s r(do_sumr&s B{I66 A !    !**d dd4jj+ IsAc t|S)zkConvert the value into a list. If it was a string the returned list will be a list of characters. )rr9s r( sync_do_listr<s ;;r*c0Kt|d{VSr$rr9s r(do_listrCs&e$$ $ $ $ $ $ $$r*c t|S)zMark the value as safe which means that in an environment with automatic escaping enabled this variable will not be escaped. rr9s r( do_mark_saferHs %==r*c t|S)zHMark a value as unsafe. This is the reverse operation for :func:`safe`.)r.r9s r(do_mark_unsaferOs u::r*cdSr$r%r9s r( do_reverserTCr*cdSr$r%r9s r(rrYrr*ct|tr |dddS t|S#t$rK t |}||cYS#t$r}t d|d}~wwxYwwxYw)z\Reverse the object or return an iterator that iterates over it the other way round. Nruzargument must be iterable)r5r.rrrrr)r3res r(rr^s%TTrT{J JJJ JeB JJLLLIII J J J%&ABB I J Js,1 B$A# B# B-A==BBobjnamec t||n9#t$r,t||s|||cYSYnwxYw|||S)a Get an attribute of an object. ``foo|attr("bar")`` works like ``foo.bar``, but returns undefined instead of falling back to ``foo["bar"]`` if the attribute doesn't exist. See :ref:`Notes on subscriptions ` for more details. )rr)rAttributeErrorrarra)r;rrs r(do_attrrps= sD!!!! ===sD!! =((St(<< < < < = ==   sD ) ))s1A A cdSr$r%rr3rr?r@s r( sync_do_maprs Cr*)r<r>cdSr$r%rr3r<r>s r(rr Cr*c/XK|r#t|||}|D]}||VdSdS)aApplies a filter on a sequence of objects or looks up an attribute. This is useful when dealing with lists of objects but you are really only interested in a certain value of it. The basic usage is mapping on an attribute. Imagine you have a list of users but you are only interested in a list of usernames: .. sourcecode:: jinja Users on this page: {{ users|map(attribute='username')|join(', ') }} You can specify a ``default`` value to use if an object in the list does not have the given attribute. .. sourcecode:: jinja {{ users|map(attribute="username", default="Anonymous")|join(", ") }} Alternatively you can let it invoke a filter by passing the name of the filter and the arguments afterwards. A good example would be applying a text conversion filter on a sequence: .. sourcecode:: jinja Users on this page: {{ titles|map('lower')|join(', ') }} Similar to a generator comprehension such as: .. code-block:: python (u.username for u in users) (getattr(u, "username", "Anonymous") for u in users) (do_lower(x) for x in titles) .. versionchanged:: 2.11.0 Added the ``default`` parameter. .. versionadded:: 2.7 N) prepare_maprr3r?r@rr@s r(rrs\V 7D&11  D$t**       r*cdSr$r%rs r(do_maprrr*cdSr$r%rs r(rrrr*cK|rLt|||}t|23d{V}t||d{VWV)6dSdSr$)rr rrs r(rrs /7D&11$U++ / / / / / / /$"44::........ . . . . .,++//sAc,t||||ddS)aFilters a sequence of objects by applying a test to each object, and only selecting the objects with the test succeeding. If no test is specified, each object will be evaluated as a boolean. Example usage: .. sourcecode:: jinja {{ numbers|select("odd") }} {{ numbers|select("odd") }} {{ numbers|select("divisibleby", 3) }} {{ numbers|select("lessthan", 42) }} {{ strings|select("equalto", "mystring") }} Similar to a generator comprehension such as: .. code-block:: python (n for n in numbers if test_odd(n)) (n for n in numbers if test_divisibleby(n, 3)) .. versionadded:: 2.7 c|Sr$r%rs r(z sync_do_select.. Ar*Fselect_or_rejectrr3r?r@s r(sync_do_selectrs8 GUD&++u M MMr*zt.AsyncIterator[V]c0Kt||||ddS)Nc|Sr$r%rs r(rzdo_select..!r*Fasync_select_or_rejectrs r( do_selectrs" "'5$ U S SSr*c,t||||ddS)aFilters a sequence of objects by applying a test to each object, and rejecting the objects with the test succeeding. If no test is specified, each object will be evaluated as a boolean. Example usage: .. sourcecode:: jinja {{ numbers|reject("odd") }} Similar to a generator comprehension such as: .. code-block:: python (n for n in numbers if not test_odd(n)) .. versionadded:: 2.7 c| Sr$r%rs r(rz sync_do_reject..1Er*Frrs r(sync_do_rejectrs. GUD&//5 Q QQr*c0Kt||||ddS)Nc| Sr$r%rs r(rzdo_reject..;a%r*Frrs r( do_rejectr4s# "'5$QV W WWr*c,t||||ddS)aWFilters a sequence of objects by applying a test to the specified attribute of each object, and only selecting the objects with the test succeeding. If no test is specified, the attribute's value will be evaluated as a boolean. Example usage: .. sourcecode:: jinja {{ users|selectattr("is_active") }} {{ users|selectattr("email", "none") }} Similar to a generator comprehension such as: .. code-block:: python (u for user in users if user.is_active) (u for user in users if test_none(user.email)) .. versionadded:: 2.7 c|Sr$r%rs r(rz$sync_do_selectattr..Yrr*Trrs r(sync_do_selectattrr>s6 GUD&++t L LLr*c0Kt||||ddS)Nc|Sr$r%rs r(rzdo_selectattr..crr*Trrs r( do_selectattrr\s" "'5$ T R RRr*c,t||||ddS)aFFilters a sequence of objects by applying a test to the specified attribute of each object, and rejecting the objects with the test succeeding. If no test is specified, the attribute's value will be evaluated as a boolean. .. sourcecode:: jinja {{ users|rejectattr("is_active") }} {{ users|rejectattr("email", "none") }} Similar to a generator comprehension such as: .. code-block:: python (u for user in users if not user.is_active) (u for user in users if not test_none(user.email)) .. versionadded:: 2.7 c| Sr$r%rs r(rz$sync_do_rejectattr..rr*Trrs r(sync_do_rejectattrrfs2 GUD&//4 P PPr*c0Kt||||ddS)Nc| Sr$r%rs r(rzdo_rejectattr..rr*Trrs r( do_rejectattrrs# "'5$QU V VVr*indentc|jj}|d}|d}||}||d<t|fd|i|S)aSerialize an object to a string of JSON, and mark it safe to render in HTML. This filter is only for use in HTML documents. The returned string is safe to render in HTML documents and ``