0
     ˆÈÇÆ584ÅÄÃ H    ‹      Õ—]oÚ0…ïû+<_ìŽ˜�®Z['[G*•¢™¶iš&c;Ä#±‘mšv¿~a%E°µCp¿ÉñÉyì8qð«°ßŽ¾.ÁÇèºŸ>t;m k}nµ
£°¼pìÕ]ö €‰µÓ3„ò<÷ò–§ôEC”Ø,=FÆjA­Ç,ƒÁ.ÎG 'œ0wØ
›ò #¿*HÍ¬Œ;g©ÿ‘)6K¹Aïc¥³‰°È&<s5ÆbTvvvhá‡GŠÝ·i¼ÔÒõœÇ"£¹sÑÔ¶	¸%©KZ5…ÙM}ˆUÒ QJäÄ‹’Z~ë´ûß�Î™½L@¢yìÃwm¿wÞ÷/`Ð#Çˆ¬×\—š.1¸À"œmß”âñk³aXjBn¨S+”\J‘C¬¢R•š)q¬oA¢«ªRÂþ5„>ŒÁÅð²…�a9$¬°X¦{êÁ`@4—„Bsj•¾_ ”~¯åÈLÏÿ”`P‹qba @¬U>ƒ*V)ãºÊµ‰(’	jŠÈÍjÖ•pÍzó¤V?­5O@ýô¬Õ`/(fR•‹ÆáX"ÒbJŒjux,%Ã>e·üÎV“G_¢µÉEñ&ö²ŸÍ­04W;gð22­påVXšowÌÂøí*OåÔA3­ðìË³6“©rYÅqÝ¿áx™]ÂÅ6Pš^k×ÓâÑ*ÝŽgO	}¼bè~­–—àTPþÿByâ&-¶ßÍ÷ó•¿¿M/(™    H   ˆl–Ãa¾”ªi?u8 ¸Ûw˜´oŽþJêÎ8c�¶�+å{ùÂ‚!Ç_“I|¥ŽõHºl=$¤�zTÖ™	ÆÅ  ç    import type { ApolloLink } from "@apollo/client/link";
export declare function createOperation(request: ApolloLink.Request, { client }: ApolloLink.ExecuteContext): ApolloLink.Operation;
//# sourceMappingURL=createOperation.d.ts.map  @   ˆl–Ü4ý( ©”u( 	•íÀà™S�ÿŽþK#K7(ˆødBRùÄƒe×ÜÉ_ŠI|¥�+Wé3ž¯ÈÇ Ô    # Copyright (C) 2007 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

"""A generator which creates a template-based output from the current
   tree info."""

import codecs

from breezy import errors
from breezy.revision import (
    NULL_REVISION,
    )
from breezy.lazy_regex import lazy_compile
from breezy.version_info_formats import (
    create_date_str,
    VersionInfoBuilder,
    )


class MissingTemplateVariable(errors.BzrError):

    _fmt = 'Variable {%(name)s} is not available.'

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


class NoTemplate(errors.BzrError):

    _fmt = 'No template specified.'


class Template:
    """A simple template engine.

    >>> t = Template()
    >>> t.add('test', 'xxx')
    >>> print(list(t.process('{test}')))
    ['xxx']
    >>> print(list(t.process('{test} test')))
    ['xxx', ' test']
    >>> print(list(t.process('test {test}')))
    ['test ', 'xxx']
    >>> print(list(t.process('test {test} test')))
    ['test ', 'xxx', ' test']
    >>> print(list(t.process('{test}\\\\n')))
    ['xxx', '\\n']
    >>> print(list(t.process('{test}\\n')))
    ['xxx', '\\n']
    """

    _tag_re = lazy_compile('{(\\w+)}')

    def __init__(self):
        self._data = {}

    def add(self, name, value):
        self._data[name] = value

    def process(self, tpl):
        unicode_escape = codecs.getdecoder("unicode_escape")
        tpl = unicode_escape(tpl)[0]
        pos = 0
        while True:
            match = self._tag_re.search(tpl, pos)
            if not match:
                if pos < len(tpl):
                    yield tpl[pos:]
                break
            start, end = match.span()
            if start > 0:
                yield tpl[pos:start]
            pos = end
            name = match.group(1)
            try:
                data = self._data[name]
            except KeyError:
                raise MissingTemplateVariable(name)
            if not isinstance(data, str):
                data = str(data)
            yield data


class CustomVersionInfoBuilder(VersionInfoBuilder):
    """Create a version file based on a custom template."""

    def generate(self, to_file):
        if self._template is None:
            raise NoTemplate()

        info = Template()
        info.add('build_date', create_date_str())
        info.add('branch_nick', self._branch.nick)

        revision_id = self._get_revision_id()
      