0
     ˆÁÀÅ527¿ÃÂ     ‹      ½•ooÚ0Æß÷Sx~±wÉ`íÔ:™:Riheš¦iŠLl‹`GöQÆ>ýa*ZÃþ‰ñ*ÉÝ“{îw¶lö"õ¦ŸÆwäÝô~@ÆÞú=B=€��@<�ëD×o wCJhŽX^¬×kÝñ�Í`:�—EZ•¢/PÐè‚mcÑa¹ä¢z†
õµ�_‰™0+tJÈ.jås£; ”C¯äé‚gÒ�0é
Uá äÖIëÀ:„$)7)Os™$ê¢•ì}ØÌˆÍÖ>8µUUq‡Ág;Çí«�æä‘*Ó!ESÒˆ©eFœMC
*5ÚÁ¬àzágjN	/0¤Ÿû½Ñ—J˜oÿŽ'¹•ó�¾é…Ã›QxK£!_J¼Ys_kÜ!Y¡æJŠ£â‡Zü ¾/×šXºÔª•ÑOR¨QSS¸’W¬¯*‚Üªj‰øÝ4ªyc|;¹Nãþ¤‰Ø–xêîŸŽFcn¥F++S4v³gª^ê™+o~|’}ÇVe9Òˆ�4*ÿs¥Ú¬õ!i5ÅFÆÝ~ª{÷ÓÑë�_í<ý"yôA»ÕîzAàµ/I;¸n]rµ}õþŒ¨9J÷œ²9~
Àà28' 5E_cø$ë¼>'^’(­0IžËüÈ?<œ`l3ØÝêëé;€ˆ§@    L   ˆl–ßi~” T¾R( 	Å+‚Á6¦-ÿ�þB gáz@’XÆ×óÇƒh¹Æa–ßi~” T¾R( 	Å+‚vãM)‹FÿÄ      unsupported
     ˆÃÂÇ494Á¾Ä î    ‹      ­”_oÓ0Åß÷)ŒxknÛµ°?ŽÑH*QÑµU!äÆNâ5µ#Û¥Ÿ~NÓiµ‚‰I‘b'ÇçžßMlò*žEÉ×ù}H®'hþéýd!Üø|ÄIÜ¼ÝÀhŠ.œ«. ¶Ûm°=´É!Y@áÖå ¬32uwÓR?£'ˆ‚qGÄIW
:V\Ü!�!Ðg%ØX¶`F€Ò\ÜZ¨Xª]3û±Ö|S
™í¬¥’³–@cåÍaïN–šß×E{/SÀûì"³å®N=4”¸ýd¥ÌUˆ�®0%r�#kÒƒLµ²°,™Z¹Ì0b¥ñ·q4ûîuàŠz5%Fd!~…ÓËYx…é”­vXsÝh&Ì:äsÊL
~T|Óˆoä¯ã†q£‰…M�¬œÔêI
±�šêÒVÌ³=AaÚªFÂÿÖ–þÖŒùÕb4Mâñ¢i	¯-žÒ=ósa:÷
åP,�H�6÷{’ÆöµZÚêòqŠö9�Ì‡)BtPù¸�Z)½Um>ß»ƒd>þŠå"¸µZaÚžµ#ÿ‘±ßí÷;=õPoxÑ}‹ÐáÙ›áÃ8qçÚ$É—ä ‰¬÷–OŽéãè%Îƒ³�Ç	þñ�„ý^%°;
4çÏ"JšHâ    7   ˆl–ßi~” T¾R( 	Å+‚vãM)‹Fÿ‘äÇò 8à_ÝfG•ßçÉƒh¹È¿Å      0
     ˆÄÃÈ531Â¿Å     ‹      ­”ooÚ0Æß÷Sx~±wÉþh]›dêÒÐ( ši›¦i2±I\‚�ì£´ûôsÙÝªVŠd_òøîù]l‡¯’I?ý:�éõˆL?½û„z Ÿ;}€$Mê]¿ Æ”Ðq}°ÝnýmÇ×&‡t®Ê.X42CŸ#§ñYX½‹ÏHXÆÝHB”XŠx¨¸¸'zA@oÐJ.º°±lÁŒ ¥¹¸µ°f™Æ:ú±Ò|S
âN(ô�™\ g¹
¡NèJÀ¾F8×ü¡*¼d—mgŸÍwÕª©‰C,È+e®"ŠzMãP®rbMQ�™Væ%SK?—JX‰ý6ìO¾;`Q­ŽCF
#}×�Æ—“èŠÆc¶!°ãšëZ3b‰s+Rð“â›Z|#žN˜ÔšDØÌÈ5J­RpˆMÔL—vÍkÏ¦©ª%ü_Ý`ÙÍ˜^Íã4Îê–ð*ÅÁÝ�§N¡�$ÒˆµyØ“Ôi_«¹]_þÉÞ§‘y�4&Ä#G•O€Û¨¥Ò[Õäs½;Jæì/Y.ü[«�›QÓò_Û­vÛÜ� wÑzCÈ)¡ßûø\÷Ø$I¿¤GIduÂ|î£¥ñaþ$žM±Ð%¦Éqj¯qiÑí Ýð¸ûŽ×zëµÏ+÷Aç´ûG7Ôž)Øß6!ì®´êÛô@µ,°        ˆÊ�þZ(Â³rˆ�†A„% ?ŸÉ„'ÿÈÇ¿Å ?÷     # Copyright (C) 2007, 2009, 2010 Canonical Ltd
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

"""Container format for Bazaar data.

"Containers" and "records" are described in
doc/developers/container-format.txt.
"""

from io import BytesIO
import re

from .. import errors


FORMAT_ONE = b"Bazaar pack format 1 (introduced in 0.18)"


_whitespace_re = re.compile(b'[\t\n\x0b\x0c\r ]')


class ContainerError(errors.BzrError):
    """Base class of container errors."""


class UnknownContainerFormatError(ContainerError):

    _fmt = "Unrecognised container format: %(container_format)r"

    def __init__(self, container_format):
        self.container_format = container_format


class UnexpectedEndOfContainerError(ContainerError):

    _fmt = "Unexpected end of container stream"


class UnknownRecordTypeError(ContainerError):

    _fmt = "Unknown record type: %(record_type)r"

    def __init__(self, record_type):
        self.record_type = record_type


class InvalidRecordError(ContainerError):

    _fmt = "Invalid record: %(reason)s"

    def __init__(self, reason):
        self.reason = reason


class ContainerHasExcessDataError(ContainerError):

    _fmt = "Container has data after end marker: %(excess)r"

    def __init__(self, excess):
        self.excess = excess


class DuplicateRecordNameError(ContainerError):

    _fmt = "Container has multiple records with the same name: %(name)s"

    def __init__(self, name):
        self.name = name.decode("utf-8")


def _check_name(name):
    """Do some basic checking of 'name'.

    At the m